Datasheet
Table of Contents
Introduction......................................................................................................................1
Feature............................................................................................................................ 1
1. Description...............................................................................................................10
2. Configuration Summary........................................................................................... 11
3. Ordering Information ...............................................................................................12
3.1. ATmega48PA..............................................................................................................................12
3.2. ATmega88PA .............................................................................................................................13
3.3. ATmega168PA............................................................................................................................14
4. Block Diagram......................................................................................................... 15
5. Pin Configurations................................................................................................... 16
5.1. Pin-out........................................................................................................................................16
5.2. Pin Descriptions......................................................................................................................... 20
6. I/O Multiplexing........................................................................................................22
7. Resources............................................................................................................... 24
8. Data Retention.........................................................................................................25
9. About Code Examples.............................................................................................26
10. Capacitive Touch Sensing....................................................................................... 27
10.1. QTouch Library........................................................................................................................... 27
11. AVR CPU Core........................................................................................................ 28
11.1. Overview.................................................................................................................................... 28
11.2. Arithmetic Logic Unit (ALU)........................................................................................................ 29
11.3. Status Register...........................................................................................................................29
11.4. General Purpose Register File................................................................................................... 32
11.5. Stack Pointer..............................................................................................................................33
11.6. Instruction Execution Timing...................................................................................................... 35
11.7. Reset and Interrupt Handling..................................................................................................... 36
12. AVR Memories.........................................................................................................39
12.1. Overview.................................................................................................................................... 39
12.2. In-System Reprogrammable Flash Program Memory................................................................39
12.3. SRAM Data Memory.................................................................................................................. 40
12.4. EEPROM Data Memory............................................................................................................. 42
12.5. I/O Memory.................................................................................................................................43
12.6. Register Description................................................................................................................... 44
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40002011A-page 3