Datasheet
24
ATmega323(L)
1457E–11/01
$01a jmp USART_RXC ; USART RX Complete Handler
$01c jmp USART_UDRE ; UDR Empty Handler
$01e jmp USART_TXC ; USART TX Complete Handler
$020 jmp ADC ; ADC Conversion Complete Interrupt Handler
$022 jmp EE_RDY ; EEPROM Ready Handler
$024 jmp ANA_COMP ; Analog Comparator Handler
$026 jmp TWSI ; 2-wire Serial Interface Interrupt Handler
;
$028 MAIN: ldi r16,high(RAMEND); Main program start
$029 out SPH,r16 ; Set stack pointer to top of RAM
$02a ldi r16,low(RAMEND)
$02b out SPL,r16
$02c <instr> xxx
... ... ...
When the BOOTRST fuse is unprogrammed, 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 typ-
ical and general program setup for the Reset and Interrupt Vector Addresses are:
Address Labels Code Comments
$000 jmp RESET ; Reset handler
;
$002 MAIN: ldi r16,high(RAMEND); Main program start
$003 out SPH,r16 ; Set stack pointer to top of RAM
$004 ldi r16,low(RAMEND)
$005 out SPL,r16
$006 <instr> xxx
;
.org $3802
$3802 jmp EXT_INT0 ; IRQ0 Handler
$3804 jmp EXT_INT1 ; IRQ1 Handler
... ... ... ;
$3826 jmp TWSI ; 2-wire Serial Interface Interrupt 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
are:
Address Labels Code Comments
.org $002
$002 jmp EXT_INT0 ; IRQ0 Handler
$004 jmp EXT_INT1 ; IRQ1 Handler
... ... ... ;
$026 jmp TWSI ; 2-wire Serial Interface Interrupt Handler
;
$028 MAIN: ldi r16,high(RAMEND); Main program start
$029 out SPH,r16 ; Set stack pointer to top of RAM
$02a ldi r16,low(RAMEND)
$02b out SPL,r16
$02c <instr> xxx
;
.org $3800
$3800 jmp RESET ; Reset handler
…………