The serial data acquisition system based on 16-bit microcontroller
Abstract: SPCE061A is the16 monolithic integrated circuit.that having the rich peripheral device resources and the good monitoring mechanism causes this chip has rich functions and the stable property,it .As a general micro controller, It applied widely in the industrial control, keep the living circumstate safe ,the intelligent electrical appliances and so on numerous domains.
This article mainly introduced SPCE061A application in the voltage data gathering. First, a sinusoidal signal generator has been manufactured, using to produce frequency variable sinusoidal signal. Next,it has manufactured the voltage to frequency switching circuit to transform the sinusoidal signal to the 1-5V voltage signal. Third, using the bleeder circuit divides the 0.66-3.3V voltage to gather . Fourth,it has used a I/O interface to connect the data pins, to convert the gatherd data to the digital-data. Finally, using the I/O interface and RS232 to communicate with the PC.
Key words: SPCE061A; Data Acquisition ; UART
目 录
1 系统总体方案介绍 1
2 模块特性简介 3
2.1 SPCE061A简介 3
2.2 通用异步串行接口UART 4
2.3 模拟数字转换器ADC 7
2.4 ICL8031模块 11
3 系统硬件设计 15
3.1 UART 转换模块电路 15
3.2 ADC输入接口的电路 15
3.3 模拟信号发生器 16
3.4 1V到5V转0.66V到3.3V输入电路 17
4 系统软件设计 18
4.1 软件总体设计 18
4.2 UART中断服务流程 19
4.3 A/D转换流程 19
4.4 unSPIDE 2.0.0D sunplus简介 19
5调试 23
5.1单片机仿真工具 23
5.2 硬件调试 23
5.3 软件调试 24
结束语 25
致 谢 26
参考文献 27
英文资料 28
附 录 29
附录A 系统硬件电路图 33
附录B 源程序 35
附录C 凌阳SPCE061A管脚图 37