摘要µC/OS-II是由Jean J. Labrosse于1999年推出的一个嵌入式实时操作系统,目前已被广泛用于各类微控制器、微处理器以及数字信号处理器上。它具有任务管理,内存管理,时间管理以及任务间的同步与通信等功能。µC/OS-II通过内置相关函数的调用来实现对任务的各种管理,包括任务的创建与删除,任务优先级的改变,任务的挂起与恢复等,从而方便了用户对任务进行的各项操作。59662
本文首先介绍了µC/OS-II,并着重讨论了其多任务管理能力。其次,以PIC32MX340F128H为核心设计制作了一个硬件电路板,该板具有记时、温度测量、加速度测量等功能。接着将µC/OS-II成功地移植到了PIC32MX340F128H上。最后,在µC/OS-II操作系统的支持下编写了时间显示、实时温度显示等8个任务。最终实验结果表明各个任务都能正常工作。
毕业论文关键词 µC/OS-II 多任务 PIC单片机 Cadence 万年历
毕业设计说明书(论文)外文摘要
Title Design of a Multi-tasking System Based on µC/OS-II
Abstract
µC/OS-II is an embedded real-time operating system developed by Jean J. Labrosse in 1999, which has been used in many micro-controllers,micro-processors and digital signal processors. It includes many functions such as task management, memory management and time management, inter-task communication and synchronization of tasks. It also offers a variety of function calls of task management, including the creation and deleting of tasks, changing the priority of the task, the task suspend and resume. So it is facilitated to operate our tasks.
This paper firstly introduces the µC/OS-II, and discusses its multiple task management ability. Secondly, taking PIC32MX340F128H as the core to design a hardware circuit board, the board includes many functions such as timing, temperature measurement and measurement of acceleration. Then successfully transplant µC/OS-II to the PIC32MX340F128H. Finally, realize 8 tasks such as the time display, real-time temperature based on the µ C/OS-II operating system. The final results show that each task can work normally.
Keywords µC/OS-II multi-task Peripheral-Interface-Controller Cadence calendar
目 次
1 绪论 1
1.1 研究背景与意义 1
1.2 研究现状 1
1.3 本课题所做的工作 3
1.4 本课题系统设计的流程 3
1.5 本课题设计系统的结构 5
1.5 论文结构安排 6
2 嵌入式实时操作系统µC/OS-II 7
2.1 µC/OS-II简介 7
2.2 µC/OS-II的特点 7
2.3 µC/OS-II的多任务管理 9
2.4 本章小结 13
3系统硬件的设计与实现 14
3.1 硬件设计流程 14
3.2 系统硬件结构框架 14
3.3 需求分析及芯片选型 15
3.4 电路图设计与PCB板的制作 19
3.5 硬件系统调试 28