0% found this document useful (0 votes)
7 views

ADC Interfacing

wdqefgrehopt

Uploaded by

Arth Agrawal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

ADC Interfacing

wdqefgrehopt

Uploaded by

Arth Agrawal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

ADC Interfacing with

Microcontroller 8051
8051 Pin Diagram

(Enable External Access)


(Address Latch Enable)
(Program Store Enable)
8051
Architecture
Special Function Registers [SFR]
ADC (Analog-to-Digital Converter)
ADC (Analog-to-Digital Converter)
Pin description of ADC0804
Pin description of ADC0804
ADC0804 interfacing with 8051
ADC0804 interfacing with 8051
Problem: Examine the ADC804 connection to the 8051 in Figure 2. Write a program to
monitor the INTR pin and bring an analog input into register A. Do this continuously
MOV P1, #0FFH ;make P1 = input
SETB P2.7 ;make P2.7 = input to monitor INTR
SETB P2.5 ; RD = 1
BACK: CLR P2.6 ;WR = 0
SETB P2.6 ;WR = 1 L-to-H to start conversion
HERE: JB P2.7, HERE ;wait for end of conversion
CLR P2.5 ;conversion finished, enable RD
MOV A, P1 ;read the data
SETB P2.5 ;make RD = 1for next round
SJMPBACK
ADC0804 interfacing with 8051
ADC808
❑ ADC808 has 8 Analog Inputs.
✓ It allows us to monitor up to 8 different transducers using only a single chip.
✓ The chip has 8-bit data output just like the ADC804.
✓ The 8 analog input channels are multiplexed and selected according to table
below using three address pins, A, B, and C.
ADC0808 interfacing with 8051
Any Questions?

You might also like