ATmega48PB/88PB/168PB - Summary

8-bit AVR Microcontroller
ATmega48PB/88PB/168PB
DATASHEET SUMMARY
Introduction
®
Atmel ATmega48PB/88PB/168PB is a low-power CMOS 8-bit
microcontroller based on the AVR enhanced RISC architecture. By executing
powerful instructions in a single clock cycle, the ATmega48PB/88PB/168PB
achieves throughputs approaching 1MIPS/MHz, allowing the system
designer to optimize power consumption versus processing speed.
Features
•
Advanced RISC architecture
– 131 instructions – most single clock cycle execution
– 32 x 8 general purpose working registers
– Fully static operation
– Up to 20MIPS throughput at 20MHz
– On-chip 2-cycle Multiplier
•
High endurance non-volatile memory segments
– 4/8/16KBytes of in-system self-programmable Flash program
memory
– 256/512/512Bytes EEPROM
– 512/1K/1KBytes internal SRAM
– Write/Erase cycles: 10,000 Flash/100,000 EEPROM
– Data retention: 20 years at 85°C/100 years at 25°C
– Optional boot code section with independent lock bits
• In-system programming by on-chip boot program
–
This is a summary document. A
complete document is available
on our Web site at
www.atmel.com
• True Read-While-Write (RWW) operation
Programming lock for software security
•
Atmel® QTouch® library support
– Capacitive touch buttons, sliders and wheels
– QTouch and QMatrix® acquisition
– Up to 64 sense channels
•
Peripheral Features
– Two 8-bit Timer/Counters (TC) with separate prescaler and
compare mode
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
–
–
–
–
–
–
–
–
16-bit Timer/Counter with separate prescaler, compare mode, and capture mode
Real Time Counter (RTC) with separate oscillator
Six Pulse Width Modulation (PWM) channels
8-channel 10-bit Analog-to-Digital converter (ADC) with temperature measurement
Programmable serial USART with start-of-frame detection
Master/Slave Serial Interface (SPI)
Byte-oriented Two-Wire serial Interface (TWI), Philips I2C compatible
Programmable Watchdog Timer (WDT) with separate on-chip oscillator
–
–
On-chip Analog Comparator (AC)
Interrupt and Wake-up on pin change
• 256-channel capacitive touch and proximity sensing
•
Special microcontroller features
– Power-On Reset (POR) and programmable brown-out detection (BOD)
– Internal calibrated oscillator
– External and internal interrupt sources
– Six Sleep Modes: Idle, ADC Noise Reduction, Power-Save, Power-Down, Standby, and
Extended Standby
– Unique device ID
•
I/O
–
27 programmable I/O pins
•
Packages
– 32-pin TQFP, VFQFN
•
Operating voltage
– 1.8V – 5.5V
•
Temperature range
– -40°C to 105°C
•
Speed grades
– 0 - 4MHz at 1.8-5.5V
– 0 - 10MHz at 2.7-5.5.V
– 0 - 20MHz at 4.5-5.5V
•
Power consumption at 1MHz, 1.8V, 25°C
– Active mode: 0.35mA
– Power-down mode: 0.23μA
– Power-save mode: <1.4μA (including 32kHz RTC)
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
2
Table of Contents
Introduction......................................................................................................................1
Features.......................................................................................................................... 1
1. Description.................................................................................................................4
2. Configuration Summary............................................................................................. 5
3. Ordering Information..................................................................................................6
3.1.
3.2.
3.3.
ATmega48PB............................................................................................................................... 6
ATmega88PB............................................................................................................................... 6
ATmega168PB ............................................................................................................................ 7
4. Block Diagram........................................................................................................... 8
5. Pin Configurations..................................................................................................... 9
5.1.
Pin Descriptions..........................................................................................................................10
6. I/O Multiplexing........................................................................................................ 13
7. Comparison Between Processors........................................................................... 14
8. Resources................................................................................................................15
9. Data Retention.........................................................................................................16
10. About Code Examples.............................................................................................17
11. Capacitive Touch Sensing....................................................................................... 18
11.1. QTouch Library........................................................................................................................... 18
12. Packaging Information.............................................................................................19
12.1. 32A............................................................................................................................................. 19
12.2. 32MS1........................................................................................................................................ 20
13. Errata.......................................................................................................................21
13.1. Errata ATmega48PB...................................................................................................................21
13.2. Errata ATmega88PB...................................................................................................................22
13.3. Errata ATmega168PB.................................................................................................................23
1.
Description
The AVR core combines a rich instruction set with 32 general purpose working registers. All the 32
registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent registers to
be accessed in one single instruction executed in one clock cycle. The resulting architecture is more code
efficient while achieving throughputs up to ten times faster than conventional CISC microcontrollers.
The ATmega48PB/88PB/168PB provides the following features: 4/8/16Kbytes of In-System
Programmable Flash with Read-While-Write capabilities, 256/512/512 bytes EEPROM, 512/1K/1Kbytes
SRAM, 27 general purpose I/O lines, 32 general purpose working registers, three flexible Timer/Counters
with compare modes, internal and external interrupts, a serial programmable USART, a byte-oriented 2wire Serial Interface (I²C), an SPI serial port, a 6-channel 10-bit ADC (8 channels in TQFP and VFQFN
packages), a programmable Watchdog Timer with internal Oscillator, and six software selectable power
saving modes. The Idle mode stops the CPU while allowing the SRAM, Timer/Counters, USART, 2-wire
Serial Interface, SPI port, and interrupt system to continue functioning. The Power-down mode saves the
register contents but freezes the Oscillator, disabling all other chip functions until the next interrupt or
hardware reset. In Power-save mode, the asynchronous timer continues to run, allowing the user to
maintain a timer base while the rest of the device is sleeping. The ADC Noise Reduction mode stops the
CPU and all I/O modules except asynchronous timer and ADC, to minimize switching noise during ADC
conversions. In Standby mode, the crystal/resonator Oscillator is running while the rest of the device is
sleeping. This allows very fast start-up combined with low power consumption.
Atmel® offers the QTouch® library for embedding capacitive touch buttons, sliders and wheels
functionality into AVR® microcontrollers. The patented charge-transfer signal acquisition offers robust
sensing and includes fully debounced reporting of touch keys and includes Adjacent Key Suppression®
(AKS®) technology for unambiguous detection of key events. The easy-to-use QTouch Composer allows
you to explore, develop and debug your own touch applications.
The device is manufactured using Atmel’s high density non-volatile memory technology. The On-chip ISP
Flash allows the program memory to be reprogrammed In-System through an SPI serial interface, by a
conventional non-volatile memory programmer, or by an On-chip Boot program running on the AVR core.
The Boot program can use any interface to download the application program in the Application Flash
memory. Software in the Boot Flash section will continue to run while the Application Flash section is
updated, providing true Read-While-Write operation. By combining an 8-bit RISC CPU with In-System
Self-Programmable Flash on a monolithic chip, the Atmel ATmega48PB/88PB/168PB is a powerful
microcontroller that provides a highly flexible and cost effective solution to many embedded control
applications.
The ATmega48PB/88PB/168PB AVR is supported with a full suite of program and system development
tools including: C Compilers, Macro Assemblers, Program Debugger/Simulators, In-Circuit Emulators,
and Evaluation kits.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
4
2.
Configuration Summary
Table 2-1. Configuration Summary
ATmega48PB
ATmega88PB
ATmega168PB
Pin count
32
32
32
Flash (KB)
4
8
16
SRAM (Bytes)
512
1024
1024
EEPROM (Bytes)
256
512
512
Max I/O pins
27
SPI
1
TWI (I2C)
1
USART
1
ADC
10-bit 15ksps
ADC channels
8
AC
1
8-bit Timer/Counters
2
16-bit Timer/Counters
1
PWM channels
6
Operating voltage
1.8V - 5.5V
Max operating frequency
20MHz
Temperature range
-40°C to +105°C
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
5
3.
Ordering Information
3.1.
ATmega48PB
Speed [MHz](3)
Power Supply [V]
Ordering Code(2)
Package(1)
Operational Range
20
1.8 - 5.5
ATmega48PB-AU
ATmega48PB-AUR(4)
ATmega48PB-MU
ATmega48PB-MUR(4)
32A
32A
32MS1
32MS1
Industrial
(-40°C to +85°C)
ATmega48PB-AN
ATmega48PB-ANR(4)
ATmega48PB-MN
ATmega48PB-MNR(4)
32A
32A
32MS1
32MS1
Industrial
(-40°C to +105°C)
Note: 1. This device can also be supplied in wafer form. Contact your local Atmel sales office for detailed
ordering information and minimum quantities.
2. Pb-free packaging complies to the European Directive for Restriction of Hazardous Substances (RoHS
directive). Also Halide free and fully Green.
3. See ”Speed Grades” on page 304.
4. Tape & Reel.
Package Type
32A
32-lead, Thin (1.0mm) Plastic Quad Flat Package (TQFP)
32MS1 32-pad, 5.0x5.0x0.9mm body, Lead Pitch 0.50mm, Very-thin Fine pitch, Quad Flat No Lead
Package (VFQFN)
3.2.
ATmega88PB
Speed [MHz](3)
Power Supply [V]
Ordering Code(2)
Package(1)
Operational Range
20
1.8 - 5.5
ATmega88PB-AU
ATmega88PB-AUR(4)
ATmega88PB-MU
ATmega88PB-MUR(4)
32A
32A
32MS1
32MS
Industrial
(-40°C to +85°C)
ATmega88PB-AN
ATmega88PB-ANR(4)
ATmega88PB-MN
ATmega88PB-MNR(4)
32A
32A
32MS1
32MS1
Industrial
(-40°C to +105°C)
Note: 1. This device can also be supplied in wafer form. Contact your local Atmel sales office for detailed
ordering information and minimum quantities.
2. Pb-free packaging complies to the European Directive for Restriction of Hazardous Substances (RoHS
directive).Also Halide free and fully Green.
3. See ”Speed Grades” on page 304.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
6
4. Tape & Reel.
Package Type
32A
32-lead, Thin (1.0mm) Plastic Quad Flat Package (TQFP)
32MS1 32-pad, 5.0x5.0x0.9mm body, Lead Pitch 0.50mm, Very-thin Fine pitch, Quad Flat No Lead
Package (VFQFN)
3.3.
ATmega168PB
Speed [MHz]
Power Supply [V]
Ordering Code(2)
Package(1)
Operational Range
20
1.8 - 5.5
ATmega168PB-AU
ATmega168PB-AUR(3)
ATmega168PB-MU
ATmega168PB-MUR(3)
32A
32A
32MS1
32MS1
Industrial
(-40°C to +85°C)
ATmega168PB-AN
ATmega168PB-ANR(3)
ATmega168PB-MN
ATmega168PB-MNR(3)
32A
32A
32MS1
32MS1
Industrial
(-40°C to +105°C)
Note: 1. This device can also be supplied in wafer form. Contact your local Atmel sales office for detailed
ordering information and minimum quantities.
2. Pb-free packaging complies to the European Directive for Restriction of Hazardous Substances (RoHS
directive).Also Halide free and fully Green.
3. Tape & Reel.
Package Type
32A
32-lead, Thin (1.0mm) Plastic Quad Flat Package (TQFP)
32MS1 32-pad, 5.0x5.0x0.9mm body, Lead Pitch 0.50mm, Very-thin Fine pitch, Quad Flat No Lead
Package (VFQFN)
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
7
4.
Block Diagram
Figure 4-1. Block Diagram
SRAM
debugWire
CPU
OCD
PARPROG
SPIPROG
XTAL1 /
TOSC1
Clock generation
32.768kHz
XOSC
XTAL2 /
TOSC2
VCC
RESET
GND
16MHz LP
XOSC
FLASH
NVM
programming
8MHz
Calib RC
External
clock
128kHz int
osc
Power
Supervision
POR/BOD &
RESET
ADC[7:0]
AREF
OC1A/B
T1
ICP1
OC2A
OC2B
Power
management
and clock
control
D
A
T
A
B
U
S
EEPROM
EEPROMIF
I/O
PORTS
I
N
/
O
U
T
GPIOR[2:0]
D
A
T
A
B
U
S
TC 0
(8-bit)
Watchdog
Timer
TC 1
(16-bit)
TC 2
(8-bit async)
EXTINT
OC0A
OC0B
T0
SPI
MISO
MOSI
SCK
SS
AC
AIN0
AIN1
ACO
ADCMUX
Internal
Reference
ADC
PB[7:0]
PC[6:0]
PD[7:0]
PE[3:0]
INT[1:0]
PCINT[23:16], PCINT[14:0]
USART 0
RxD0
TxD0
XCK0
TWI
SDA
SCL
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
8
Pin Configurations
PD2 (INT0/PCINT18)
PD1 (TXD/PCINT17)
PD0 (RXD/PCINT16)
PC6 (RESET/PCINT14)
PC5 (ADC5/SCL/PCINT13)
PC4 (ADC4/SDA/PCINT12)
PC3 (ADC3/PCINT11)
PC2 (ADC2/PCINT10)
32
31
30
29
28
27
26
25
Figure 5-1. 32 TQFP Pinout ATmega48PB/88PB/168PB
GND
GND
5
20
AREF
PE1
6
19
PE2 (ADC6)
(PCINT6/XTAL1/TOSC1) PB6
7
18
AVCC
(PCINT7/XTAL2/TOSC2) PB7
8
17
PB5 (SCK/PCINT5)
16
21
(PCINT4/MISO) PB4
4
15
VCC
(PCINT3/MOSI/OC2A) PB3
PE3 (ADC7)
14
22
(PCINT2/SS/OC1B) PB2
3
13
(ACO) PE0
(PCINT1/OC1A) PB1
PC0 (ADC0/PCINT8)
12
23
(PCINT0/CLKO/ICP1) PB0
2
11
(PCINT20/XCK/T0) PD4
(PCINT23/AIN1) PD7
PC1 (ADC1/PCINT9)
10
24
(PCINT22/OC0A/AIN0) PD6
1
9
(PCINT19/OC2B/INT1) PD3
(PCINT21/OC0B/T1) PD5
5.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
9
PD2 (INT0/PCINT18)
PD1 (TXD/PCINT17)
PD0 (RXD/PCINT16)
PC6 (RESET/PCINT14)
PC5 (ADC5/SCL/PCINT13)
PC4 (ADC4/SDA/PCINT12)
PC3 (ADC3/PCINT11)
PC2 (ADC2/PCINT10)
32
31
30
29
28
27
26
25
Figure 5-2. 32 VQFN Pinout ATmega48PB/88PB/168PB
GND
5
20
AREF
PE1
6
19
PE2 (ADC6)
(PCINT6/XTAL1/TOSC1) PB6
7
18
AVCC
(PCINT7/XTAL2/TOSC2) PB7
8
17
PB5 (SCK/PCINT5)
NOTE:
Bottom pad should be
soldered to ground
5.1.
Pin Descriptions
5.1.1.
VCC
Digital supply voltage.
5.1.2.
GND
Ground.
16
GND
(PCINT4/MISO) PB4
21
15
4
(PCINT3/MOSI/OC2A) PB3
VCC
14
PE3 (ADC7)
(PCINT2/SS/OC1B) PB2
22
13
3
(PCINT1/OC1A) PB1
(ACO) PE0
12
PC0 (ADC0/PCINT8)
(PCINT0/CLKO/ICP1) PB0
23
11
2
(PCINT23/AIN1) PD7
(PCINT20/XCK/T0) PD4
10
PC1 (ADC1/PCINT9)
(PCINT22/OC0A/AIN0) PD6
24
9
1
(PCINT21/OC0B/T1) PD5
(PCINT19/OC2B/INT1) PD3
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
10
5.1.3.
Port B (PB[7:0]) XTAL1/XTAL2/TOSC1/TOSC2
Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port B
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Port B pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
B pins are tri-stated when a reset condition becomes active, even if the clock is not running.
Depending on the clock selection fuse settings, PB6 can be used as input to the inverting Oscillator
amplifier and input to the internal clock operating circuit.
Depending on the clock selection fuse settings, PB7 can be used as output from the inverting Oscillator
amplifier.
If the Internal Calibrated RC Oscillator is used as chip clock source, PB[7:6] is used as TOSC[2:1] input
for the Asynchronous Timer/Counter2 if the AS2 bit in ASSR is set.
5.1.4.
Port C (PC[5:0])
Port C is a 7-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The PC[5:0]
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Port C pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
C pins are tri-stated when a reset condition becomes active, even if the clock is not running.
5.1.5.
PC6/RESET
If the RSTDISBL Fuse is programmed, PC6 is used as an I/O pin. Note that the electrical characteristics
of PC6 differ from those of the other pins of Port C.
If the RSTDISBL Fuse is unprogrammed, PC6 is used as a Reset input. A low level on this pin for longer
than the minimum pulse length will generate a Reset, even if the clock is not running. Shorter pulses are
not guaranteed to generate a Reset.
The various special features of Port C are elaborated in the Alternate Functions of Port C section.
5.1.6.
Port D (PD[7:0])
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port D
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Port D pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
D pins are tri-stated when a reset condition becomes active, even if the clock is not running.
5.1.7.
Port E (PE[3:0])
Port E is an 4-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port E
output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs,
Port E pins that are externally pulled low will source current if the pull-up resistors are activated. The Port
E pins are tri-stated when a reset condition becomes active, even if the clock is not running.
5.1.8.
AVCC
AVCC is the supply voltage pin for the A/D Converter, PC[3:0], and PE[3:2]. It should be externally
connected to VCC, even if the ADC is not used. If the ADC is used, it should be connected to VCC through
a low-pass filter. Note that PC[6:4] use digital supply voltage, VCC.
5.1.9.
AREF
AREF is the analog reference pin for the A/D Converter.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
11
5.1.10.
ADC[7:6] (TQFP and VFQFN Package Only)
In the TQFP and VFQFN package, ADC[7:6] serve as analog inputs to the A/D converter. These pins are
powered from the analog supply and serve as 10-bit ADC channels.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
12
6.
I/O Multiplexing
Each pin is by default controlled by the PORT as a general purpose I/O and alternatively it can be
assigned to one of the peripheral functions.
The following table describes the peripheral signals multiplexed to the PORT I/O pins.
Table 6-1. PORT Function Multiplexing
No
PAD
EXTINT
PCINT
1
PD[3]
INT1
PCINT19
OC2B
2
PD[4]
PCINT20
T0
3
PE[0]
PCINT24
4
VCC
5
GND
6
PE[1]
PCINT25
7
PB[6]
PCINT6
XTAL1/TOSC1
8
PB[7]
PCINT7
XTAL2/TOSC2
9
PD[5]
PCINT21
10
PD[6]
PCINT22
AIN0
11
PD[7]
PCINT23
AIN1
12
PB[0]
PCINT0
13
PB[1]
PCINT1
OC1A
14
PB[2]
PCINT2
OC1B
15
PB[3]
PCINT3
OC2A
16
PB[4]
17
PB[5]
18
AVCC
19
PE[2]
20
AREF
21
GND
22
ADC/AC
OSC
T/C # 0
ACO
OC0B
T/C # 1
USART
I2C
SPI
XCK0
ICP4
SDA1
TC4
SCL1
T1
OC0A
CLKO
ICP1
SS0
TXD1
MOSI0
PCINT4
RXD1
MISO0
PCINT5
XCK0
SCK0
PCINT26
ADC6
ICP3
SS1
PE[3]
PCINT27
ADC7
T3
MOSI1
23
PC[0]
PCINT8
ADC0
MISO1
24
PC[1]
PCINT9
ADC1
SCK1
25
PC[2]
PCINT10
ADC2
26
PC[3]
PCINT11
ADC3
27
PC[4]
PCINT12
ADC4
SDA0
28
PC[5]
PCINT13
ADC5
SCL0
29
PC[6]/RESET
PCINT14
30
PD[0]
PCINT16
31
PD[1]
PCINT17
32
PD[2]
INT0
PCINT18
OC3A
RXD0
OC4A
OC3B
TXD0
OC4B
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
13
7.
Comparison Between Processors
The ATmega48PB/88PB/168PB differ only in memory sizes, boot loader support, and interrupt vector
sizes. The table below summarizes the different memory and interrupt vector sizes for the devices.
Table 7-1. Memory Size Summary
Device
Flash
EEPROM
RAM
Interrupt Vector Size
ATmega48PB
4KBytes
256Bytes
512Bytes
1 instruction word/vector
ATmega88PB
8KBytes
512Bytes
1KBytes
1 instruction word/vector
ATmega168PB
16KBytes
512Bytes
1KBytes
2 instruction words/vector
ATmega88PB/168PB support a real Read-While-Write Self-Programming Mechanism (SPM). The SPM
instruction can only execute from the separate Boot Loader Section. In ATmega48PB there is no ReadWhile-Write support and no separate Boot Loader Section. The SPM instruction can execute from the
entire Flash.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
14
8.
Resources
A comprehensive set of development tools, application notes and datasheets are available for download
on http://www.atmel.com/avr.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
15
9.
Data Retention
Reliability Qualification results show that the projected data retention failure rate is much less than 1 PPM
over 20 years at 85°C or 100 years at 25°C.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
16
10.
About Code Examples
This documentation contains simple code examples that briefly show how to use various parts of the
device. These code examples assume that the part specific header file is included before compilation. Be
aware that not all C compiler vendors include bit definitions in the header files and interrupt handling in C
is compiler dependent. Confirm with the C compiler documentation for more details.
For I/O Registers located in extended I/O map, “IN”, “OUT”, “SBIS”, “SBIC”, “CBI”, and “SBI” instructions
must be replaced with instructions that allow access to extended I/O. Typically “LDS” and “STS”
combined with “SBRS”, “SBRC”, “SBR”, and “CBR”.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
17
11.
11.1.
Capacitive Touch Sensing
QTouch Library
®
®
The Atmel QTouch Library provides a simple to use solution to realize touch sensitive interfaces on
®
most Atmel AVR microcontrollers. The QTouch Library includes support for the Atmel QTouch and Atmel
®
QMatrix acquisition methods.
Touch sensing can be added to any application by linking the appropriate Atmel QTouch Library for the
AVR Microcontroller. This is done by using a simple set of APIs to define the touch channels and sensors,
and then calling the touch sensing API’s to retrieve the channel information and determine the touch
sensor states.
The QTouch Library is FREE and downloadable from the Atmel website at the following location: http://
www.atmel.com/technologies/touch/. For implementation details and other information, refer to the Atmel
QTouch Library User Guide - also available for download from the Atmel website.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
18
12.
Packaging Information
12.1.
32A
PIN 1 IDENTIFIER
PIN 1
e
B
E1
E
D1
D
C
0°~7°
L
A1
A2
A
COMMON DIMENSIONS
(Unit of measure = mm)
Notes:
1. This package conforms to JEDEC reference MS-026, Variation ABA.
2. Dimensions D1 and E1 do not include mold protrusion.
Allowable
protrusion is 0.25mm per side. Dimensions D1 and E1 are maximum
plastic body size dimensions including mold mismatch.
3. Lead coplanarity is 0.10mm maximum.
SYMBOL
MIN
NOM
MAX
A
–
–
1.20
A1
0.05
–
0.15
A2
0.95
1.00
1.05
D
8.75
9.00
9.25
D1
6.90
7.00
7.10
E
8.75
9.00
9.25
E1
6.90
7.00
7.10
–
0.45
–
0.20
–
0.75
B
0.30
C
0.09
L
0.45
e
NOTE
Note 2
Note 2
0.80 TYP
2010-10-20
TITLE
32A, 32-lead, 7 x 7mm body size, 1.0mm body thickness,
0.8mm lead pitch, thin profile plastic quad flat package (TQFP)
DRAWING NO.
REV.
32A
C
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
19
32MS1
TOP VIEW
SIDE VIEW
C
D
0.08 C
32
1
2
PIN 1 ID
E
2X
0.10 C
2X
A3
A1
0.10 C
BOTTOM VIEW
A
L (32X)
D2
0.10 C
SEATING PLANE
12.2.
e e/2
E2
COMMON DIMENSIONS
(Unit of Measure = mm)
2
1
Pin 1 Corner
32
K
See Option A,B
Option A
Option B
PIN # 1 ID
Chamfer
(C 0.30)
b (32X)
PIN # 1 ID
Notch
(R 0.20)
SYMBOL
MIN
TYP
MAX
A
0.80
-
0.90
A1
0.00
-
0.05
A3
b
1
1
32
32
NOTE:
1. Refer to JEDEC Drawing MO-220, Variation VHHD-2 (Figure 1/Saw
Singulation)
2. Dimension “b” applies to metalized terminal and is measured between
0.15mm and 0.30mm from the terminal tip. If the terminal has the
optional radius on the other end of the terminal, the dimensions
should not be measured in that radius area.
NOTE
0.20 REF
0.18
0.25
0.30
D
4.90
5.00
5.10
D2
3.00
3.10
3.20
E
4.90
5.00
5.10
E2
3.00
3.10
3.20
e
-
0.50
-
L
0.30
0.40
0.50
K
0.20
-
-
2
12/4/13
TITLE
Package Drawing Contact:
[email protected]
32MS1, 32-pad 5.0x5.0x0.9 mm Body, 0.50mm pitch, 3.1x3.1
mm Exposed pad, Saw Singulated Thermally Enhanced
Plastic Very-thin Fine pitch, Quad Flat No Lead package
(VFQFN)
GPC
DRAWING NO.
REV.
ZMF
32MS1
A
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
20
13.
Errata
13.1.
Errata ATmega48PB
The revision letter in this section refers to the revision of the ATmega48PB device.
13.1.1.
Rev. A
– Wrong device ID when using debugWire
– Power consumption in power save modes
– USART start-up functionality not working
– External capacitor on AREF pin
1.) Wrong device ID when using debugWire
The device ID returned using debugWire is incorrect.
Problem Fix/Workaround
None.
2.) Power consumption in power save modes
Power consumption in power save modes will be higher due to improper control of internal power
management.
Problem Fix/Workaround
None.
3.) USART start-up functionality not working
While in power save modes, the USART start bit detection logic fails to wakeup the device.
Problem Fix/Workaround
None.
4.) External capacitor on AREF pin
If an external capacitor is used on the analog reference pin (AREF), it should be equal to or larger than
100nF. Smaller capacitor value can make the AREF buffer unstable with large ringing which will reduce
the accuracy of the ADC.
Problem Fix/Workaround
None.
13.1.2.
Rev. B
– External capacitor on AREF pin
1.) External capacitor on AREF pin
If an external capacitor is used on the analog reference pin (AREF), it should be equal to or larger than
100nF. Smaller capacitor value can make the AREF buffer unstable with large ringing which will reduce
the accuracy of the ADC.
Problem Fix/Workaround
None.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
21
13.1.3.
Rev. C
No known errata.
13.1.4.
Rev. D to J
Not sampled.
13.1.5.
Rev. K
No known errata.
13.2.
Errata ATmega88PB
The revision letter in this section refers to the revision of the ATmega88PB device.
13.2.1.
Rev. A
– Wrong device ID when using debugWire
– Power consumption in power save modes
– USART start-up functionality not working
– External capacitor on AREF pin
1.) Wrong device ID when using debugWire
The device ID returned using debugWire is incorrect.
Problem Fix/Workaround
None.
2.) Power consumption in power save modes
Power consumption in power save modes will be higher due to improper control of internal power
management.
Problem Fix/Workaround
None.
3.) USART start-up functionality not working
While in power save modes, the USART start bit detection logic fails to wakeup the device.
Problem Fix/Workaround
None.
4.) External capacitor on AREF pin
If an external capacitor is used on the analog reference pin (AREF), it should be equal to or larger than
100nF. Smaller capacitor value can make the AREF buffer unstable with large ringing which will reduce
the accuracy of the ADC.
Problem Fix/Workaround
None.
13.2.2.
Rev. B
– External capacitor on AREF pin
1.) External capacitor on AREF pin
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
22
If an external capacitor is used on the analog reference pin (AREF), it should be equal to or larger than
100nF. Smaller capacitor value can make the AREF buffer unstable with large ringing which will reduce
the accuracy of the ADC.
Problem Fix/Workaround
None.
13.2.3.
Rev. C
No known errata.
13.2.4.
Rev. D to J
Not sampled.
13.2.5.
Rev. K
No known errata.
13.3.
Errata ATmega168PB
The revision letter in this section refers to the revision of the ATmega168PB device.
13.3.1.
Rev. A
– Wrong device ID when using debugWire
– Power consumption in power save modes
– USART start-up functionality not working
– External capacitor on AREF pin
1.) Wrong device ID when using debugWire
The device ID returned using debugWire is incorrect.
Problem Fix/Workaround
None.
2.) Power consumption in power save modes
Power consumption in power save modes will be higher due to improper control of internal power
management.
Problem Fix/Workaround
None
3.) USART start-up functionality not working
While in power save modes, the USART start bit detection logic fails to wakeup the device.
Problem Fix/Workaround
None.
4.) External capacitor on AREF pin
If an external capacitor is used on the analog reference pin (AREF), it should be equal to or larger than
100nF. Smaller capacitor value can make the AREF buffer unstable with large ringing which will reduce
the accuracy of the ADC.
Problem Fix/Workaround
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
23
None.
13.3.2.
Rev. B
– Power consumption in power save modes
– External capacitor on AREF pin
1.) Power consumption in power save modes
Power consumption in power save modes will be higher due to improper control of internal power
management.
Problem Fix/Workaround
None
2.) External capacitor on AREF pin
If an external capacitor is used on the analog reference pin (AREF), it should be equal to or larger than
100nF. Smaller capacitor value can make the AREF buffer unstable with large ringing which will reduce
the accuracy of the ADC.
Problem Fix/Workaround
None.
13.3.3.
Rev. C
– External capacitor on AREF pin
1.) External capacitor on AREF pin
If an external capacitor is used on the analog reference pin (AREF), it should be equal to or larger than
100nF. Smaller capacitor value can make the AREF buffer unstable with large ringing which will reduce
the accuracy of the ADC.
Problem Fix/Workaround
None.
13.3.4.
Rev. D
No known errata.
13.3.5.
Rev. D to M
Not sampled.
13.3.6.
Rev. N
No known errata.
Atmel ATmega48PB/88PB/168PB [DATASHEET]
Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
24
Atmel Corporation
©
1600 Technology Drive, San Jose, CA 95110 USA
T: (+1)(408) 441.0311
F: (+1)(408) 436.4200
|
www.atmel.com
2016 Atmel Corporation. / Rev.: Atmel-42176G-ATmega48PB/88PB/168PB_Datasheet_Summary-03/2016
®
®
®
Atmel , Atmel logo and combinations thereof, Enabling Unlimited Possibilities , AVR , and others are registered trademarks or trademarks of Atmel Corporation in
U.S. and other countries. Other terms and product names may be trademarks of others.
DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any
intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND
CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED
OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS
INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED
OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this
document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to
update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive
applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in connection with any
applications where the failure of such products would reasonably be expected to result in significant personal injury or death (“Safety-Critical Applications”) without
an Atmel officer's specific written consent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the
operation of nuclear facilities and weapons systems. Atmel products are not designed nor intended for use in military or aerospace applications or environments
unless specifically designated by Atmel as military-grade. Atmel products are not designed nor intended for use in automotive applications unless specifically
designated by Atmel as automotive-grade.