Download Print this page

Renesas M16C/50 Series User Manual page 502

Advertisement

M16C/5L Group, M16C/56 Group
21.3.2.3
Serial Data Logic Switching Function
The logic of the data written to the UiTB register is inverted and then transmitted. Similarly, the inverted
logic of the received data is read when the UiRB register is read.
(1) UiLCH bit in the UiC1 register = 0 (not inverted)
Transmit/
receive clock
TXDi
(not inverted)
(2) UiLCH bit in the UiC1 register = 1 (inverted)
Transmit/
receive clock
TXDi
(inverted)
i = 0 to 4
The above assumes the following:
• The CKPOL bit in the UiC0 register is 0 (transmit data output at the falling
edge of the transmit/receive clock).
• The UFORM bit in the UiC0 register is 0 (LSB first).
• The STPS bit in the UiMR register is 0 (1 stop bit).
• The PRYE bit in the UiMR register is 1 (parity enabled).
• The IOPOL bit in the UiMR register is 0 (TXD, RXD I/O not reversed).
Figure 21.11 Serial Data Logic Switching
21.3.2.4
TXD and RXD I/O Polarity Reverse Function
This function reverses the polarities of the TXDi pin output and RXDi pin input. The logic levels of all I/O
data (including bits for start, stop, and parity) are inverted.
(1) IOPOL bit in the UiMR register = 0 (no reverse)
Transmit/receive
clock
TXDi
(not inverted)
RXDi
(not inverted)
(2) IOPOL bit in the UiMR register = 1 (reverse)
Transmit/receive
clock
TXDi
(inverted)
RXDi
(inverted)
i = 0 to 4
The above assumes the following:
• The UFORM bit in the UiC0 register is 0 (LSB first).
• The STPS bit in the UiMR register is 0 (1 stop bit).
• The PRYE bit in the UiMR register is 1 (parity enabled).
• The UiLCH bit in the UiC1 register is 0 (serial data logic not inverted).
Figure 21.12 TXD and RXD I/O Polarity Inversion
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
High
Low
High
ST
D0
D1
Low
High
Low
High
ST
D0
D1
Low
High
Low
High
ST
D0
D1
Low
High
ST
D0
D1
Low
High
Low
High
ST
D0
D1
Low
High
ST
D0
D1
Low
21. Serial Interface UARTi (i = 0 to 4)
D2
D3
D4
D5
D6
D2
D3
D4
D5
D6
D2
D3
D4
D5
D6
D2
D3
D4
D5
D6
D2
D3
D4
D5
D6
D2
D3
D4
D5
D6
D7
P
SP
D7
P
SP
ST: Start bit
P: Parity bit
SP: Stop bit
D7
P
SP
D7
P
SP
D7
P
SP
D7
P
SP
ST: Start bit
P: Parity bit
SP: Stop bit
Page 465 of 803

Advertisement

loading