R01UH0092EJ0110 Rev.1.10
Page 460 of 807
Jul 31, 2012
M16C/64C Group
23. Serial Interface UARTi (i = 0 to 2, 5 to 7)
23.2.5
UARTi Transmit/Receive Control Register 0 (UiC0) (i = 0 to 2, 5 to 7)
CLK1 to CLK0 (UiBRG count source select bit) (b1-b0)
When bits CLK1 to CLK0 are 00b (f1SIO or f2SIO selected), select f1SIO or f2SIO by the PCLK1 bit in
the PCLKR register.
Set bits CLK1 to CLK0 after setting registers UCLKSEL0 and PCLKR.
If bits CLK1 to CLK0 are changed, set the UiBRG register.
CRS (
CTS
/
RTS
function select bit) (b2)
CTS1
/
RTS1
can be used when the CLKMD1 bit in the UCON register is 0 (CLK output is only from
CLK1) and the RCSP bit in the UCON register is 0 (
CTS0
/
RTS0
not separated).
CRD (
CTS
/
RTS
disable bit) (b4)
When the CRD bit is 1 (
CTS
/
RTS
function disabled), the
CTSi
/
RTSi
pin can be used as an I/O port.
b7 b6 b5 b4
b1
b2
b3
b0
Function
Bit Symbol
Bit Name
RW
CRS
CLK1
CLK0
UiBRG count source select
bit
RW
RW
RW
CTS/RTS function select bit
Enabled when CRD is 0
0 : CTS function selected
1 : RTS function selected
b1 b0
0 0 : f1SIO or f2SIO selected
0 1 : f8SIO selected
1 0 : f32SIO selected
1 1 : Do not set
0 : Data present in transmit register
(transmission in progress)
1 : No data present in transmit register
(transmission completed)
Transmit register empty flag
TXEPT
RO
RW
NCH
0 : Pins TXDi/SDAi and SCLi are CMOS
output
1 : Pins TXDi/SDAi and SCLi are N-channel
open drain output
Data output select bit
RW
CKPOL
CLK polarity select bit
0 : Transmit data is output at the falling
edge of transmit/receive clock and
receive data is input at the rising edge
1 : Transmit data is output at the rising
edge of transmit/receive clock and
receive data is input at the falling edge
Bit order select bit
0 : LSB first
1 : MSB first
UFORM
RW
CRD
0 : CTS/RTS function enabled
1 : CTS/RTS function disabled
CTS/RTS disable bit
RW
UARTi Transmit/Receive Control Register 0 (i = 0 to 2, 5 to 7)
Symbol
Address
Reset Value
U0C0, U1C0, U2C0
024Ch, 025Ch, 026Ch
0000 1000b
U5C0, U6C0, U7C0
028Ch, 029Ch, 02ACh
0000 1000b
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...