ATA6603-EK Atmel, ATA6603-EK Datasheet - Page 289

no-image

ATA6603-EK

Manufacturer Part Number
ATA6603-EK
Description
MCU, MPU & DSP Development Tools Demoboard LIN-MCM
Manufacturer
Atmel
Datasheet

Specifications of ATA6603-EK

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
4.23.6
4921E–AUTO–09/09
Addressing the Flash During Self-Programming
The Z-pointer is used to address the SPM commands.
Since the Flash is organized in pages (see
be treated as having two different sections. One section, consisting of the least significant bits, is
addressing the words within a page, while the most significant bits are addressing the pages.
This is1 shown in
addressed independently. Therefore it is of major importance that the Boot Loader software
addresses the same page in both the Page Erase and Page Write operation. Once a program-
ming operation is initiated, the address is latched and the Z-pointer can be used for other
operations.
The only SPM operation that does not use the Z-pointer is Setting the Boot Loader Lock bits.
The content of the Z-pointer is ignored and will have no effect on the operation. The LPM
instruction does also use the Z-pointer to store the address. Since this instruction addresses the
Flash byte-by-byte, also the LSB (bit Z0) of the Z-pointer is used.
Figure 4-116. Addressing the Flash During SPM
Note:
ZH (R31)
ZL (R30)
Bit
Z - REGISTER
1. The different variables used in
PROGRAM MEMORY
BIT
PAGE
PROGRAM
COUNTER
15
Z15
Z7
15
7
Figure
PAGE ADDRESS
WITHIN THE FLASH
ZPCMSB
PCMSB
Z14
14
Z6
6
4-116. Note that the Page Erase and Page Write operations are
PCPAGE
Z13
13
Z5
5
Figure 4-116
ZPAGEMSB
PAGEMSB
Table 4-123 on page
Z12
PCWORD
12
Z4
4
WORD ADDRESS
WITHIN A PAGE
(1)
are listed in
1
Z11
0
0
11
Z3
3
INSTRUCTION WORD
ATA6602/ATA6603
PAGE
Table 4-109 on page
Z10
10
Z2
2
304), the Program Counter can
Z9
Z1
9
1
PCWORD[PAGEMSB:0]:
00
01
02
PAGEEND
Z8
Z0
296.
8
0
289

Related parts for ATA6603-EK