47
Atmel ATmega16/32/64/M1/C1 [DATASHEET]
7647K–AVR–12/13
8.
Interrupts
This section describes the specifics of the interrupt handling as performed in ATmega16/32/64/M1/C1. For a general
8.1
Interrupt Vectors in ATmega16/32/64/M1/C1
Table 8-1.
Reset and Interrupt Vectors
Vector
No.
Program
Address
Source
Interrupt Definition
1
0x0000
RESET
External pin, power-on reset, brown-out reset, watchdog reset, and
emulation AVR reset
2
0x0002
ANACOMP 0
Analog comparator 0
3
0x0004
ANACOMP 1
Analog comparator 1
4
0x0006
ANACOMP 2
Analog comparator 2
5
0x0008
ANACOMP 3
Analog comparator 3
6
0x000A
PSC FAULT(3)
PSC fault
7
0x000C
PSC EC(3)
PSC end of cycle
8
0x000E
INT0
External interrupt request 0
9
0x0010
INT1
External interrupt request 1
10
0x0012
INT2
External interrupt request 2
11
0x0014
INT3
External interrupt request 3
12
0x0016
TIMER1 CAPT
Timer/Counter1 capture event
13
0x0018
TIMER1 COMPA
Timer/Counter1 compare match A
14
0x001A
TIMER1 COMPB
Timer/Counter1 compare match B
15
0x001C
TIMER1 OVF
Timer/Counter1 overflow
16
0x001E
TIMER0 COMPA
Timer/Counter0 compare match A
17
0x0020
TIMER0 COMPB
Timer/Counter0 compare match B
18
0x0022
TIMER0 OVF
Timer/Counter0 overflow
19
0x0024
CAN INT
CAN MOB, burst, general errors
20
0x0026
CAN TOVF
CAN timer overflow
21
0x0028
LIN TC
LIN transfer complete
22
0x002A
LIN ERR
LIN error
23
0x002C
PCINT0
Pin change interrupt request 0
24
0x002E
PCINT1
Pin change interrupt request 1
25
0x0030
PCINT2
Pin change interrupt request 2
26
0x0032
PCINT3
Pin change interrupt request 3
27
0x0034
SPI, STC
SPI serial transfer complete
28
0x0036
ADC
ADC conversion complete
29
0x0038
WDT
Watchdog time-Out interrupt
30
0x003A
EE READY
EEPROM ready
31
0x003C
SPM READY
Store program memory ready
Notes: 1.
When the BOOTRST fuse is programmed, the device will jump to the boot loader address at reset, see
Section2.
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.
3.
These vectors are not used by Atmel ATmega32/64C1.