Analog to Digital Converter (ADC). Analog to Digital Converters  Microcontroller understands only digital language.  To convert the analog output from.

Slides:



Advertisements
Similar presentations
Mark Neil - Microprocessor Course 1 Device Drivers – Digital Voltmeter.
Advertisements

Data Acquisition ET 228 Chapter
Robotics Club, Snt Council2 The 3 Schools of Robotics: Mechanical Design – Types of motors – Material selection –
MICRO-CONTROLLER: A microcontroller is the brain of the robot: These are: 1. Integrated Circuits (ICs) 2. Programmable.
Analog to Digital Conversion
ECE 265 – LECTURE 14 Analog Signal Acquisition The A/D converters 5/14/ ECE265.
Kuliah Mikrokontroler AVR Comparator AVR Eru©September 2009 PENS.
Analog/Digital Subsystem
Chapter 11 It’s an Analog World Learning to use the Analog to Digital Converter.
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.
Robotics Research Laboratory Louisiana State University.
-Done By Haresh Miriyala
1 Lab2: A/D Converter. 2 This circuit connects a variable voltage to an A/D port on the AVR mcu. Your software running on the AVR mcu will read the digital.
5-1 Analogue Input/Output Many sensors/transducers produce voltages representing physical data.  To process transducer data in a computer requires conversion.
PIC16F bit 8-channel Analog-to-Digital Converter.
Kuliah Mikrokontroler AVR ADC AVR Eru©September 2009 PENS.
1 Dr. Un-ki Yang Particle Physics Group or Shuster 5.15 Amplifiers and Feedback: 3.
Analog to Digital Converters (ADC)
Neurotransmitters and their Detection Introduction Design Testing Application Conclusion.
Railway Foundation Electronic, Electrical and Processor Engineering.
Railway Foundation Electronic, Electrical and Processor Engineering.
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.
Robotics Research Laboratory Louisiana State University.
PH4705/ET4305: A/D: Analogue to Digital Conversion Typical Devices: Data sheets are on the web site for A/D 8 bit parallel AD7819 and serial ADC0831 And.
Data Converters ELEC 330 Digital Systems Engineering Dr. Ron Hayne
Micro-Controllers & Robotics Robotics Club IT-BHU.
ROBONICS’ 15 Powered By:. An embedded system is some combination of computer hardware and software, either fixed in capability or programmable, that is.
Embedded System Design Laboratory October 11, 2002Stanford University - EE281 Lecture #4#1 Lecture #4 Outline Announcements Project Proposal AVR Processor.
Digital to Analogue Converter
ELE2MIC Lecture 21 The AVR Sleep Modes ATMEGA128’s Analog to Digital Converter –Features –Block Diagram –Clock Source –Input Sources –Interrupts –BandGap.
Analog to Digital Converters (ADC) Ben Lester, Mike Steele, Quinn Morrison.
RS232 #use rs232(baud=9600,xmit=PIN_C6,rcv=PIN_C7
LCD Interfacing.
Robotics Research Laboratory Louisiana State University.
PH4705/ET4305: Analogue Multiplexer An Analogue Multiplexer is simply a switch that connects multiple analogue inputs signals to a single output one at.
Advanced uC Session Speaker : Chiraag Juvekar Jan 13, 2011 Speaker : Chiraag Juvekar Jan 13, 2011.
EEE527 Embedded Systems Lecture 10B:Chapter 11 Analogue to Digital Convertors (ADCs) (version 2: 25/11/13, see after slide 20 Ian McCrumRoom 5B18, Tel:
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 2 ATMEGA328P ARCHITECTURE ANALOG INPUTS.
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
ECE 2799 Electrical and Computer Engineering Design ANALOG to DIGITAL CONVERSION Prof. Bitar Last Update:
Analog to Digital Converter (ADC)
Analog to Digital Conversion - ADC Mark Neil - Microprocessor Course 1 Device Drivers – Measuring Voltages.
Lab 1 Summary.
2/June/2009LHCb Upgrade1 Single ended ADC Differential ADC –Convert single ended signal to differential (use AD8138 amp) –ASIC differential output ADC.
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.
Sensing Algorithm using IR Sensor and ADC Soong-sil University. Robotics 기 정 두 원.
1 Lab 4: D/A Converter Lab 4: D/A Converter This is a simple resistive network for a D/A converter Port 1, Port 0 are digital inputs ==> 00 (minimum),
Lecture Notes / PPT UNIT III
By: Shivanshi pandya(30) Ayushi chourasia (3) Pranavi chhikniwala(6)
 Mini-Computer ◦ Microprocessor  The Brains  Arithmetic Logic Unit (ALU)  Control Unit  Program/ Data Storage  Peripherals (Input/Output)  Low-Cost.
Popular Microcontrollers and their Selection by Lachit Dutta
What is a DAC? A digital to analog converter (DAC) converts a digital signal to an analog voltage or current output DAC.
Analog Comparator An analog comparator is available on pins PE2(AIN0), PE3(AIN1) The comparator operates like any other comparator. -when (+) exceeds (-)
ADC,DAC and sensor interface
Principles & Applications
Arduino Analog I/O Analog input pins: 0 – 5
Digital-to-Analog & Analog-to-Digital Conversion
Digital Acquisition of Analog Signals – A Practical Guide
Engineering 4862 Microprocessors Lecture 25
PIC18F458 Analog-to-Digital
ADC and DAC Programming in AVR
ADC and DAC Data Converter
MSP432™ MCUs Training Part 6: Analog Peripherals
Device Drivers – Digital Voltmeter
ADC and DAC Data Converter
 Both data about the physical world and control signals sent to interact with the physical world are typically "analog" or continuously varying quantities.
Voltage Regulator Board
Presentation transcript:

Analog to Digital Converter (ADC)

Analog to Digital Converters  Microcontroller understands only digital language.  To convert the analog output from the sensors to digital we need ADC.  In AVR family of microcontroller we have inbuilt ADC on PORTA. Each pin in PORTA has a ADC circuit connected behind it. Thus we have 8 channels of ADC.  The resolution of ADC output is 10 bit i.e. the output from the ADC is any number between 0 to 1023, where 0 corresponds to 0V and 1023 corresponds to 5 V.  The reference voltage of the ADC is fixed with the help of REFS bits in ADMUX register.

ADC It is a device that converts an analog input into a digital value ( a number). A ‘n’ bit ADC can covert the i/p to a value between 0 to 2 n -1 For ex. For a 8 bit ADC, with the dynamic range of 5 V gives the following O/p.

Process of A-D Conversion The conversion is 3 step process SamplingQuantizationCoding

ADC Vout is ANALOG But uC being digital can only read it as 0 or 1. 0 if Vout < 2.5 V 1 if Vout > 2.5 V However most applications require much higher resolution & multiple levels.

ADC In general O/p = ( V in / V ref ) * 2 n V ref is the max value of i/p that is expected

Analog to Digital Convertor (ADC) ATmega16 has an inbuilt 10 bit ADC (1024 Levels) 8 Multiplexed Single Ended Input Channels 7 Differential Input Channels

Registers of ADC Registers used in the ADC  ADMUX – ADC Multiplexer Selection Register  ADCW – ADC Word  ADCSRA – ADC Control and Status Register A

Using ADC (WinAVR) #include #include “adc.h” #include “lcd.h” void main( ) { int x; DDRA=0b ; ADCinit();// initializes ADC LCDinit( ); LCDclr( ); while(1) { x= ADCread(7);// converts analog i/p at pin 7 to digital LCDgotoXY(0,5); LCDWriteInt(x,5); _delay_ms(300); }

Check point !!!!! Make sure you include adc.h and adc.c in ur folder In make-file, add the.c file to the src list SRC= $(TARGET).c lcd.c adc.c