Documente Academic
Documente Profesional
Documente Cultură
Hubei Institute of Technology, Xianning, China; 2 Jiaozuo Teachers College, Jiaozuo, China
AbstractThe simple digital voltmeter is made of the ATMEL 8bit MCU(Main Computational Unit), AT89S52 and national
semiconductors ADC(Analog-to-Digital Converter)0804 ,
including a certain number of components. The system uses the
AT89S52 MCU as the main controller, which processes the
acquired analog voltage and realize LED(light-emitting diode)
digital display by dynamic scanning. The voltmeter can measure
the DC(direct current) voltage in the rage of 0 ~ 5V and display
the measurement results by the four LED digital tube. Because of
fewer components, low cost , automated adjustment, high
accuracy measurement, stable performance, the voltmeter has a
very good application prospect.
Key words- A/D converter; ADC0804voltmeter; microcontroller;
Single-chip Digital
I.
INTRODUCTION
AT89S52
The reset
circuit
P1
The A/D
conversion circuit
Measure
voltage input
P3
The Display
system
P2
The clock
circuit
P0
Figure 1.
III.
SCHEME DESIGN
A. Design Goals
1) Based on AT89S52 single chip microcomputer as the
core device, consisting of a simple DC digital voltmeter.
2) The analog input, can measure 0 ~ 5V DC voltage
3) The voltage display with one of the 4 LED digital tube,
can display 3 decimal places.
4) Use fewer components as far as possible.
B. AD Chip Select
The 8 bit A/D converter mostly commonly used is ADC
series chip manufactured by the United States Chip
Manufacturers, among which ADC0804 and ADC0808/0809 is
the mostly commonly used, and they are successive type 8 bit
A/D converter. ADC0804 is a 8 bit successive CMOS type
A/D converter, the design requires only the measurement the
input voltage, and the ADC0804 is 8 bits of A/D converter, 0 ~
255 is the range of values, the input range analog voltage is 0
~5V, every digital change corresponds to the value is
5V/255=0.0196 V, which can meet the requirements of the
system, so we select ADC0804 as the A/D converter.
234
Start
Initialization
Figure 2.
start
start convert
the end of A/D
PROGRAM DESIGN
235
V.
TABLE BY SIMPLE DIGITAL VOLTAGE METER AND THE "STANDARD" DIGITAL VOLTAGE METER
Absolute error /V
0.00
0.01
0.001
0.011
0.001
0.011
Standard voltage /v
3.00
3.50
4.00
4.50
5.00
Absolute error /V
0.002
0.012
0.002
0.012
0.002
carry, the most important is the high precision and can control,
high practical value and conform to the trend of technology.
REFERENCE
[1]
[2]
[3]
SUMMARY
[4]
236