292
7647H–AVR–03/12
Atmel ATmega16/32/64/M1/C1
; check that no EEPROM write access is present
Wait_ee:
sbic EECR, EEPE
rjmp Wait_ee
; SPM timed sequence
out SPMCSR, spmcrval
spm
; restore SREG (to enable interrupts if originally enabled)
out SREG, temp2
ret
24.7.14 ATmega16/32/64/M1/C1 - 16K -Flash Boot Loader Parameters
In Table 24-7 through Table 24-9, the parameters used in the description of the self program-
ming are given.
Notes: 1. The different BOOTSZ Fuse configurations are shown in Figure 24-2.
2. 1 word equals 2 bytes.
For details about these two section, see “NRWW – No Read-While-Write Section” on page 280
and “RWW – Read-While-Write Section” on page 280.
Table 24-7. Boot Size Configuration, ATmega16/32/64/M1/C1 (16K product)
BOOTSZ1 BOOTSZ0
Boot
Size
(2)
Pages
Application
Flash
Section
Boot
Loader
Flash
Section
End
Application
Section
Boot Reset
Address
(Start Boot
Loader
Section)
11
256
words
4
0x0000 -
0x1EFF
0x1F00 -
0x1FFF
0x1EFF 0x1F00
10
512
words
8
0x0000 -
0x1DFF
0x1E00 -
0x1FFF
0x1DFF 0x1E00
01
1024
words
16
0x0000 -
0x1BFF
0x1C00 -
0x1FFF
0x1BFF 0x1C00
00
2048
words
32
0x0000 -
0x17FF
0x1800 -
0x1FFF
0x17FF 0x1800
Table 24-8. Read-While-Write Limit
Section Pages Address
Read-While-Write section (RWW) 96 0x0000 - 0x17FF
No Read-While-Write section (NRWW) 32 0x1800 - 0x1FFF