ATmega3209/4809 – 48-pin
Data Sheet
megaAVR® 0-series
Introduction
®
®
The ATmega3208/3209/4808/4809 microcontrollers of the megaAVR 0-series are using the AVR
processor with hardware multiplier, running at up to 20 MHz, with a wide range of Flash sizes up to 48
KB, up to 6 KB of SRAM, and 256 bytes of EEPROM in 28-, 32-, or 48-pin package. The series uses the
latest technologies from Microchip with a flexible and low-power architecture including Event System and
SleepWalking, accurate analog features and advanced peripherals.
The devices described here offer Flash sizes from 32 KB to 48 KB in a 48-pin package.
Features
•
•
•
®
AVR CPU
– Single-cycle I/O access
– Two-level interrupt controller
– Two-cycle hardware multiplier
Memories
– Up to 48 KB In-system self-programmable Flash memory
– 256B EEPROM
– Up to 6 KB SRAM
– Write/Erase endurance:
• Flash 10,000 cycles
• EEPROM 100,000 cycles
– Data retention: 20 Years at 85°C
System
– Power-on Reset (POR) circuit
– Brown-out Detection (BOD)
–
–
–
Clock options:
• 20 MHz low power internal oscillator with fuse-protected frequency setting
• 32.768 kHz Ultra Low Power (ULP) internal oscillator
• 32.768 kHz external crystal oscillator
• External clock input
Single pin Unified Program Debug Interface (UPDI)
Three sleep modes:
• Idle with all peripherals running and mode for immediate wake-up time
• Standby
– Configurable operation of selected peripherals
© 2018 Microchip Technology Inc.
Datasheet Preliminary
DS40002016A-page 1
ATmega3209/4809 – 48-pin Data Sheet
•
– SleepWalking peripherals
• Power Down with limited wake-up functionality
Peripherals
– One 16-bit Timer/Counter type A with dedicated period register, three compare channels (TCA)
– Four 16-bit Timer/Counter type B with input capture (TCB)
– One 16-bit Real Time Counter (RTC) running from external crystal or internal RC oscillator
– Four USART with fractional baud rate generator, autobaud, and start-of-frame detection
– Master/slave Serial Peripheral Interface (SPI)
–
•
•
•
Dual mode Master/Slave TWI with dual address match
• Standard mode (Sm, 100 kHz)
• Fast mode (Fm, 400 kHz)
• Fast mode plus (Fm+, 1 MHz)
– Event System for CPU independent and predictable inter-peripheral signaling
– Configurable Custom Logic (CCL) with up to four programmable Lookup Tables (LUT)
– One Analog Comparator (AC) with scalable reference input
– One 10-bit 150 ksps Analog to Digital Converter (ADC)
– Five selectable internal voltage references: 0.55V, 1.1V, 1.5V, 2.5V, and 4.3V
– CRC code memory scan hardware
• Optional automatic scan after reset
– Watchdog Timer (WDT) with Window Mode, with separate on-chip oscillator
– External interrupt on all general purpose pins
I/O and Packages:
– 41 programmable I/O lines
– 48-pin UQFN 6x6 and TQFP 7x7
Temperature Range: -40°C to 125°C
Speed Grades:
– 0-5 MHz @ 1.8V – 5.5V
– 0-10 MHz @ 2.7V – 5.5V
– 0-20 MHz @ 4.5V – 5.5V, -40°C to 105°C
© 2018 Microchip Technology Inc.
Datasheet Preliminary
DS40002016A-page 2
Table of Contents
Introduction......................................................................................................................1
Features.......................................................................................................................... 1
1. Ordering Information..................................................................................................5
2. Block Diagram........................................................................................................... 6
3. Pinout........................................................................................................................ 7
3.1.
48-pin QFN/TQFP........................................................................................................................ 7
4. I/O Multiplexing and Considerations..........................................................................8
4.1.
Multiplexed Signals...................................................................................................................... 8
5. Electrical Characteristics......................................................................................... 10
5.1.
5.2.
5.3.
5.4.
5.5.
5.6.
5.7.
5.8.
5.9.
5.10.
5.11.
5.12.
5.13.
Absolute Maximum Ratings .......................................................................................................10
General Operating Ratings ........................................................................................................10
Power Considerations................................................................................................................ 11
Power Consumption................................................................................................................... 12
Peripherals Power Consumption................................................................................................13
BOD and POR Characteristics................................................................................................... 14
External Reset Characteristics................................................................................................... 15
Oscillators and Clocks................................................................................................................15
I/O Pin Characteristics................................................................................................................18
VREF..........................................................................................................................................19
ADC............................................................................................................................................20
AC.............................................................................................................................................. 23
UPDI Timing............................................................................................................................... 24
6. Typical Characteristics.............................................................................................25
6.1.
6.2.
6.3.
6.4.
6.5.
6.6.
Power Consumption................................................................................................................... 25
GPIO.......................................................................................................................................... 33
VREF Characteristics................................................................................................................. 40
BOD Characteristics...................................................................................................................42
ADC Characteristics................................................................................................................... 45
AC Characteristics......................................................................................................................55
6.7.
6.8.
OSC20M Characteristics............................................................................................................57
OSCULP32K Characteristics..................................................................................................... 59
7. Package Drawings...................................................................................................61
7.1.
48 pin TQFP............................................................................................................................... 61
8. Conventions.............................................................................................................63
8.1.
8.2.
Memory Size and Type...............................................................................................................63
Frequency and Time...................................................................................................................63
© 2018 Microchip Technology Inc.
Datasheet Preliminary
DS40002016A-page 3
ATmega3209/4809 – 48-pin Data Sheet
9. Data Sheet Revision History....................................................................................64
9.1.
Rev. A - 02/2018.........................................................................................................................64
The Microchip Web Site................................................................................................ 65
Customer Change Notification Service..........................................................................65
Customer Support......................................................................................................... 65
Product Identification System........................................................................................ 66
Microchip Devices Code Protection Feature................................................................. 66
Legal Notice...................................................................................................................66
Trademarks................................................................................................................... 67
Quality Management System Certified by DNV.............................................................67
Worldwide Sales and Service........................................................................................68
© 2018 Microchip Technology Inc.
Datasheet Preliminary
DS40002016A-page 4
ATmega3209/4809 – 48-pin Data Sheet
Ordering Information
1.
Ordering Information
Find available ordering options online at microchipdirect.com, or contact your local sales representative.
© 2018 Microchip Technology Inc.
Datasheet Preliminary
DS40002016A-page 5
ATmega3209/4809 – 48-pin Data Sheet
Block Diagram
2.
Block Diagram
UPDI
UPDI
CRC
M
SRAM
CPU
OCD
M
Flash
M
S
BUS Matrix
S
AINPn
AINNn
OUT
AINn
VREFA
EVOUTx
LUTn-INn
LUTn-OUT
WOn
WO
PORTS
GPIOR
EVSYS
CCL
TCAn
TCBn
RXD
TXD
XCK
XDIR
USARTn
MISO
MOSI
SCK
SS
SPIn
SDA (master)
SCL (master)
SDA (slave)
SCL (slave)
NVMCTRL
ACn
ADCn
E
V
E
N
T
R
O
U
T
I
N
G
N
E
T
W
O
R
K
D
A
T
A
B
U
S
EEPROM
S
S
CPUINT
I
N
/
O
U
T
D
A
T
A
B
U
S
System
Management
RSTCTRL
PAn
PBn
PCn
PDn
PEn
PFn
Detectors/
references
RESET
RST
POR
Bandgap
BOD/
VLM
CLKCTRL
SLPCTRL
Clock generation
CLKOUT
WDT
OSC20M
EXTCLK
OSC32K
RTC
TOSC1
XOSC32K
TOSC2
TWIn
© 2018 Microchip Technology Inc.
Datasheet Preliminary
DS40002016A-page 6
ATmega3209/4809 – 48-pin Data Sheet
Pinout
PA3
PA2
PA1
PA0 (EXTCLK)
GND
VDD
UPDI
PF6
PF5
PF4
PF3
46
45
44
43
42
41
40
39
38
37
48-pin QFN/TQFP
47
3.1
PA4
Pinout
48
3.
PE1
PB3
7
30
PE0
PB4
8
29
GND
PB5
9
28
AVDD
PC0
10
27
PD7
PC1
11
26
PD6
PC2
12
25
PD5
Power
PC6
24
31
PD4
6
23
PB2
PD3
PE2
22
32
PD2
5
21
PB1
PD1
PE3
20
33
PD0
4
19
PB0
PC7
PF0 (TOSC1)
18
34
17
3
PC5
PA7
16
PF1 (TOSC2)
PC4
35
15
2
GND
PA6
14
PF2
VDD
36
13
1
PC3
PA5
Functionality
Input supply
Programming, debug
Ground
Clock, crystal
GPIO on VDD power domain
TWI
GPIO on AVDD power domain
Digital functions only
Analog functions
© 2018 Microchip Technology Inc.
Datasheet Preliminary
DS40002016A-page 7
ATmega3209/4809 – 48-pin Data Sheet
I/O Multiplexing and Considerations
4.
I/O Multiplexing and Considerations
4.1
Multiplexed Signals
QFN48/
TQFP48
Pin name (1,2)
Special
44
PA0
EXTCLK
45
PA1
46
PA2
TWI
0,XCK
SDA(MS)
0-WO2
0-WO
47
PA3
TWI
0,XDIR
SCL(MS)
0-WO3
1-WO
ADC0
AC0
USARTn
SPI0
TWI0
TCA0
TCBn
Other
CCL-LUTn
0,TxD
0-WO0
0-IN0
0,RxD
0-WO1
0-IN1
EVOUTA
0-IN2
0-OUT
48
PA4
0,TxD(3)
MOSI
0-WO4
1
PA5
0,RxD(3)
MISO
0-WO5
2
PA6
0,XCK(3)
SCK
3
PA7
0,XDIR(3)
SS
4
PB0
3,TxD
0-WO0(3)
5
PB1
3,RxD
0-WO1(3)
6
PB2
3,XCK
0-WO2(3)
7
PB3
3,XDIR
0-WO3(3)
8
PB4
3,TxD(3)
0-WO4(3)
2-WO(3)
9
PB5
3,RxD(3)
0-WO5(3)
3-WO
10
PC0
1,TxD
MOSI(3)
0-WO0(3)
2-WO
1-IN0
11
PC1
1,RxD
MISO(3)
0-WO1(3)
3-WO(3)
1-IN1
SDA(MS)(3)
0-WO2(3)
SCL(MS)(3)
0-WO3(3)
CLKOUT
OUT
0-OUT(3)
EVOUTA(3)
12
PC2
TWI
1,XCK
SCK(3)
13
PC3
TWI
1,XDIR
SS(3)
14
VDD
15
GND
16
PC4
1,TxD(3)
0-WO4(3)
17
PC5
1,RxD(3)
0-WO5(3)
18
PC6
1,XCK(3)
19
PC7
1,XDIR(3)
20
PD0
AIN0
21
PD1
AIN1
P3
0-WO1(3)
22
PD2
AIN2
P0
0-WO2(3)
23
PD3
AIN3
N0
0-WO3(3)
1-OUT
0-WO0(3)
PD4
AIN4
P1
25
PD5
AIN5
N1
0-WO5(3)
26
PD6
AIN6
P2
27
PD7
AIN7
N2
28
AVDD
29
GND
30
PE0
AIN8
MOSI(3)
0-WO0(3)
31
PE1
AIN9
MISO(3)
0-WO1(3)
AIN10
SCK(3)
0-WO2(3)
AIN11
SS(3)
0-WO3(3)
PE2
1-IN2
1-OUT(3)
24
32
EVOUTC
EVOUTC(3)
0-WO4(3)
VREFA
EVOUTB
2-IN0
2-IN1
EVOUTD
2-IN2
2-OUT
2-OUT(3)
EVOUTD(3)
EVOUTE
33
PE3
34
PF0
TOSC1
2,TxD
0-WO0(3)
3-IN0
35
PF1
TOSC2
2,RxD
0-WO1(3)
3-IN1
36
PF2
TWI
AIN12
2,XCK
SDA(S)(3)
37
PF3
TWI
AIN13
2,XDIR
SCL(S)(3)
© 2018 Microchip Technology Inc.
0-WO2(3)
0-WO3(3)
Datasheet Preliminary
EVOUTF
3-IN2
3-OUT
DS40002016A-page 8
ATmega3209/4809 – 48-pin Data Sheet
I/O Multiplexing and Considerations
QFN48/
TQFP48
Pin name (1,2)
38
PF4
39
PF5
40
PF6
41
UPDI
42
VDD
43
GND
Special
ADC0
AC0
USARTn
SPI0
TWI0
TCA0
TCBn
AIN14
2,TxD(3)
0-WO4(3)
0-WO(3)
AIN15
2,RxD(3)
0-WO5(3)
1-WO(3)
RESET
2,XCK(3)
Other
CCL-LUTn
3-OUT(3)
Note:
1. Pin names are of type Pxn, with x being the PORT instance (A,B,C, ...) and n the pin number.
Notation for signals is PORTx_PINn. All pins can be used as event input.
2. All pins can be used for external interrupt, where pins Px2 and Px6 of each port have full
asynchronous detection.
3. Alternate pin positions. For selecting the alternate positions, refer to the PORTMUX documentation.
© 2018 Microchip Technology Inc.
Datasheet Preliminary
DS40002016A-page 9
ATmega3209/4809 – 48-pin Data Sheet
Electrical Characteristics
5.
Electrical Characteristics
5.1
Absolute Maximum Ratings
Stresses beyond those listed in this section may cause permanent damage to the device. This is a stress
rating only and functional operation of the device at these or other conditions beyond those indicated in
the operational sections of this specification is not implied. Exposure to absolute maximum rating
conditions for extended periods may affect device reliability.
Table 5-1. Absolute Maximum Ratings
Symbol Description
Conditions
VDD
Power Supply Voltage
IVDD
Current into a VDD pin
IGND
Current out of a GND pin
Min. Max.
Unit
-0.5 6
V
TA=[-40, 85]°C
-
200
mA
TA=[85, 125]°C
-
100
mA
TA=[-40, 85]°C
-
200
mA
TA=[85, 125]°C
-
100
mA
VPIN
Pin voltage with respect to GND
-0.5 VDD+0.5 V
IPIN
I/O pin sink/source current
-40 40
mA
Ic1(1)
I/O pin injection current except for the RESET pin
-1
mA
Ic2(1)
I/O pin injection current except for the RESET pin
Vpin