R01UH0136EJ0210 Rev.2.10
Page 529 of 800
Jul 31, 2012
M16C/64A Group
24. Serial Interface SI/O3 and SI/O4
24.3.8
Function for Setting SOUTi Initial Value
When the SMi6 bit in the SiC register is 0 (external clock), the SOUTi pin output can be fixed high or low
when not transmitting/receiving data. High or low can be selected by setting the SMi7 bit in the SiC
register. However, the last bit value of the previous unit of data is retained between adjacent units of data
when using the external clock. Figure 24.7 shows Timing Chart for Setting SOUTi Initial Value and How to
Set It.
Figure 24.7
Timing Chart for Setting SOUTi Initial Value and How to Set It
Write signal to the
SiTRR register
SOUTi (internal)
SMi7 bit
SOUTi pin output
SMi3 bit
Setting the SOUTi
initial value to high
(1)
Port selection switching
(I/O port
→
SOUTi)
D0
(i = 3, 4)
Initial value = high
Port output
D0
(Example) When High Is Selected for the SOUTi Initial Value
This diagram assumes the following:
SMi2 = 0 (SOUTi output), SMi5 = 0 (LSB first), SMi6 = 0 (external clock)
Note:
1. SOUTi can only be initialized when input on the CLKi pin is in the high state if the
SMi4 bit in the SiC register = 0 (transmit data is output at the falling edge of the transmit
receive clock) or in the low state if the SMi4 bit = 1 (transmit data is output at the rising
edge of the transmit/receive clock).
Set the SMi3 bit to 0
(SOUTi pin functions as an I/O port)
Set the SMi7 bit to 1
(SOUTi initial value = high)
High is output from
the SOUTi pin
Write to the SiTRR register
Serial transmission/
reception starts
End
Initial value setting of SOUTi output
and transmission/reception start
Set the SMi3 bit to 1
(SOUTi pin functions as SOUTi output)
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...