Datasheet

ATmega48/88/168 Automotive [DATASHEET]
7530K–AVR–07/14
50
Table 9-3 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.
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
Table 9-3. Reset and Interrupt Vectors Placement in ATmega88
(1)
BOOTRST IVSEL Reset Address Interrupt Vectors Start Address
1 0 0x000 0x001
1 1 0x000 Boot reset address + 0x001
0 0 Boot reset address 0x001
0 1 Boot reset address Boot reset address + 0x001
Note: 1. The boot reset address is shown in Table 24-6 on page 240. For the BOOTRST fuse “1” means unpro-
grammed while “0” means programmed.
Table 9-2. Reset and Interrupt Vectors in ATmega88 (Continued)
Vector No. Program Address
(2)
Source Interrupt Definition
Notes: 1. When the BOOTRST fuse is programmed, the device will jump to the boot loader address at reset, see
Section 24. “Boot Loader Support – Read-While-Write Self-Programming, ATmega88 and ATmega168” on
page 229.
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.