1、 1 基于单片机的简易数字电压表的设计 目录 内容摘要 2 第 1 章 数字电压表简介 . 3 1.1 数字电压表的介绍 . 3 1.2 数字电压表的基本结构及工作原理. 3 1.3 数字电压表的发展趋势 3 第 2 章 单片机的概述 . 4 2.1 单片机简介 4 2.2 单片机的特点 . 5 2.3 单片机的应用 . 5 第 3 章 MCS-51 单片机的结构 . 6 3.1 MCS-51 单片机的内部结构 6 3.1.1 内部结构概述 6 3.1.2 CPU 结构 6 3.1.3 存储器和特殊功能寄存器 7 3.2 P0-P3 口结构. 7 3.3 时钟电路和复位电路. . 8 3.3.
2、1 时钟电路 8 3.3.2 单片机的复位状态. . 8 第 4 章 硬件电路的设计及原理图 . 9 4.1A/D 接口技术 . 9 4.2 LED 数码管显示器 11 4.2.1LED 数码显示器结构 . 11 4.2.2 LED 数码管的原理与接口 . 12 4.3 AT89S52 芯片的简介 . 12 4.4 硬件系统的整体框图 . 14 4.5 总原理图 15 第 5 章 软件编程 16 后记18 参考文献 . 18 附录 19 2 内容摘要 本报告介绍了基于 AT89S52 单片机为核心的、以 AD0809 数模转换芯片采样、 以 1602 液晶屏显示的具有电压测量功能的具有一定精度
3、的数字电压表。在实现基 础功能要求之上扩展了串口通讯、时钟功能、高压报警、短路测试、电阻测量、 交流电压峰峰值和周期测试等功能,使系统达到了良好的设计效果和要求。 关键词:AT89S52 单片机,模数转换,液晶显示,扩展功能 ABSTRACT:The report describes the AT89S52 based on the microcontroller as the core, AD0809 digital-to-analog converter chip sampling, to 1602 LCD display with voltage measurement function
4、 with a certain precision of digital voltage meter. In achieving functional requirements based upon the expansion of serial communications, high-pressure alarm, short circuit, electrical resistivity measurement, AC voltage and the peak of cycle testing and other functions, allowing the system to achieve good results and the design requirements. Keywords : AT89S52 SCM,analog-to-digital,conversion functions LCD,expansion 3 设计目的 自动化专业的专业实践课程。