文档介绍:单片机应用系统设计——
温度巡检系统
摘要
本论文采用台湾凌阳公司生产的µ’nSP™系列16位SPCE061A单片机,设计了用于检测炉窑温度的温度巡检系统, 该系统在冶金、化工等领域应用较为广泛。课题主要内容包括硬件设计(热电偶温度传感器、热电偶温度变送器、驱动芯片、LED显示器等)以及软件程序设计(模拟量的采集、A/D转换模块、定时器、I/O模块等)。
该系统可以在一个采样周期内实现四个温度采集点的巡回检测、各个采集点的温度的LED显示、温度的超限报警功能。论文详细阐述了软件设计的思路,并对硬件接口电路和程序流程图进行了详细的分析,并对系统的抗干扰性能进行了优化设置。
大部分程序采用了C语言编程,相较于汇编语言来说它具有结构灵活,数字信号处理能力强的特点,而且只要修改参数就可以方便地应用于其它类似的系统。
关键字:SPCE061A单片机,采样,A/D转换
The Design of System for Itinerant Temperature Measurement Using MCU
Abstract
The author of the paper designs a itinerant measurement system of temperature in measuring the furnace temperature using the SPCE061A 16-bit MCU in the µ’nSP™ series made by Taiwan Sunplus Ltd , which is used widely in the filed of metallurgical engineering and chemical industry. This paper contains the designs of hardware (the thermocouple sensor, the thermocouple convert, the driver, the LED displayer etc.) and the software (the analog data collect, the ADC convert unit, the Timer,the I/O unit etc.).
The system can measure the furnace temperature of the four points in a sample period, display the temperature data of each point on the LED displayer and give an alarm when the temperature oversteps the normal boundaries. The paper tells the designing thought in detail and analyses the circuit diagrams and charts with clarity.
Most of the programs are described by C language, which has the advantages of agility structure and strong Digital Signal Processing ability to the assemble language. The program can be transplanted conveniently to other similar system just by modifying the parameters.
Keywords: SPCE061A MCU, sample,analogy-digital-convert
目录
1 绪论 1
课题的提出 1
单片机的发展及现状 1
课题的系统构成 2
2 系统基本硬件 4
凌阳16位单片机SPCE061A介绍 4
SPCE061A的性能 5
SPCE061A的内部结构和最小系统 6
定时器和计数器 8
输入输出接口 11
A/D转换器 13
凌阳SPCE061A的指令系统 15
温度传感器 17
18
热电偶传感器的选型 18
热电偶的结构形式 19
热电偶的冷端补偿 19
温度变送器 21
3 系统硬件设计 24
电路方框图其说明 24
SPC