Appendix Standard Serial I/O Mode 2 (Flash Memory Version)
Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
259
Software Commands
Table 1.29.5 lists software commands. In the standard serial I/O mode 2, erase operations, programs and
reading are controlled by transferring software commands via the RxD
1
pin. Standard serial I/O mode 2
adds four transmission speed commands - 9,600, 19,200, 38,400 and 57,600 bps - to the software com-
mands of standard serial I/O mode 1. Software commands are explained here below.
Table 1.29.5. Software commands (Standard serial I/O mode 2)
1st byte
transfer
Control command
2nd byte 3rd byte 4th byte 5th byte 6th byte
Address
(middle)
(high)
output
1
Page read
2
Page program
3
Block erase
4
Erase all unlocked blocks
5
Read status register
6
Clear status register
7
Read lock bit status
8
Lock bit program
9
Lock bit enable
10
Lock bit disable
11
Code processing function
12
Download function
13
Version data output function
14
Boot ROM area output
function
15
Read check data
16
Baud rate 9600
17
Baud rate 19200
18
Baud rate 38400
19
Baud rate 57600
Address
(middle)
Address
(middle)
D0
16
SRD
output
Address
(middle)
Address
(middle)
Address
(low)
Size (low)
Version
data
output
Address
(middle)
Check
data (low)
B0
16
B1
16
B2
16
B3
16
Address
Address
(high)
Address
(high)
SRD1
output
Address
(high)
Address
(high)
Address
(middle)
Size
(high)
Version
data
output
Address
(high)
Check
data
(high)
Data
Data
input
D0
16
Lock bit
data
output
D0
16
Address
(high)
Check-
sum
Version
data
output
Data
output
Data
output
Data
input
ID size
Data
input
Version
data
output
Data
output
Data
output
Data
input
ID1
To
required
number
of times
Version
data
output
Data
output
Data
output to
259th byte
Data input
to 259th
byte
To ID7
Version
data
output to
9th byte
Data
output to
259th byte
FF
16
41
16
20
16
A7
16
70
16
50
16
71
16
77
16
7A
16
75
16
F5
16
FA
16
FB
16
FC
16
FD
16
B0
16
B1
16
B2
16
B3
16
When ID is
not verified
Not
acceptable
Not
acceptable
Not
acceptable
Not
acceptable
Acceptable
Not
acceptable
Not
acceptable
Not
acceptable
Not
acceptable
Not
acceptable
Acceptable
Not
acceptable
Acceptable
Not
acceptable
Not
acceptable
Acceptable
Acceptable
Acceptable
Acceptable
Note 1:Shading indicates transfer from flash memory microcomputer to peripheral unit. All other data is trans-
ferred from the peripheral unit to the flash memory microcomputer.
Note 2:SRD refers to status register data. SRD1 refers to status register 1 data.
Note 3:All commands can be accepted when the flash memory is totally blank.