基于51单片机的实时操作系统的研究

上传人:飞*** 文档编号:2606650 上传时间:2017-07-25 格式:DOC 页数:88 大小:663.81KB
返回 下载 相关 举报
基于51单片机的实时操作系统的研究_第1页
第1页 / 共88页
基于51单片机的实时操作系统的研究_第2页
第2页 / 共88页
基于51单片机的实时操作系统的研究_第3页
第3页 / 共88页
基于51单片机的实时操作系统的研究_第4页
第4页 / 共88页
基于51单片机的实时操作系统的研究_第5页
第5页 / 共88页
点击查看更多>>
资源描述

《基于51单片机的实时操作系统的研究》由会员分享,可在线阅读,更多相关《基于51单片机的实时操作系统的研究(88页珍藏版)》请在金锄头文库上搜索。

1、本 科 毕 业 设 计 (论 文 )基 于 51 单 片 机 的 实时 操 作 系 统 的 研 究中文摘要:基于 51 单片机的嵌入式 RTOS 操作系统技术的研究本论文主要介绍了当前的 RTOS 的发展,及当前的 RTOS 的现状。现在基于单片机软件的发展已经从单一的线程结构方式逐渐变为多任务的设计思想,和其他的 RTOS 一样,单片机 OS 也是采用了微内核的结构,内核提供的功能有:任务的调度、任务之间的通信与同步、内存管理、时钟管理 中断管理等。其他的应用组件可有用户自己添加,以系统进程或函数的方式工作,因而系统是可以裁减的。SmallRTOS51 就是这样一内核,本论文将在此内核的基础

2、上利用内核中的消息队列的函数实现串口通信的功能,先建立消息的发送和接收队列,为了使发送和接收不冲突,再建立信号量,实现消息队列访问的互斥。串口通信是使用中断的方式发送和接收数据的,要发送或接收的任务把数据放入发送或接收的消息队列中,串口发送或接收中断依次从消息队列中取出数据并发送或接收,再把数据在 LED 数码显示器上显示。当消息队列中没有数据,不会产生中断。关键词: 单片机 ; RTOS ; 任务; 串口通信 ;英文摘要:Research on Technology of Embedded Real-time SystemsBased on 51 MirocontrollerThis the

3、sis 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

4、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

5、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 kernels message queues to realizes Serials functions of correspondence. First establish the message queues of send out and receive, fo

6、r 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

7、 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 cant produce the interruption.Key words: Mirocontroller; Real Time Operating Sys

8、tem; Serial correspondence;目录中文摘要: .I英文摘要: .II第一章 简 介 .11.1 嵌入操作系统的发展现状 .11.2. 实时多任务操作系统(RTOS)简介 .11.3 嵌入操作系统的特点 .41.4. 嵌入是系统的开发过程 .51.4.1 代码优化注意的问题.61.4.2 本论文中电路所使用的单片机的简单介绍 .61.5 开发工具 KEIL C51 编译器简介 .8第二章 RTOS 设计概述 .122.1 实时多任务操作系统(RTOS )的设计思想 .122.2 SMALL RTOS51 原理 .142.2.1 任务的状态和优先级.142.2.2 任务调度和堆栈变换方法.172.2.3 任务通信:消息队列和信号量.35第三章 基于 SMALL RTOS 51 应用 .393.1 定义所需的变量和函数 .393.2 串口通信和显示电路及程序代码 .45附录: .58后记 .58参考文献: .59翻译英文部分 .60翻译中文部分 .

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 研究报告 > 综合/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号