CHAPTER 8 CLOCK GENERATION FUNCTION
179
User’s Manual U15195EJ5V0UD
8.3.5 Peripheral status register (PHS)
If a write operation is not performed in the correct sequence including access to the command register for the
protection-targeted internal registers, 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
0: Protection error does not occur
1: Protection error occurs
The operation conditions of the PRERR flag are as follows.
Set conditions:
<1> If the operation of the relevant store instruction for the on-chip 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 on-chip peripheral I/O.
Reset conditions: <1> If the PRERR flag of the PHS register is set to 0.
<2> If the system is reset