1、 1 摘摘 要要 本文介绍一种以89C52单片机为主要控制器件,采用ICL7135高精度、 双积分A/D转换器的一种电压测量电路。 主要包括硬件电路设计和系统程 序设计。硬件电路主要包括数据采集模块,数据处理模块(单片机系统) 和输出显示模块。在数据采集模块中,主要是在对电压信号采样前,用 放大器进行预处理,后采用双积型A/D转换器ICL7135进行转换,将转换 得到的信号送入单片机中。在数据处理模块(单片机系统)中,主要是 通过89C52单片机将A/D转换后得到的信号进行处理。显示模块中,采用 LCD液晶模块1602显示。在软件设计方面,主要包括初始化程序,中断程 序,档位选择程序和显示程序
2、等几个子程序模块。 正文着重给出了软硬件系统的各部分电路,介绍了双积分电路的原理, 89C52的特点,ICL7135的功能和应用,LCD1602的功能和应用。该电路设 计新颖、功能强大、可扩展性强。适用于人们的日常生活及工农业生产 中用于电压的检测。 关键词:单片机,A/D转换器,液晶模块 本科毕业论文本科毕业论文 2 AbstractAbstract The paper introduced one kind new method about digital voltmeter that take the Micro Controller Unit 89C52 as the primary
3、control component and using high-precision ,double integral A/D converter ICL7135 circuit . Mainly included the design of the hardware electric circuit and the design of the software system. Hardware circuit including data acquisition module, data-processing module (MCU System) and output display mo
4、dule. In data acquisition modules, before sample the voltage signal, pretreatment with amplifier, after through double integrating A / D converter ICL7135 conversion, the signal has been converted was take into the Micro Controller Unit 89C52. In the data processing module (MCU System), mainly throu
5、gh the Micro Controller Unit 89C52 process the signal which after A / D converter. In the display module, using LCD module 1602 display the voltages. In software system design, including the initialization procedures, the interrupt procedures, the selection of the range of voltage procedures and the
6、 display procedures, and several other subroutine modules. Key Key wordswords: : Finance director general system Chief financial official state-owned business enterprise i 目录目录 前 言 1 1 设计任务与分析 3 1.1 设计任务简介及背景. 3 1.1.1 单片机简介 3 1.1.2 背景及发展情况 3 1.2 设计任务及要求. 5 1.3 设计总体方案及方案论证. 5 1.4 数据输入模块的方案与分析. 7 1.4.1 芯片选择 . 6 1.4.2 实现方法介绍 . 6 1.4.3 输入模块流程图 10 1.5 A/D 模块的方案与分析 10 1.5.1 芯片的选择 11 1.5.2 实现方法介绍 11 1.5.3 A/D 模块流程图. 13 1.6 数据处理及控制模块 13 1.6.1 芯片选择 14 1.6.2 实现方法介绍 14 1.6.3 数据处理及控制模块流程图 14 1.7 显示模块