100% found this document useful (1 vote)
32 views

ADC 0804 interfacing with 8051

ES 5th sem VTU

Uploaded by

Han Jisung
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
32 views

ADC 0804 interfacing with 8051

ES 5th sem VTU

Uploaded by

Han Jisung
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

4.

4Interfacing Analog-to-Digital Converter (ADC)to 8051


ADCs (analog-to-digital converters) are among the most
data acquisition. A physical quantity, like widely used devices for
temperature, pressure, humidity, and velocity.
etc.. isconverted to electrical (voltage, current)
or sensorWe need an signals using a device called a transducer.
analog-to-digital converter to translate the analog signals to digital
numbers, so microcontroller can read them.
Types of ADC.
1. Parallel ADC(ADC 0804/0808/0809)
2. Serial ADC(MAXI112 ADC)
IApplications
Intertacngand 149

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

Fig 4.12: Pin out of ADCOS04

Pin Description of ADC804:


output pins. These are tri-state butfered. The converted data
P DO-D7: The digital data
only when CS =0 and RD is forced low. To calculate the output
is accessed Dout-Vin/stepsize
voltage, use the following formula:
decimal),
Dout = digitaldata output (in
Vin = analog voltage, and
8051
150 Innterfacing and A
" Step
º Analog
size
ground
(resolution)
and
is
digital
the smallest change
ground: Analog ground connected to
Apthe plgroundications of
analog Vin and digital ground is connected to thethe ground of theV
the
from transient voltages Vcc caused
isolate the analog Vin signal
the
by digital
pin .To
>
output DO - D7.
of the
Vin(+) & Vin(-):
This
Differential
contributes
analog
connected to ground and Vin (+) is used
to the accuracy
as the analog
of the digital
inputs where Vin = Vin (+) Vin data
analog input to be
(-). outVi put.
Vin ()is
switching
> RD: If "output enable" a high-to-low
RD pulse is used to get the 8-bitconverted. data
out of ADC804.
When the conversion isis
converted
INTR: It is "end of conversion
converted data is ready to be picked un finished,
it goes low
low to
signal the CPUthat the
WR makes a low-to-high transition,
> WR: It is "start conversion" When
Vin tO an 8- bit digital number
starts converting the analog input value ofADC804. ADC804
CS: Itis an active low input used to activate

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.

Note: CS is set to low for both RD and WR pulses.


Read it

Figure 4.13: Read and Write timing for ADC0804

You might also like