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.
2.
Block Diagram.........................................................................................................................................5
Pinout...................................................................................................................................................... 6
2.1.
3.
32-Pin VQFN/TQFP..................................................................................................................... 6
I/O Multiplexing and Considerations....................................................................................................... 7
3.1.
Multiplexed Signals...................................................................................................................... 7
4.
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.
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
5.
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.
7.
8.
Ordering Information............................................................................................................................. 63
Online Package Drawings.....................................................................................................................65
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
CPU
OCD
M
M
M
Flash
S
S
I
N
/
O
U
T
D
A
T
A
B
U
S
SRAM
S
S
BUS Matrix
EEPROM
NVMCTRL
PAn
PBn
PCn
PDn
PEn
PFn
AINPn
AINNn
OUT
AINn
VREFA
PORTS
ACn
GPIOR
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
CPUINT
System
Management
RSTCTRL
CLKCTRL
SLPCTRL
EVOUTx
EVSYS
CCL
TCAn
TCBn
USARTn
Detectors/
References
RESET
RST
Bandgap
POR
BOD/
VLM
LUTn-INn
LUTn-OUT
WOn
WO
RXD
TXD
XCK
XDIR
MISO
MOSI
SCK
SS
SDA (master)
SCL (master)
SDA (slave)
SCL (slave)
Clock Generation
CLKOUT
WDT
OSC20M
EXTCLK
OSC32K
SPIn
RTC
TOSC1
XOSC32K
TOSC2
TWIn
©
2019 Microchip Technology Inc.
Preliminary Datasheet
DS40002017C-page 5