NEC 78K0S/KB1+ User Manual page 286

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KB1+:
Table of Contents

Advertisement

Address: FFA1H
Symbol
7
PFS
0
1. Operating conditions of FPRERR flag
<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 FLPMC
• 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 the reset signal is generated
2. Operating conditions of VCERR flag
<Setting conditions>
• Erasure verification error
• Internal writing verification error
If VCERR is set, it means that the flash memory has not been erased or written correctly. Erase or write the
memory again in the specified procedure.
Remark The VCERR flag may also be set if an erase or write protect error occurs.
<Reset conditions>
• When 0 is written to the VCERR flag
• When the reset signal is generated
3. Operating conditions of WEPRERR flag
<Setting conditions>
• If the area specified by the protect byte to be protected from erasing or writing is specified by the flash
address pointer H (FLAPH) and a command is executed to this area
• If 1 is written to a bit that has not been erased (a bit for which the data is 0).
<Reset conditions>
• When 0 is written to the WEPRERR flag
• When the reset signal is generated
286
CHAPTER 19 FLASH MEMORY
Figure 19-14. Format of Flash Status Register (PFS)
After reset: 00H
R/W
6
5
0
0
User's Manual U17446EJ3V1UD
4
3
2
0
0
WEPRERR
1
0
VCERR
FPRERR

Advertisement

Table of Contents
loading

Table of Contents