
140
Chapter 4
Clock Generator
Preliminary User’s Manual U17566EE1V2UM00
(3)
PHCMD - Command protection register
The 8-bit PHCMD register is write-only. It is used to protect other registers from
unintended writing.
Access
This register must be written in 8-bit units.
Address
FFFF F800
H
.
Initial Value
The contents of this register is undefined.
PHCMD protects the registers that may have a significant influence on the
application system from inadvertent write access, so that the system does not
stop in case of a program hang-up.
Any data written to this register is ignored. Only the write action is monitored.
After writing to the PHCMD register, you are permitted to write once to one of
the protected registers. This must be done immediately after writing to the
PHCMD register. After the second write action, or if the second write action
does not follow immediately, all protected registers are write-locked again.
Caution
In case a high level programming language is used, make sure that the
compiler translates the two write instructions to PHCMD and the protected
register into two consecutive assembler “store” instructions.
With this method, the protected registers can only be rewritten in a specific
sequence. Illegal write access to a protected register is inhibited.
The following registers are protected by PHCMD:
An invalid write attempt to one of the above registers sets the error flag
PHS.PRERR. PHS.PRERR is also set, if a write access to PHCMD is not
immediately followed by an access to one of the protected registers.
7
6
5
4
3
2
1
0
X
X
X
X
X
X
X
X
W
W
W
W
W
W
W
W
– CKC:
Clock control register
– FCC:
FOUTCLK control register
– ICC:
I
2
C clock control register
– PCC:
Processor clock control register
– SCC:
SPCLK control register
– TCC:
Watch Timer clock control register
– WCC:
Watchdog timer clock control register
electronic components distributor