51
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P [DATASHEET]
8285E–AVR–02/2013
12. Interrupts
T h is se ction de scrib es th e spe c ifics of the inte rru pt ha ndlin g a s pe rfo r m e d in Atm e l
ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P. For a general explanation of the
12.1
Interrupt vectors
Notes:
1. When the BOOTRST Fuse is programmed, the device will jump to the Boot Loader address at reset, see
”Boot2. When the IVSEL bit in MCUCR is set, Interrupt Vectors will be moved to the start of the Boot Flash Section. The
address of each Interrupt Vector will then be the address in this table added to the start address of the Boot Flash
Section.
Table 12-1.
Reset and interrupt vectors.
Vector
no.
Program
Source
Interrupt definition
1
RESET
External Pin, Power-on Reset, Brown-out Reset,
Watchdog Reset, and JTAG AVR Reset
2
0x0002
INT0
External Interrupt Request 0
3
0x0004
PCINT0
Pin Change Interrupt Request 0
4
0x0006
PCINT1
Pin Change Interrupt Request 1
5
0x0008
TIMER2 COMP
Timer/Counter2 Compare Match
6
0x000A
TIMER2 OVF
Timer/Counter2 Overflow
7
0x000C
TIMER1 CAPT
Timer/Counter1 Capture Event
8
0x000E
TIMER1 COMPA
Timer/Counter1 Compare Match A
9
0x0010
TIMER1 COMPB
Timer/Counter1 Compare Match B
10
0x0012
TIMER1 OVF
Timer/Counter1 Overflow
11
0x0014
TIMER0 COMP
Timer/Counter0 Compare Match
12
0x0016
TIMER0 OVF
Timer/Counter0 Overflow
13
0x0018
SPI, STC
SPI Serial Transfer Complete
14
0x001A
USART, RX
USART0, Rx Complete
15
0x001C
USART, UDREn
USART0 Data Register Empty
16
0x001E
USART, TX
USART0, Tx Complete
17
0x0020
USI START
USI Start Condition
18
0x0022
USI OVERFLOW
USI Overflow
19
0x0024
ANALOG COMP
Analog Comparator
20
0x0026
ADC
ADC Conversion Complete
21
0x0028
EE READY
EEPROM Ready
22
0x002A
SPM READY
Store Program Memory Ready
23
0x002C
NOT_USED
RESERVED
24
0x002E
PCINT2
Pin Change Interrupt Request 2
25
0x0030
PCINT3
Pin Change Interrupt Request 3