摘 要:近年来。
需要注意的是,但价格昂贵,人们所谈论的往往是一些著名的商业内核,为特定应用而设计的专用计算机系统”,且主要用于16位和32位处理器中。由于μC/OS-II的绝大部分代码是用ANSI C写的,但是仅可以作为个人和学校学习使用,但却可在一定程度上证明该系统的稳定和安全性。所以单个的成本节约,作者是Micrium公司总裁Jean J.Labrosse。由于嵌入式系统通常进行大量生产。从学习嵌入式系统的角度,分析了μC/OS-II内核及其应用在8051单片机上的特点,减小尺码降低成本。
目 录
第1章 绪论 1
1.1设计概述 1
1.1.1 嵌入式系统简述 1
1.1.2 μC/OS-II简介 1
1.1.3 μC/OS-II的特点 2
1.2 硬件设计 3
1.2.1 51系列单片机简介 3
1.2.2 STC89C516RD+基本特性 3
1.3 ΜC/OS-II分析 4
1.3.1 μC/OS-II基本结构 4
1.3.2 μC/OS-II基本特性 6
1.3.3 μC/OS-II移植到51单片机的特点 7
1.4 编写ΜC/OS-II驱动程序的方式和规则 7
1.4.1 方式 7
1.4.2 规则 8
1.5 开发环境 9
1.5.1 硬件环境 9
1.5.2 89C51实验板 9
1.5.3 具有串口的PC机 9
(优秀毕业设计:)
1.5.4 软件环境 9
第2章 系统设计 11
2.1 基本移植过程 11
2.1.1 建立基本系统 11
2.1.2 修改可重入函数 11
2.1.3 修改OS_CPU.H 12
2.1.4 修改OS_CPU_C.C 13
2.1.5 修改OS_CPU_A.ASM 14
2.1.6 其它修改 15
2.2 键盘及LED驱动程序 15
2.2.1 键盘模块简介 15
2.2.2 LED模块简介 15
2.2.3 编程思路 16
2.2.4 相关代码 16
2.3 基于中断的串口驱动程序 19
2.3.1 串口通讯模块简介 19
2.3.2 编程思路 19
2.3.3 程序功能 20
2.3.4 程序特点 20
2.3.5 相关代码 20
第3章 系统调试 22
3.1 硬件系统调试 22
3.1.1 实验板线路连接 22
3.2 软件系统调试 22
3.2.1 编译、连接并调试程序 22
3.2.2 固化程序并运行 23
3.2.3 注意事项 25
第4章 总结与展望 26
4.1 总结 26
4.2 展望 26
毕业设计体会 27
致谢 28
参考文献 29
英文翻译资料 30
关键词:μC/OS-II;8051单片机;移植;驱动程序
The Drivers Programming of μC/OS-II Based on Micro Controller Unit
Abstract: Recent years, the use of embedded system was becoming more and more popular and the big influence has been made to human society. μC/OS-II has been applied in many equipment as a kind of real-time embedded operating system with high reliability, also it featured with easy-studying and easy to porting. The essay introduced the present situation of embedded system and analyses core of μC/OS-II, characteristic of which applied on 8051 uicro controller unit. It contains the ways and rules of writing drivers for μC/OS-II. This work is based on Keil C51 and ports μC/OS-II to 89C51 micro controller unit by means of several progresses such as altering functions for reentry and altering design of stacks, the work also programs drivers of LED module, keyboard module and COM module on micro controller unit.
Keywords: μC/OS-II; 8051 MCU; Porting; Driver
嵌入式系统简述
嵌入式系统(Embedded system),通过修改函数使其可重入、修改堆栈设计等步骤,适合系统开发。验证了移植μC/OS-II的正确性