atmega323l ATMEL Corporation, atmega323l Datasheet - Page 24

no-image

atmega323l

Manufacturer Part Number
atmega323l
Description
Atmega323 8-bit Avr Microcontroller With 32k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
24
ATmega323(L)
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
typical and general program setup for the Reset and Interrupt Vector Addresses are:
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:
$018
$01a
$01c
$01e
$020
$022
$024
$026
Handler
;
$028
$029
$02a
$02b
$02c
...
Address
$000
;
$002
$003
$004
$005
$006
;
.org $3802
$3802
$3804
...
$3826
Handler
Address
.org $002
$002
$004
...
$026
Handler
;
$028
$029
Labels Code
MAIN:
Labels Code
MAIN:
MAIN: ldi
...
jmp
jmp
jmp
jmp
jmp
jmp
jmp
jmp
out
ldi
out
<instr>
...
jmp
ldi
out
ldi
out
<instr>
jmp
jmp
...
jmp
jmp
jmp
...
jmp
ldi
out
SPI_STC;
USART_RXC
USART_UDRE ; UDR Empty Handler
USART_TXC
ADC
EE_RDY
ANA_COMP
TWSI
r16,high(RAMEND); Main program start
SPH,r16
r16,low(RAMEND)
SPL,r16
RESET
r16,high(RAMEND); Main program start
SPH,r16
r16,low(RAMEND)
SPL,r16
EXT_INT0
EXT_INT1
...
TWSI
EXT_INT0
EXT_INT1
...
TWSI
r16,high(RAMEND); Main program start
SPH,r16
xxx
xxx
Comments
; SPI Transfer Complete Handler
; USART RX Complete Handler
; USART TX Complete Handler
; ADC Conversion Complete Interrupt Handler
; EEPROM Ready Handler
; Analog Comparator Handler
; Two-wire Serial Interface Interrupt
; Set Stack Pointer to top of RAM
Comments
; Reset handler
; Set Stack Pointer to top of RAM
; IRQ0 Handler
; IRQ1 Handler
;
; Two-wire Serial Interface Interrupt
; IRQ0 Handler
; IRQ1 Handler
;
; Two-wire Serial Interface Interrupt
; Set Stack Pointer to top of RAM
1457G–AVR–09/03

Related parts for atmega323l