CHAPTER 9 CLOCK GENERATION FUNCTION
305
User’s Manual U14359EJ4V0UM
9.3.5 Peripheral status register (PHS)
If a write operation to the protection-targeted internal registers is not performed in the correct sequence, including
access to the command register, writing is not performed and a protection error is generated, setting the status flag
(PRERR) to 1. This flag is a cumulative flag. After checking the PRERR flag, it is cleared to 0 by an instruction.
This register can be read or written in 8-bit or 1-bit units.
7
6
5
4
3
2
1
<0>
Address
After reset
PHS
0
0
0
0
0
0
0
PRERR
FFFFF802H
00H
Bit position
Bit name
Function
0
PRERR
Protection Error
0: Protection error has not occurred
1: Protection error occurred
The operating conditions of the PRERR flag are as follows.
Set conditions:
<1> If the operation of the relevant store instruction for the peripheral I/O is not a write
operation for the PHCMD register, but the peripheral specific register is written to.
<2> If the first store instruction operation after the write operation to the PHCMD register is for
memory other than the specific registers and peripheral I/O.
Reset conditions: <1> If the PRERR flag of the PHS register is set to 0.
<2> If the system is reset