ATmega808/1608/3208/4808 –
32-Pin
32-Pin Data Sheet – megaAVR® 0-series
Introduction
The ATmega808/1608/3208/4808 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-, 40-, 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 8 KB to 48 KB in a 32-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: 40 Years at 55°C
System:
– Power-on Reset (POR) circuit
– Brown-out Detector (BOD)
– Clock options:
• 16/20 MHz low-power internal oscillator
• 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 for immediate wake-up
• Standby
– Configurable operation of selected peripherals
– SleepWalking peripherals
• Power-Down with limited wake-up functionality
Peripherals:
– One 16-bit Timer/Counter type A (TCA) with a dedicated period register and three compare channels
– Three 16-bit Timer/Counter type B with input capture (TCB)
© 2019 Microchip Technology Inc.
Preliminary Datasheet
DS40002017C-page 1
ATmega808/1608/3208/4808 – 32-Pin
–
–
–
–
•
•
•
•
One 16-bit Real-Time Counter (RTC) running from an external crystal or an internal RC oscillator
Three USART with fractional baud rate generator, auto-baud, 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 Look-up Tables (LUT)
– One Analog Comparator (AC) with a 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 before code execution is allowed
– Watchdog Timer (WDT) with Window mode, with separate on-chip oscillator
– External interrupt on all general purpose pins
I/O and Packages:
– 27 programmable I/O lines
– 32-pin VQFN 5x5 and TQFP 7x7
Temperature Ranges:
– Industrial: -40°C to +85°C
– Extended: -40°C to +125°C
Speed Grades -40°C to +105°C:
– 0-5 MHz @ 1.8V – 5.5V
– 0-10 MHz @ 2.7V – 5.5V
– 0-20 MHz @ 4.5V – 5.5V
Speed Grades -40°C to +125°C:
– 0-8 MHz @ 2.7V - 5.5V
– 0-16 MHz @ 4.5V - 5.5V
© 2019 Microchip Technology Inc.
Preliminary Datasheet
DS40002017C-page 2
ATmega808/1608/3208/4808 – 32-Pin
Table of Contents
Introduction.....................................................................................................................................................1
Features......................................................................................................................................................... 1
1.
Block Diagram.........................................................................................................................................5
2.
Pinout...................................................................................................................................................... 6
2.1.
3.
I/O Multiplexing and Considerations....................................................................................................... 7
3.1.
4.
Multiplexed Signals...................................................................................................................... 7
Electrical Characteristics.........................................................................................................................8
4.1.
4.2.
4.3.
4.4.
4.5.
4.6.
4.7.
4.8.
4.9.
4.10.
4.11.
4.12.
4.13.
4.14.
4.15.
4.16.
4.17.
4.18.
5.
32-Pin VQFN/TQFP..................................................................................................................... 6
Disclaimer.....................................................................................................................................8
Absolute Maximum Ratings .........................................................................................................8
General Operating Ratings ..........................................................................................................8
Power Considerations.................................................................................................................. 9
Power Consumption................................................................................................................... 10
Peripherals Power Consumption................................................................................................ 11
BOD and POR Characteristics................................................................................................... 12
External Reset Characteristics................................................................................................... 13
Oscillators and Clocks................................................................................................................13
I/O Pin Characteristics................................................................................................................15
USART....................................................................................................................................... 16
SPI..............................................................................................................................................17
TWI.............................................................................................................................................18
VREF..........................................................................................................................................20
ADC............................................................................................................................................21
AC.............................................................................................................................................. 24
UPDI Timing............................................................................................................................... 25
Programming Time..................................................................................................................... 26
Typical Characteristics.......................................................................................................................... 27
5.1.
5.2.
5.3.
5.4.
5.5.
5.6.
5.7.
5.8.
Power Consumption................................................................................................................... 27
GPIO.......................................................................................................................................... 35
VREF Characteristics................................................................................................................. 42
BOD Characteristics...................................................................................................................44
ADC Characteristics................................................................................................................... 47
AC Characteristics......................................................................................................................57
OSC20M Characteristics............................................................................................................59
OSCULP32K Characteristics..................................................................................................... 61
6.
Ordering Information............................................................................................................................. 63
7.
Online Package Drawings.....................................................................................................................65
8.
Package Drawings................................................................................................................................ 66
8.1.
32-Pin TQFP.............................................................................................................................. 66
© 2019 Microchip Technology Inc.
Preliminary Datasheet
DS40002017C-page 3
ATmega808/1608/3208/4808 – 32-Pin
8.2.
9.
32-Pin VQFN.............................................................................................................................. 70
Conventions.......................................................................................................................................... 74
9.1.
9.2.
Memory Size and Type...............................................................................................................74
Frequency and Time...................................................................................................................74
10. Data Sheet Revision History................................................................................................................. 75
10.1. Rev.C - 08/2019......................................................................................................................... 75
10.2. Rev.B - 03/2019..........................................................................................................................75
10.3. Rev. A - 02/2018.........................................................................................................................75
The Microchip Website.................................................................................................................................76
Product Change Notification Service............................................................................................................76
Customer Support........................................................................................................................................ 76
Product Identification System.......................................................................................................................77
Microchip Devices Code Protection Feature................................................................................................ 77
Legal Notice................................................................................................................................................. 77
Trademarks.................................................................................................................................................. 77
Quality Management System....................................................................................................................... 78
Worldwide Sales and Service.......................................................................................................................79
© 2019 Microchip Technology Inc.
Preliminary Datasheet
DS40002017C-page 4
ATmega808/1608/3208/4808 – 32-Pin
Block Diagram
1.
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
ACn
GPIOR
EVSYS
CCL
TCAn
TCBn
RXD
TXD
XCK
XDIR
USARTn
MISO
MOSI
SCK
SS
SPIn
SDA (master)
SCL (master)
SDA (slave)
SCL (slave)
NVMCTRL
PORTS
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
© 2019 Microchip Technology Inc.
Preliminary Datasheet
DS40002017C-page 5
ATmega808/1608/3208/4808 – 32-Pin
Pinout
PA1
PA0 (EXTCLK)
GND
VDD
UPDI
PF6
PF5
30
29
28
27
26
25
32-Pin VQFN/TQFP
31
2.1
PA2
Pinout
32
2.
4
21
PF1 (TOSC2)
PA7
5
20
PF0 (TOSC1)
PC0
6
19
GND
PC1
7
18
AVDD
PC2
8
17
PD7
Power
PD6
PD5
PD4
16
PA6
15
PF2
14
22
13
3
PD3
PA5
12
PF3
PD2
23
11
2
PD1
PA4
10
PF4
PD0
24
9
1
PC3
PA3
Functionality
Input supply
Programming, debug
Ground
Clock, crystal
GPIO on VDD power domain
TWI
GPIO on AVDD power domain
Digital functions only
Analog functions
Note: The center pad underneath the QFN packages can be connected to PCB ground or left electrically
unconnected. Solder or glue it to the board to ensure good mechanical stability. If the center pad is not attached, the
package might loosen from the board.
© 2019 Microchip Technology Inc.
Preliminary Datasheet
DS40002017C-page 6
ATmega808/1608/3208/4808 – 32-Pin
I/O Multiplexing and Considerations
3.
I/O Multiplexing and Considerations
3.1
Multiplexed Signals
Pin name (1,2)
VQFN32/
TQFP32
Special
ADC0
AC0
EXTCLK
USARTn
SPI0
TWI0
TCA0
30
PA0
31
PA1
32
PA2
TWI
0,XCK
SDA(MS)
0-WO2
0-WO
1
PA3
TWI
0,XDIR
SCL(MS)
0-WO3
1-WO
2
PA4
0,TxD(3)
MOSI
0-WO4
3
PA5
0,RxD(3)
MISO
0-WO5
4
PA6
0,XCK(3)
SCK
5
PA7
0,XDIR(3)
SS
6
PC0
1,TxD
MOSI(3)
0-WO0(3)
2-WO
1,RxD
MISO(3)
0-WO1(3)
3-WO(3)
CLKOUT
OUT
0,TxD
0-WO0
0,RxD
0-WO1
TCBn
EVSYS
CCL-LUTn
0-IN0
0-IN1
EVOUTA
0-IN2
0-OUT
0-OUT(3)
EVOUTA(3)
1-IN0
7
PC1
8
PC2
TWI
1,XCK
SCK(3)
SDA(MS)(3)
0-WO2(3)
9
PC3
TWI
1,XDIR
SS(3)
SCL(MS)(3)
0-WO3(3)
1-OUT
10
PD0
AIN0
0-WO0(3)
2-IN0
11
PD1
AIN1
P3
0-WO1(3)
12
PD2
AIN2
P0
0-WO2(3)
13
PD3
AIN3
N0
0-WO3(3)
14
PD4
AIN4
P1
0-WO4(3)
15
PD5
AIN5
N1
0-WO5(3)
16
PD6
17
PD7
18
AVDD
19
GND
20
PF0
TOSC1
2,TxD
0-WO0(3)
3-IN0
21
PF1
TOSC2
2,RxD
0-WO1(3)
3-IN1
VREFA
AIN6
P2
AIN7
N2
2-OUT(3)
EVOUTD(3)
PF2
TWI
AIN12
2,XCK
23
PF3
TWI
AIN13
2,XDIR
SCL(S)(3)
24
PF4
AIN14
2,TxD(3)
0-WO4(3)
0-WO(3)
25
PF5
AIN15
2,RxD(3)
0-WO5(3)
1-WO(3)
27
UPDI
28
VDD
29
GND
RESET
2-IN2
2-OUT
22
PF6
1-IN2
2-IN1
EVOUTD
SDA(S)(3)
26
1-IN1
EVOUTC
0-WO2(3)
0-WO3(3)
EVOUTF
3-IN2
3-OUT
2,XCK(3)
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.
© 2019 Microchip Technology Inc.
Preliminary Datasheet
DS40002017C-page 7
ATmega808/1608/3208/4808 – 32-Pin
Electrical Characteristics
4.
Electrical Characteristics
4.1
Disclaimer
All typical values are measured at T = 25°C and VDD = 3V unless otherwise specified. All minimum and maximum
values are valid across operating temperature and voltage unless otherwise specified.
Typical values given should be considered for design guidance only, and actual part variation around these values is
expected.
4.2
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 4-1. Absolute Maximum Ratings
Symbol
VDD
IVDD
Power Supply Voltage
Current into a VDD pin
Description
Conditions
IGND
Current out of a GND pin
VPIN
IPIN
Ic1(1)
Pin voltage with respect to GND
I/O pin sink/source current
I/O pin injection current except for the RESET pin
Ic2(1)
I/O pin injection current except for the RESET pin
Tstorage
Storage temperature
TA=[-40, 85]°C
TA=[85, 125]°C
TA=[-40, 85]°C
TA=[85, 125]°C
Vpin