292
8272E–AVR–04/2013
ATmega164A/PA/324A/PA/644A/PA/1284/P
26.8.14
Atmel ATmega164A/ATmega164PA Boot Loader Parameters
In
Table 26-7 through
Table 26-9, the parameters used in the description of the Self-Programming are given.
Note:
Note:
Note:
1. Z0: should be zero for all SPM commands, byte select for the (E)LPM instruction.
Programming.
Table 26-7.
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)
1
128 words
2
0x0000 - 0x1F7F
0x1F80 - 0x1FFF
0x1F7F
0x1F80
1
0
256 words
4
0x0000 - 0x1EFF
0x1F00 - 0x1FFF
0x1EFF
0x1F00
0
1
512 words
8
0x0000 - 0x1DFF
0x1E00 - 0x1FFF
0x1DFF
0x1E00
0
1024 words
16
0x0000 - 0x1BFF
0x1C00 - 0x1FFF
0x1BFF
0x1C00
Table 26-8.
Read-While-Write limit
Section
Pages
Address
Read-While-Write section (RWW)
112
0x0000 - 0x1BFF
No Read-While-Write section (NRWW)
16
0x1C00 - 0x1FFF
Table 26-9.
Variable
Corresponding
Z-value
PCMSB
12
Most significant bit in the Program Counter. (The Program Counter is 13 bits
PC[12:0])
PAGEMSB
5
Most significant bit which is used to address the words within one page (128
words in a page requires seven bits PC [5:0]).
ZPCMSB
Z13
Bit in Z-pointer that is mapped to PCMSB. Because Z0 is not used, the
ZPCMSB equals PCMSB + 1.
ZPAGEMSB
Z6
Bit in Z-pointer that is mapped to PCMSB. Because Z0 is not used, the
ZPAGEMSB equals PAGEMSB + 1.
PCPAGE
PC[12:6]
Z14:Z7
Program Counter page address: Page select, for Page Erase and Page Write
PCWORD
PC[5:0]
Z6:Z1
Program Counter word address: Word select, for filling temporary buffer (must
be zero during Page Write operation)