SlideShare a Scribd company logo
Dr. Vithalrao Vikhe Patil College of Engineering,
Ahmednagar
Department of Information Technology
Lecture on
Unit No 6
ADC Interfacing with 8051 Microcontroller
Processor Architecture & Interfacing (S.E.I.T.)
Presentation By
Prof. Ms. M. S. Gunjal
Department of Information Technology
Objectives
 What is ADC
 Pin diagram of ADC0804
 Pin description of ADC0804
 Interfacing Diagram of ADC with 8051
 Working of ADC
 Timing Diagram
 ADC0808/0809
April 23, 2020 2
 ADC Stands for “Analog to Digital Conversion"
 ADC converts the given analog value to a
digital value .
 Sensors and transducers used in industry are
analog in nature.
 It is necessary to convert the analog output
from the sensors to digital so that the
corresponding signal can be processed by the
controller.
ADC?
April 23, 2020 3
Continue…
 ADCs are used everywhere when we have to
process, store or transmit an analog signal
in digital form.
 ADCs are used in TV tuner cards.
 There are lot of digital ICs available to
convert analog to digital.
 In Microcontroller interfacing the frequently
used ICs are 0804 and 0808
 ADC chips are either parallel or serial.
April 23, 2020 4
ADC0804
 The ADC0804 IC is 20 Pin 8-bit parallel ADC.
 It works with +5volts and has a resolution of
8 bits.
 The ADC0804 is a commonly used ADC
module, for projects where an external ADC
is required.
 In this ADC the conversion time varies
depending on the clocking signals applied to
CLK IN pin.
 But the conversion time cannot be faster
than 110 microseconds.
April 23, 2020 5
Features of ADC0804 Family:
 8-bit resolution ADC
 Conversion time 110 μs
 Access time 135 ns.
 It has an on-chip clock generator.
 It does not require any zero adjustment.
 It operates on single 5V power supply.
 Output meet TTL voltage level specifications.
April 23, 2020 6
ADC0804 chip Pin diagram
April 23, 2020 7
Pin Diagram Description
Pin Symbol Descriptions
1 CS# Chip select is an active low input used to
activate the ADC0804 chip.
2 RD This is active low input signal. RD (Read)
Make this pin high(1) and after some time
low(0). This will bring data from internal
registers to the output pins after conversion
3 WR WR (Write) Make this pin low(0) to high(1) to
start conversion of data(analog to digital)
4 CLK IN Clock IN (CLK IN) Connect external clock to
this pin.
5 INTR# Interrupt (INTR) This pin automatically goes
low when conversion is done by ADC0804 or
when digital equivalent of analog input is
ready.
6 Vin(+) Vin (+) connect input analog sensor pin/input
voltage to this pin.
7 Vin(-) Vin (-) ground this pin.
April 23, 2020 8
Continue…
Pin Symbol Description
8 AGND AnalogGround (AGND) ground this pin.
9 Vref/2 Vref/2 set the reference voltage for analog
input(Very important pin discussed further)
10 DGND DigitalGround (DGND) ground this pin
11 to
18
D0 t0 D7 PIN 11 TO 18 ARE DATA PINS OUTPUT DATA
PINS
19 CLK R Clock R (CLK R) Used with clock IN pin when
internal clock source is used
20 Vcc +5 volts
April 23, 2020 9
ADC0804 reference pin (Vref/2)
 Vref/2 is voltage reference pin of ADC0804.
Reference means that after this much
amount of voltage change at input, output
must increase by 1 or the set limit.
 Vref/2 (pin-9) left open means input
voltage span is 0-5 volts and step size is
5/256=19.53 mV.
 Voltage span means that the ADC can
measure in the range for example for the
above case from 0-5 volts.
 step size it mean’s after the rise of 19.53 mv
at input the output increases by one unit. If
now output is 2 then after 19.53 mv
increase in input voltage output will be 3.
April 23, 2020 10
Different Vref/2 voltages and
corresponding analogue input voltage
spans.
Vref/2 (pin 9) Volts Input Voltage (volt) Step size(mv)
Left open 0-5 5/256=19.53
2 0-4 4/256=15.62
1.5 0-3 3/256=11.71
1.28 0-2.56 2.56/256=10
1.0 0-2 2/256=7.812
0.5 0-1 1/256=3.906
April 23, 2020 11
Interfacing Diagram
April 23, 2020 12
Working of ADC…
 For every interfacing initialization is needed.
 For ADC the initial values are
 INTR=1; // interrupt for completion of ADC
process
 rd=1; // read from 0804
 wr=0; // start conversion write..
 Next step is to start the process of
converting analog voltage to digital data
 By changing the state of the write pin
transition from 0 to 1 will start the
conversion.
 End of conversion will be acknowledged by
a change in the INTR state.
April 23, 2020 13
Steps for converting the analogue
input and reading the output from
ADC0804.
 Make CS=0 and send a low to high pulse to
WR pin to start the conversion.
 Now keep checking the INTR pin.
 If conversion is not finished (INTR=1) , poll
until it is finished.
 If conversion is finished (INTR=0), go to the
next step.
 Make CS=0 and send a high to low pulse to
RD pin to read the data from the ADC.
April 23, 2020 14
Timing Diagram
April 23, 2020 15
ADC0808/0809
 ADC 0809 is an 8 channel, 8 bit ADC.
 It can convert an analog voltage input into
an 8 bit digital data output.
 To select an input out of 8 options, there are
three select lines (C, B and A).
 We put a channel number on these lines
(0…7) and latch it using ALE.
 SC signal is given to indicate start of
conversion.
 Reference voltage for conversion is provided
using +Vref and –Vref. The clock supply
needed for conversion is given through CLK
(typically ~ 1MHz).
April 23, 2020 16
ADC0808/0809
 The end of conversion is indicated by the
ADC using EOC signal.
 There is no Vref/2 in the ADC0808/0809
chip.
April 23, 2020 17
ADC0808/0809
April 23, 2020 18
Analog Channel Selection
Selected Analog
Channel
C B A
IN0 0 0 0
IN1 0 0 1
IN2 0 1 0
IN3 0 1 1
IN4 1 0 0
IN5 1 0 1
IN6 1 1 0
IN7 1 1 1
April 23, 2020 19
Vref Relation to Vin
Vref (V) Vin (V) Step Size (mv)
Not Connected 0 to 5 5/256=19.53
4.0 0 to 4 4/256=15.62
3.0 0 to 3 3/256=11.71
2.56 0 to 2.56 2.56/256=10
2.0 0 to 2 2/256=7.81
1.0 0 to 1 1/256=3.90
April 23, 2020 20
Steps to program the
ADC0808/0809
 Select an analog channel by providing bits to
A,B and C according to analog channel
selection.
 Activate the ALE(Address Latch Enable)pin
by providing low to high pulse to latch in the
address.
 Activate SC(start conversion) by L to H pulse
to initiate conversion.
 Monitor EOC(end of conversion) to see
whether conversion is finished.
 H to L output indicate data is converted and
is ready to picked up.
April 23, 2020 21
Continue…
 If we do not use EOC,we can read the
converted data after a time delay.
 Activate OE(output enable) to read data out
of ADC chip.
 An H to L pulse to the OE pin will bring
digital data out of the chip.
 OE pin is same as RD pin in other ADC chips.
April 23, 2020 22
Read and Write Timing for
ADC0809
April 23, 2020 23
Interfacing Diagram
April 23, 2020 24
Thank You !!!
April 23, 2020 25

More Related Content

What's hot

Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
Sudhanshu Janwadkar
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
MemonaMemon1
 
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER   INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
SIRILsam
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
THANDAIAH PRABU
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
Pantech ProLabs India Pvt Ltd
 
Sensor interfacing in 8051
Sensor interfacing in 8051Sensor interfacing in 8051
Sensor interfacing in 8051
Irfan Ahmad
 
(D/A) and (A/D)conversion
(D/A) and (A/D)conversion(D/A) and (A/D)conversion
(D/A) and (A/D)conversion
Praveen Kumar
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
SARITHA REDDY
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
Rahul Kumar
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
Ankur Mahajan
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
AJAL A J
 
Adc and dac
Adc and dacAdc and dac
Adc and dac
nitugatkal
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
abhikalmegh
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
Senthil Kumar
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
UshaRani289
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil KawareProf. Swapnil V. Kaware
 
Branch instructions in 8051 micrcocontroller
Branch instructions in 8051 micrcocontrollerBranch instructions in 8051 micrcocontroller
Branch instructions in 8051 micrcocontroller
UshaRani289
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
Siddhesh Palkar
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
AKHIL MADANKAR
 

What's hot (20)

Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER   INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
Sensor interfacing in 8051
Sensor interfacing in 8051Sensor interfacing in 8051
Sensor interfacing in 8051
 
(D/A) and (A/D)conversion
(D/A) and (A/D)conversion(D/A) and (A/D)conversion
(D/A) and (A/D)conversion
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
Adc and dac
Adc and dacAdc and dac
Adc and dac
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
Branch instructions in 8051 micrcocontroller
Branch instructions in 8051 micrcocontrollerBranch instructions in 8051 micrcocontroller
Branch instructions in 8051 micrcocontroller
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
 

Similar to Adc interfacing

Analog to Digital Converters
Analog to Digital ConvertersAnalog to Digital Converters
Analog to Digital Converters
Amitabh Shukla
 
adcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptxadcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptx
shivraj3252
 
Vhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptx
Vhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptxVhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptx
Vhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptx
asolis5
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
VikasMahor3
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar Das
B.k. Das
 
Mc module5 lcd_interface_ppt_msj
Mc module5 lcd_interface_ppt_msjMc module5 lcd_interface_ppt_msj
Mc module5 lcd_interface_ppt_msj
mangala jolad
 
Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)
Daman Singh
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
satyamsinha37
 
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLERDIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
Chirag Lakhani
 
analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
DrVikasMahor
 
Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]
Guhan k
 
adc dac converter
adc dac converteradc dac converter
adc dac converter
Gaurav Rai
 
Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148
Omkar Rane
 
ADC and DAC Best Ever Pers
ADC and DAC Best Ever PersADC and DAC Best Ever Pers
ADC and DAC Best Ever Pers
Eng Ahmed Salad Osman
 
ANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTORANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTOR
Anil Yadav
 
05 analog control_sp15
05 analog control_sp1505 analog control_sp15
05 analog control_sp15John Todora
 

Similar to Adc interfacing (20)

Analog to Digital Converters
Analog to Digital ConvertersAnalog to Digital Converters
Analog to Digital Converters
 
adcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptxadcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptx
 
Chapter5 dek3133
Chapter5 dek3133Chapter5 dek3133
Chapter5 dek3133
 
Vhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptx
Vhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptxVhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptx
Vhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptx
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
 
Construction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar DasConstruction of digital voltmeter by Bapi Kumar Das
Construction of digital voltmeter by Bapi Kumar Das
 
Mc module5 lcd_interface_ppt_msj
Mc module5 lcd_interface_ppt_msjMc module5 lcd_interface_ppt_msj
Mc module5 lcd_interface_ppt_msj
 
Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)
 
8051 FINIAL
8051 FINIAL8051 FINIAL
8051 FINIAL
 
Adc dac converter
Adc dac converterAdc dac converter
Adc dac converter
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
 
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLERDIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
 
analog to digital converter and dac final
analog to digital converter and dac finalanalog to digital converter and dac final
analog to digital converter and dac final
 
Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]
 
adc dac converter
adc dac converteradc dac converter
adc dac converter
 
Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148
 
ADC and DAC Best Ever Pers
ADC and DAC Best Ever PersADC and DAC Best Ever Pers
ADC and DAC Best Ever Pers
 
8255
82558255
8255
 
ANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTORANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTOR
 
05 analog control_sp15
05 analog control_sp1505 analog control_sp15
05 analog control_sp15
 

Recently uploaded

Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 

Recently uploaded (20)

Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 

Adc interfacing

  • 1. Dr. Vithalrao Vikhe Patil College of Engineering, Ahmednagar Department of Information Technology Lecture on Unit No 6 ADC Interfacing with 8051 Microcontroller Processor Architecture & Interfacing (S.E.I.T.) Presentation By Prof. Ms. M. S. Gunjal Department of Information Technology
  • 2. Objectives  What is ADC  Pin diagram of ADC0804  Pin description of ADC0804  Interfacing Diagram of ADC with 8051  Working of ADC  Timing Diagram  ADC0808/0809 April 23, 2020 2
  • 3.  ADC Stands for “Analog to Digital Conversion"  ADC converts the given analog value to a digital value .  Sensors and transducers used in industry are analog in nature.  It is necessary to convert the analog output from the sensors to digital so that the corresponding signal can be processed by the controller. ADC? April 23, 2020 3
  • 4. Continue…  ADCs are used everywhere when we have to process, store or transmit an analog signal in digital form.  ADCs are used in TV tuner cards.  There are lot of digital ICs available to convert analog to digital.  In Microcontroller interfacing the frequently used ICs are 0804 and 0808  ADC chips are either parallel or serial. April 23, 2020 4
  • 5. ADC0804  The ADC0804 IC is 20 Pin 8-bit parallel ADC.  It works with +5volts and has a resolution of 8 bits.  The ADC0804 is a commonly used ADC module, for projects where an external ADC is required.  In this ADC the conversion time varies depending on the clocking signals applied to CLK IN pin.  But the conversion time cannot be faster than 110 microseconds. April 23, 2020 5
  • 6. Features of ADC0804 Family:  8-bit resolution ADC  Conversion time 110 μs  Access time 135 ns.  It has an on-chip clock generator.  It does not require any zero adjustment.  It operates on single 5V power supply.  Output meet TTL voltage level specifications. April 23, 2020 6
  • 7. ADC0804 chip Pin diagram April 23, 2020 7
  • 8. Pin Diagram Description Pin Symbol Descriptions 1 CS# Chip select is an active low input used to activate the ADC0804 chip. 2 RD This is active low input signal. RD (Read) Make this pin high(1) and after some time low(0). This will bring data from internal registers to the output pins after conversion 3 WR WR (Write) Make this pin low(0) to high(1) to start conversion of data(analog to digital) 4 CLK IN Clock IN (CLK IN) Connect external clock to this pin. 5 INTR# Interrupt (INTR) This pin automatically goes low when conversion is done by ADC0804 or when digital equivalent of analog input is ready. 6 Vin(+) Vin (+) connect input analog sensor pin/input voltage to this pin. 7 Vin(-) Vin (-) ground this pin. April 23, 2020 8
  • 9. Continue… Pin Symbol Description 8 AGND AnalogGround (AGND) ground this pin. 9 Vref/2 Vref/2 set the reference voltage for analog input(Very important pin discussed further) 10 DGND DigitalGround (DGND) ground this pin 11 to 18 D0 t0 D7 PIN 11 TO 18 ARE DATA PINS OUTPUT DATA PINS 19 CLK R Clock R (CLK R) Used with clock IN pin when internal clock source is used 20 Vcc +5 volts April 23, 2020 9
  • 10. ADC0804 reference pin (Vref/2)  Vref/2 is voltage reference pin of ADC0804. Reference means that after this much amount of voltage change at input, output must increase by 1 or the set limit.  Vref/2 (pin-9) left open means input voltage span is 0-5 volts and step size is 5/256=19.53 mV.  Voltage span means that the ADC can measure in the range for example for the above case from 0-5 volts.  step size it mean’s after the rise of 19.53 mv at input the output increases by one unit. If now output is 2 then after 19.53 mv increase in input voltage output will be 3. April 23, 2020 10
  • 11. Different Vref/2 voltages and corresponding analogue input voltage spans. Vref/2 (pin 9) Volts Input Voltage (volt) Step size(mv) Left open 0-5 5/256=19.53 2 0-4 4/256=15.62 1.5 0-3 3/256=11.71 1.28 0-2.56 2.56/256=10 1.0 0-2 2/256=7.812 0.5 0-1 1/256=3.906 April 23, 2020 11
  • 13. Working of ADC…  For every interfacing initialization is needed.  For ADC the initial values are  INTR=1; // interrupt for completion of ADC process  rd=1; // read from 0804  wr=0; // start conversion write..  Next step is to start the process of converting analog voltage to digital data  By changing the state of the write pin transition from 0 to 1 will start the conversion.  End of conversion will be acknowledged by a change in the INTR state. April 23, 2020 13
  • 14. Steps for converting the analogue input and reading the output from ADC0804.  Make CS=0 and send a low to high pulse to WR pin to start the conversion.  Now keep checking the INTR pin.  If conversion is not finished (INTR=1) , poll until it is finished.  If conversion is finished (INTR=0), go to the next step.  Make CS=0 and send a high to low pulse to RD pin to read the data from the ADC. April 23, 2020 14
  • 16. ADC0808/0809  ADC 0809 is an 8 channel, 8 bit ADC.  It can convert an analog voltage input into an 8 bit digital data output.  To select an input out of 8 options, there are three select lines (C, B and A).  We put a channel number on these lines (0…7) and latch it using ALE.  SC signal is given to indicate start of conversion.  Reference voltage for conversion is provided using +Vref and –Vref. The clock supply needed for conversion is given through CLK (typically ~ 1MHz). April 23, 2020 16
  • 17. ADC0808/0809  The end of conversion is indicated by the ADC using EOC signal.  There is no Vref/2 in the ADC0808/0809 chip. April 23, 2020 17
  • 19. Analog Channel Selection Selected Analog Channel C B A IN0 0 0 0 IN1 0 0 1 IN2 0 1 0 IN3 0 1 1 IN4 1 0 0 IN5 1 0 1 IN6 1 1 0 IN7 1 1 1 April 23, 2020 19
  • 20. Vref Relation to Vin Vref (V) Vin (V) Step Size (mv) Not Connected 0 to 5 5/256=19.53 4.0 0 to 4 4/256=15.62 3.0 0 to 3 3/256=11.71 2.56 0 to 2.56 2.56/256=10 2.0 0 to 2 2/256=7.81 1.0 0 to 1 1/256=3.90 April 23, 2020 20
  • 21. Steps to program the ADC0808/0809  Select an analog channel by providing bits to A,B and C according to analog channel selection.  Activate the ALE(Address Latch Enable)pin by providing low to high pulse to latch in the address.  Activate SC(start conversion) by L to H pulse to initiate conversion.  Monitor EOC(end of conversion) to see whether conversion is finished.  H to L output indicate data is converted and is ready to picked up. April 23, 2020 21
  • 22. Continue…  If we do not use EOC,we can read the converted data after a time delay.  Activate OE(output enable) to read data out of ADC chip.  An H to L pulse to the OE pin will bring digital data out of the chip.  OE pin is same as RD pin in other ADC chips. April 23, 2020 22
  • 23. Read and Write Timing for ADC0809 April 23, 2020 23
  • 25. Thank You !!! April 23, 2020 25