Datasheet

Table Of Contents
Address Labels Code Comments
$3804 sei ; Enable
interrupts
$3805 <instr> xxx
When the BOOTRST fuse is programmed, the Boot section size set to 4K bytes and the IVSEL bit in the
GICR 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 $3800
$3800 jmp RESET ; Reset handler
$3802 jmp EXT_INT0 ; IRQ0 Handler
$3804 jmp EXT_INT1 ; IRQ1 Handler
:. :.. : ;
$3828 jmp SPM_RDY ; Store Program
Memory Ready
Handler
;
$382A RESET: ldi r16,high(RAMEND) ; Main program
start
$382B out SPH,r16 ; Set Stack
Pointer to top of
RAM
$382C ldi r16,low(RAMEND)
$382D out SPL,r16
$382E sei ; Enable
interrupts
$382F <instr> xxx
Related Links
BTLDR - Boot Loader Support – Read-While-Write Self-Programming on page 311
ATmega32A Boot Loader Parameters on page 323
15.1.1. Moving Interrupts Between Application and Boot Space
The General Interrupt Control Register controls the placement of the Interrupt Vector table.
15.2. Register Description
Atmel ATmega32A [DATASHEET]
Atmel-8155I-ATmega32A_Datasheet_Complete-08/2016
66