English
Language : 

M16C6K7 Datasheet, PDF (116/285 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Rev.1.0
SeCrlioacl kI/Oasynchronous serial I/O (UART) mode
Mitsubishi microcomputers
M16C / 6K7 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
(c) Function for switching serial data logic (UART2)
When the data logic selection bit (bit 6 of address 037D16) is assigned 1, data is inverted in writing to the
transmission buffer register or reading the reception buffer register. Fig.GA-20 shows the example of timing
for switching serial data logic.
• When LSB first, parity enabled, one stop bit
Transfer clock “H”
“L”
TxD2 “H”
(no reverse) “L”
TxD2 “H”
(reverse) “L”
ST D0 D1 D2 D3 D4 D5 D6 D7 P SP
ST D0 D1 D2 D3 D4 D5 D6 D7 P SP
ST : Start bit
P : Even parity
SP : Stop bit
Fig.GA-20 Timing for switching serial data logic
(d) TxD, RxD I/O polarity switching function (UART2)
This function is to reverse TXD pin output and RXD pin input. The level of any data to be input or output
(including the start bit, stop bit(s), and parity bit) is reversed. Set this function to “0” (not to reverse) for usual
use.
(e) Bus collision detection function (UART2)
This function is to sample the output level of the TXD pin and the input level of the RXD pin at the rising edge
of the transfer clock; if their values are different, then an interrupt request occurs. Fig.GA-21 shows the
example of detection timing of a bus collision (in UART mode).
Transfer clock “H”
“L”
TxD2 “H”
ST
“L”
RxD2 “H”
ST
“L”
Bus collision detection “1”
interrupt request signal “0”
Bus collision detection “1”
interrupt request bit
“0”
Fig.GA-21 Detection timing of a bus collision (in UART mode)
SP
SP
ST : Start bit
SP : Stop bit
115