
Appendix Standard Serial I/O Mode 1 (Flash Memory Version)
Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
244
Erase All Unlocked Blocks Command
This command erases the content of all blocks. Execute the erase all unlocked blocks command as
explained here following.
(1) Transfer the “A7
16
” command code with the 1st byte.
(2) Transfer the verify command code “D0
16
” with the 2nd byte. With the verify command code, the
erase operation will start and continue for all blocks in the flash memory.
When block erasing ends, the RTS
1
(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.
Figure 1.29.8. 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 here following.
(1) Transfer the “77
16
” command code with the 1st byte.
(2) Transfer addresses A
8
to A
15
and A
16
to A
23
with the 2nd and 3rd bytes respectively.
(3) Transfer the verify command code “D0
16
” with the 4th byte. 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
addresses A
8
to A
23
.
When writing ends, the RTS
1
(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, reset proce-
dure and so on, see the section on the data protection function.
Figure 1.29.9. Timing for the lock bit program
CLK1
RxD1
TxD1
RTS1(BUSY)
A7
16
D0
16
(M16C reception data)
(M16C transmit data)
CLK1
RxD1
TxD1
RTS1(BUSY)
A
8
to
A
15
A
16
to
A
23
77
16
D0
16
(M16C reception data)
(M16C transmit data)