ATMEGA8-16AI SL383 Atmel, ATMEGA8-16AI SL383 Datasheet - Page 220

no-image

ATMEGA8-16AI SL383

Manufacturer Part Number
ATMEGA8-16AI SL383
Description
Semiconductors and Actives, Microprocessors, Microcontrollers
Manufacturer
Atmel
Datasheet
ATmega8 Boot Loader
Parameters
220
ATmega8(L)
In
are given.
Table 82. Boot Size Configuration
BOOTSZ1
Table 82
Return:
ready yet
Do_spm:
Wait_spm:
Wait_ee:
1
1
0
0
; return to RWW section
; verify that RWW section is safe to read
in
sbrs temp1, RWWSB
ret
; re-enable the RWW section
ldi
rcallDo_spm
rjmp Return
; check for previous SPM complete
in
sbrc temp1, SPMEN
rjmp Wait_spm
; input: spmcrval determines SPM action
; disable interrupts if enabled, store status
in
cli
; check that no EEPROM write access is present
sbic EECR, EEWE
rjmp Wait_ee
; SPM timed sequence
out
spm
; restore SREG (to enable interrupts if originally enabled)
out
ret
temp1, SPMCR
spmcrval, (1<<RWWSRE) | (1<<SPMEN)
temp1, SPMCR
temp2, SREG
SPMCR, spmcrval
SREG, temp2
through
BOOTSZ0
1
0
1
0
Table
Boot
Size
128
words
256
words
512
words
1024
words
84, the parameters used in the description of the self programming
Pages
16
32
4
8
Application
Flash
Section
0x000 -
0xF7F
0x000 -
0xEFF
0x000 -
0xDFF
0x000 -
0xBFF
; If RWWSB is set, the RWW section is not
Boot
Loader
Flash
Section
0xF80 -
0xFFF
0xF00 -
0xFFF
0xE00 -
0xFFF
0xC00 -
0xFFF
End
Application
Section
0xF7F
0xEFF
0xDFF
0xBFF
Boot Reset
Address
(Start Boot
Loader
Section)
0xF80
0xF00
0xE00
0xC00
2486W–AVR–02/10

Related parts for ATMEGA8-16AI SL383