摘 要 电子测量应用广泛,几乎涵盖了所有的生产和工程领域,电压测量作为其中常用的测量参数之一,其可靠性对整个生产、工作过程有着重大意义。使用数字电压表测量电压,具有读数方便、测量速度快、精度高等优点。而以单片机为控制核心设计的数字电压表得到了越来越多的应用。 课题以设计一个量程为0~5V,测量精度在0.2V以内的数字电压表为目标。 在分析数字电压表工作原理的基础上,结合功能需求分析,设计了以 51 单片机和 8 位逐次比较型 AD 为核心的数字电压表整体结构,在元器件选型的基础上,分别完成了系统硬件和软件的设计,并利用 51 单片机开发板实现了一个能够实时测量 0~5V 直流电压的数字电压表,同时在检测电压超过量程时提供报警功能。 测试结果表明:本文所设计的数字电压表能够测量 0~5V 的直流电压,且测量误差在0.2V以内,性能可靠,满足功能需求,具有应用简单、成本低的优点。 58193
毕业论文关键词:单片机;数字电压表;A/D转换器;显示
Abstract Electronic measurement is widely used in production and engineering fields.As one of the commonly used measurement parameters,the reliability of the voltage measurement have great significance on the whole process of production and work.There are accurate readings, measuring speed by use digital voltmeter to measure the voltage.And with the single chip processor as the core design of digital voltmeter is applied more and more. The subject is to design a digital voltmeter which has a range of 0 ~ 5 V, and measurement accuracy within 0.2 V . Combined with the functional requirements analysis, design the overall structure of the digital voltmeter on the basis of analyzing the principle.Related components selection, respectively, completed the system hardware and software design, and use of 51 MCU development board to achieve a real time measurement of 0 ~ 5 v DC voltage of the digital voltmeter, At the same time in the test voltage exceeds range provides alarm functions. The test results show that the digital voltmeter designed in this paper can measure the DC voltage of 0~5V, and the measurement error is less than 0.2V, the performance is reliable, it can meet the functional requirements, and has the advantages of simple application and low cost.
Key words: single chip microcomputer; Digital Voltmeter; A/D converter; display
目录
第一章绪论.1
1.1研究背景1
1.3研究目的和意义3
1.4论文组织架构4
第二章基于单片机数字电压表的总体设计5
2.1数字电压表设计需求5
2.2数字电压表原理5
2.3总体结构设计6
2.4本章小结7
第三章基于单片机数字电压表的硬件设计9
3.1数据处理模块设计9
3.1.1主控芯片选型9
3.1.2时钟电路10
3.1.3复位电路11
3.2模数转换模块设计11
3.2.1A/D转换芯片选型.11
3.2.2ADC0832与单片机的接口电路.13
3.3输入模块设计13
3.4显示模块设计14
3.4.1数码管显示原理14
3.4.2数码管与单片机接口电路14
3.5报警灯模块15
3.6电源模块设计15
3.7本章小结17
第四章基于单片机数字电压表的软件设计18
4.1主程序18
4.2A/D转换子程序.18
4.3显示子程序19
4.4protus仿真测试19
4.5本章小结20
第五章系统实现与测试21
5.1系统实现21
5.2系统测试22
5.3结果及误差分析27
结论.29
致谢.30
参考文献31
附录A基于单片机的数字电压表设计源程序33
51单片机的数字电压表设计+源程序+电路图:http://www.youerw.com/guanli/lunwen_63183.html