English
Language : 

ATMEGA48 Datasheet, PDF (257/377 Pages) ATMEL Corporation – 8-bit Microcontroller with 8K Bytes In-System Programmable Flash
ATmega48/88/168
• Bit 5 – ADATE: ADC auto trigger enable
When this bit is written to one, Auto Triggering of the ADC is enabled. The ADC will start a con-
version on a positive edge of the selected trigger signal. The trigger source is selected by setting
the ADC Trigger Select bits, ADTS in ADCSRB.
• Bit 4 – ADIF: ADC interrupt flag
This bit is set when an ADC conversion completes and the Data Registers are updated. The
ADC Conversion Complete Interrupt is executed if the ADIE bit and the I-bit in SREG are set.
ADIF is cleared by hardware when executing the corresponding interrupt handling vector. Alter-
natively, ADIF is cleared by writing a logical one to the flag. Beware that if doing a Read-Modify-
Write on ADCSRA, a pending interrupt can be disabled. This also applies if the SBI and CBI
instructions are used.
• Bit 3 – ADIE: ADC interrupt enable
When this bit is written to one and the I-bit in SREG is set, the ADC Conversion Complete Inter-
rupt is activated.
• Bits 2:0 – ADPS2:0: ADC prescaler select bits
These bits determine the division factor between the system clock frequency and the input clock
to the ADC.
Table 24-4.
ADPS2
0
0
0
0
1
1
1
1
ADC prescaler selections.
ADPS1
ADPS0
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
Division factor
2
2
4
8
16
32
64
128
2545T–AVR–05/11
257