ATMEGA128-16AU SL383 Atmel, ATMEGA128-16AU SL383 Datasheet - Page 63

no-image

ATMEGA128-16AU SL383

Manufacturer Part Number
ATMEGA128-16AU SL383
Description
Manufacturer
Atmel
Datasheet
2467S–AVR–07/09
When the BOOTRST fuse is unprogrammed, 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:
When the BOOTRST fuse is programmed and the Boot section size set to 8K bytes, the most
typical and general program setup for the Reset and Interrupt Vector Addresses is:
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 LabelsCode
$0000
$0001
$0002
$0003
$0004
$0005
;
.org $F002
$F002
$F004
...
$F044
Address
.org $0002
$0002
$0004
...
$0044
;
.org $F000
$F000
$F001
$F002
$F003
$F004
$F005
Address
;
.org $F000
$F000
$F002
$F004
...
$F044
$F046
$F047
$F048
RESET:ldi
RESET: ldi
RESET: ldi
LabelsCode
out
ldi
out
sei
<instr>
jmp
jmp
...
jmp
jmp
jmp
...
jmp
out
ldi
out
sei
<instr>
jmp
jmp
jmp
...
jmp
out
ldi
Labels
r16,high(RAMEND); Main program start
SPH,r16
r16,low(RAMEND)
SPL,r16
EXT_INT0
EXT_INT1
...
SPM_RDY
EXT_INT0
EXT_INT1
...
SPM_RDY
r16,high(RAMEND); Main program start
SPH,r16
r16,low(RAMEND)
SPL,r16
RESET
EXT_INT0
EXT_INT1
...
SPM_RDY ; Store Program Memory Ready Handler
r16,high(RAMEND); Main program start
SPH,r16
r16,low(RAMEND)
xxx
xxx
Code
Comments
; Set stack pointer to top of RAM
; Enable interrupts
; IRQ0 Handler
; IRQ1 Handler
;
; Store Program Memory Ready Handler
Comments
; IRQ0 Handler
; IRQ1 Handler
;
; Store Program Memory Ready Handler
; Set stack pointer to top of RAM
; Enable interrupts
; Reset handler
; IRQ0 Handler
; IRQ1 Handler
;
; Set stack pointer to top of RAM
Comments
ATmega128
63

Related parts for ATMEGA128-16AU SL383