M16C/62P Group (M16C/62P, M16C/62PT)
17. Serial Interface
Rev.2.41
Jan 10, 2006
Page 195 of 390
REJ09B0185-0241
17.1.1.5
Serial Data Logic Switching Function
When the UiLCH bit in the UiC1 register (i = 0 to 2) = 1 (reverse), the data written to the UiTB register has its
logic reversed before being transmitted. Similarly, the received data has its logic reversed when read from the
UiRB register. Figure 17.16 shows Serial Data Logic Switching.
Figure 17.16
Serial Data Logic Switching
17.1.1.6
Transfer Clock Output From Multiple Pins (UART1)
Use the CLKMD1 to CLKMD0 bits in the UCON register to select one of the two transfer clock output pins
(see Figure 17.17). This function can be used when the selected transfer clock for UART1 is an internal clock.
Figure 17.17
Transfer Clock Output from Multiple Pins
D0
D1
D2
D3
D4
D5
D6
D7
Transfer Clock
TXDi
(No Reverse)
“H”
“L”
“H”
“L”
TXDi
(Reverse)
D0
D1
D2
D3
D4
D5
D6
D7
“H”
“L”
(1) When The UiLCH Bit in The UiC1 Register = 0 (No Reverse)
Transfer Clock
“H”
“L”
(2) When The UiLCH Bit = 1 (Reverse)
NOTES :
1. This applies to the case where the CKPOL bit in the UiC0 register = 0
(transmit data output at the falling edge and the receive data taken
in at the rising edge of the transfer clock) and the UFORM bit = 0
(LSB first).
i = 0 to 2
Microcomputer
TXD1 (P6_7)
CLKS1 (P6_4)
CLK1 (P6_5)
IN
CLK
IN
CLK
NOTES :
1. This applies to the case where the CKDIR bit in the U1MR register= 0
(internal clock) and the CLKMD1 bit in the UCON register = 1
(transfer clock output from multiple pins).
Transfer enabled
when the CLKMD0
bit in the UCON
register = 0
Transfer enabled
when the CLKMD0
bit = 1
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655