atmega32u4-16mu ATMEL Corporation, atmega32u4-16mu Datasheet - Page 328

no-image

atmega32u4-16mu

Manufacturer Part Number
atmega32u4-16mu
Description
Atmega32u4 8-bit Avr Microcontroller With 32k Bytes Of Isp Flash And Usb Controller
Manufacturer
ATMEL Corporation
Datasheet
25.9.2
328
ATmega32U4
ADC Control and Status Register A – ADCSRA
Table 25-4.
Note:
• Bit 7 – ADEN: ADC Enable
Writing this bit to one enables the ADC. By writing it to zero, the ADC is turned off. Turning the
ADC off while a conversion is in progress, will terminate this conversion.
• Bit 6 – ADSC: ADC Start Conversion
In Single Conversion mode, write this bit to one to start each conversion. In Free Running mode,
write this bit to one to start the first conversion. The first conversion after ADSC has been written
after the ADC has been enabled, or if ADSC is written at the same time as the ADC is enabled,
will take 25 ADC clock cycles instead of the normal 13. This first conversion performs initializa-
tion of the ADC.
ADSC will read as one as long as a conversion is in progress. When the conversion is complete,
it returns to zero. Writing zero to this bit has no effect.
• 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-
Bit
Read/Write
Initial Value
MUX5..0
110100
110101
110110
110111
111000
111001
111010
111011
111100
111101
111110
111111
1. MUX5 bit make part of ADCSRB register
(1)
ADEN
Single Ended
Input
N/A
R/W
Input Channel and Gain Selections
7
0
ADSC
R/W
6
0
ADATE
R/W
5
0
Positive Differential
Input
ADC4
ADC5
ADC6
ADC7
ADC4
ADC5
ADC6
ADC7
ADC4
ADC5
ADC6
ADC7
ADIF
R/W
4
0
ADIE
R/W
3
0
ADPS2
R/W
2
0
Negative Differential
Input
ADC1
ADC1
ADC1
ADC1
ADC0
ADC0
ADC0
ADC0
ADC1
ADC1
ADC1
ADC1
ADPS1
R/W
1
0
ADPS0
R/W
0
0
ADCSRA
7766A–AVR–03/08
Gain
40x
40x
40x
40x
200x
200x
200x
200x
200x
200x
200x
200x

Related parts for atmega32u4-16mu