
CPU Rewrite Mode
Specifications in this manual are tentative and subject to change
Rev. E
MITSUBISHI MICROCOMPUTERS
M30245 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
194
Data Protect Function (Block Lock)
Each block in Figure 1.140 has a nonvolatile lock bit to specify that the block is protected (locked)
against erase/write. The lock bit program command is used to set the lock bit to 0 (locked). The
lock bit of each block can be read out using the read lock bit status command.
Whether block lock is enabled or disabled is determined by the status of the lock bit and the lock
bit disable bit in flash memory control register 0.
(1) When the lock bit disable bit = “0”, a specified block can be locked or unlocked by the lock bit
status (lock bit data). If lock bit data = “0” (locked), they are disabled against erase/write. On the
other hand, if lock bit data = “1” (unlocked) they are enabled for erase/write.
(2) When the lock bit disable bit = “1”, all blocks are unlocked regardless of the lock bit data, and
enabled for erase/write. In this case, the lock bit data is set to “1” (unlocked) after erasure, so that
the lock bit is disabled.
Status Register
The status register indicates the flash memory operating status and whether an erase or program
operation has terminated normally or in error. Table 1.68 details the status register. The contents
of this register can be read out only by writing the read status register command (7016). Writing
the Clear Status Register command (5016) clears the status register. After a reset, the status
register is set to “8016.”
Table 1.68. Status register bit definition
Write state machine (WSM) status (SR7)
After power-on, the write state machine (WSM) status is set to “1”.
The write state machine (WSM) status indicates the operating status of the RY/BY pin output. This
status bit is set to “0” during an auto write or auto erase operation and is set to “1” when the
operation is completed.
Each SRD bit
Status name
Definition
“1”
“0”
SR7 (Bit 7)
Write state machine (WSM)
Ready
Busy
SR6 (Bit 6)
Reserved
_
SR5 (Bit 5)
Erase status
Terminated in error
Terminated normally
SR4 (Bit 4)
Program status
Terminated in error
Terminated normally
SR4 (Bit 3)
Block status after program
Terminated in error
Terminated normally
SR2 (Bit 2)
Reserved
_
SR1 (Bit 1)
Reserved
_
SR0 (Bit 0)
Reserved
_