
29
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
3822 Group
MITSUBISHI MICROCOMPUTERS
SERIAL I/O
Serial I/O 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.
(1) Clock Synchronous Serial I/O Mode
Clock synchronous serial I/O can be selected by setting the mode
selection bit of the serial I/O control register to “1”.
For clock synchronous serial I/O, the transmitter and the receiver
must use the same clock. If an internal clock is used, transfer is
started by a write signal to the transmit/receive buffer register.
Fig. 25 Block diagram of clock synchronous serial I/O
Fig. 26 Operation of clock synchronous serial I/O function
4
6
/
C
L
4
7
/
R
D
Y
1
4
4
/
X
4
5
/
X
I
N
1/4
1
/
4
/
Serial I/O status register
S
e
r
i
a
l
I
/
O
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
e
s
s
0
0
1
8
1
6
R
e
c
e
i
v
e
s
h
i
f
t
r
e
g
i
s
t
e
r
e
c
e
v
e
u
e
r
u
a
g
e
c
e
v
e
n
t
e
r
r
u
p
t
r
e
q
u
e
s
t
Clock control circuit
t c
oc
er
a
/
clock selection bit
Frequency division ratio 1/(n+1)
Baud rate generator
r
e
s
s
0
0
1
1
6
count source se
ect
on
t
C
l
o
c
k
c
o
n
t
r
o
l
c
i
r
c
u
i
t
Falling-edge detector
ata
us
r
e
s
s
0
0
1
8
1
6
t
c
o
c
r
a
n
s
m
t
s
t
r
e
g
s
t
e
r
s
t
c
o
m
p
e
t
o
n
a
g
ransm
t
u
er empty
ag
ransm
t
nterrupt request
ransm
t
nterrupt source se
ect
on
t
r
e
s
s
0
0
1
9
1
6
a
t
a
u
s
r
e
s
s
0
0
1
1
6
Transmit buffer register
T
r
a
n
s
m
i
t
s
h
i
f
t
r
e
g
i
s
t
e
r
CIN
n
ow-spee
mo
e
e
c
e
v
e
e
n
a
e
s
g
n
a
R
D
7
0
1
2
3
4
5
6
= 1
TSC = 1
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