Renesas M16C/64A Series User Manual page 517

Table of Contents

Advertisement

M16C/64A Group
23.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 2, 5 to 7
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 23.15 Serial Data Logic Switching
23.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 2, 5 to 7
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 23.16 TXD and RXD I/O Polarity Inversion
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
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
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
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 484 of 800

Advertisement

Table of Contents
loading

Table of Contents