Atmega128rfa1 – Rainbow Electronics ATmega128RFA1 User Manual
Page 215

215
8266A-MCU Wireless-12/09
ATmega128RFA1
0x008C
jmp
AES_READY
;Encryption/Decryption Ready H.
0x008E
jmp
BAT_LOW
;Batterie Monitor Alert Handler
;
0x0090
RESET:
ldi
r16, high(RAMEND) ;Main program start
0x0091
out
SPH,r16
;Set Stack Pointer to top of RAM
0x0092
ldi
r16, low(RAMEND)
0x0093
out
SPL,r16
0x0094
sei
;Enable interrupts
0x0095
xxx
...
...
...
...
When the BOOTRST Fuse is unprogrammed, the Boot section size set to 8KBytes and
the IVSEL bit in the MCUCR Register is set before any interrupts are enabled, the most
typical and general program setup for the Reset and Interrupt Vector Addresses is:
Address Labels
Code
Comments________________________
0x0000 RESET:
ldi r16,high(RAMEND) ;Main program start
0x0001
out SPH,r16
;Set Stack Pointer to top of RAM
0x0002
ldi r16,low(RAMEND)
0x0003
out SPL,r16
0x0004
sei
;Enable interrupts
0x0005
.org 0xF002
0xF002
jmp EXT_INT0
;IRQ0 Handler
0xF004
jmp EXT_INT1
;IRQ1 Handler
... ... ... ;
0xFO70
jmp USART3_TXC
;USART3 TX Complete Handler
When the BOOTRST Fuse is programmed and the Boot section size set to 8KBytes,
the most typical and general program setup for the Reset and Interrupt Vector
Addresses is:
Address Labels
Code
Comments________________________
.org 0x0002
0x0002
jmp EXT_INT0
;IRQ0 Handler
0x0004
jmp EXT_INT1
;IRQ1 Handler
... ... ... ;
.org 0xF000
0xF000 RESET:
ldi r16,high(RAMEND) ;Main program start
0xF001
out SPH,r16
;Set Stack Pointer to top of RAM
0xF002
ldi r16,low(RAMEND)
0xF003
out SPL,r16
0xF004
sei
;Enable interrupts
0xF005
When the BOOTRST Fuse is programmed, the Boot section size set to 8KBytes and
the IVSEL bit in the MCUCR Register is set before any interrupts are enabled, the most
typical and general program setup for the Reset and Interrupt Vector Addresses is:
Address Labels
Code
Comments________________________
.org 0xF000
0xF000
jmp RESET
;Reset handler
0xF002
jmp EXT_INT0
;IRQ0 Handler
0xF004
jmp EXT_INT1
;IRQ1 Handler
... ... ... ;
0xF072 RESET:
ldi r16,high(RAMEND) ; Main program start