ata6616 ATMEL Corporation, ata6616 Datasheet - Page 243

no-image

ata6616

Manufacturer Part Number
ata6616
Description
Microcontroller With Lin Transceiver, 5v Regulator And Watchdog
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ata6616-P3QW
Manufacturer:
ATMEL
Quantity:
950
Part Number:
ata6616-P3QW
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ata6616C
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ata6616C-P3QW
Manufacturer:
ATMEL
Quantity:
887
4.21.1.3
4.21.2
9132A–AUTO–10/08
DRAFT
Addressing the Flash During Self-Programming
Performing a Page Write
To execute Page Write, set up the address in the Z-pointer, write “00000101
execute SPM within four clock cycles after writing SPMCSR. The data in R1 and R0 is ignored.
The page address must be written to PCPAGE. Other bits in the Z-pointer must be written to
zero during this operation.
The Z-pointer is used to address the SPM commands. The Z pointer consists of the Z-registers
ZL and ZH in the register file. The number of bits actually used is implementation dependent.
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 is shown in
Note that the Page Erase and Page Write operations are addressed independently. Therefore it
is of major importance that the software addresses the same page in both the Page Erase and
Page Write operation.
The LPM instruction uses 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-96. Addressing the Flash During SPM
Note:
Bit
Bit
• The CPU is halted during the Page Write operation.
PROGRAM COUNTER
BIT
PROGRAM MEMORY
1. The different variables used in
15
Z15
PAGE
15
Z7
7
Figure
PAGE ADDRESS
WITHIN THE FLASH
ZPCMSB
Z14
PCMSB
14
Z6
6
4-96.
PCPAGE
Z13
Z5
13
5
ATA6616/ATA6617 [Preliminary]
Table 4-65
Z12
Z4
12
4
ZPAGEMSB
PAGEMSB
Table 4-72 on page
PCWORD
WORD ADDRESS
WITHIN A PAGE
(1)
are listed in
Z11
11
Z3
3
1
0
0
INSTRUCTION WORD
Z - POINTER
Z10
10
Z2
2
Table 4-72 on page
PAGE
253), the Program Counter can
Z9
Z1
9
1
b
” to SPMCSR and
Z8
Z0
PCWORD[PAGEMSB:0]:
8
0
00
01
02
PAGEEND
253.
ZH (R31)
ZL (R30)
243

Related parts for ata6616