Datasheet

Address Labels Code Comments
$F002 ldi r16,low(RAMEND)
$F003 out SPL,r16
$F004 sei ; Enable
interrupts
$F005 <instr> xxx
When the BOOTRST fuse is programmed, the Boot section size set to 8K bytes 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 $F000
$F000 jmp RESET ; Reset handler
$F002 jmp EXT_INT0 ; IRQ0 Handler
$F004 jmp EXT_INT1 ; IRQ1 Handler
:. :. :. ;
$F044 jmp SPM_RDY ; Store Program
Memory Ready
Handler
$F046 RESET: ldi r16,high(RAMEND) ; Main program
start
$F047 out SPH,r16 ; Set Stack
Pointer to top of
RAM
$F048 ldi r16,low(RAMEND)
$F049 out SPL,r16
$F04A sei ; Enable
interrupts
$F04B <instr> XXX
Related Links
BTLDR - Boot Loader Support – Read-While-Write Self-Programming on page 366
16.1.1. Moving Interrupts Between Application and Boot Space
The General Interrupt Control Register controls the placement of the Interrupt Vector table.
16.2. Register Description
Atmel ATmega64A [DATASHEET]
Atmel-8160E-ATmega64A_Datasheet_Complete-09/2015
82