English
Language : 

M16C26A Datasheet, PDF (173/352 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/26A Group (M16C/26A, M16C/26B, M16C/26T)
13. Serial I/O
13.1.2.4. Serial Data Logic Switching Function (UART2)
The data written to the U2TB register has its logic reversed before being transmitted. Similarly, the
received data has its logic reversed when read from the U2RB register. Figure 13.1.2.4.1 shows serial
data logic.
(1) When the U2LCH bit in the U2C1 register is set to "0" (no reverse)
Transfer clock “H”
“L”
TxD2 “H”
(no reverse) “L”
ST D0 D1 D2 D3 D4 D5 D6 D7 P SP
(2) When the U2LCH bit in the U2C1 register is set "1" (reverse)
Transfer clock “H”
“L”
TxD2 “H”
(reverse) “L”
ST D0 D1 D2 D3 D4 D5 D6 D7 P SP
NOTE:
1. This applies to the case where the CKPOL bit in the U2C0 register is set to "0"
(transmit data output at the falling edge of the transfer clock), the UFORM bit in the
U2C0 register is set to "0" (LSB first), the STPS bit in the U2MR register is set to "0"
(1 stop bit) and the PRYE bit in the U2MR register is set to "1" (parity enabled).
ST: Start bit
P: Parity bit
SP: Stop bit
Figure 13.1.2.4.1. Serial Data Logic Switching
13.1.2.5. TxD and RxD I/O Polarity Inverse Function (UART2)
This function inverses the polarities of the TXD2 pin output and RXD2 pin input. The logic levels of all
input/output data (including the start, stop and parity bits) are inversed. Figure 13.1.2.5.1 shows the
TXD pin output and RXD pin input polarity inverse.
(1) When the IOPOL bit in the U2MR register is set to "0" (no reverse)
Transfer clock “H”
“L”
TxD2 “H”
(no reverse) “L”
ST D0 D1 D2 D3 D4 D5 D6 D7 P SP
RxD2 “H”
(no reverse) “L”
ST D0 D1 D2 D3 D4 D5 D6 D7 P SP
(2) When the IOPOL bit in the U2MR register is set to "1" (reverse)
Transfer clock “H”
“L”
TxD2 “H”
(reverse) “L”
ST D0 D1 D2 D3 D4 D5 D6 D7 P SP
RxD2
(reverse)
“H”
“L”
ST D0 D1 D2 D3 D4 D5 D6 D7 P SP
NOTE:
1. This applies to the case where the UFORM bit in the U2C0 register is set to
"0"(LSB first), the STPS bit in the U2MR register is set to "0" (1 stop bit) and the
PRYE bit in the U2MR register is set to "1"(parity enabled).
ST: Start bit
P: Parity bit
SP: Stop bit
Figure 13.1.2.5.1. TXD and RXD I/O Polarity Inverse
Rev. 2.00 Feb.15, 2007 page 156 of 329
REJ09B0202-0200