
1-227
Under
development
Specifications in this manual are tentative and subject to change
Rev. H
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 RxD0 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 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
FF16
Address
(middle)
Address
(high)
Data
output
Data
output
Data
output
Data output
to 259th byte
Not
acceptable
2
Page program
4116
Address
(middle)
Address
(high)
Data input
Data
input
Data
input
Data input to
259th byte
Not
acceptable
3
Block erase
2016
Address
(middle)
Address
(high)
D016
Not
acceptable
4
Erase all
unlocked blocks
A716
D016
Not
acceptable
5
Read status
register
7016
SRD
output
SRD
output
Acceptable
6
Clear status
register
5016
Not
acceptable
7
Read lock bit
status
7116
Address
(middle)
Address
(high)
Lock bit
data output
Not
acceptable
8
Lock bit
program
7716
Address
(middle)
Address
(high)
D016
Not
acceptable
9
Lock bit enable
7A16
Not
acceptable
10
Lock bit disable
7516
Not
acceptable
11
ID check
function
F516
Address
(low)
Address
(middle)
Address
(high)
ID size
ID1
ID7
Acceptable
12
Download
function
FA16
Size
(low)
Size
(high)
Check sum
Data
input
As
required
Not
acceptable
13
Version data
output function
FB16
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
FC16
Address
(middle)
Address
(high)
Data output
Data
output
Data
output
Data output
to 259th byte
Not
acceptable
15
Read CRC data
FD16
CRC
data
(Low)
CRC
data
(High)
Not
acceptable
16
Word Read
FE16
Address
(low)
Address
(middle)
Address
(high)
Not
acceptable
17
Word Program
4016
Address
(low)
Address
(middle)
Address
(high)
Not
acceptable
18
Exit
B916
Acceptable
19
Baud rate 9600
B016
B016
Acceptable
20
Baud rate
19200
B116
B116
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
B216
B216
Acceptable
22
Baud rate
57600
B316
B316
Acceptable