Vous êtes sur la page 1sur 1

ADC start conversion bit..ADSC Free Running mode.. ADFR bit in ADCSRA ::: ADC Data Register. prescaler..

ADPS bits in ADCSRA Switch on ADc.. setting the ADEN bit in ADCSRA Initiating a single ended conversion by setting the ADSC bit in ADCSRA ADEN in ADCSRA is set...The first conversion after the ADC is switched on When a conversion is complete > result.. ADC Data Registers, and ADIF is set First conversion..ADSC in ADCSRA..ADC will perform successive conversions indepe ndently of whether the ADC Interrupt Flag, ADIF is cleared or not ======= ADMUX...... REFS0 & REFS1=> Voltage Refernce selection MUX0, MUX1, MUX2, MUX3 => Analog channel selection ====== ADCSRA..... ADEN => adc enable ADSC => adc start conversion ADFR => free running mode_the ADC sam-samples and updates the Data Registers con tinuously ADIF => cleared by hardware when executing the corresponding interrupt Handling Vector ADIE => When this bit is written to one and the I-bit in SREG is set, the ADC Co nversion Complete Interrupt is activated. ADPS0, ADPS1, ADPS2 => ADC prescaler (Division Factor) ADCL & ADCH => represent the result from the conversion =========================

Vous aimerez peut-être aussi