基于STM32的嵌入式操作系统程序设计及实现本科毕业论文 精品

  • 格式:doc
  • 大小:2.06 MB
  • 文档页数:33

下载文档原格式

  / 33
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

本科毕业论文(设计)

论文题目:基于STM32的嵌入式操作系统程序设计及实现

姓名:郝宇

学号:

0930******** 班级:01班

年级:2009级

专业:电子信息工程学院:信息工程学院指导教师:丁光哲讲师完成时间:2013年5月20日

作者声明

本毕业论文(设计)是在导师的指导下由本人独立撰写完成的,没有剽窃、抄袭、造假等违反道德、学术规范和其他侵权行为。对本论文(设计)的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。因本毕业论文(设计)引起的法律结果完全由本人承担。

毕业论文(设计)成果归武昌工学院所有。

特此声明

作者专业:电子信息工程

作者学号:0930********

作者签名:

年月日

基于STM32的嵌入式操作系统

程序设计及实现

郝宇

The Design and Implementation of embedded operating system program based on STM32

Hao, Yu

2013年5月20日

摘要

随着科学技术不断的进步,工业生产越来越先进复杂,操作系统µC/OS-II 是高效、稳定、可靠、节能的系统,广泛应用安防,消费电子中。而基于Cortex-M3架构下的STM32是一款性价比优越新型微处理器,将µC/OS-II移植到STM32

上能够发挥其高效的性能,从而投入社会生产,制造出很多有用又实惠的电子产品,为我们的生活带来便利。

本文主要的研究内容是µC/OS-II操作系统理论分析、移植方法、应用程序设计及调试仿真实现。首先,对µC/OS-II的理论分析,研究其实际应用及系统结构;其次,分析STM32硬件平台及µC/OS-II的移植需求;最后,在µC/OS-II 上开发LCD,LED,按键KEY等应用程序,并对多任务系统调试分析。主要研究结论如下:

(1)µC/OS-II操作系统主要分为任务管理、内存管理和时间管理三大部分,其间通信是通过消息队列和消邮箱。

(2)µC/OS-II移植主要在OS_CPU.H,OS_CPU_C.C,OS_CPU_A.ASM三个文件中,涉及到数据类型、堆栈、中断定义和任务切换等。

(3)应用程序设计优先级分配要合理,硬件平台初始化模块化处理。

关键词:嵌入式系统;µC/OS-II;移植

Abstract

With the progress of science and technology constantly, advanced industrial production to more complex, the operating system µC/OS-II is efficient, stable, reliable, energy saving system, widely used in the security, and consumer electronics. And based on the STM32 architecture Cortex-M3 framework is a superior cost-effective new microprocessor, µC/OS-II transplantation to STM32 can play its efficient performance, thus in social production and create a lot of useful and affordable electronic product, bring convenience to our lives.

This article main research content is µC/OS-II operating system theory analysis, method of transplantation, application design and debugging of the simulation implementation. First of all, the theoretical analysis of µC/OS-II, research the actual application and system structure; Second, analysis of STM32 hardware platform and the demand µC/OS-II transplantation. Finally, on the µC/OS-II development of LCD, LED, button KEY applications, and analysis of multitasking system debugging. Main research conclusion is as follows:

(1) µC/OS-II operating system consists of three major task management, memory management and time management, in which communication is through the message queue and email.

(2) µC/OS-II transplantation mainly in OS_CPU_C.C, OS_CPU_A.ASM file, OS_CPU.H, three involves the data type definition and task switching etc, stack, interrupt.

(3)The application design to the allocation of priorities, initialize the modular processing hardware platform.

Key words:embedded system; µC/OS-II; transplant

相关主题