Datasheet
Vector No Program Address Source Interrupts definition
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
Note:
1. When the BOOTRST Fuse is programmed, the device will jump to the Boot Loader address at
reset, see Memory programming
2. 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.
The table below shows reset and Interrupt Vectors placement for the various combinations of BOOTRST
and IVSEL settings. If the program never enables an interrupt source, the Interrupt Vectors are not used,
and regular program code can be placed at these locations. This is also the case if the Reset Vector is in
the Application section while the Interrupt Vectors are in the Boot section or vice versa.
Table 12-2. Reset and Interrupt Vectors placement
BOOTRST IVSEL Reset Address Interrupt Vectors Start Address
1 0 0x0000 0x0002
1 1 0x0000 Boot Reset Address + 0x0002
0 0 Boot Reset Address 0x0002
0 1 Boot Reset Address Boot Reset Address + 0x0002
Note: The Boot Reset Address is shown in Table Boot size configuration in Boot Loader Parameters.
For the BOOTRST Fuse “1” means unprogrammed while “0” means programmed.
The most typical and general program setup for the Reset and Interrupt Vector Addresses in this device
is:
Address Labels Code Comments
0x000 jmp RESET ; Reset Handler
0x002 jmp ANA_COMP_0 ; Analog Comparator 0 Handler
0x004 jmp ANA_COMP_1 ; Analog Comparator 1 Handler
0x006 jmp ANA_COMP_2 ; Analog Comparator 2 Handler
0x008 jmp ANA_COMP_3 ; Analog Comparator 3 Handler
0x00A jmp PSC_FAULT ; PSC Fault Handler
0x00C jmp PSC_EC ; PSC End of Cycle Handler
0x00E jmp EXT_INT0 ; IRQ0 Handler
0x010 jmp EXT_INT1 ; IRQ1 Handler
0x012 jmp EXT_INT2 ; IRQ2 Handler
0x014 jmp EXT_INT3 ; IRQ3 Handler
0x016 jmp TIM1_CAPT ; Timer1 Capture Handler
0x018 jmp TIM1_COMPA ; Timer1 Compare A Handler
0x01A jmp TIM1_COMPB ; Timer1 Compare B Handler
Atmel ATmega16M1/32M1/64M1 [DATASHEET]
Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Complete-10/2016
77