ADC 08x
ADC 08x
Vcc
Step Size n
2 1
Vcc is the reference voltage of ADC with n-bit resolution
Table 10.3 : Resolution versus Step Size for ADC (if Vcc = 5V)
n-bit Number of steps Step Size (mV)
8 2^8 = 256 5/255 = 19.61
10 2^10 = 1024 5/1023 = 4.89
12 2^12 = 4096 5/4095 = 1.22
16 2^16 = 65536 5/65535 = 0.076
ADC0804 Chip (Free Running Mode)
+5V
20
10k 6 Vin(+) 18
POT 7 Vin()
D0 Port of
17
8 A GND
D1 8-bit uC
D2 16
9 15
Vref/2
D3 To
14
19 D4 LEDs
CLK R 13
D5
10k 12
4 D6
CLK in 11
150 pF ADC08 D7
1 04
CS
2 WR 3
RD
10 5 Normally
D GND INTR
open
START
Figure 10.1
ADC0804 Chip (Free Running Mode)
Continuous Conversions
(Extracted from Page 11
Of Spec sheet of ADC0804)
CS 1 20 VCC
RD 2 19 CLKR
WR 3 18 D0
CLK 4 17 D1
INTR 5 16 D2
VI+ 6 15 D3
VI- 7 14 D4
AGND 8 13 D5
VREF/2 9 12 D6
DGND 10 11 D7
Pin diagram
ADC0804
(INTR tied to WR with. CS = 0 V)
ADC0804 Chip
CS
Active low input used to activate the ADC0804 chip.
RD (data enable)
Active low input used to get converted data out of the ADC0804
chip. When CS = 0, if a high-to-low pulse is applied to the RD pin,
the 8-bit digital output shows up at the D0-D7 data pins.
WR (start conversion)
Active low input used to inform the ADC0804 to start the
conversion process. If CS = 0 when WR makes a low-to-high
transition, the ADC0804 starts converting the analog input value of
Vin to an 8-bit digital number. When the data conversion is
complete, the INTR pin is forced low by the ADC0804.
ADC0804 Chip
CLK IN and CLK R
Connect to external capacitor and resistor for self-clocking, f =
1/(1.1RC). The clock affect the conversion time and this time cannot
be faster than 110s.
Vref/2
Input voltage pin used for the reference voltage. If this pin is open, the
analog input voltage for the the ADC is ranged from 0 to 5 volts.
Vin
Dout
Step size
WR
D0 – D7 Data out
INTR
Start conversion End conversion
RD
Figure 10.2
Read it
Note: CS is set to low for both RD and WR pulses