论文部分内容阅读
数据采集和控制系统是对生产过程或科学实验中各种物理量进行实时采集、测试和反馈控制的闭环系统。它在工业控制、军事电子设备、医学监护等许多领域发挥着重要作用。本设计用CPLD/FPGA芯片、ADC0809芯片、键盘及七段显示器共同构成数据采集控制系统,用VHDL语言进行各模块程序设计并在开发系统QUARTUSⅡ下进行编译仿真。待编译仿真正确通过后将程序下载于CPLD/FP-GA芯片中,以实现对A/D转换、数据运算、键盘输入以及数据显示的控制。设计概括如下:1)设计ADC0809模数转换的控制程序,将系统按一定速率采集到的输入电压值经ADC0809转换为8位二进制数字量。2)按照ADC0809模拟电压与输出电压的对应关系,利用VHDL语言设计12位BCD码加法程序,实现8位数字量转换成12位BCD码。3)用VHDL语言设计独立式键盘输入程序,将键盘输入的数据转换成相应的4位BCD码并将3次输入转换成的BCD码放在一个12位的寄存器中。基于EDA技术的数据采集控制系统在实际应用中具备更简洁更灵活的优点。
Data acquisition and control system is a closed-loop system for real-time acquisition, testing and feedback control of various physical quantities in the production process or scientific experiments. It plays an important role in many areas such as industrial control, military electronic equipment and medical monitoring. The design of the CPLD / FPGA chip, ADC0809 chip, keyboard and seven sections of the display together constitute a data acquisition and control system, VHDL language programming for each module and in the development system to compile and simulate under QUARTUS Ⅱ. To be compiled correctly downloaded after the program downloaded in the CPLD / FP-GA chip, in order to achieve the A / D conversion, data computing, keyboard input and data display control. Design summarized as follows: 1) Design ADC0809 analog-digital conversion control program, the system according to a certain rate of input voltage values ?? collected by the ADC0809 converted to 8-bit binary digital. 2) According to the ADC0809 analog voltage and the corresponding relationship between the output voltage, the use of VHDL language design 12 BCD code addition program to achieve 8-bit digital conversion to 12 BCD code. 3) With VHDL language design independent keyboard input program, the keyboard input data into the corresponding 4-bit BCD code and the BCD code converted into 3 input on a 12-bit register. The data acquisition and control system based on EDA technology has the advantages of simpler and more flexible in practical application.