English
Language : 

M16C Datasheet, PDF (251/262 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Preliminary Specifications REV.B
Specifications in this manual are tentative and subject to change.
Mitsubishi microcomputers
M16C / 6N Group
Standard Serial I/O Mode
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Erase All Unlocked Blocks Command
This command erases the content of all the blocks. Execute the erase all unlocked blocks command as
explained below.
(1) Send the "A716" command code in the first byte of the transmission.
(2) Send verify command code "D016" in the second byte of the transmission. With the verify com-
mand code, the erase operation will start and continue for all the block in the flash memory.
When the block erase ends, the RTS1 (BUSY) signal changes from the "H" to the "L" level. The result of
the erase operation can be known by reading the status register. Each block can be erase-protected with
the lock bit. For more information, see the section on the data protection function.
CLK1
TxD1
A716 D016
RxD1
RTS1(BUSY)
Figure 25-7. Timing for erasing all unlocked blocks
Lock Bit Program Command
This command writes "0" (lock) for the lock bit of the specified block. Execute the lock bit program
command as explained below.
(1) Send the "7716" command code in the first byte of the transmission.
(2) Send addresses A8 to A15 and A16 to A23 in the second and the third bytes of the transmission
respectively.
(3) Send verify command code "D016" in the fourth byte of the transmission. With the verify command
code, "0" is written for the lock bit of the specified block. Write the highest address of the specified
block for the addresses A8 to A23 .
When the writing ends, the RTS1 (BUSY) signal changes from the "H" to the "L" level. Lock bit status can
be read with the read lock bit status command. For information on the lock bit function, see the section on
the data protection function.
CLK1
TxD1
RxD1
7716
A8 to A16 to
A15
A23
D016
RTS1(BUSY)
Figure 25-8. Timing for lock bit program
251