
213
8266A-MCU Wireless-12/09
Vector
No.
Program
Address
(2)
Source Interrupt Definition
65 $0082 SCNT_CMP1 Symbol Counter Compare Match 1
66 $0084 SCNT_CMP 2 Symbol Counter Compare Match 2
67 $0086 SCNT_CMP 3 Symbol Counter Compare Match 3
68 $0088 SCNT_OVFL Symbol Counter Overflow
69 $008A SCNT_BACKOFF Symbol Counter Backoff Slot Counter
70 $008C AES_READY AES Encryption Ready
71 $008E BAT_LOW Batterie Monitor Allert
Note: 1. When the BOOTRST Fuse is programmed, the device will jump to the Boot Loader
address at reset, see "Memory Programming" on page 464.
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.
3. Not usefull in ATmega128RFA1 due to limited pin count.
15.2 Reset and Interrupt Vector Placement
Table 15-2 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 15-2. Reset and Interrupt Vectors Placement
(1)
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: 1. The Boot Reset Address is shown in Table 30-7 on page 461 through Table 30-6
on page 461. 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 ATmega128RFA1 is:
Address Labels Code
Comments
0x0000
jmp
RESET ;Reset Handler
0x0002
jmp
INT0 ;IRQ0 Handler
0x0004
jmp
INT1 ;IRQ1 Handler
0x0006
jmp
INT2 ;IRQ2 Handler
0x0008
jmp
INT3 ;IRQ3 Handler
0x000A
jmp
INT4 ;IRQ4 Handler
0x000C
jmp
INT5 ;IRQ5 Handler
0x000E
jmp
INT6 ;IRQ6 Handler
0x0010
jmp
INT7 ;IRQ7 Handler
0x0012
jmp
PCINT0 ;PCINT0 Handler
0x0014
jmp
PCINT1 ;PCINT1 Handler
0x0016
jmp
PCINT2 ;PCINT2 Handler
Kommentare zu diesen Handbüchern