JIMI 发表于 20:50

基于μCOS-II的数据采集系统软件设计

论文编号:DZXX168  论文字数:13503,页数:39
摘要
 μC/OS-II是一种源码开放,广泛应用于嵌入式系统的实时操作系统。其内核采用了占先式调度策略,移植方便,稳定可靠。文章介绍了以μC/OS-II为操作系统在LPC2214上的移植,以及开发数据采集系统的过程。
该采集系统由MPU控制电路及数据采集卡构成,能够实现将采集到的数据在液晶屏上显示。本论文主要讨论了系统的软件设计,具体包括操作系统的移植及应用软件的设计。移植操作系统时主要分析了相应的功能函数及移植代码,使之符合自己的要求。设计应用程序时,为了提高系统的实时能力,论文中将系统的应用划分为多个相互独立的任务,并根据任务的重要性来分配优先级。采用该实时操作系统实现系统的数据采集功能。
关键词:µC/OS-II、移植、采集系统

ABSTRACT
 μC / OS-II is an open source code, widely used in embedded systems real-time operating system. Its core uses Preemptive scheduling strategy to facilitate transplantation, and it is stable and reliable. In this paper, an μC / OS-II operating system is applied in the LPC2214 for the development of data acquisition system.
 The acquisition system controlled by the MPU circuit and pose a data acquisition card enables data to be diaplayed in the liquid crystal display screen. This paper mainly discussed the design of system software, including operating system and application software migration design, and the main function of the corresponding transfer function and code to meet their own requirements. In order to improve the real-time capabilities, in this paper the application will be divided into several tasks independently each other, and by the importance of the mission to allocate different priority.  Data acquisition system functions have been achieved with the real-time operating system.
 
Keywords: µ C/OS-II、 transplant、acquisition system
目录
摘要 I
ABSTRACT II
第1章 引言 1
1.1 背景 1
1.1.1 背景与意义 1
1.1.2 国内外研究现状 1
1.1.3 未来嵌入式系统的发展趋势 2
1.2主要函数设计 3
第2章µC/OS-II的移植 5
2.1 µC/OS-II简介 5
2.2 移植规划 6
2.2.1 编译器的选择 6
2.2.2 任务模式的取舍 6
2.2.3 支持的指令集 6
2.3 移植µC/OS-II 7
2.3.1 概述 7
2.3.2 关于头文件includes.h 和os_cfg.h 9
2.3.3 编写OS_CPU.H 9
2.3.4 编写Os_cpu_c.c 文件 10
2.3.5 编写Os_cpu_a.s 12
第3章 数据采集系统硬件设计 15
3.1 硬件设计图 15
3.2 采集卡操作 15
3.3 系统结构设计 16
3.3.1 按键电路设计 16
3.3.2 复位电路设计 16
3.3.3 电源电路设计 18
第4章 软件设计 20
4.1系统主要功能要求 20
4.2系统任务创建 20
4.3主要函数设计 21
4.3.1 主函数 21
4.3.2 TaskStart()任务设计 21
4.3.3 P5ToN5_para_sample()任务设计 22
4.3.4 TESTIO任务设计 23
4.3.5 Timer0 25
4.3.6 Timer1 25
4.3.7按键中断 26
第5章 结束语 27
致谢 28
附录 源代码 30
页: [1]
查看完整版本: 基于μCOS-II的数据采集系统软件设计