English
Language : 

ATTINY9_14 Datasheet, PDF (84/170 Pages) ATMEL Corporation – Atmel 8-bit AVR Microcontroller
Figure 13-2. ADC Auto Trigger Logic
ADTS[2:0]
PRESCALER
ADIF
SOURCE 1
.
.
.
.
SOURCE n
ADSC
ADATE
EDGE
DETECTOR
START
CLKADC
CONVERSION
LOGIC
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 bit ADSC bit in ADCSRA. In this
mode the ADC will perform successive conversions independently of whether the ADC Interrupt Flag, ADIF is
cleared or not.
If Auto Triggering is enabled, single conversions can be started by writing ADSC in ADCSRA to one. ADSC can
also be used to determine if a conversion is in progress. The ADSC bit will be read as one during a conversion,
independently of how the conversion was started.
13.5 Prescaling and Conversion Timing
By default, the successive approximation circuitry requires an input clock frequency between 50 kHz and 200 kHz
to get maximum resolution.
Figure 13-3. ADC Prescaler
ADEN
START
CK
Reset
7-BIT ADC PRESCALER
ADPS0
ADPS1
ADPS2
ADC CLOCK SOURCE
The ADC module contains a prescaler, as illustrated in Figure 13-3 on page 84, which generates an acceptable
ADC clock frequency from any CPU frequency above 100 kHz. The prescaling is set by the ADPS bits in ADCSRA.
The prescaler starts counting from the moment the ADC is switched on by setting the ADEN bit in ADCSRA. The
prescaler keeps running for as long as the ADEN bit is set, and is continuously reset when ADEN is low.
ATtiny4/5/9/10 [DATASHEET] 84
8127F–AVR–02/2013