ATA6602-PLQW ATMEL [ATMEL Corporation], ATA6602-PLQW Datasheet - Page 288

no-image

ATA6602-PLQW

Manufacturer Part Number
ATA6602-PLQW
Description
Microcontroller with LIN Transceiver, 5V Regulator and Watchdog
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATA6602-PLQW
Manufacturer:
ATMEL
Quantity:
1 727
Part Number:
ATA6602-PLQW
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
4.23.6
288
ATA6602/ATA6603
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
15
Z7
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
Z5
13
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
Z3
11
3
INSTRUCTION WORD
PAGE
Table 4-109 on page
Z10
10
Z2
2
303), the Program Counter can
Z9
Z1
9
1
PCWORD[PAGEMSB:0]:
00
01
02
PAGEEND
4921C–AUTO–01/07
Z8
Z0
295.
8
0

Related parts for ATA6602-PLQW