CHAPTER 21 FLASH MEMORY
Preliminary User’s Manual U16846EJ1V0UD
353
The operating conditions of the FPRERR flag are as follows.
<Setting conditions>
•
If PFCMD is written when the store instruction operation recently performed on a peripheral register is not to
write a specific value (A5H) to PFCMD
•
If the first store instruction operation after <1> is on a peripheral register other than FLPMC
•
If the first store instruction operation after <2> is on a peripheral register other than FLPMC
•
If a value other than the inverted value of the value to be set to FLPMC is written by the first store instruction
after <2>
•
If the first store instruction operation after <3> is on a peripheral register other than FLPMC
•
If a value other than the value to be set to FLPMC (value written in <2>) is written by the first store instruction
after <3>
Remark
The numbers in angle brackets above correspond to the those in
(2) Flash protect command
register (PFCMD)
.
<Reset conditions>
•
If 0 is written to the FPRERR flag
•
If RESET is input
<Example of description in specific sequence>
To write 05H to FLPMC
MOV
PFCMD, #0A5H
; Writes A5H to PFCMD.
MOV
FLPMC, #05H
; Writes 05H to FLPMC.
MOV
FLPMC, #0FAH
; Writes 0FAH (inverted value of 05H) to FLPMC.
MOV
FLPMC, #05H
; Writes 05H to FLPMC.