
1-228
Unde
Specifications in this manual are tentative and subject to change
Rev. G
Serial I/O Mode 2 (Flash Memory Version)
MITSUBISHI MICROCOMPUTERS
M30222 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Software Commands
Table 1.183 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
0
pin. Standard serial I/O mode 2 adds four trans-
mission speed commands - 9,600, 19,200, 38,400 and 57,600 bps - to the software commands of standard serial
I/O mode 1. Software commands are explained here below.
Table 1.183. Software commands (Standard serial I/O mode Page Read Command
Control
command
2nd
byte
3rd
byte
4th
byte
5th
byte
6th
byte
When ID is
not verified
1
Page read
FF
16
Address
(middle)
Address
(high)
Data
output
Data
output
Data
output
Data output
to 259th byte
Not
acceptable
2
Page program
41
16
Address
(middle)
Address
(high)
Data input
Data
input
Data
input
Data input to
259th byte
Not
acceptable
3
Block erase
20
16
Address
(middle)
Address
(high)
D0
16
Not
acceptable
4
Erase all
unlocked blocks
A7
16
D0
16
Not
acceptable
5
Read status
register
70
16
SRD
output
SRD
output
Acceptable
6
Clear status
register
50
16
Not
acceptable
7
Read lock bit
status
71
16
Address
(middle)
Address
(high)
Lock bit
data output
Not
acceptable
8
Lock bit
program
77
16
Address
(middle)
Address
(high)
D0
16
Not
acceptable
9
Lock bit enable
7A
16
Not
acceptable
10
Lock bit disable
75
16
Not
acceptable
11
ID check
function
F5
16
Address
(low)
Address
(middle)
Address
(high)
ID size
ID1
ID7
Acceptable
12
Download
function
FA
16
Size
(low)
Size
(high)
Check sum
Data
input
As
required
Not
acceptable
13
Version data
output function
FB
16
Version
data
output
Version
data
output
Version
data output
Version
data
output
Version
data
output
Version data
output to 9th
byte
Acceptable
14
Boot ROM area
output function
FC
16
Address
(middle)
Address
(high)
Data output
Data
output
Data
output
Data output
to 259th byte
Not
acceptable
15
Read CRC data
FD
16
CRC
data
(Low)
CRC
data
(High)
Not
acceptable
16
Word Read
FE
16
Address
(low)
Address
(middle)
Address
(high)
Not
acceptable
17
Word Program
40
16
Address
(low)
Address
(middle)
Address
(high)
Not
acceptable
18
Exit
B9
16
Acceptable
19
Baud rate 9600
B0
16
B0
16
Acceptable
20
Baud rate
19200
B1
16
B1
16
Acceptable
Note 1: The shaded areas indicate a transfer from flash MCU to serial programmer. All other data is
transferred from programmer to MCU.
Note 2: SRD to Status Register Data. SRD1 refers to Status Register 1 Data.
Note 3: All commands are accepted if the reset vector is blank.
21
Baud rate
38400
B2
16
B2
16
Acceptable
22
Baud rate
57600
B3
16
B3
16
Acceptable