1、 基于单片机的多路数据采集系统设计 摘要:数据采集系统是模拟域与数字域之间必不可少的纽带,它的存在具有着非常重要的作用。本 设计采用了单片机 AT89C52 来实现,硬件部分是以单片机为核心,还包括 A/D 模数转换模块,显示模块, 和串行接口部分。该系统下位机负责数据采集并应答上位机机的命令。4 路被测电压通过模数转换器 ADC0809 进行模数转换,实现对采集到的数据进行模拟量到数字量的转换,并将转换后的数据通过串行口 MAX232 传输到上位机,由上位机负责数据的接受、处理和显示,并用 LED 数码显示器来显示所采集的结果。 软件部分应用 VB 编写控制软件, 对数据采集系统、 模数转换
2、系统、 数据显示、 数据通信等程序进行了设计。 本设计经调试完成了数据采集、模数转换、显示及上位机绘图各项功能。 关键词: 数据采集; 89C52 单片机; ADC0809; MAX232; The Design Of Multi-channel Data Acquisition System Based On SCM AbstractAbstract:Data acquisition systems are analog and digital domains essential link between its presence has a very important role. Thi
3、s design uses a single-chip AT89C52 to achieve, the hardware part is a microcontroller as the core, but also including A / D conversion module, display module, and serial interface section. The system is responsible for lower machine data acquisition and PC answering machine commands. 4 measured vol
4、tage through the ADC ADC0809 analog to digital conversion, to achieve the collected data to digital analog conversion, the converted data through the serial port MAX232 transmitted to the host computer, the host computer responsible for data receiving, processing and display, and LED digital display
5、 to display the collected results. Part of the application software written in VB control software, data acquisition systems, analog to digital conversion system, data display, data communications and other procedures were designed. After commissioning the design of the data acquisition, analog to d
6、igital conversion, display and PC graphics functions. Key words: data acquisition; AT89C52; ADC0809; MAX232; 1. 引言 1.1 研究背景及其目的意义研究背景及其目的意义 近年来, 数据采集及其应用受到了人们越来越广泛的关注, 数据采集系统也有了迅速的 发展,它可以广泛的应用于各种领域。 数据采集系统起始于 20 世纪 50 年代, 1956 年美国首先研究了用在军事上的测试系统, 目标是测试中不依靠相关的测试文件, 由非成熟人员进行操作, 并且测试任务是由测试设备 高速自动控制完成的。 由于该种数据采集测试系统具有高速性和一定的灵活性, 可以满足众 多传统方法不能完成的数据采集和测试任务, 因而得到了初步的认可。 大概在 60 年代后期, 国内外就有成套的数据采集设备和系统多属于专用的系统。 8 20 世纪 70 年代后期,随着微型机的发展,诞生了采集器、仪表同计算机溶为一体的数 据采集系统。 由于这种数据采集系统的性能优良, 超过了传统的自动检测仪表和专