adc - analog to digital conversion on avr microcontroller atmega16

Upload: robo-india

Post on 04-Oct-2015

40 views

Category:

Documents


0 download

DESCRIPTION

Robo India in this PPT is explaining on the most crucial and important aspect of Embedded system, robotics, automation and physical computing.Analog to digital conversion is required in almost every project of above mentioned domain. One advantage to use a AVR micro controller is that it has inbuilt ADC thus we donot need to use external system for ADC. Here Robo India is teaching how to use ADC in AVR series microcontrollers. We welcome your views and queries, we are found at-website: http://roboindia.commail- [email protected]

TRANSCRIPT

Input/output Ports

Analog to digitalConversionADC ROBO INDIAhttp://roboindia.comWHY SIGNALS ???Signal carry informationType of signals???Type of SIGNALSANALOG SIGNALAre all CONTINUOUS time signals ANALOG ?All continuous time signals are analog but all analog signals are not continuous time

ANALOG SIGNALThe ADC converts an analog input voltage to a 10-bit digital value through successive approximation. The minimum value represents GND and the maximum value represents the voltage on the AREF pin minus 1 LSBA/D WorkingA/D conversionSignal processingWhat's wrong with totally analog ?Ans Two arrows in a Quiver is always better than oneSignal processingA digital signal is superior to an analog signal because it is more robust to noise and can easily be recovered, corrected and amplified. For this reason, the tendency today is to change an analog signal to digital dataSignal processingNeed of a/d or d/a ?PROGRAMMING OF ADCReadADCX() {ADMUX=0x4X;ADCSRA=0x86;SETBIT(ADCSRA,BIT(6));

while(!(ADCSRA & (1