1、目 录 摘 要 I Abstract . II 第一章 绪 论 . 1 1.1 课题研究的背景及意义. 1 1.2 国内外研究现状和发展. 1 1.3 本文的研究内容 . 2 第二章 系统分析与设计方案 3 2.1 系统分析 3 2.1.1 功能及指标 3 2.2 系统总体方案设计 3 2.2.1 方案设计的基本思路 3 2.2.2 数字电压表的两种设计方案 . 3 2.2.3 A/D 转换模块的选择. 4 2.2.4 接口模块的选择. 4 2.2.5 微控制器的选择. 5 2.3 系统硬件分析 . 5 2.3.1 AT89S52 单片机简介 6 2.3.2 LCD1602 显示器简介 6 2
2、.3.3 ADC0804 转换芯片简介 . 7 第三章 系统硬件电路设计 8 3.1 系统组成 8 3.2 电源接口电路 . 8 3.3 AT89S52 单片机最小系统电路 . 8 3.3.2 复位电路 . 9 3.3.3 晶振电路 . 10 3.4 LCD1602 显示电路 10 3.6 A/D 转换电路 11 3.7 量程转换电路11 第四章 系统软件设计 12 4.1 系统主程序流程图 12 4.2 LCD1602 液晶流程图 . 12 4.3 ADC0804 流程图 13 第五章 性能测试与分析 . 14 5.1 各模块独立测试 . 14 5.2 系统联合调试. 14 5.3 系统运行
3、评估. 15 第六章 总 结 . 16 参考文献(References) . 17 致 谢 . 18 附录 1: 系统原理图及实物图 19 附录 2: 系统主程序 20 I 基于基于单片机的数字电压表单片机的数字电压表 专业: 学号: 摘摘 要要:在电路设计中我们时常会用到电压表,过去大部分电压表还是模拟的,虽然精度较 高但模拟电压表采用用指针式,里面是磁电或电磁式结构,所以响应较慢。为适应许多高速 信号领域目前已广泛使用数字电压表。 数字电压表的诞生打破了传统电子测量仪器的模式和 格局,它显示清晰直观、读数准确,采用了先进的数显技术,大大地减少了因人为因素所造 成的测量误差事件,数字电压表是
4、把连续的模拟量(直流输入电压)转换成不连续、离散的 数字形式,并加以显示的仪表。数字电压表把电子技术、计算技术、自动化技术的成果与精 密电测量技术密切的结合在一起,成为仪器、仪表领域中独立而完整的一个分支,数字电压 表标志着电子仪器领域的一场革命,也开创了现代电子测量技术的先河。 本设计是基于 Atmel51 单片机开发平台和自动控制原理的基础上实现的一种数字电压 表系统。该系统采用 Atmel89S52 单片机作为控制核心,以 ADC0804 为数据采样系统,实 现被测电压的数据采样; 使用稳压二极管做过压保护, 并通过模拟开关实现了输入量程的自 动转换;使用字符液晶显示被测电压。 关键词:
5、关键词: 数字电压表、A T89S52、电压检测、模数转换 II Design of Digital Voltage Meter based on Single-chip Microcomputer Abstract: In circuit design, we often use voltage meter, Over the past most of the voltage meter or a simulation,Although high precision analog voltage used in the table, but with the pointer, which i
6、s a magnetic or electromagnetic structure,so the slow responseTo meet the many areas of high-speed signal has been widely used digital voltmeter.The birth of digital voltage meter break the traditional model of electronic measuring instruments and patterns. It shows the clear and intuitive, accurate readings, using an advanced digital display technology, greatly reduced due to human factors of the measurement error caused by the incident. Digital voltage meter is a row of analog (DC inp