Datasheet
ATmega48PA/88PA/168PA [DATASHEET]
9223F–AVR–04/14
50
12. Interrupts
This section describes the specifics of the interrupt handling as performed in the Atmel
®
ATmega48PA/88PA/168PA. For a
general explanation of the AVR
®
interrupt handling, refer to Section 7.7 “Reset and Interrupt Handling” on page 14.
The interrupt vectors in the Atmel ATmega48PA, Atmel ATmega88PA, and ATmega168PA are generally the same, with the
following differences:
● Each interrupt vector occupies two instruction words in Atmel ATmega168PA and one instruction word in the Atmel
ATmega48PA and Atmel ATmega88PA.
● Atmel ATmega48PA does not have a separate boot loader section. In the Atmel ATmega88PA, and Atmel
ATmega168PA, the reset vector is affected by the BOOTRST fuse, and the interrupt vector start address is affected
by the IVSEL bit in MCUCR.
12.1 Interrupt Vectors in Atmel ATmega48PA
Table 12-1. Reset and Interrupt Vectors in ATmega48PA
Vector No. Program Address Source Interrupt Definition
1 0x000 RESET
External pin, power-on reset, brown-out reset and watchdog system
reset
2 0x001 INT0 External interrupt request 0
3 0x002 INT1 External interrupt request 1
4 0x003 PCINT0 Pin change interrupt request 0
5 0x004 PCINT1 Pin change interrupt request 1
6 0x005 PCINT2 Pin change interrupt request 2
7 0x006 WDT Watchdog time-out interrupt
8 0x007 TIMER2 COMPA Timer/Counter2 compare match A
9 0x008 TIMER2 COMPB Timer/Counter2 compare match B
10 0x009 TIMER2 OVF Timer/Counter2 overflow
11 0x00A TIMER1 CAPT Timer/Counter1 capture event
12 0x00B TIMER1 COMPA Timer/Counter1 compare match A
13 0x00C TIMER1 COMPB Timer/coutner1 compare match B
14 0x00D TIMER1 OVF Timer/Counter1 overflow
15 0x00E TIMER0 COMPA Timer/Counter0 compare match A
16 0x00F TIMER0 COMPB Timer/Counter0 compare match B
17 0x010 TIMER0 OVF Timer/Counter0 overflow
18 0x011 SPI, STC SPI serial transfer complete
19 0x012 USART, RX USART Rx complete
20 0x013 USART, UDRE USART, data register empty
21 0x014 USART, TX USART, Tx complete
22 0x015 ADC ADC conversion complete
23 0x016 EE READY EEPROM ready
24 0x017 ANALOG COMP Analog comparator
25 0x018 TWI 2-wire serial interface
26 0x019 SPM READY Store program memory ready