English
Language : 

M16C29 Datasheet, PDF (245/499 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/Tiny SERIES
M16C/29 Group
14. Serial I/O
14.2.3 Functions for Setting an SOUTi Initial Value
If the SMi6 bit in SiC register is set to 0 (external clock), the SOUTi pin output level can be fixed high or low
when not transferring data. However, when transmitting data consecutively, the last bit (bit 0) value of the
last transmitted data is retained between the sccessive data transmissions. Figure 14.39 shows the
timing chart for setting an SOUTi initial value and how to set it.
(Example) When “H” selected for SOUTi initial value (1)
Signal written to
SiTRR register
Setting of the initial value of S OUTi
output and starting of transmission/
reception
SMi7 bit
Set the SMi3 bit to 0
(SOUTi pin functions as an I/O port)
SMi3 bit
D0
SOUTi (internal)
Port output
D
0
SOUTi pin output
Initial value = “H” (3)
(i = 3, 4)
Setting the SOUTi Port selection switching
initial value to “H” (I/O port SOUTi)
(2)
NOTES:
1. This diagram applies to the case where the bits in the SiC register are set as follows:
SMi2 = 0 (SOUTi output), SMi5 = 0 (LSB first) and SMi6 = 0 (external clock)
2. SOUTi can only be initialized when input on the CLKi pin is in the high state if the SMi4bit in the SiC
register is set to 0 (transmit data output at the falling edge of the transfer clock) or in the low state if
the SMi4 bit is set to 1 (transmit data output at the rising edge of the transfer clock).
3. If the SMi6 bit is set to 1 (internal clock) or if the SMi2 bit is set to 1 (SOUTi output disabled), this
output goes to the high-impedance state.
Set the SMi7 bit to 1
(SOUTi initial value = “H”)
Set the SMi3 bit to 1
(SOUTi pin functions as S OUTi output)
“H” level is output
from the SOUTi pin
Write to the SiTRR register
Serial transmit/reception starts
Figure 14.39 SOUTi Initial Value Setting
Rev. 1.12 Mar.30, 2007 page 221 of 458
REJ09B0101-0112