1、 直流数字电压表的设计 摘要摘要 本文介绍本文介绍了一种基于单片机的简易数字电压表的设计了一种基于单片机的简易数字电压表的设计。该设计主要由三个该设计主要由三个 模块组成:模块组成: A A/D/D 转换模块, 数据处理模块及显示模块。转换模块, 数据处理模块及显示模块。 A/DA/D 转换主要由芯片转换主要由芯片 ADC0808ADC0808 来完成,它负责把采集到的模拟量转换为相应的数字量在传送到数据处理模块。来完成,它负责把采集到的模拟量转换为相应的数字量在传送到数据处理模块。 数据处理则由芯片数据处理则由芯片 AT89C51AT89C51 来完成,其负责把来完成,其负责把 ADC080
2、8ADC0808 传送来的数字量经过一定传送来的数字量经过一定 的数据处理,产生相应的显示码送到显示模块进行显示;此外的数据处理,产生相应的显示码送到显示模块进行显示;此外, ,它还控制着它还控制着 ADC0808ADC0808 芯片工作。芯片工作。 该系统的数字电压表电路简单,所用的元件较少,成本低,且测量精度和可该系统的数字电压表电路简单,所用的元件较少,成本低,且测量精度和可 靠性较高。靠性较高。此此数字电压数字电压表可以测量表可以测量 0 0- -5V5V 的的 1 1 路模拟直流输入电压值, 并通过一个路模拟直流输入电压值, 并通过一个 四位一体的四位一体的 7 7 段数码管显示出来
3、。段数码管显示出来。 关键词关键词 单片机;单片机;数字电压表数字电压表;A/DA/D 转换;转换;ATAT89C89C5151;ADC0808ADC0808 II Design of Simple Digital Voltmeter Abstract This paper which introduces a kind of simple digital voltmeter is based on single-chip microcontroller design. The circuit of the voltage meter is mainly consisted of three
4、mould pieces: A/D converting mould piece, A/D converting is mainly completed by the ADC0808, it converts the collected analog data into the digital data and transmits the outcome to the manifestation controlling mould piece. Data processing is mainly completed by the AT89C51 chip, it processes the d
5、ata produced by the ADC0808 chip and generates the right manifestation codes, also transmits the codes to the manifestation controlling mould piece. Also, the AT89C51 chip controls the ADC0808 chip to work. The voltmeter features in simple electrical circuit, lower use of elements, low cost, moreove
6、r, its measuring precision and reliability. The voltmeter is capable of measuring voltage inputs from 1 route ranging from 0 to 5 volt, and displaying the measurements though a digital code tube of 7 pieces of LED. Keywords Single-chip microcontroller; Digital voltmeter; A/D converter; AT89C51; ADC0808