37
38B4 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
Serial I/O2
Serial I/O2 can be used as either clock synchronous or asynchro-
nous (UART) serial I/O. A dedicated timer (baud rate generator) is
also provided for baud rate generation during serial I/O2 operation.
(1) Clock synchronous serial I/O mode
The clock synchronous serial I/O mode can be selected by setting
the serial I/O2 mode selection bit (b6) of the serial I/O2 control reg-
Fig. 38 Operation of clock synchronous serial I/O2 function
Fig. 37 Block diagram of clock synchronous serial I/O2
ister (address 001D
16
) to “1”. For clock synchronous serial I/O, the
transmitter and the receiver must use the same clock for serial I/O2
operation. If an internal clock is used, transmit/receive is started by
a write signal to the serial I/O2 transmit/receive buffer register (TB/
RB) (address 001F
16
).
When P5
7
(S
CLK22
) is selected as a clock I/O pin, S
RDY2
output
function is invalid, and P5
6
(S
CLK21
) is used as an I/O port.
1
/
4
1
/
4
F
/
F
P
5
6
/
S
C
L
K
2
1
P
5
4
/
R
X
D
P
5
5
/
T
X
D
P
5
7
/
S
R
D
Y
2
/
S
C
L
K
2
2
“0
”
“1
”
“0
”
“1
”
X
I
N
1
/
2
X
C
I
N
“1
”
“0
”
P
5
7
/
S
R
D
Y
2
/
S
C
L
K
2
2
S
e
r
i
a
l
I
/
O
2
s
t
a
t
u
s
r
e
g
i
s
t
e
r
S
e
r
e
i
a
l
I
/
O
2
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
R
e
c
e
i
v
e
b
u
f
f
e
r
r
e
g
i
s
t
e
r
A
d
d
r
e
s
s
0
0
1
F
1
6
R
e
c
e
i
v
e
s
h
i
f
t
r
e
g
h
i
s
t
e
r
R
c
e
i
v
e
b
u
f
f
e
r
f
u
l
l
f
l
a
g
(
R
B
F
)
R
e
c
e
i
v
e
i
n
t
e
r
r
u
p
t
r
e
q
u
e
s
t
(
R
I
)
C
l
o
c
k
c
o
n
t
r
o
l
c
i
r
c
u
i
t
S
i
f
t
c
l
o
c
k
S
i
e
r
i
a
l
I
/
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