基于单片机的数字电压表设计设计总说明本文详细介绍了一种基于单片机的数字电压表设计方案。该设计方案主要由四个模块组成:模拟输入模块,A/D 转换模块,数据处理模块及显示模块。模拟输入模块会根据待测电压的大小自动选择不同的转换通道,A/D 转换主要由芯片 ADC0809 来完成,它负责把采集到的模拟量转换为相应的数字量,然后传送到单片机的数据处理模块。数据处理则由芯片 AT89C51 来完成,其负责把ADC0809 传送来的数字量经过一定的数据处理,产生相应的显示码送到显示模块进行显示,此外,它还控制着 ADC0809 芯片工作。采纳该方案设计的数字电压表电路简单,所用的元件较少,成本低,且测量精度和可靠性较高。此数字电压表可以测量 0-20V 的 1 路模拟直流输入电压值,并通过一个四位一体的七段数码管显示出来,具有量程自动转换功能。关键字:单片机;A/D 转换;数据处理;量程自动转换Design of Digital Voltage Meterbased on Single-chip MicrocomputerDesign DescriptionThis 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 four mould pieces:Anolog input mould piece, Anolog input is mainly convert automatically select different channels according to the size of the test voltage.A/D converting mould piece, A/D converting is mainly completed by the ADC0809, 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 data produced by the ADC0809 chip and generates the right manifestation codes, also transmits the codes to the manifestation controlling mould piece. Also, the AT89C51 chip controls the ADC0809 chip to work. The voltmeter features in simple electrical circuit, lower use of elements, low cost, moreover, its measuring precision and reliability. The voltmeter is capable of measuring voltage inputs...