Atmel ATmega48A Manual page 265

8-bit atmel microcontroller with 4/8/16/32k bytes in-system programmable flash
Table of Contents

Advertisement

24.9.2
ADCSRA – ADC Control and Status Register A
8271D–AVR–05/11
ATmega48A/PA/88A/PA/168A/PA/328/P
Table 24-4.
Input Channel Selections
MUX3...0
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
Note:
1. For Temperature Sensor.
Bit
7
(0x7A)
ADEN
Read/Write
R/W
Initial Value
0
• 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.
Single Ended Input
ADC0
ADC1
ADC2
ADC3
ADC4
ADC5
ADC6
ADC7
(1)
ADC8
(reserved)
(reserved)
(reserved)
(reserved)
(reserved)
1.1V (V
)
BG
0V (GND)
6
5
4
ADSC
ADATE
ADIF
R/W
R/W
R/W
0
0
0
3
2
1
ADIE
ADPS2
ADPS1
R/W
R/W
R/W
0
0
0
0
ADPS0
ADCSRA
R/W
0
265

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ATmega48A and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents