TC1796
System Units (Vol. 1 of 2)
Program Memory Unit
User’s Manual
7-18
V2.0, 2007-07
PMU, V2.0
7.2.5.4
Write Page Command
With the four-cycle Write Page command, the complete contents of the assembly buffer
(256 bytes for PFLASH, 128 bytes for DFLASH) are transferred (programmed) into one
page of PFLASH or DFLASH. The write address of cycle 4 is the page start address of
the page to be programmed with the assembly buffer content. Parameter “n” is the page
number PPn for PFLASH or DPn for DFLASH (see also
and
).
Address bits [31:16] used in the command cycles of the Write Page command must be
the same as those used by the previous Enter Page Mode command. Otherwise, a
command sequence error is generated (bit FSR.SQER set) and the execution of the
command is aborted.
The Write Page command programs a specific Flash page with the complete content of
the assembly buffer. It also programs invalid data of assembler buffer locations that have
not been loaded by previous Load Page Buffer commands.
With the last cycle of the Write Page command, Page Mode is terminated and the
following status flags are updated:
•
FSR.PFPAGE or FSR.DFPAGE is cleared, indicating that the related Flash is no
more in Page Mode.
•
FSR.PROG is set, indicating that a programming operation is running.
•
Either FSR.PBUSY or FSR.D0BUSY or FSR.D1BUSY is set, indicating that the
programming operation is running in PFLASH or in DFLASH bank 0 or in DFLASH
bank 1.
Table 7-8
Write Page Command
Cycle No.
PFLASH
DFLASH
Address
Data
Bank Address
Data
Cycle 1
A000
5554
H
XXXX XX
AA
H
DB0
AFE0
5554
H
XXXX XX
AA
H
DB1
AFE1
5554
H
Cycle 2
A000
AAA8
H
XXXX XX
55
H
DB0
AFE0
AAA8
H
XXXX XX
55
H
DB1
AFE1
AAA8
H
Cycle 3
A000
5554
H
XXXX XX
A0
H
DB0
AFE0
5554
H
XXXX XX
A0
H
DB1
AFE1
5554
H
Cycle 4
A000 0000
H
+
n
×
100
H
XXXX XX
AA
H
DB0
AFE0 0000
H
+
n
×
80
H
XXXX XX
AA
H
DB1
AFE1 0000
H
+
n
×
80
H