ATMEGA325-16AJ ATMEL [ATMEL Corporation], ATMEGA325-16AJ Datasheet - Page 49

no-image

ATMEGA325-16AJ

Manufacturer Part Number
ATMEGA325-16AJ
Description
8-bit Microcontroller with In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
2570A–AVR–09/04
When the BOOTRST Fuse is unprogrammed, the Boot section size set to 4K 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 4K 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 4K 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
0x0000
0x0001
RAM
0x0002
0x0003
0x0004
0x0005
;
.org 0x3802/0x7802
0x3804/0x7804
0x3806/0x7806
...
0x1C2C
Handler
Address Labels Code
.org 0x0002
0x0002
0x0004
...
0x002C
Handler
;
.org 0x3800/0x7800
0x3800/0x7801RESET:ldir16,high(RAMEND); Main program start
0x3801/0x7801
0x3802/0x7802
0x3803/0x7803
0x3804/0x7804
0x3805/0x7805
Address Labels Code
;
.org 0x3800/0x7800
0x3800/0x7800
0x3802/0x7802
0x3804/0x7804
...
0x382C/0x782C
;
RESET: ldi
out
ldi
out
sei
<instr> xxx
jmp
jmp
...
jmp
jmp
jmp
...
jmp
out
ldi
out
sei
<instr>
jmp
jmp
jmp
...
jmp
r16,high(RAMEND); Main program start
SPH,r16
r16,low(RAMEND)
SPL,r16
EXT_INT0
PCINT0
...
SPM_RDY
EXT_INT0
PCINT0
...
SPM_RDY
SPH,r16
r16,low(RAMEND)
SPL,r16
RESET
EXT_INT0
PCINT0
...
SPM_RDY
xxx
ATmega325/3250/645/6450
Comments
; Store Program Memory Ready Handler
; Set Stack Pointer to top of RAM
Comments
; Set Stack Pointer to top of
; Enable interrupts
; IRQ0 Handler
; PCINT0 Handler
;
; Store Program Memory Ready
; IRQ0 Handler
; PCINT0 Handler
;
; Store Program Memory Ready
; Enable interrupts
Comments
; Reset handler
; IRQ0 Handler
; PCINT0 Handler
;
49

Related parts for ATMEGA325-16AJ