0% found this document useful (0 votes)
179 views10 pages

8051 Interfacing To ADC

The document discusses interfacing an 8051 microcontroller to an ADC0804 analog-to-digital converter chip. It describes the pin functions of the ADC0804 chip, including chip select, read, write, interrupt, analog and digital inputs and outputs. It explains using an external or internal clock for the ADC conversion and provides timing diagrams for starting a conversion with write and reading the output data with read. It also gives an example circuit that divides the 8051 crystal clock down using flip-flops to provide a suitable clock frequency for the ADC0804.

Uploaded by

anikhila67
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
Download as ppt, pdf, or txt
0% found this document useful (0 votes)
179 views10 pages

8051 Interfacing To ADC

The document discusses interfacing an 8051 microcontroller to an ADC0804 analog-to-digital converter chip. It describes the pin functions of the ADC0804 chip, including chip select, read, write, interrupt, analog and digital inputs and outputs. It explains using an external or internal clock for the ADC conversion and provides timing diagrams for starting a conversion with write and reading the output data with read. It also gives an example circuit that divides the 8051 crystal clock down using flip-flops to provide a suitable clock frequency for the ADC0804.

Uploaded by

anikhila67
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1/ 10

8051 Interfacing to ADC

Analog-to-digital converter (ADC) is the most widely


used data acquisition device
In physical world, most quantities are in analog
(continuous) form, transducers (or sensors) are
transforming them into electrical (voltage, current)
signals; then ADCs are used to sample and quantize
them into binary code
ADC804 Chip
Pin Description
 CS (chip select): an active low input to activate the ADC804
 RD (read): active low to get the converted data out of the ADC; when CS
= 0, a high-to-low pulse applied to RD, D0-D7 output the 8-bit digital data
 WR (write, or start conversion): active low to inform the ADC to start the
conversion; if CS = 0 when WR makes a low-to-high transition, the ADC
starts converting the Vin analog input to an 8-bit digital number; the
conversion time varies depending on the CLK IN and CLK R; when
conversion complete, the INTR pin is forced to low
 CLK IN is for an external clock source; ADC804 has an internal clock
generator, to used it by connecting a capacitor and a resistor with the CLK
R and CLK IN, the clock frequency will be f = 1/1.1RC ; typical values are
R = 10K, C = 150p, to get f = 606 kHz, the conversion time is 110us
 INTR (interrupt, or end of conversion): active low output, goes low
when conversion is complete; after INTR goes low, we make CS =
0 and send a high-to-low pulse to the RD pin to get the data out of
the ADC
 Vin(+) and Vin(-): differential analog inputs where Vin = Vin(+) –
Vin(-); often the Vin(-) is connected to ground
 Vcc: +5V power supply; also used as a reference voltage when
Vref/2 is open
 Vref/2: reference voltage; table 12-5 lists its range
 D0-D7: the digital data (code) output pins; tri-state buffered,
accessed only when CS = 0 and RD is low; Dout = Vin / (Vref/256)
 Analog GND and Digital GND are used to isolate the analog and
digital power to improve the output accuracy
Read and Write timing for ADC804
 make CS = 0 and send a low-to-high pulse to WR to start the
conversion
 keep monitoring the INTR, if INTR is low, the conversion is
finished
 after INTR becomes low, make CS = 0 and send a high-to-low
pulse to RD to get the data out of the ADC804
Interfacing ADC0804 with 8051
the clock is coming from the crystal of 8051, however, it is too high for
ADC, so two D flip-flops are used to divide it down by 4

You might also like