JIMI 发表于 20:50

基于μCOS-II的LPC2214的数据采集系统

论文编号:DZXX176  论文字数:12569,页数:42
摘要
数据采集(DAQ),是指从传感器和其它待测设备等模拟和数字被测单元中自动采非电量或者电量信号,送到上位机中进行分析处理。是利用一种装置,从系统外部采集数据并输入到系统内部的一个接口。数据采集技术广泛引用在各个领域。
 在对实时性和安全性要求较高的复杂系统(如实时图像监控系统,网络通信系统)中,传统的基于单任务机制的单片机数据采集 系统很难胜任。随着计算机技术的发展,嵌入式计算机系统(简称嵌入式系统)作为计算机应用的一个重要领域已深入到社会的方方面面,所谓嵌入式系统是指应用系统不是以计算机系统为主,而是把计算机技术作为应用系统的一个重要组成部分,嵌入到应用系统中区,是以应用为中心,以计算机技术为基础,软硬件可裁剪的专用计算机操作系统。嵌入式实时操作系统更是嵌入式系统的灵魂,她担负着任务调度,任务控制,任务间通信与同步,资源管理,存储管理等任务。
 本文基于嵌入式实时操作系统uc/os-ii和LPC2214单片机设计了一种典型的数据采集系统。系统的安全性,实时性好,调试方便,灵活,可扩展性强,可应用在工业仪表,图像监控等系统中。
关键词:单片机,μC/OS-II,数据采集,硬件驱动,嵌入式C语言
 
 
 
 
ABSTRACT
Data acquisition (DAQ), from the sensor, and other means to analog and digital equipment by measuring unit automatically by the electricity power, or to signal analysis, in the upper machine. Using a device from external data collection system and input to the internal system of an interface. Data collection technology is widely quoted in various fields.
In real-time, and safety requirements for complex system of higher as image monitoring system, network communication system), the traditional mechanism based on single chip of data acquisition system is hard to do. With the development of computer technology, embedded computer system (hereinafter referred to as the embedded system) as an important field of computer application already deeply into every aspect of society, the so-called embedded system refers to the computer system is applied, but the computer technology application system is an important part of the embedded application system, to the central is used as the center, take the computer technology as the foundation, software and hardware can cut the special computer operating system. The embedded real-time operating system is the soul of embedded systems, she bears a task scheduling, mission control and synchronization and communication between tasks, resource management, storage management, etc.
Based on embedded real-time operating system uc/OS - ii and LPC2214 SCM design a kind of typical data acquisition system. The security of the system, good real-time, convenient and flexible expandability, and can be used in industrial instrumentation, video surveillance system.
 Keywords: SCM,μC/OS-II, Data acquisition, Hardware driver,
 Embedded C
 
 

 目录
 
 摘要 I
 ABSTRACT II
 第1章 引言 1
1.1 背景 1
1.2 研究内容 2
 第2章 数据采集总体设计 3
2.2 数据采集系统芯片介绍 4
2.2.1  LPC2214单片机芯片 4
2.2.2  特性 4
2.2.3片内FLASH存储器 5
2.2.4片内静态RAM 6
2.2.5 LPC2214寄存器 7
2.3 系统控制模块 8
2.3.1系统控制模块功能汇总 8
2.3.2 管脚描述 8
2.3.3 晶体振荡器 9
2.3.4 LPC2214的管脚分布 10
 第3章 UC/OS―II操作系统介绍 11
3.1 uc/os-ii简介 11
3.2传统的程序流程 12
3.3基于UC/OS―II的系统程序流程 12
3.4 任务的划分和构成 13
3.5 任务的通信和调度 14
3.6系统的工作过程 15
 第4章 数据采集系统软件设计 16
4.1 任务main函数的设计 16
4.2 系统初始化函数的设计 16
4.3任务创建函数 17
4.4 任务执行函数设计 18
4.4.1 任务Tasktestio函数设计 19
4.4.3 数字量读入子程序 21
4.4.4 数据采集任务函数设计 21
 第5章 结束语 24
 致谢 25
 参考文献 26
 附录 27
页: [1]
查看完整版本: 基于μCOS-II的LPC2214的数据采集系统