227
Clock-Synchronous Serial I/O
M
i
t
s
u
M
S
b
i
s
3
M
h
0
I
C
i
m
2
R
i
1
O
c
r
8
C
o
c
o
G
M
m
p
r
P
u
t
u
T
e
r
p
R
s
o
U
S
I
N
G
L
E
-
C
H
I
P
1
6
-
B
I
T
C
M
O
O
E
(b) Function for choosing polarity
This function switches the polarity of the transfer clock. The following operations are available:
Data is input at the falling edge of the transfer clock, and is output at the rising edge.
Data is input at the rising edge of the transfer clock, and is output at the falling edge.
(c) Function for choosing which bit to transmit first
This function is to choose whether to transmit data from bit 0 or from bit 7. Choose either of the
following:
LSB first
Data is transmitted from bit 0.
MSB first
Data is transmitted from bit 7.
(d) Function for choosing successive reception mode
Successive reception mode is a mode in which reading the receive buffer register makes the recep-
tion-enabled status ready. In this mode, there is no need to write dummy data to the transmit buffer
register so as to make the reception-enabled status ready. But at the time of starting reception, read
the receive buffer register into a dummy manner.
Normal mode
Writing dummy data to the transmit buffer register makes the
reception enabled status ready.
Successive reception mode
Reading the reception buffer register makes the reception-enabled
status ready.
(e) Function for outputting transfer clock to multiple pins
This function is to switch among pins to output the transfer clock. This function is effective only when
selecting the internal clock. Switching among pins for outputting the transfer clock allows data trans-
mission to two external ICs in a time-sharing manner.
(f) Function for choosing a transmission interrupt factor
The timing to generate a transmission interrupt can be selected from the following: the instant the
transmission buffer is emptied or the instant the transmission register is emptied. When transmis-
sion buffer empty timing is selected, an interrupt occurs when transmitted data is moved from the
transmission buffer to the transmission register. Therefore, data can be transmitted in succession.
When transmission register empty timing is selected, an interrupt occurs when data transmission is
complete.
Following are some examples in which various functions (a) through (f) are selected:
Transmission Operation WITH: CTS function, transmission at falling edge of transfer clock, LSB
First, interrupt at instant transmission buffer is emptied; WITHOUT transfer clock output to multiple
pins function ............................................................................................................................ P232
Transmission Operation WITH: CTS/RTS function disabled, transmission at falling edge of transfer
clock, LSB First, interrupt at instant transmission is completed; WITH transfer clock output to mul-
tiple pins function (UART0 selection available)....................................................................... P236
Reception WITH: RTS function, reception at falling edge of transfer clock, LSB First, successive
reception mode disabled; WITHOUT transfer clock output to multiple pins function .............. P240