deveopmen
Appendix Standard Serial I/O Mode 2 (Flash Memory Version)
Preliminary Specifications REV.B
Specifications in this manual are tentative and subject to change.
Mitsubishi microcomputers
M16C/80 (144-pin version) group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
299
Page Program Command
This command writes the specified page (256 bytes) in the flash memory sequentially one byte at a
time. Execute the page program command as explained here following.
(1) Transfer the “41
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)
From the 4th byte onward, as write data (D
0
–D
7
) for the page (256 bytes) specified with addresses
A
8
to A
23
is input sequentially from the smallest address first, that page is automatically written.
The result of the page program can be known by reading the status register. For more information,
see the section on the status register.
Each block can be write-protected with the lock bit. For more information, see the section on the data
protection function. Additional writing is not allowed with already programmed pages.
Figure 1.32.25. Timing for the page program
RxD1
TxD1
A
8
to
A
15
A
16
to
A
23
41
16
data0
data255
(M16C reception data)
(M16C transmit data)
Block Erase Command
This command erases the data in the specified block. Execute the block erase command as explained
here following.
(1) Transfer the “20
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, the
erase operation will start for the specified block in the flash memory. Write the highest address of
the specified block for addresses A
16
to A
23
.
After block erase ends, the result of the block erase operation can be known by reading the status
register. For more information, see the section on 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.32.26. Timing for block erasing
A
8
to
A
15
A
16
to
A
23
20
16
D0
16
RxD1
TxD1
(M16C reception data)
(M16C transmit data)