ATTINY43U-SUR Atmel, ATTINY43U-SUR Datasheet - Page 127

no-image

ATTINY43U-SUR

Manufacturer Part Number
ATTINY43U-SUR
Description
MCU AVR 4KB FLASH 8MHZ 20SOIC
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet

Specifications of ATTINY43U-SUR

Core Processor
AVR
Core Size
8-Bit
Speed
8MHz
Connectivity
USI
Peripherals
Brown-out Detect/Reset, POR, PWM, Temp Sensor, WDT
Number Of I /o
16
Program Memory Size
4KB (2K x 16)
Program Memory Type
FLASH
Eeprom Size
64 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
*
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
16.13.2
8048B–AVR–03/09
ADCSRA – ADC Control and Status Register A
• Bits 2:0 – MUX[2:0]: Analog Channel Selection Bits
The value of these bits selects which analog input is connected to the ADC, as shown in
16-4. Selecting channel ADC4 enables temperature measurement.
Table 16-4.
Notes:
If these bits are changed during a conversion, the change will not go into effect until this
conversion is complete (ADIF in ADCSRA is set).
• 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
0x06 (0x26)
Read/Write
Initial Value
1. Due to the voltage divider present, a current will flow from V
2. See
divider as long as this channel is selected.
ADC Multiplexer Channel Selections.
“Temperature Measurement” on page
ADEN
R/W
7
0
Single Ended Input
ADC0 (PA0)
ADC1 (PA1)
ADC2 (PA2)
ADC3 (PA3)
ADSC
1.1V (I Ref)
R/W
0V (GND)
ADC4
6
0
V
BAT
(1)
(2)
ADATE
R/W
5
0
ADIF
R/W
4
0
125.
ADIE
R/W
3
0
ADPS2
R/W
2
0
BAT
to ground via a 100kΩ resistor
ADPS1
R/W
1
0
MUX[2:0]
000
001
010
011
100
101
110
111
ADPS0
R/W
0
0
ADCSRA
Table
127

Related parts for ATTINY43U-SUR