at90pwm81-16se ATMEL Corporation, at90pwm81-16se Datasheet - Page 206

no-image

at90pwm81-16se

Manufacturer Part Number
at90pwm81-16se
Description
8-bit Avr Microcontroller With 8k Bytes In- System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
18.4
206
Prescaling and Conversion Timing
AT90PWM81
Figure 18-2.
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. In this mode the ADC will perform successive conversions independently of
whether the ADC Interrupt Flag, ADIF is cleared or not. The free running mode is not allowed on the
amplified channels.
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 dur-
ing a conversion, independently of how the conversion was started.
Figure 18-3.
By default, the successive approximation circuitry requires an input clock frequency between 50 kHz and
2 MHz to get maximum resolution. If a lower resolution than 10 bits is needed, the input clock frequency
to the ADC can be higher than 2 MHz to get a higher sample rate.
The ADC module contains a prescaler, 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.
ADC Auto Trigger Logic
ADC Prescaler
ADSC
SOURCE n
ADIF
SOURCE 1
.
.
.
.
ADEN
START
ADTS[2:0]
ADPS0
ADPS1
ADPS2
CK
DETECTOR
EDGE
Reset
ADATE
7-BIT ADC PRESCALER
ADC CLOCK SOURCE
START
CONVERSION
PRESCALER
LOGIC
CLK
ADC
7734M–AVR–03/10

Related parts for at90pwm81-16se