Datasheet

Table Of Contents
Adddress Labels Code Comments
$000 RESET: ldi r16,high(RAMEND) ; Main program
start
$001 out SPH,r16 ; Set stack
pointer to top of
RAM
$0002 ldi r16,low(RAMEND)
$0003 out SPL,r16
$0004 sei ; Enable
interrupts
$0005 <instr> xxx
;
.org $3802
$3802 jmp EXT_INT0 ; IRQ0 Handler
$3804 jmp EXT_INT1 ; IRQ1 Handler
:. :.. : ;
$3828 jmp SPM_RDY ; Store Program
Memory Ready
Handler
When the BOOTRST fuse is programmed and the Boot section size set to 4K bytes, the most typical and
general program setup for the Reset and Interrupt Vector Addresses is:
Address Labels Code Comments
.org $002
$002 jmp EXT_INT0 ; IRQ0 Handler
$004 jmp EXT_INT1 ; IRQ1 Handler
:. :.. : ;
$028 jmp SPM_RDY ; Store Program
Memory Handler
;
.org $3800
$3800 RESET: ldi r16,high(RAMEND) ; Main program
start
$3801 out SPH,r16 ; Set stack
pointer to top of
RAM
$3802 ldi r16,low(RAMEND)
$3803 out SPL,r16
Atmel ATmega32A [DATASHEET]
Atmel-8155I-ATmega32A_Datasheet_Complete-08/2016
65