基于51单片机的嵌入式RTOS操作系统技术的研究

基于51单片机的嵌入式RTOS操作系统技术的研究

页数 86 字数 40746

中文摘要:

本论文主要介绍了当前的RTOS的发展,及当前的RTOS的现状。现在基于单片机软件的发展已经从单一的线程结构方式逐渐变为多任务的设计思想,和其他的RTOS一样,单片机OS也是采用了微内核的结构,内核提供的功能有:任务的调度、任务之间的通信与同步、内存管理、时钟管理 中断管理等。其他的应用组件可有用户自己添加,以系统进程或函数的方式工作,因而系统是可以裁减的。SmallRTOS51 就是这样一内核,本论文将在此内核的基础上利用内核中的消息队列的函数实现串口通信的功能,先建立消息的发送和接收队列,为了使发送和接收不冲突,再建立信号量,实现消息队列访问的互斥。串口通信是使用中断的方式发送和接收数据的,要发送或接收的任务把数据放入发送或接收的消息队列中,串口发送或接收中断依次从消息队列中取出数据并发送或接收,再把数据在LED数码显示器上显示。当消息队列中没有数据,不会产生中断。

关键词: 单片机,RTOS,任务,串口通信 ;
英文摘要:

This thesis introduced the development of the current RTOS primarily, and the present condition of the current RTOS, now according to the development of the micro controller software have changed into gradually from the single line distance construction method to the design of multitasking thoughts, as the other RTOS , micro controller 's OS is construction to adopt the micro kernel construction , function of the micro kernel provided :The Task Management、Intertask Communication and Synchronization、Memory Management 、Time Management 、Interrupt Management etc.. Other applied module the useful an oneself increases, work by system progress or functions, as a result the system is what can cut. The SMALLRTOS51 is like this a RTOS kernel , this paper will make use of the kernel's message queues to realizes Serial's functions of correspondence. First establish the message queues of send out and receive, for the sake of making send out and receives to do not conflict, stablishing one more semaphore, realizing with each other scolding of Serial interface. Serial correspondence is a way to use the interruption to sending or receiving the data, Task to sending or receiving the data that put the data into message queues to sending or receiving, the interruption of a sending or a receiving take out from the message queues, data is on the LED figures display manifestation. . When have no the data in the message queues, it can't produce the interruption.

Key words: Mirocontroller; Real Time Operating System; Serial correspondence;
目录
中文摘要: I
英文摘要: II
第一章 简 介 1
1.1 嵌入操作系统的发展现状 1
1.2. 实时多任务操作系统(RTOS)简

介 1
1.3 嵌入操作系统的特点 4
1.4. 嵌入是系统的开发过程 5
1.4.1 代码优化注意的问题 6
1.4.2 本论文中电路所使用的单片机的简单介绍 6
1.5 开发工具KEIL C51 编译器简介 8
第二章 RTOS设计概述 12
2.1 实时多任务操作系统(RTOS)的设计思想 12
2.2 SMALL RTOS51原理 14
2.2.1 任务的状态和优先级 14
2.2.2 任务调度和堆栈变换方法 17
2.2.3 任务通信:消息队列和信号量 35
第三章 基于SMALL RTOS 51应用 39
3.1 定义所需的变量和函数 39
3.2 串口通信和显示电路及程序代码 45
附录: 58
后记 58
参考文献: 59
翻译英文部分 60
翻译中文部分 72

参考文献:
1. 《嵌入式实时操作系统Small RTOS51原理和应用》,2003
陈明计,周立功 等编著;北京航空航天大学出版社
2. 《uC/OS-II --源码公开的实时嵌入式操作系统》
卲贝贝译 中国电力出
3. 《单片机的C语言编程》修订版
马盅梅 籍顺心 等编著 北京航空航天大学出版社
4. 《增强型80C51单片机速成和实战》,2003
周利功北京航空航天大学出版社
5. 陈明计. Small RTOS(51) v1.20.0 使用手册. 2003


相关文档
最新文档