ATMEGA16-16AU SL602 Atmel, ATMEGA16-16AU SL602 Datasheet - Page 47

no-image

ATMEGA16-16AU SL602

Manufacturer Part Number
ATMEGA16-16AU SL602
Description
Manufacturer
Atmel
Datasheet
2466T–AVR–07/10
When the BOOTRST Fuse is unprogrammed, the Boot section size set to 2 Kbytes 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 is:
When the BOOTRST Fuse is programmed and the Boot section size set to 2 Kbytes, 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 2 Kbytes 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 is:
Address
$000
$001
$002
$003
$004
$005
;
.org $1C02
$1C02
$1C04
...
$1C28
Address
.org $002
$002
$004
...
$028
;
.org $1C00
$1C00
$1C01
$1C02
$1C03
$1C04
$1C05
Address
.org $1C00
$1C00
$1C02
$1C04
...
$1C28
;
$1C2A
$1C2B
$1C2C
$1C2D
$1C2E
$1C2F
Labels
RESET:
....
Labels
....
RESET:
Labels
....
RESET:
ldi
Code
ldi
out
out
sei
<instr>
jmp
jmp
..
jmp
jmp
jmp
..
jmp
ldi
out
ldi
out
sei
<instr>
Code
jmp
jmp
jmp
..
jmp
ldi
out
ldi
out
sei
<instr>
r16,low(RAMEND)
r16,high(RAMEND) ; Main program start
SPH,r16
SPL,r16
EXT_INT0
EXT_INT1
SPM_RDY
Code
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
r16,high(RAMEND) ; Main program start
SPH,r16
r16,low(RAMEND)
SPL,r16
xxx
xxx
xxx
; Reset handler
; IRQ0 Handler
; IRQ1 Handler
;
; Store Program Memory Ready Handler
Comments
; Set Stack Pointer to top of RAM
; Enable interrupts
; IRQ0 Handler
; IRQ1 Handler
;
; Store Program Memory Ready Handler
; IRQ0 Handler
; IRQ1 Handler
;
; Store Program Memory Ready Handler
; Set Stack Pointer to top of RAM
; Enable interrupts
; Set Stack Pointer to top of RAM
; Enable interrupts
Comments
Comments
ATmega16(L)
47

Related parts for ATMEGA16-16AU SL602