Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

ATEMGA128L View Datasheet(PDF) - Atmel Corporation

Part Name
Description
MFG CO.
'ATEMGA128L' PDF : 395 Pages View PDF
... ... ... ...
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:
Address LabelsCode
Comments
$0000 RESET:ldi r16,high(RAMEND); Main program start
$0001
out SPH,r16 ; Set stack pointer to top of RAM
$0002
ldi r16,low(RAMEND)
$0003
$0004
$0005
out SPL,r16
sei
<instr> xxx
; Enable interrupts
;
.org $F002
$F002
jmp EXT_INT0 ; IRQ0 Handler
$F004
jmp EXT_INT1 ; IRQ1 Handler
...
... ...
;
$F044
jmp SPM_RDY ; Store Program Memory Ready Handler
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:
Address LabelsCode
Comments
.org $0002
$0002
jmp EXT_INT0 ; IRQ0 Handler
$0004
jmp EXT_INT1 ; IRQ1 Handler
...
... ...
;
$0044
jmp SPM_RDY ; Store Program Memory Ready Handler
;
.org $F000
$F000 RESET: ldi
r16,high(RAMEND); Main program start
$F001
out SPH,r16 ; Set stack pointer to top of RAM
$F002
ldi r16,low(RAMEND)
$F003
$F004
$F005
out SPL,r16
sei
<instr> xxx
; Enable interrupts
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 typ-
ical and general program setup for the Reset and Interrupt Vector Addresses is:
Address
Labels Code
Comments
;
.org $F000
$F000
$F002
jmp RESET
; Reset handler
jmp EXT_INT0 ; IRQ0 Handler
$F004
jmp EXT_INT1 ; IRQ1 Handler
...
... ...
;
$F044
jmp SPM_RDY ; Store Program Memory Ready Handler
$F046 RESET: ldi r16,high(RAMEND); Main program start
$F047
out SPH,r16 ; Set stack pointer to top of RAM
$F048
ldi r16,low(RAMEND)
62 ATmega128
2467O–AVR–10/06
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]