TC1796
System Units (Vol. 1 of 2)
Program Memory Unit
User’s Manual
7-19
V2.0, 2007-07
PMU, V2.0
The page programming algorithm includes a programming quality check that identifies
and reprograms weak bits of a Flash page. If the reprogramming of weak bits is
unsuccessful, the verify error flag FSR.VER is set.
If read protection is activated or if write protection is enabled for the sector that contains
the page to be programmed, Page Mode is terminated, programming operation is not
started, and the protection error flag FSR.PROER is set. Write protection must be
disabled previously to a programming operation for a write-protected sector by issuing a
Disable Read Protection or/and Disable Write Protection command.
7.2.5.5
Write User Configuration Page Command
The four-cycle Write User Configuration Page command is used to transfer (program)
the contents of the 256 byte assembly buffer into one page of a user configuration block.
The Write User Configuration Page command sequence is identical with the Write Page
command except cycle 3. Cycle 3 transmits different data than the Write Page command
does. The address transmitted in cycle 4 of the Write User Configuration Page command
is the start address of the corresponding User Configuration Page UCP[11:0] (see
Only if protection is not installed (e.g. for the very first installation of protection),
read/write protection need not be disabled. After writing the correct protection
confirmation code in the respective user configuration page, the protection is installed
and becomes active after the next reset.
If a user configuration page needs to be reprogrammed (not possible for pages within
UCB2) and protection is installed (FSR.PROIN = 1), the protection must be temporarily
disabled, and afterwards the UCB must be erased by the Erase User Configuration Block
command. When no protection is installed (FSR.PROIN = 0), the user configuration
page can be programmed without any restriction.
If a Write User Configuration Page command is issued and the start address of the UCP
(cycle 4) belongs to a UCB that is read- or write-protected, the protection error flag
FSR.PROER is set and programming operation is not started.
Table 7-9
Write User Configuration Page Command
Cycle No.
Address
Data
Cycle 1
A000
5554
H
XXXX XX
AA
H
Cycle 2
A000
AAA8
H
XXXX XX
55
H
Cycle 3
A000
5554
H
XXXX XX
C0
H
Cycle 4
Start address of UCP to be
programmed
(A000 0X00
H
with X = 0
H
-B
H
)
XXXX XX
AA
H