ADC 0804 interfacing with 8051
ADC 0804 interfacing with 8051
441ADCS04 chip:
4C4 IC analog-to-digital converter. It works with +5 volts and has aresolution
Cisan
Conversiontime another major factor in judging an ADC.
Conversion time is
dehinedasthe time it takes the ADC to convert the analog input to a digital (binary)
number.In ADC8O4 conversion time varies depending on the clocking signals applied to
CLKRandCLK IN pins, but it cannot be faster than l10us.
CLKIN
R: CLK IN is an input pin connected to an external clock
> To source.
usethe internal clock generator (also called self-clocking), CLK IN and CLK R
pins are connected to a capacitor and aresistor and the clock frequency is determined
bvf-1/(1.1RC)
Typical values are R= 10K ohms and C =150pF. We get f = 606 kHz and the
conversion time is 110us.
Vref/2 :This is an input voltage used for the reference voltage. If this pin is open (not
onnected), the analog input voltage for the ADC 804 is in the rangeof) - 5 volts.
However, there are many applications where the analog input voltage to Vin (+)
needs to be other than the 0to +5 range. Vref /2 is used to implement analog input
voltage other than 0to5volt.
ADCO804
+5V
Cs 1 20 VCC 20
19 CIkR Vcc
Vin(+) 18
ADC POT
43 DO 8 Vin(-) DO 7
WR3 A GND D1 16
D1
CKn 4
I17 9 Vrefr2 D2 15
804 46 D2 19 D314
CLK R D4 13
TR 5 D5 12
15 D3 10k
Vink+j6
14 D4
CLK in
po11
D7
Vn|7 CS 3
43 D5 10RD WRK 5
INTRo normally
AGHO D GND
12 D6 open
START
11 D7
The following steps must be followed for data conversion by the ADC804 chin:
1. CHIP SELECT:select CS=0 to enable the chip
2.START OF CONVERSION :send a L-to-H pulse to pin WR.
3.MONITOR: wait for EOCend of conversion.
4.DATA OUT: send a H-to-L pulse to pin RD to get the data out.
Figure 4.13 shows the read and write timing for ADC&04. Figure 4.14 shows the self.
clocking with the RC component for frequency and the external frequency conected to
XTAL2 of 8051.
Cs.
WR
DO - D7 Data out
INTR
Start comversion End conversion
RD.