Mitsubishi Electric M32R Series User Manual page 144

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

6
Flash Controle Register 2 (FCNT2)
D8
D
Bit Name
8 - 14
No functions assigned
15
FPROT
(Unlock)
The Flash Control Register 2 (FCNT2) controls invalidation of the internal flash memory protection
by a lock bit (to disable erasing or programming of the flash memory). The flash memory protection
becomes invalid (unlocked) by setting the FPROT bit to 1, so that any blocks protected by the lock
bit can be erased or programmed.
To set the FPROT bit to 1, write a 0 and then a 1 to the FPROT bit in succession while the FENTRY
bit = 1.
The FPROT bit is cleared to 0 by writing a 0 to the FPROT bit and setting the FP pin low or the
FENTRY bit to 0 immediately after reset.
Figure 6.4.2 Protection Unlocking Flow
6.4 Registers Associated with the Internal Flash Memory
9
10
11
Function
0 : Protection by lock bit effective
1 : Protection by lock bit not effective
FENTRY=1
YES
FPROT=0
FPROT=1
6-10
INTERNAL MEMORY
<Address: H'0080 07E3>
12
13
14
NO
FENTRY=1
FPROT is not set to 1 if write
cycle to any other area occurs
during this time
D15
FPROT
<When reset : H'00>
R
W
0
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents