Appendix Standard Serial I/O Mode 2 (Flash Memory Version)
deeopmen
Preliminary Specifications REV.E
Specifications in this manual are tentative and subject to change.
Mitsubishi microcomputers
M30220 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
201
Software Commands
Table 1.25.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
0
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.25.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
Code processing function
8
Download function
9
Version data output function
10
Boot ROM area output
function
11
Read check data
12
Baud rate 9600
13
Baud rate 19200
14
Baud rate 38400
15
Baud rate 57600
Address
(middle)
Address
(middle)
D0
16
SRD
output
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
(middle)
Size
(high)
Version
data
output
Address
(high)
Check
data
(high)
Data
Data
input
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
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
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.