English
Language : 

MEGA128CAN Datasheet, PDF (57/413 Pages) ATMEL Corporation – Microcontroller WITH 128K BYTES OF ISP FLASH AND CAN CONTROLLER
4250E–CAN–12/04
AT90CAN128
Table 25. Reset and Interrupt Vectors (Continued)
Vector
No.
Program
Address(2)
Source
Interrupt Definition
30
0x003A TIMER3 COMPB Timer/Counter3 Compare Match B
31
0x003C TIMER3 COMPC Timer/Counter3 Compare Match C
32
0x003E TIMER3 OVF
Timer/Counter3 Overflow
33
0x0040 USART1, RX
USART1, Rx Complete
34
0x0042 USART1, UDRE USART1 Data Register Empty
35
0x0044 USART1, TX
USART1, Tx Complete
36
0x0046 TWI
Two-wire Serial Interface
37
0x0048 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 “Boot Loader Support – Read-While-Write Self-Programming”
on page 311.
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.
Table 26 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 loca-
tions. 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 26. Reset and Interrupt Vectors Placement(Note:)
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 119 on page 323. 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 AT90CAN128 is:
;AddressLabels Code
0x0000
jmp
0x0002
jmp
0x0004
jmp
0x0006
jmp
0x0008
jmp
0x000A
jmp
0x000C
jmp
0x000E
jmp
0x0010
jmp
0x0012
jmp
0x0014
jmp
RESET
EXT_INT0
EXT_INT1
EXT_INT2
EXT_INT3
EXT_INT4
EXT_INT5
EXT_INT6
EXT_INT7
TIM2_COMP
TIM2_OVF
Comments
; Reset Handler
; IRQ0 Handler
; IRQ1 Handler
; IRQ2 Handler
; IRQ3 Handler
; IRQ4 Handler
; IRQ5 Handler
; IRQ6 Handler
; IRQ7 Handler
; Timer2 Compare Handler
; Timer2 Overflow Handler
57