284
2467S–AVR–07/09
ATmega128
Wait_ee:
sbic EECR, EEWE
rjmp Wait_ee
; SPM timed sequence
sts SPMCSR, spmcsrval
spm
; restore SREG (to enable interrupts if originally enabled)
out SREG, temp2
ret
ATmega128 Boot
Loader Parameters
In Table 112 through Table 114, the parameters used in the description of the self programming
are given.
Note: The different BOOTSZ fuse configurations are shown in Figure 133
Note: 1. For details about these two section, see “No Read-While-Write Section – NRWW” on page
274 and “Read-While-Write Section – RWW” on page 274
Table 112. Boot Size Configuration
BOOTSZ1 BOOTSZ0
Boot
Size Pages
Application
Flash
Section
Boot
Loader
Flash
Section
End
Application
section
Boot
Reset
Address
(start Boot
Loader
Section)
11
512
words
4
$0000 -
$FDFF
$FE00 -
$FFFF
$FDFF $FE00
10
1024
words
8
$0000 -
$FBFF
$FC00 -
$FFFF
$FBFF $FC00
01
2048
words
16
$0000 -
$F7FF
$F800 -
$FFFF
$F7FF $F800
00
4096
words
32
$0000 -
$EFFF
$F000 -
$FFFF
$EFFF $F000
Table 113. Read-While-Write Limit
(1)
Section Pages Address
Read-While-Write section (RWW) 480 $0000 - $EFFF
No Read-While-Write section (NRWW) 32 $F000 - $FFFF