R01UH0092EJ0110 Rev.1.10
Page 520 of 807
Jul 31, 2012
M16C/64C Group
24. Serial Interface SI/O3 and SI/O4
24. Serial Interface SI/O3 and SI/O4
24.1
Introduction
SI/O3 and SI/O4 are dedicated clock-synchronous serial I/O ports.
Table 24.1 lists SI/O3 and SI/O4 Specifications.
Figure 24.1 shows SI/O3 and SI/O4 Block Diagram, and Table 24.2 lists the I/O Ports.
Table 24.1
SI/O3 and SI/O4 Specifications
Item
Specification
Data format
Character length: 8 bits
Transmit/receive clocks
•
The SMi6 bit in the SiC register = 1 (internal clock):
fj = f1SIO, f2SIO, f8SIO, f32SIO
n = setting value of the SiBRG register 00h to FFh
The SMi6 bit = 0 (external clock): Input from the CLKi pin
(1)
Transmission/reception start
condition
Before transmission/reception starts, write transmit data to the SiTRR
register.
(2)
Interrupt request generation
timing
•
The SMi4 bit in the SiC register = 0
The rising edge of the last transmit/receive clock
•
The SMi4 bit = 1
The falling edge of the last transmit/receive clock
Selectable functions
•
CLK polarity selection
Whether data is input/output at the rising or falling edge of the
transmit/receive clock can be selected.
•
LSB first or MSB first selection
Whether to start transmitting/receiving data from bit 0 or from bit 7 can be
selected.
•
SOUTi initial value setting function
When the SMi6 bit in the SiC register = 0 (external clock), the SOUTi pin
output level while not transmitting can be selected.
•
SOUTi state selection after transmission
Whether to set to high-impedance or retain the last bit level can be
selected when the SMi6 bit in the SiC register is 1 (internal clock).
i = 3, 4
Notes:
1.
The data is shifted every time the external clock is input. When completing data
transmission/reception of the eighth bit, read or write to the SiTRR register before inputting the
clock for the next data transmission/reception.
2.
When the SMi6 bit in the SiC register is 0 (external clock), follow the steps below.
•
When the SMi4 bit in the SiC register is 0, write transmit data to the SiTRR register while input to
the CLKi pin is high.
•
When the SMi4 bit is 1, write transmit data to the SiTRR register while input to the CLKi pin is low.
fj
2 n
1
+
(
)
---------------------
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...