Datasheet
50
ATtiny828 [DATASHEET]
8371A–AVR–08/12
Table 17. Reset and Interrupt Vector Placement
Note: 1. For the BOOTRST fuse “1” means unprogrammed while “0” means programmed.
2. The boot reset address is shown in Table 82 on page 217.
The following is a program example for the case where:
z The BOOTRST fuse is unprogrammed
z Boot section size set to 2K bytes
z The IVSEL bit in MCUCR is set before any interrupts are enabled
Note: See “Code Examples” on page 7.
The following is a program example for the case where:
z The BOOTRST fuse is programmed
z Boot section size set to 2K bytes
BOOTRST
(1)
IVSEL Reset Address Start of Interrupt Vector Table
1 0 0x000 0x001
1 1 0x000 Boot reset address
(2)
+ 0x001
0 0 Boot reset address
(2)
0x001
0 1 Boot reset address
(2)
Boot reset address
(2)
+ 0x001
Assembly Code Example
.org 0x0000 ; Set address of next statement
RESET: ; Main program start
<instr> ; Address 0x0000
...
.org 0x0C01 ; Set address of next statement
rjmp INT0_ISR ; Address 0x0C01
rjmp INT1_ISR ; Address 0x0C02
...
rjmp SPM_RDY_ISR ; Address 0x0C18
rjmp RESERVED ; Address 0x0C19