TXZ Family
Flash Memory
2018-06-05
61 / 120
Rev. 2.0
4.
When you do not program in continuously, in an interrupt handler, INTFLDRDY interruption is disabled,
and perform return. When you program in continuously, issue a new command sequence after
INTFLDRDY interruption without disable, and perform return.
5.
When continuing program, repeat step3 to 4 in parallel performing a main process.
4.1.6. Protection Function
The protection function prohibits data program/erase operation on the flash memory in the unit of block. The
protection function is set to code flash and data flash separately.
In code flash, set the protection function to page 0 to 7 in the unit of page in block0. The remaining blocks are set in
the unit of block. In data flash, the protection function is set in the unit of block.
Erasing protect setting, all protect bits are erased one time.
4.1.6.1. How to Set the Protection Function
In order to enable a protection function, a protect bit is set to “1” by a protect bit programming command.
The protection function is enabled under the condition below:
1.
[FCPMRm]
<MSKn>=1 (Note)
2.
Protect bit n=1
At this time, the block n is being protected from data programming/erasing.
When check the status of protect bit, monitor
[FCPSRm]
after set
[FCPMRm]
<MSKn>=1 .(Note)
Note: <MSKn> represents <PMn>, <MSKn>, and <DMSKn>.
4.1.6.2. Protection Release
Execute the protect bit erasing command, protect bits become “0” and being released block protection.
Note: All protect bits become “0” with the protect bit erasing command.
4.1.6.3. Protection Temporary Release Function
The protection function can be temporary released without erasing the protect bits.
Specified block can only be released.
When
[FCPMRm]
<MSKn>=0, programming/erasing operation function is disabled regardless of the state of the
protect bits (
[FCPSRm]
<PGn>/<BLKn>)
.
For details of register settings, refer to
[FCPMRm]
in chapter “5.2 Detail of Register”.
Note: <MSKn> represents <PMn>, <MSKn>, and <DMSKn>.