
24
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
38C8 Group
SERIAL I/O
Serial I/O can be used as either clock synchronous or asynchronous
(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 registers.
Fig. 20 Block diagram of clock synchronous serial I/O
Fig. 21 Operation of clock synchronous serial I/O function
4
6
/
CLK
4
7
/
R
D
4
4
/
X
4
5
/
X
I
N
1/4
1/4
/
S
e
r
i
a
l
I
/
O
s
t
a
t
u
s
r
e
g
i
s
t
e
r
Serial I/O control register
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
ece
ve
u
er
u
ag
e
c
e
v
e
n
t
e
r
r
u
p
t
r
e
q
u
e
s
t
C
l
o
c
k
c
o
n
t
r
o
l
c
i
r
c
u
i
t
t c
oc
e
r
a
/
c
l
o
c
k
s
e
l
e
c
t
i
o
n
b
i
t
F
r
e
q
u
e
n
c
y
d
i
v
i
s
i
o
n
r
a
t
i
o
1
/
(
n
+
1
)
B
a
u
d
r
a
t
e
g
e
n
e
r
a
t
o
r
ress 001
16
c
o
u
n
t
s
o
u
r
c
e
s
e
e
c
t
o
n
t
Clock control circuit
F
a
l
l
i
n
g
-
e
d
g
e
d
e
t
e
c
t
o
r
ata
us
ress 0018
16
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
ata
us
ress 001
16
Transmit buffer register
Transmit shift register
C
I
N
n
o
w
-
s
p
e
e
m
o
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
T
S
C
=
1
=
0
=
1
T
S
C
=
0
r
a
n
s
m
t
/
r
e
c
e
v
e
s
t
c
o
c
(
1
/
2
t
o
1
/
2
0
4
8
o
f
i
n
t
e
r
n
a
l
c
l
o
c
k
,
o
r
a
n
e
x
t
e
r
n
a
l
c
l
o
c
k
)
er
a
output
X
er
a
nput
X
r
t
e
s
g
n
a
t
o
r
e
c
e
v
e
/
t
r
a
n
s
m
t
b
u
f
f
e
r
r
e
g
i
s
t
e
r
(
a
d
d
r
e
s
s
0
0
1
8
1
6
)
verrun error
detection
otes 1:
e transm
t
nterrupt
can
e se
ecte
to occur e
t
er w
en t
e transm
t
u
er reg
ster
as empt
e
=1
or a
ter
the transmit shift operation has ended (TSC=1), by setting the transmit interrupt source selection bit (TIC) of the serial
I/O control register.
2: If data is written to the transmit buffer register when TSC=0, the transmit clock is generated continuously and serial data
is output continuously from the T
X
D pin.
3: The receive interrupt (RI) is set when the receive buffer full flag (RBF) becomes “1” .
7
0
1
2
3
4
5
6
Comentarios a estos manuales