Rev.2.00 Oct 16, 2006 page 44 of 354
REJ09B0340-0200
M30245 Group
2. Clock-Synchronous Serial I/O
Figure 2.3.4. Serial I/O-related registers (3)
F
u
n
c
t
i
o
n
(
D
u
r
i
n
g
U
A
R
T
m
o
d
e
)
W
R
F
u
n
c
t
i
o
n
(
D
u
r
i
n
g
c
l
o
c
k
s
y
n
c
h
r
o
n
o
u
s
s
e
r
i
a
l
I
/
O
m
o
d
e
)
T
X
E
P
T
C
L
K
1
C
L
K
0
C
R
S
C
R
D
CKPOL
B
R
G
c
o
u
n
t
s
o
u
r
c
e
s
e
l
e
c
t
b
i
t
T
r
a
n
s
m
i
t
r
e
g
i
s
t
e
r
e
m
p
t
y
f
l
a
g
0 : Transmit data is output at
falling edge of transfer clock
and receive data is input at
rising edge
1 : Transmit data is output at
rising edge of transfer clock
and receive data is input at
falling edge
CLK polarity select bit
C
T
S
/
R
T
S
f
u
n
c
t
i
o
n
s
e
l
e
c
t
b
i
t
C
T
S
/
R
T
S
d
i
s
a
b
l
e
b
i
t
0 0 : f
1
is selected
0 1 : f
8
is selected
1 0 : f
32
is selected
1 1 : Inhibited
b1 b0
0 : LSB first
1 : MSB first
0 : Data present in transmit register
(during transmission)
1 : No data present in transmit
register (transmission completed)
0 : CTS/RTS function enabled
1 : CTS/RTS function disabled
0 : TxDi/SDAi and SCLi pin is CMOS
output
1 : TxDi/SDAi and SCLi pin is
N-channel open drain output
UFORM T
r
a
n
s
f
e
r
f
o
r
m
a
t
s
e
l
e
c
t
b
i
t
(
N
o
t
e
3
)
0 0 : f
1
is selected
0 1 : f
8
is selected
1 0 : f
32
is selected
1 1 : Inhibited
b1 b0
Valid when bit 4 = “0”
0 : CTS function is selected (Note 1)
1 : RTS function is selected (Note 4)
Valid when bit 4 = “0”
0 : CTS function is selected (Note 1)
1 : RTS function is selected (Note 4)
0 : Data present in transmit register
(during transmission)
1 : No data present in transmit
register (transmission completed)
Set to “0”
B
i
t
n
a
m
e
B
i
t
s
y
m
b
o
l
Note 1: Set the corresponding port direction register to “0”.
Note 2: UART2 transfer pin (TxD
2
: P7
0
and SCL2: P7
1
) is N-channel open drain output.
It cannot be set to CMOS output.
Note 3: Only clock synchronous serial I/O mode and 8-bit UART mode are valid.
Note 4: The corresponding port register and port direction register are invalid.
0 : CTS/RTS function enabled
1 : CTS/RTS function disabled
0 : LSB first
1 : MSB first
U
A
R
T
i
t
r
a
n
s
m
i
t
/
r
e
c
e
i
v
e
c
o
n
t
r
o
l
r
e
g
i
s
t
e
r
0
(
i
=
0
t
o
3
)
S
y
m
b
o
l
A
d
d
r
e
s
s
W
h
e
n
r
e
s
e
t
U
i
C
0
(
i
=
0
t
o
3
)
0
3
A
C
1
6
,
0
3
6
C
1
6
,
0
3
3
C
1
6
,
0
3
2
C
1
6
,
0
8
1
6
b7 b6 b5 b
4 b
3 b
2 b
1 b
0
N
C
H
(
N
o
t
e
2
)
D
a
t
a
o
u
t
p
u
t
s
e
l
e
c
t
b
i
t
0
:
T
x
D
i
/
S
D
A
i
a
n
d
S
C
L
i
p
i
n
i
s
C
M
O
S
o
u
t
p
u
t
1
:
T
x
D
i
/
S
D
A
i
a
n
d
S
C
L
i
p
i
n
i
s
N
-
c
h
a
n
n
e
l
o
p
e
n
d
r
a
i
n
o
u
t
p
u
t
0 0 : f
1
is selected
0 1 : f
8
is selected
1 0 : f
32
is selected
1 1 : Inhibited
0 0 : f
1
is selected
0 1 : f
8
is selected
1 0 : f
32
is selected
1 1 : Inhibited
0 0 : f
1
is selected
0 1 : f
8
is selected
1 0 : f
32
is selected
1 1 : Inhibited
R W
RI
UiIRS
UiRRM
UiLCH
TE
RE
TI
UiERE
b7
b6
b5
b4
b3
b2
b1
b0
UARTi transmit/receive control register 1 (i= 0 to 3)
Symbol
Address
When reset
UiC1 (i=0 to 3)
03AD
16
, 036D
16
, 033D
16
, 032D
16
02
16
Bit Symbol
Function
(clock synchronous
serial I/O mode)
Function
(UART mode)
Bit Name
Transmit enable
bit
Transmit buffer
empty flag
Receive enable
bit
Receive
complete flag
UARTi transmit
interrupt cause
select bit
UARTi continuous
receive mode
enable bit
Data logic
select bit
Error signal
output enable bit
0 : Transmit disabled
1 : Transmit enabled
0 : Data present in transmit buffer register
1 : No data present in transmit buffer register
0 : Receive disabled
1 : Receive enabled
0 : Data packet in receive buffer register
1 : No data packet in receive buffer register
0 : Transmit buffer empty (TI =1)
1 : Transmit buffer completed ( TXEPT =1)
0 : Continuous receive
mode disabled
1 : Continuous receive
mode enabled
0 : No reverse
1 : Reverse
Set to “0”
0 : Output disabled
1 : Output enabled
(Note 1)
Set to “0”
The value is
indeterminate when read.
Note 1: When disabling the error signal output, set the UiERE bit to “0” after setting the
UiMR register.
Summary of Contents for M16C FAMILY
Page 12: ...Chapter 1 Hardware...
Page 13: ...See M30245 group datasheet...
Page 14: ...Chapter 2 Peripheral Functions Usage...
Page 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Page 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Page 340: ...Chapter 4 External Buses...
Page 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Page 362: ...Chapter 5 Standard Characteristics...