Features
1. Pin Configurations
1.1 Pin Descriptions
1.1.1 VCC
1.1.2 GND
1.1.3 Port B (PB7:0) XTAL1/XTAL2/TOSC1/TOSC2
1.1.4 Port C (PC5:0)
1.1.5 PC6/RESET
1.1.6 Port D (PD7:0)
1.1.7 AVCC
1.1.8 AREF
1.1.9 ADC7:6 (TQFP and QFN/MLF Package Only)
2. Overview
2.1 Block Diagram
2.2 Comparison Between Processors
3. Resources
4. Data Retention
5. About Code Examples
6. Capacitive Touch Sensing
7. AVR CPU Core
7.1 Overview
7.2 ALU – Arithmetic Logic Unit
7.3 Status Register
7.3.1 SREG – AVR Status Register
7.4 General Purpose Register File
7.4.1 The X-register, Y-register, and Z-register
7.5 Stack Pointer
7.5.1 SPH and SPL – Stack Pointer High and Stack Pointer Low Register
7.6 Instruction Execution Timing
7.7 Reset and Interrupt Handling
7.7.1 Interrupt Response Time
8. AVR Memories
8.1 Overview
8.2 In-System Reprogrammable Flash Program Memory
8.3 SRAM Data Memory
8.3.1 Data Memory Access Times
8.4 EEPROM Data Memory
8.4.1 EEPROM Read/Write Access
8.4.2 Preventing EEPROM Corruption
8.5 I/O Memory
8.5.1 General Purpose I/O Registers
8.6 Register Description
8.6.1 EEARH and EEARL – The EEPROM Address Register
8.6.2 EEDR – The EEPROM Data Register
8.6.3 EECR – The EEPROM Control Register
8.6.4 GPIOR2 – General Purpose I/O Register 2
8.6.5 GPIOR1 – General Purpose I/O Register 1
8.6.6 GPIOR0 – General Purpose I/O Register 0
9. System Clock and Clock Options
9.1 Clock Systems and their Distribution
9.1.1 CPU Clock – clkCPU
9.1.2 I/O Clock – clkI/O
9.1.3 Flash Clock – clkFLASH
9.1.4 Asynchronous Timer Clock – clkASY
9.1.5 ADC Clock – clkADC
9.2 Clock Sources
9.2.1 Default Clock Source
9.2.2 Clock Startup Sequence
9.3 Low Power Crystal Oscillator
9.4 Full Swing Crystal Oscillator
9.5 Low Frequency Crystal Oscillator
9.6 Calibrated Internal RC Oscillator
9.7 128kHz Internal Oscillator
9.8 External Clock
9.9 Clock Output Buffer
9.10 Timer/Counter Oscillator
9.11 System Clock Prescaler
9.12 Register Description
9.12.1 OSCCAL – Oscillator Calibration Register
9.12.2 CLKPR – Clock Prescale Register
10. Power Management and Sleep Modes
10.1 Sleep Modes
10.2 BOD Disable(1)
10.3 Idle Mode
10.4 ADC Noise Reduction Mode
10.5 Power-down Mode
10.6 Power-save Mode
10.7 Standby Mode
10.8 Extended Standby Mode
10.9 Power Reduction Register
10.10 Minimizing Power Consumption
10.10.1 Analog to Digital Converter
10.10.2 Analog Comparator
10.10.3 Brown-out Detector
10.10.4 Internal Voltage Reference
10.10.5 Watchdog Timer
10.10.6 Port Pins
10.10.7 On-chip Debug System
10.11 Register Description
10.11.1 SMCR – Sleep Mode Control Register
10.11.2 MCUCR – MCU Control Register
10.11.3 PRR – Power Reduction Register
11. System Control and Reset
11.1 Resetting the AVR
11.2 Reset Sources
11.3 Power-on Reset
11.4 External Reset
11.5 Brown-out Detection
11.6 Watchdog System Reset
11.7 Internal Voltage Reference
11.7.1 Voltage Reference Enable Signals and Start-up Time
11.8 Watchdog Timer
11.8.1 Features
11.8.2 Overview
11.9 Register Description
11.9.1 MCUSR – MCU Status Register
11.9.2 WDTCSR – Watchdog Timer Control Register
12. Interrupts
12.1 Interrupt Vectors in ATmega48A and ATmega48PA
12.2 Interrupt Vectors in ATmega88A and ATmega88PA
12.3 Interrupt Vectors in ATmega168A and ATmega168PA
12.4 Interrupt Vectors in ATmega328 and ATmega328P
12.5 Register Description
12.5.1 Moving Interrupts Between Application and Boot Space, ATmega88A/88PA, ATmega168A/168PA and ATmega328/328P
13. External Interrupts
13.1 Pin Change Interrupt Timing
13.2 Register Description
13.2.1 EICRA – External Interrupt Control Register A
13.2.2 EIMSK – External Interrupt Mask Register
13.2.3 EIFR – External Interrupt Flag Register
13.2.4 PCICR – Pin Change Interrupt Control Register
13.2.5 PCIFR – Pin Change Interrupt Flag Register
13.2.6 PCMSK2 – Pin Change Mask Register 2
13.2.7 PCMSK1 – Pin Change Mask Register 1
13.2.8 PCMSK0 – Pin Change Mask Register 0
14. I/O-Ports
14.1 Overview
14.2 Ports as General Digital I/O
14.2.1 Configuring the Pin
14.2.2 Toggling the Pin
14.2.3 Switching Between Input and Output
14.2.4 Reading the Pin Value
14.2.5 Digital Input Enable and Sleep Modes
14.2.6 Unconnected Pins
14.3 Alternate Port Functions
14.3.1 Alternate Functions of Port B
14.3.2 Alternate Functions of Port C
14.3.3 Alternate Functions of Port D
14.4 Register Description
14.4.1 MCUCR – MCU Control Register
14.4.2 PORTB – The Port B Data Register
14.4.3 DDRB – The Port B Data Direction Register
14.4.4 PINB – The Port B Input Pins Address(1)
14.4.5 PORTC – The Port C Data Register
14.4.6 DDRC – The Port C Data Direction Register
14.4.7 PINC – The Port C Input Pins Address(1)
14.4.8 PORTD – The Port D Data Register
14.4.9 DDRD – The Port D Data Direction Register
14.4.10 PIND – The Port D Input Pins Address(1)
15. 8-bit Timer/Counter0 with PWM
15.1 Features
15.2 Overview
15.2.1 Definitions
15.2.2 Registers
15.3 Timer/Counter Clock Sources
15.4 Counter Unit
15.5 Output Compare Unit
15.5.1 Force Output Compare
15.5.2 Compare Match Blocking by TCNT0 Write
15.5.3 Using the Output Compare Unit
15.6 Compare Match Output Unit
15.6.1 Compare Output Mode and Waveform Generation
15.7 Modes of Operation
15.7.1 Normal Mode
15.7.2 Clear Timer on Compare Match (CTC) Mode
15.7.3 Fast PWM Mode
15.7.4 Phase Correct PWM Mode
15.8 Timer/Counter Timing Diagrams
15.9 Register Description
15.9.1 TCCR0A – Timer/Counter Control Register A
15.9.2 TCCR0B – Timer/Counter Control Register B
15.9.3 TCNT0 – Timer/Counter Register
15.9.4 OCR0A – Output Compare Register A
15.9.5 OCR0B – Output Compare Register B
15.9.6 TIMSK0 – Timer/Counter Interrupt Mask Register
15.9.7 TIFR0 – Timer/Counter 0 Interrupt Flag Register
16. 16-bit Timer/Counter1 with PWM
16.1 Features
16.2 Overview
16.2.1 Registers
16.2.2 Definitions
16.3 Accessing 16-bit Registers
16.3.1 Reusing the Temporary High Byte Register
16.4 Timer/Counter Clock Sources
16.5 Counter Unit
16.6 Input Capture Unit
16.6.1 Input Capture Trigger Source
16.6.2 Noise Canceler
16.6.3 Using the Input Capture Unit
16.7 Output Compare Units
16.7.1 Force Output Compare
16.7.2 Compare Match Blocking by TCNT1 Write
16.7.3 Using the Output Compare Unit
16.8 Compare Match Output Unit
16.8.1 Compare Output Mode and Waveform Generation
16.9 Modes of Operation
16.9.1 Normal Mode
16.9.2 Clear Timer on Compare Match (CTC) Mode
16.9.3 Fast PWM Mode
16.9.4 Phase Correct PWM Mode
16.9.5 Phase and Frequency Correct PWM Mode
16.10 Timer/Counter Timing Diagrams
16.11 Register Description
16.11.1 TCCR1A – Timer/Counter1 Control Register A
16.11.2 TCCR1B – Timer/Counter1 Control Register B
16.11.3 TCCR1C – Timer/Counter1 Control Register C
16.11.4 TCNT1H and TCNT1L – Timer/Counter1
16.11.5 OCR1AH and OCR1AL – Output Compare Register 1 A
16.11.6 OCR1BH and OCR1BL – Output Compare Register 1 B
16.11.7 ICR1H and ICR1L – Input Capture Register 1
16.11.8 TIMSK1 – Timer/Counter1 Interrupt Mask Register
16.11.9 TIFR1 – Timer/Counter1 Interrupt Flag Register
17. Timer/Counter0 and Timer/Counter1 Prescalers
17.1 Internal Clock Source
17.2 Prescaler Reset
17.3 External Clock Source
17.4 Register Description
17.4.1 GTCCR – General Timer/Counter Control Register
18. 8-bit Timer/Counter2 with PWM and Asynchronous Operation
18.1 Features
18.2 Overview
18.2.1 Registers
18.2.2 Definitions
18.3 Timer/Counter Clock Sources
18.4 Counter Unit
18.5 Output Compare Unit
18.5.1 Force Output Compare
18.5.2 Compare Match Blocking by TCNT2 Write
18.5.3 Using the Output Compare Unit
18.6 Compare Match Output Unit
18.6.1 Compare Output Mode and Waveform Generation
18.7 Modes of Operation
18.7.1 Normal Mode
18.7.2 Clear Timer on Compare Match (CTC) Mode
18.7.3 Fast PWM Mode
18.7.4 Phase Correct PWM Mode
18.8 Timer/Counter Timing Diagrams
18.9 Asynchronous Operation of Timer/Counter2
18.10 Timer/Counter Prescaler
18.11 Register Description
18.11.1 TCCR2A – Timer/Counter Control Register A
18.11.2 TCCR2B – Timer/Counter Control Register B
18.11.3 TCNT2 – Timer/Counter Register
18.11.4 OCR2A – Output Compare Register A
18.11.5 OCR2B – Output Compare Register B
18.11.6 TIMSK2 – Timer/Counter2 Interrupt Mask Register
18.11.7 TIFR2 – Timer/Counter2 Interrupt Flag Register
18.11.8 ASSR – Asynchronous Status Register
18.11.9 GTCCR – General Timer/Counter Control Register
19. SPI – Serial Peripheral Interface
19.1 Features
19.2 Overview
19.3 SS Pin Functionality
19.3.1 Slave Mode
19.3.2 Master Mode
19.4 Data Modes
19.5 Register Description
19.5.1 SPCR – SPI Control Register
19.5.2 SPSR – SPI Status Register
19.5.3 SPDR – SPI Data Register
20. USART0
20.1 Features
20.2 Overview
20.3 Clock Generation
20.3.1 Internal Clock Generation – The Baud Rate Generator
20.3.2 Double Speed Operation (U2Xn)
20.3.3 External Clock
20.3.4 Synchronous Clock Operation
20.4 Frame Formats
20.4.1 Parity Bit Calculation
20.5 USART Initialization
20.6 Data Transmission – The USART Transmitter
20.6.1 Sending Frames with 5 to 8 Data Bit
20.6.2 Sending Frames with 9 Data Bit
20.6.3 Transmitter Flags and Interrupts
20.6.4 Parity Generator
20.6.5 Disabling the Transmitter
20.7 Data Reception – The USART Receiver
20.7.1 Receiving Frames with 5 to 8 Data Bits
20.7.2 Receiving Frames with 9 Data Bits
20.7.3 Receive Compete Flag and Interrupt
20.7.4 Receiver Error Flags
20.7.5 Parity Checker
20.7.6 Disabling the Receiver
20.7.7 Flushing the Receive Buffer
20.8 Asynchronous Data Reception
20.8.1 Asynchronous Clock Recovery
20.8.2 Asynchronous Data Recovery
20.8.3 Asynchronous Operational Range
20.9 Multi-processor Communication Mode
20.9.1 Using MPCMn
20.10 Examples of Baud Rate Setting
20.11 Register Description
20.11.1 UDRn – USART I/O Data Register n
20.11.2 UCSRnA – USART Control and Status Register n A
20.11.3 UCSRnB – USART Control and Status Register n B
20.11.4 UCSRnC – USART Control and Status Register n C
20.11.5 UBRRnL and UBRRnH – USART Baud Rate Registers
21. USART in SPI Mode
21.1 Features
21.2 Overview
21.3 Clock Generation
21.4 SPI Data Modes and Timing
21.5 Frame Formats
21.5.1 USART MSPIM Initialization
21.6 Data Transfer
21.6.1 Transmitter and Receiver Flags and Interrupts
21.6.2 Disabling the Transmitter or Receiver
21.7 AVR USART MSPIM vs. AVR SPI
21.8 Register Description
21.8.1 UDRn – USART MSPIM I/O Data Register
21.8.2 UCSRnA – USART MSPIM Control and Status Register n A
21.8.3 UCSRnB – USART MSPIM Control and Status Register n B
21.8.4 UCSRnC – USART MSPIM Control and Status Register n C
21.8.5 USART MSPIM Baud Rate Registers – UBRRnL and UBRRnH
22. 2-wire Serial Interface
22.1 Features
22.2 2-wire Serial Interface Bus Definition
22.2.1 TWI Terminology
22.2.2 Electrical Interconnection
22.3 Data Transfer and Frame Format
22.3.1 Transferring Bits
22.3.2 START and STOP Conditions
22.3.3 Address Packet Format
22.3.4 Data Packet Format
22.3.5 Combining Address and Data Packets into a Transmission
22.4 Multi-master Bus Systems, Arbitration and Synchronization
22.5 Overview of the TWI Module
22.5.1 SCL and SDA Pins
22.5.2 Bit Rate Generator Unit
22.5.3 Bus Interface Unit
22.5.4 Address Match Unit
22.5.5 Control Unit
22.6 Using the TWI
22.7 Transmission Modes
22.7.1 Master Transmitter Mode
22.7.2 Master Receiver Mode
22.7.3 Slave Receiver Mode
22.7.4 Slave Transmitter Mode
22.7.5 Miscellaneous States
22.7.6 Combining Several TWI Modes
22.8 Multi-master Systems and Arbitration
22.9 Register Description
22.9.1 TWBR – TWI Bit Rate Register
22.9.2 TWCR – TWI Control Register
22.9.3 TWSR – TWI Status Register
22.9.4 TWDR – TWI Data Register
22.9.5 TWAR – TWI (Slave) Address Register
22.9.6 TWAMR – TWI (Slave) Address Mask Register
23. Analog Comparator
23.1 Overview
23.2 Analog Comparator Multiplexed Input
23.3 Register Description
23.3.1 ADCSRB – ADC Control and Status Register B
23.3.2 ACSR – Analog Comparator Control and Status Register
23.3.3 DIDR1 – Digital Input Disable Register 1
24. Analog-to-Digital Converter
24.1 Features
24.2 Overview
24.3 Starting a Conversion
24.4 Prescaling and Conversion Timing
24.5 Changing Channel or Reference Selection
24.5.1 ADC Input Channels
24.5.2 ADC Voltage Reference
24.6 ADC Noise Canceler
24.6.1 Analog Input Circuitry
24.6.2 Analog Noise Canceling Techniques
24.6.3 ADC Accuracy Definitions
24.7 ADC Conversion Result
24.8 Temperature Measurement
24.9 Register Description
24.9.1 ADMUX – ADC Multiplexer Selection Register
24.9.2 ADCSRA – ADC Control and Status Register A
24.9.3 ADCL and ADCH – The ADC Data Register
24.9.4 ADCSRB – ADC Control and Status Register B
24.9.5 DIDR0 – Digital Input Disable Register 0
25. debugWIRE On-chip Debug System
25.1 Features
25.2 Overview
25.3 Physical Interface
25.4 Software Break Points
25.5 Limitations of debugWIRE
25.6 Register Description
25.6.1 DWDR – debugWire Data Register
26. Self-Programming the Flash, ATmega 48A/48PA
26.1 Overview
26.1.1 Performing Page Erase by SPM
26.1.2 Filling the Temporary Buffer (Page Loading)
26.1.3 Performing a Page Write
26.2 Addressing the Flash During Self-Programming
26.2.1 EEPROM Write Prevents Writing to SPMCSR
26.2.2 Reading the Fuse and Lock Bits from Software
26.2.3 Preventing Flash Corruption
26.2.4 Programming Time for Flash when Using SPM
26.2.5 Simple Assembly Code Example for a Boot Loader
26.3 Register Description
26.3.1 SPMCSR – Store Program Memory Control and Status Register
27. Boot Loader Support – Read-While-Write Self-Programming
27.1 Features
27.2 Overview
27.3 Application and Boot Loader Flash Sections
27.3.1 Application Section
27.3.2 BLS – Boot Loader Section
27.4 Read-While-Write and No Read-While-Write Flash Sections
27.4.1 RWW – Read-While-Write Section
27.4.2 NRWW – No Read-While-Write Section
27.5 Boot Loader Lock Bits
27.6 Entering the Boot Loader Program
27.7 Addressing the Flash During Self-Programming
27.8 Self-Programming the Flash
27.8.1 Performing Page Erase by SPM
27.8.2 Filling the Temporary Buffer (Page Loading)
27.8.3 Performing a Page Write
27.8.4 Using the SPM Interrupt
27.8.5 Consideration While Updating BLS
27.8.6 Prevent Reading the RWW Section During Self-Programming
27.8.7 Setting the Boot Loader Lock Bits by SPM
27.8.8 EEPROM Write Prevents Writing to SPMCSR
27.8.9 Reading the Fuse and Lock Bits from Software
27.8.10 Reading the Signature Row from Software
27.8.11 Preventing Flash Corruption
27.8.12 Programming Time for Flash when Using SPM
27.8.13 Simple Assembly Code Example for a Boot Loader
27.8.14 ATmega88A and ATmega88PA Boot Loader Parameters
27.8.15 ATmega168A and ATmega168PA Boot Loader Parameters
27.8.16 ATmega328 and ATmega328P Boot Loader Parameters
27.9 Register Description
27.9.1 SPMCSR – Store Program Memory Control and Status Register
28. Memory Programming
28.1 Program And Data Memory Lock Bits
28.2 Fuse Bits
28.2.1 Latching of Fuses
28.3 Signature Bytes
28.4 Calibration Byte
28.5 Page Size
28.6 Parallel Programming Parameters, Pin Mapping, and Commands
28.6.1 Signal Names
28.7 Parallel Programming
28.7.1 Enter Programming Mode
28.7.2 Considerations for Efficient Programming
28.7.3 Chip Erase
28.7.4 Programming the Flash
28.7.5 Programming the EEPROM
28.7.6 Reading the Flash
28.7.7 Reading the EEPROM
28.7.8 Programming the Fuse Low Bits
28.7.9 Programming the Fuse High Bits
28.7.10 Programming the Extended Fuse Bits
28.7.11 Programming the Lock Bits
28.7.12 Reading the Fuse and Lock Bits
28.7.13 Reading the Signature Bytes
28.7.14 Reading the Calibration Byte
28.7.15 Parallel Programming Characteristics
28.8 Serial Downloading
28.8.1 Serial Programming Pin Mapping
28.8.2 Serial Programming Algorithm
28.8.3 Serial Programming Instruction set
28.8.4 SPI Serial Programming Characteristics
29. Electrical Characteristics – (TA = -40°C to 85°C)
29.1 Absolute Maximum Ratings*
29.2 DC Characteristics
29.2.1 ATmega48A DC Characteristics
29.2.2 ATmega48PA DC Characteristics – Current Consumption
29.2.3 ATmega88A DC Characteristics
29.2.4 ATmega88PA DC Characteristics
29.2.5 ATmega168A DC Characteristics
29.2.6 ATmega168PA DC Characteristics
29.2.7 ATmega328 DC Characteristics
29.2.8 ATmega328P DC Characteristics
29.3 Speed Grades
29.4 Clock Characteristics
29.4.1 Calibrated Internal RC Oscillator Accuracy
29.4.2 External Clock Drive Waveforms
29.4.3 External Clock Drive
29.5 System and Reset Characteristics
29.6 SPI Timing Characteristics
29.7 Two-wire Serial Interface Characteristics
29.8 ADC Characteristics
29.9 Parallel Programming Characteristics
30. Electrical Characteristics (TA = -40°C to 105°C)
30.1 Absolute Maximum Ratings*
30.2 DC Characteristics
30.2.1 ATmega48PA DC Characteristics – Current Consumption
30.2.2 ATmega88PA DC Characteristics – Current Consumption
30.2.3 ATmega168PA DC Characteristics – Current Consumption
30.2.4 ATmega328P DC Characteristics – Current Consumption
31. Typical Characteristics – (TA = -40°C to 85°C)
31.1 ATmega48A Typical Characteristics
31.1.1 Active Supply Current
31.1.2 Idle Supply Current
31.1.3 ATmega48A: Supply Current of IO Modules
31.1.4 Power-down Supply Current
31.1.5 Power-save Supply Current
31.1.6 Standby Supply Current
31.1.7 Pin Pull-Up
31.1.8 Pin Driver Strength
31.1.9 Pin Threshold and Hysteresis
31.1.10 BOD Threshold
31.1.11 Internal Oscillator Speed
31.1.12 Current Consumption of Peripheral Units
31.1.13 Current Consumption in Reset and Reset Pulsewidth
31.2 ATmega48PA Typical Characteristics
31.2.1 Active Supply Current
31.2.2 Idle Supply Current
31.2.3 ATmega48PA: Supply Current of IO Modules
31.2.4 Power-down Supply Current
31.2.5 Power-save Supply Current
31.2.6 Standby Supply Current
31.2.7 Pin Pull-Up
31.2.8 Pin Driver Strength
31.2.9 Pin Threshold and Hysteresis
31.2.10 BOD Threshold
31.2.11 Internal Oscillator Speed
31.2.12 Current Consumption of Peripheral Units
31.2.13 Current Consumption in Reset and Reset Pulsewidth
31.3 ATmega88A Typical Characteristics
31.3.1 Active Supply Current
31.3.2 Idle Supply Current
31.3.3 ATmega88A: Supply Current of IO Modules
31.3.4 Power-down Supply Current
31.3.5 Power-save Supply Current
31.3.6 Standby Supply Current
31.3.7 Pin Pull-Up
31.3.8 Pin Driver Strength
31.3.9 Pin Threshold and Hysteresis
31.3.10 BOD Threshold
31.3.11 Internal Oscillator Speed
31.3.12 Current Consumption of Peripheral Units
31.3.13 Current Consumption in Reset and Reset Pulsewidth
31.4 ATmega88PA Typical Characteristics
31.4.1 Active Supply Current
31.4.2 Idle Supply Current
31.4.3 ATmega88PA: Supply Current of IO Modules
31.4.4 Power-down Supply Current
31.4.5 Power-save Supply Current
31.4.6 Standby Supply Current
31.4.7 Pin Pull-Up
31.4.8 Pin Driver Strength
31.4.9 Pin Threshold and Hysteresis
31.4.10 BOD Threshold
31.4.11 Internal Oscillator Speed
31.4.12 Current Consumption of Peripheral Units
31.4.13 Current Consumption in Reset and Reset Pulsewidth
31.5 ATmega168A Typical Characteristics
31.5.1 Active Supply Current
31.5.2 Idle Supply Current
31.5.3 ATmega168A Supply Current of IO Modules
31.5.4 Power-down Supply Current
31.5.5 Power-save Supply Current
31.5.6 Standby Supply Current
31.5.7 Pin Pull-Up
31.5.8 Pin Driver Strength
31.5.9 Pin Threshold and Hysteresis
31.5.10 BOD Threshold
31.5.11 Internal Oscillator Speed
31.5.12 Current Consumption of Peripheral Units
31.5.13 Current Consumption in Reset and Reset Pulsewidth
31.6 ATmega168PA Typical Characteristics
31.6.1 Active Supply Current
31.6.2 Idle Supply Current
31.6.3 ATmega168PA Supply Current of IO Modules
31.6.4 Power-down Supply Current
31.6.5 Power-save Supply Current
31.6.6 Standby Supply Current
31.6.7 Pin Pull-Up
31.6.8 Pin Driver Strength
31.6.9 Pin Threshold and Hysteresis
31.6.10 BOD Threshold
31.6.11 Internal Oscillator Speed
31.6.12 Current Consumption of Peripheral Units
31.6.13 Current Consumption in Reset and Reset Pulsewidth
31.7 ATmega328 Typical Characteristics
31.7.1 Active Supply Current
31.7.2 Idle Supply Current
31.7.3 ATmega328 Supply Current of IO Modules
31.7.4 Power-down Supply Current
31.7.5 Power-save Supply Current
31.7.6 Standby Supply Current
31.7.7 Pin Pull-Up
31.7.8 Pin Driver Strength
31.7.9 Pin Threshold and Hysteresis
31.7.10 BOD Threshold
31.7.11 Internal Oscillator Speed
31.7.12 Current Consumption of Peripheral Units
31.7.13 Current Consumption in Reset and Reset Pulsewidth
31.8 ATmega328P Typical Characteristics
31.8.1 Active Supply Current
31.8.2 Idle Supply Current
31.8.3 ATmega328P Supply Current of IO Modules
31.8.4 Power-down Supply Current
31.8.5 Power-save Supply Current
31.8.6 Standby Supply Current
31.8.7 Pin Pull-Up
31.8.8 Pin Driver Strength
31.8.9 Pin Threshold and Hysteresis
31.8.10 BOD Threshold
31.8.11 Internal Oscillator Speed
31.8.12 Current Consumption of Peripheral Units
31.8.13 Current Consumption in Reset and Reset Pulsewidth
32. ATmega48PA Typical Characteristics – (TA = -40°C to 105°C)
32.1 Active Supply Current
32.2 Idle Supply Current
32.3 Power-down Supply Current
32.4 Standby Supply Current
32.5 Pin Pull-Up
32.6 Pin Driver Strength
32.7 Pin Threshold and Hysteresis
32.8 BOD Threshold
32.9 Internal Oscillator Speed
32.10 Current Consumption of Peripheral Units
32.11 Current Consumption in Reset and Reset Pulsewidth
33. ATmega88PA Typical Characteristics – (TA = -40°C to 105°C)
33.1 Active Supply Current
33.2 Idle Supply Current
33.3 Power-down Supply Current
33.4 Power-save Supply Current
33.5 Pin Pull-Up
33.6 Pin Driver Strength
33.7 Pin Threshold and Hysteresis
33.8 BOD Threshold
33.9 Internal Oscillator Speed
33.10 Current Consumption of Peripheral Units
33.11 Current Consumption in Reset and Reset Pulsewidth
34. ATmega168PA Typical Characteristics – (TA = -40°C to 105°C)
34.1 Active Supply Current
34.2 Idle Supply Current
34.3 Power-down Supply Current
34.4 Power-save Supply Current
34.5 Standby Supply Current
34.6 Pin Pull-Up
34.7 Pin Driver Strength
34.8 Pin Threshold and Hysteresis
34.9 BOD Threshold
34.10 Internal Oscillator Speed
34.11 Current Consumption of Peripheral Units
34.12 Current Consumption in Reset and Reset Pulsewidth
35. ATmega328P Typical Characteristics – (TA = -40°C to 105°C)
35.1 ATmega328P Active Supply Current
35.2 Idle Supply Current
35.3 Power-down Supply Current
35.4 Power-save Supply Current
35.5 Standby Supply Current
35.6 Pin Pull-Up
35.7 Pin Driver Strength
35.8 Pin Threshold and Hysteresis
35.9 BOD Threshold
35.10 Internal Oscillator Speed
35.11 Current Consumption of Peripheral Units
35.12 Current Consumption in Reset and Reset Pulsewidth
36. Register Summary
37. Instruction Set Summary
38. Ordering Information
38.1 ATmega48A
38.2 ATmega48PA
38.3 ATmega88A
38.4 ATmega88PA
38.5 ATmega168A
38.6 ATmega168PA
38.7 ATmega328
38.8 ATmega328P
39. Packaging Information
39.1 32A
39.2 32CC1
39.3 28M1
39.4 32M1-A
39.5 28P3
40. Errata
40.1 Errata ATmega48A
40.1.1 Rev. D
40.2 Errata ATmega48PA
40.2.1 Rev. A
40.2.2 Rev. D
40.3 Errata ATmega88A
40.3.1 Rev. F
40.4 Errata ATmega88PA
40.4.1 Rev. F
40.4.2 Rev. A
40.5 Errata ATmega168A
40.5.1 Rev. E
40.6 Errata ATmega168PA
40.6.1 Rev E
40.7 Errata ATmega328
40.7.1 Rev D
40.7.2 Rev C
40.7.3 Rev B
40.7.4 Rev A
40.8 Errata ATmega328P
40.8.1 Rev D
40.8.2 Rev C
40.8.3 Rev B
40.8.4 Rev A
41. Datasheet Revision History
41.1 Rev. 8271I – 10/2014
41.2 Rev. 8271H – 08/2014
41.3 Rev. 8271G – 02/2013
41.4 Rev. 8271F – 08/2012
41.5 Rev. 8271E – 07/2012
41.6 Rev. 8271D – 05/11
41.7 Rev. 8271C – 08/10
41.8 Rev. 8271B – 04/10
41.9 Rev. 8271A – 12/09