Datasheet

289
ATmega169A/PA/329A/PA/649A/P/3290A/PA/6490A/P [DATASHEET]
8284E–AVR–02/2013
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, EEWE
rjmp Wait_ee
; SPM timed sequence
out SPMCSR, spmcrval
spm
; restore SREG (to enable interrupts if originally enabled)
out SREG, temp2
ret
27.8.13 Boot Loader Parameters
27.8.13.1 Atmel ATmega169A/169PA
In Table 27-9 on page 290 through Table 27-11 on page 291, the parameters used in the description of the Self-
Programming are given.
Note: 1. The different BOOTSZ Fuse configurations are shown in Figure 27-2.
Note: 1. For details about these two section, see ”NRWW – No Read-While-Write Section” on page 279 and ”RWW – Read-
While-Write Section” on page 279.
Table 27-6. Boot size configuration (ATmega169A/169PA)
(1)
.
BOOTSZ1
BOOTSZ0
Boot Size
Pages
Application flash
section
Boot Loader
flash
section
End
application
section
Boot Reset
address
(Start Boot
Loader
section)
11
128
words
2 0x0000 - 0x1F7F 0x1F80 - 0x1FFF 0x1F7F 0x1F80
10
256
words
4 0x0000 - 0x1EFF 0x1F00 - 0x1FFF 0x1EFF 0x1F00
01
512
words
8 0x0000 - 0x1DFF 0x1E00 - 0x1FFF 0x1DFF 0x1E00
00
1024
words
16 0x0000 - 0x1BFF 0x1C00 - 0x1FFF 0x1BFF 0x1C00
Table 27-7. Read-While-Write limit (ATmega169A/169PA)
(1)
.
Section Pages Address
Read-While-Write section (RWW) 112 0x0000 - 0x1BFF
No Read-While-Write section (NRWW) 16 0x1C00 - 0x1FFF