Clock Synchronous Serial I/O Mode - Renesas M16C FAMILY series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C

14.1.1 Clock Synchronous serial I/O Mode

The clock synchronous serial I/O mode uses a transfer clock to transmit and receive data. Table 14.1
lists the specifications of the clock synchronous serial I/O mode. Table 14.2 lists the registers used in
clock synchronous serial I/O mode and the register values set.
Table 14.1 Clock Synchronous Serial I/O Mode Specifications
Item
Transfer data format
Transfer clock
Transmission, reception control
Transmission start condition
Reception start condition
Interrupt request
generation timing
Error detection
Select function
NOTES:
1. When an external clock is selected, the conditions must be met while if the CKPOL bit in the UiC0 register is set to "0"
(transmit data output at the falling edge and the receive data taken in at the rising edge of the transfer clock), the external
clock is in the high state; if the CKPOL bit in the UiC0 register is set to "1" (transmit data output at the rising edge and the
receive data taken in at the falling edge of the transfer clock), the external clock is in the low state.
2. If an overrun error occurs, bits 8 to 0 in UiRB register are undefined. The IR bit in the SiRIC register remains unchanged.
3. The U0IRS and U1IRS bits respectively are the bits 0 and 1 in the UCON register; the U2IRS bit is bit 4 in the U2C1 register.
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
• Transfer data length: 8 bits
• The CKDIR bit in the UiMR(i=0 to 2) register is set to "0" (internal clock) : fj/ (2(n+1))
fj = f
, f
, f
1SIO
2SIO
• CKDIR bit is set to "1" (external clock ) : Input from CLKi pin
• Selectable from CTS function, RTS function or CTS/RTS function disable
• Before transmission can start, the following requirements must be met
_
The TE bit in the UiC1 register is set to "1" (transmission enabled)
_
The TI bit in the UiC1 register is set to "0" (data present in UiTB register)
_______
_
If CTS function is selected, input on the CTSi pin is set to "L"
• Before reception can start, the following requirements must be met
_
The RE bit in the UiC1 register is set to "1" (reception enabled)
_
The TE bit in the UiC1 register is set to "1" (transmission enabled)
_
The TI bit in the UiC1 register is set to "0" (data present in the UiTB register)
• For transmission, one of the following conditions can be selected
_
(3)
The UiIRS bit
UiTB register to the UARTi transmit register (at start of transmission)
_
The UiIRS bit is set to "1" (transfer completed): when the serial I/O finished sending
data from the UARTi transmit register
• For reception
When transferring data from the UARTi receive register to the UiRB register (at
completion of reception)
(2)
• Overrun error
This error occurs if the serial I/O started receiving the next data before reading the
UiRB register and received the 7th bit in the the next data
• CLK polarity selection
Transfer data input/output can be chosen to occur synchronously with the rising or
the falling edge of the transfer clock
• LSB first, MSB first selection
Whether to start sending/receiving data beginning with bit 0 or beginning with bit 7
can be selected
• Continuous receive mode selection
Reception is enabled immediately by reading the UiRB register
• Switching serial data logic (UART2)
This function reverses the logic value of the transmit/receive data
• Transfer clock output from multiple pins selection (UART1)
The output pin can be selected in a program from two UART1 transfer clock pins that
have been set
_______ _______
• Separate CTS/RTS pins (UART0)
_________
_________
CTS
and RTS
0
• UART1 pin remapping selection
The UART1 pin can be selected from the P6
page 175
f o
3
8
5
Specification
, f
. n: Setting value of UiBRG register
8SIO
32SIO
_______
_______
_______
is set to "0" (transmit buffer empty): when transferring data from the
are input/output from separate pins
0
00
16
_______ _______
(1)
to P6
or P7
to P7
7
4
3
0
14. Serial I/O
to FF
16
(1)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents