Interfacing ADC to 8051.

Slides:



Advertisements
Similar presentations
Analog to digital converter
Advertisements

Analog to Digital Conversion (ADC)
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Digital Thermostat and Data Logger Brandon Wagner and David Southwick.
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Lecture 07: 8255 PPI Chip. The 80x86 IBM PC and Compatible Computers Chapter PPI Chip PPI: Programmable Parallel Interface (so it is an I/O.
Digital to Analogue Conversion Chapter 13. Why is conversion needed? Most signals in the world are analogue. Microprocessors and most computers computers.
Shift Register Application Chapter 22 Subject: Digital System Year: 2009.
Analog Comparator Positive input chooses bet. PB2 and Bandgap Reference. Negative input chooses bet. PB3 and the 8 inputs of the A/D. ACME= Analog Comparator.
Khaled A. Al-Utaibi  Digital Vs Analog Signals  Converting an Analog Signal to a Digital One  Reading Analog Sensors with the.
Mark Neil - Microprocessor Course 1 Digital to Analog Converters.
Interfacing Analog and Digital Circuits
Kuliah Mikrokontroler AVR ADC AVR Eru©September 2009 PENS.
ECT 357 Ch 10 Analog to Digital COnversion. Today’s Quote: It’s better to die with a good name than to live with a bad one. It’s better to die with a.
Interfacing of 8051 UNIT 4.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Engineering 4862 Microprocessors Lecture 26 Cheng Li EN-4012
Frequency to Voltage Converter and Voltage to Frequency Converter Where an instrumentation system is based mainly on capturing voltage signals (analogue.
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
ACOE2551 Microprocessors Data Converters Analog to Digital Converters (ADC) –Convert an analog quantity (voltage, current) into a digital code Digital.
CoE3DJ4 Digital Systems Design Chapter 4: Timer operation.
Basic I/O Interface A Course in Microprocessor
Digital to Analogue Converter
RS232 #use rs232(baud=9600,xmit=PIN_C6,rcv=PIN_C7
DC MOTOR LAKSHMI.B.E.. DC MOTOR WORKING LAKSHMI.B.E.
ECE/CS-352: Embedded Microcontroller Systems The Silicon Laboratories C8051F020 Enhanced 8051 Part 4 Timer3, Temperature Sensor, AD0WINT.
8086/8088 Hardware System. Typical Microprocessor Memory System CPU Memory Control Address Data.
ELEC4601 Microprocessors Lab 2 Tutorial Signal Waveforms and Parallel port programming.
Projects 8051.
Digital Voltmeter (DVM)
Water Flow GROUP A. Analogue input voltage results: Motor Input voltage( V) pin 12 Analogue input voltage (V) Display number
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
Interfacing Data Converters. D/A converters Design an O/P port with the address FFh to interface the 1408 D/A converter that is calibrated for 0 to 10V.
Department of Electronic & Electrical Engineering Further work? Simple Voltmeter. ● Analogue to Digital converter (MCP3001 SPI ) ● Analogue → 10bit binary.
Analog to Digital Converter (ADC)
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
8255:Programmable Peripheral Interface
Digital-to-Analog Analog-to-Digital Week 10. Data Handling Systems  Both data about the physical world and control signals sent to interact with the.
0808/0809 ADC. Block Diagram ADC ADC0808/ADC Bit μP Compatible A/D Converters with 8-Channel Multiplexer The 8-bit A/D converter uses successive.
Digital-to-Analog Analog-to-Digital
Digital to analog converter [DAC]
8255 Programmable Peripheral Interface
WATER LEVEL controller using 8051
Digital-to-Analog Analog-to-Digital
Chapter 13 Linear-Digital ICs
Introduction to the processor and its pin configuration
ADC,DAC and sensor interface
Interfacing of LCD with µP
ADC Interfacing Source: In under
Microcontroller Bharat Sankhlecha
Parallel Port Interfacing
ADC, DAC, and Sensor Interfacing
Digital-to-Analog Analog-to-Digital
Interfacing Memory Interfacing.
Chapter 7 Features and Interfacing of Programmable Devices for 8085 based systems.
8051 Single Board Computer (SBC) Version 1.0
Engineering 4862 Microprocessors Lecture 25
Analogue to Digital Conversion
ADC, DAC, and Sensor Interfacing
Digital Control Systems Waseem Gulsher
PIC18F458 Analog-to-Digital
8085 Microprocessor Architecture
ADC and DAC Programming in AVR
Programmable Peripheral Interface
ADC and DAC Data Converter
ADC and Sensor Programming
PIC Microcontroller ADC interfacing Prof. Ashvini Kulkarni
Data Acquisition Electronics Unit – Lecture 6
PROCESSORS & CONTROLLERS
Presentation transcript:

Interfacing ADC to 8051

ADC0804 is an 8 bit successive approximation analogue to digital converter from National semiconductors. The features of ADC0804 are  differential analogue voltage inputs, 0-5V input voltage range, built in clock generator, reference voltage can be externally adjusted to convert smaller analogue voltage span to 8 bit resolution etc. The pin out diagram of ADC0804 is shown in the figure below.

Internal Clock frequency = 1/(1.1*R*C) Vref/2 (pin9)  (volts) Input voltage span (volts) Step size (mV) Left open 0 – 5 5/255 = 19.6 2 0 – 4 4/255 = 15.69 1.5 0 – 3 3/255 = 11.76 1.28 0 – 2.56 2.56/255 = 10.04 1.0 0 – 2 2/255 = 7.84 0.5 0 – 1 1/255 = 3.92 Internal Clock frequency = 1/(1.1*R*C)

Steps for converting the analogue input  and reading the output from ADC0804. Make CS=0 and send a low to high pulse to WR (Start of Conversion) pin to start the conversion. Now keep checking the INTR (End of Conversion) pin.  INTR will be 1 if conversion is not finished and INTR will be 0 if conversion is finished. 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.

ADC 0804 has active low outputs and the instruction CPL A  complements it to have a straight forward display. For example, if input is 5V then the output will be 11111111 and if CPL A was not used it would have been 00000000 which is rather awkward to see.

The Code ORG 00H MOV P1,#11111111B // initiates P1 as the input port MAIN: CLR P3.7 // makes CS=0 SETB P3.6 // makes RD high CLR P3.5 // makes WR low SETB P3.5 // low to high pulse to WR for starting conversion WAIT: JB P3.4,WAIT // polls until INTR=0 CLR P3.7 // ensures CS=0 CLR P3.6 // high to low pulse to RD for reading the data from ADC MOV A,P1 // moves the digital data to accumulator CPL A // complements the digital data (*) MOV P0,A // outputs the data to P0 for the LEDs SJMP MAIN // jumps back to the MAIN program END

LM 35

Thermistor vs LM 35 Linear -55 C to 150 C Low self heating 0.1 C

Signal conditioning 8051 LM35 AMP ADC Display