AT90PWM2/3/2B/3B
Do_spm:
; check for previous SPM complete
Wait_spm:
in
temp1, SPMCSR
sbrc temp1, SPMEN
rjmp Wait_spm
; input: spmcrval determines SPM action
; disable interrupts if enabled, store status
in
temp2, SREG
cli
; 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.13 Boot Loader Parameters
In Table 24-6 through Table 24-8, the parameters used in the description of the self program-
ming are given.
Table 24-6. Boot Size Configuration
Boot Reset
Boot
Loader
Flash
Address
(Start Boot
Loader
Application
Flash
Section
End
Application
Section
Boot
Size
BOOTSZ1
BOOTSZ0
Pages
Section
Section)
128
words
0x000 -
0xF7F
0xF80 -
0xFFF
1
1
4
0xF7F
0xEFF
0xDFF
0xBFF
0xF80
0xF00
0xE00
0xC00
256
words
0x000 -
0xEFF
0xF00 -
0xFFF
1
0
0
0
1
0
8
512
words
0x000 -
0xDFF
0xE00 -
0xFFF
16
32
1024
words
0x000 -
0xBFF
0xC00 -
0xFFF
Note:
The different BOOTSZ Fuse configurations are shown in Figure 24-2.
Table 24-7. Read-While-Write Limit
Section
Pages
96
Address
Read-While-Write section (RWW)
No Read-While-Write section (NRWW)
0x000 - 0xBFF
0xC00 - 0xFFF
32
277
4317J–AVR–08/10