ADC, Analog Comparator & Input Capture Unit
ADC, Analog Comparator & Input Capture Unit
– A single conversion
• A single conversion is started by writing a logical one to the ADC Start
Conversion bit, ADSC.
• This bit stays high as long as the conversion is in progress and will be
cleared by hardware when the conversion is completed.
• Using the ADC Interrupt Flag as a trigger source makes the ADC start a
new conversion as soon as the ongoing conversion has finished.
• The ADC then operates in Free Running mode, constantly sampling and
updating the ADC Data Register.
• The first conversion must be started by writing a logical one to the ADSC
bit in ADCSRA.
Prescaling and Conversion Timing
ADC Prescaler
• The ADC module contains a prescaler, which generates an
acceptable ADC clock frequency from any CPU frequency above
100kHz.
– ADMUX
– ADCSRA
Analog Comparator
– The event will also set the Input Capture Flag (ICF1), and
this can be used to cause an Input Capture Interrupt, if
this interrupt is enabled.
Waveform Generation Mode Bit Description