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

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.4
330
ATmega32U4
ADC Control and Status Register B – ADCSRB
channels) is required, it is sufficient to read ADCH. Otherwise, ADCL must be read first, then
ADCH.
The ADLAR bit in ADMUX, and the MUXn bits in ADMUX affect the way the result is read from
the registers. If ADLAR is set, the result is left adjusted. If ADLAR is cleared (default), the result
is right adjusted.
• ADC9:0: ADC Conversion Result
These bits represent the result from the conversion, as detailed in
page
• Bit 7 – ADHSM: ADC High Speed Mode
Writing this bit to one enables the ADC High Speed mode. This mode enables higher conversion
rate at the expense of higher power consumption.
• Bit 5 – MUX5: Analog Channel Additional Selection Bits
This bit make part of MUX5:0 bits of ADRCSRB and ADMUX register, that select the combina-
tion of analog inputs connected to the ADC (including differential amplifier configuration).
• Bit 3:0 – ADTS3:0: ADC Auto Trigger Source
If ADATE in ADCSRA is written to one, the value of these bits selects which source will trigger
an ADC conversion. If ADATE is cleared, the ADTS3:0 settings will have no effect. A conversion
will be triggered by the rising edge of the selected interrupt flag. Note that switching from a trig-
ger source that is cleared to a trigger source that is set, will generate a positive edge on the
trigger signal. If ADEN in ADCSRA is set, this will start a conversion. Switching to Free Running
mode (ADTS[3:0]=0) will not cause a trigger event, even if the ADC Interrupt Flag is set
Table 25-6.
Bit
Read/Write
Initial Value
ADTS3
323.
0
0
0
0
0
0
0
0
1
ADHSM
ADC Auto Trigger Source Selections
R/W
7
0
ADTS2
0
0
0
0
1
1
1
1
0
ACME
R/W
6
0
MUX5
R
5
0
ADTS1
0
0
1
1
0
0
1
1
0
R
4
0
-
ADTS3
ADTS0
R
3
0
0
1
0
1
0
1
0
1
0
ADTS2
R/W
2
0
Trigger Source
Free Running mode
Analog Comparator
External Interrupt Request 0
Timer/Counter0 Compare Match
Timer/Counter0 Overflow
Timer/Counter1 Compare Match B
Timer/Counter1 Overflow
Timer/Counter1 Capture Event
Timer/Counter4 Overflow
ADTS1
R/W
1
0
“ADC Conversion Result” on
ADTS0
R/W
0
0
ADCSRB
7766A–AVR–03/08
.

Related parts for atmega32u4-16mu