English
Language : 

M30222 Datasheet, PDF (227/237 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
dUevnedloSeprpmeenctifications in this manual are tentative and subject to change
MITSUBISHI MICROCOMPUTERS
M30222 Group
Rev. G
Serial I/O Mode 2 (Flash Memory Version)
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 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
1
Page read
FF16
Address
(middle)
Address
(high)
Data
output
Data
output
2
Page program
4116
Address
(middle)
Address
(high)
Data input
Data
input
3
Block erase
2016
Address
(middle)
Address
(high)
D016
4
Erase all
A716 D016
unlocked blocks
5
Read status
register
7016
SRD
output
SRD
output
6
Clear status
register
5016
7
Read lock bit
status
7116
Address
(middle)
Address
(high)
Lock bit
data output
8
Lock bit
program
7716
Address
(middle)
Address
(high)
D016
9
Lock bit enable
7A16
10
Lock bit disable
7516
11 ID check
function
12 Download
function
F516
FA16
Address
(low)
Size
(low)
Address
(middle)
Size
(high)
Address
(high)
Check sum
ID size
Data
input
13 Version data
output function
FB16
Version
data
output
Version
data
output
Version
data output
Version
data
output
14
Boot ROM area
FC16 Address Address Data output Data
output function
(middle) (high)
output
15
Read CRC data
FD16
CRC
data
(Low)
CRC
data
(High)
16 Word Read
FE16
Address
(low)
Address
(middle)
17 Word Program
4016
Address
(low)
Address
(middle)
18 Exit
B916
19 Baud rate 9600
B016
B016
20 Baud rate
19200
B116
B116
Address
(high)
Address
(high)
21 Baud rate
38400
22 Baud rate
57600
B216
B316
B216
B316
6th
byte
Data
output
Data
input
Data output
to 259th byte
Data input to
259th byte
When ID is
not verified
Not
acceptable
Not
acceptable
Not
acceptable
Not
acceptable
Acceptable
ID1
ID7
Not
acceptable
Not
acceptable
Not
acceptable
Not
acceptable
Not
acceptable
Acceptable
As
required
Version
data
output
Data
output
Version data
output to 9th
byte
Data output
to 259th byte
Not
acceptable
Acceptable
Not
acceptable
Not
acceptable
Not
acceptable
Not
acceptable
Acceptable
Acceptable
Acceptable
Acceptable
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.
1-228