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


Recommended