节点文献

实时内核μC/OS-II在MSP430中的实现与应用研究

Realization and Application Research of Real-time Kernel μC/OS-II in MSP430

【作者】 赵士伟

【导师】 陈平;

【作者基本信息】 山东理工大学 , 计算机应用技术, 2006, 硕士

【摘要】 嵌入式操作系统在嵌入式系统设计中处于核心地位,而TI公司的MSP430系列单片机以其超低功耗著称,广泛的应用于三表、医疗设备、便携仪器等场合的嵌入式系统开发中。本文以MSP430为嵌入式实时系统微处理器,以μC/OS-Ⅱ为嵌入式实时操作系统内核,通过硬件的扩展和软件的功能扩充,实现了一个基本完整的嵌入式实时操作系统,并在此基础之上以面向对象的编程方法完成汽车、拖拉机综合测试仪器的设计。 首先通过分析实时操作系统μC/OS-Ⅱ的源代码,研究MSP430单片机的硬件结构,将μC/OS-Ⅱ内核成功的移植到MSP430单片机中,并对实时操作系统μC/OS-Ⅱ进行了一些改进。这些改进主要包括将任务调度改为支持时间片轮转、任务堆栈的优化设计、内核超时等待机制的改进。此外还分析了μC/OS-Ⅱ的实时性能并对如何减少RAM使用量做了讨论。 其次,由于μC/OS-Ⅱ只是一个操作系统内核,只提供了资源管理的基本功能,要实现一个相对完整、实用的嵌入式实时多任务操作系统,需要对内核进行功能扩充。在成功移植的基础之上,对μC/OS-Ⅱ内核进行了软件上的扩充和硬件上的扩展。主要扩充了液晶显示模块、按键扫描模块、微打模块、ADC模块、UART模块等。所有这些程序的设计都遵循模块化、便于移植的设计原则,可通过简单的配置广泛的适用于以MSP430为核心设计的各种不同的系统中。 最后,以“汽车、拖拉机综合性能测试仪”的设计为例,介绍了嵌入式实时软件设计中的面向对象的分析方法。

【Abstract】 Embedded operating system is the hard core of embedded system design. The singlechip of MSP430 series from Texas Instruments is famous for its ultralow-power consumption and then has been applied widely in embedded system developments, such as in three meters, in medical equipments and in portable devices and so on. In this paper, it has been described how to realize a whole Embedded Real-Time Operating Systems through the hardware and the software expansion, which the MSP430 is taken as the microcontroller of the Embedded Real-Time Systems and the μC/OS-II as the kernel of the Embedded Real-Time Operating Systems. Based on these facts, we fulfilled the research about the vehicle performance measuring instrument by the object-oriented programming method.Firstly ,we have analysed the source code of the Real-Time Operating System μC/OS-II and studied the hardware structure of the microcontroller MSP430. Then some improvements have been made to develop the μC/OS- II, including the support to timeslice rotates , the optimized design of task stack , and the kernel’s overtime waiting mechanism. We also have given an analysis aboui the real-time capability of the μC/OS- II , and discussed how to use RAM less and less .Secondly , some function expansion needs to be done to the kernel of the Embedded Real-Time Operating Systems in order to make sure its integrality and practicability. So we have to make some expansion of hardware and software to the μC/OS- II , mainly the LCD module , the pressed key scanning module, the micro print module, the ADC module, and the UART module. And all these programming and designing follow the principle : all that must give helps to modularization and transplant and can be applied to all kinds of systems of MPS430, only through simple configuration.Finally, by taking example for "the motor vehicles performance detector " designing, we introduced the object-oriented analysis method of the Embedded Real-Time software-designing.

  • 【分类号】TP368.11;TP316.2
  • 【被引频次】4
  • 【下载频次】518
节点文献中: