M30621ECGP MITSUBISHI [Mitsubishi Electric Semiconductor], M30621ECGP Datasheet - Page 204

no-image

M30621ECGP

Manufacturer Part Number
M30621ECGP
Description
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet
CPU Rewrite Mode
204
Data Protect Function (Block Lock)
Status Register
Each block in Figure 1.21.1 has a nonvolatile lock bit to specify that the block be 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 how the flash
memory control register 0’s lock bit disable bit is set.
The status register indicates the operating status of the flash memory and whether an erase or program
operation has terminated normally or in an error. The content of this register can be read out by only
writing the read status register command (70
The status register is cleared by writing the Clear Status Register command (50
After a reset, the status register is set to “80
Each bit in this register is explained below.
Write state machine (WSM) status (SR7)
Erase status (SR5)
(1) When the lock bit disable bit = 0, a specified block can be locked or unlocked by the lock bit status
(2) When the lock bit disable bit = 1, all blocks are nonlocked regardless of the lock bit data, so they are
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 device. This status bit is
set to 0 during auto write or auto erase operation and is set to 1 upon completion of these operations.
The erase status informs the operating status of auto erase operation to the CPU. When an erase
error occurs, it is set to 1.
The erase status is reset to 0 when cleared.
(lock bit data). Blocks whose lock bit data = 0 are locked, so they are disabled against erase/write.
On the other hand, the blocks whose lock bit data = 1 are not locked, so they are enabled for erase/
write.
enabled for erase/write. In this case, the lock bit data that is 0 (locked) is set to 1 (nonlocked) after
erasure, so that the lock bit-actuated lock is removed.
16
16
.”
). Table 1.22.2 details the status register.
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M16C / 62 Group (80-pin)
16
).
Mitsubishi microcomputers

Related parts for M30621ECGP