Renesas M16C/26A Series Hardware Manual page 164

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
(1) Example of Transmit Timing (Internal clock is selected)
Transfer clock
UiC1 register
TE bit
UiC1 register
TI bit
CTSi
CLKi
TxDi
UiC0 register
TXEPT bit
SiTIC register
IR bit
The above timing diagram applies to the case where the register bits are set as follows:
• The CKDIR bit in the UiMR register is set to "0" (internal clock)
• The CRD bit in the UiC0 register is set to "0" (CTS/RTS enabled); CRS bit is set to "0" (CTS selected)
• The CKPOL bit in the UiC0 register is set to "0" (transmit data output at the falling edge and receive data taken in at the rising edge of the
transfer clock)
• The UiIRS bit is set to "0" (an interrupt request occurs when the transmit buffer becomes empty): U0IRS bit is the bit 0 in the UCON register
U1IRS bit is the bit 1 in the UCON register, and U2IRS bit is the bit 4 in the U2C1 register.
(2) Example of Receive Timing (External clock is selected)
UiC1 register
RE bit
UiC1 register
TE bit
UiC1 register
TI bit
RTSi
CLKi
RxDi
UiC1 register
RI bit
SiRIC register
IR bit
The above timing diagram applies to the case where the register bits are set
as follows:
• The CKDIR bit in the UiMR register is set to "1" (external clock)
• The CRD bit in the UiC0 register is set to "0"(CTS/RTS enabled);
The CRS bit is set to "1" (RTS selected)
• UiC0 register CKPOL bit is set to "0"(transmit data output at the falling edge and
receive data taken in at the rising edge of the transfer clock)
f
: frequency of external clock
EXT
Figure 13.1.1.1. Typical transmit/receive timings in clock synchronous serial I/O mode
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
6
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
Tc
"1"
"0"
Write data to the UiTB register
"1"
"0"
Transferred from UiTB register to UARTi transmit register
"H"
T
CLK
"L"
D
D
D
D
D
0
1
2
3
4
"1"
"0"
"1"
"0"
"1"
"0"
"1"
"0"
Write dummy data to UiTB register
"1"
"0"
Transferred from UiTB register to UARTi transmit register
"H"
"L"
D
D
D
D
D
0
1
2
3
Transferred from UARTi receive register
"1"
to UiRB register
"0"
"1"
"0"
page 145
f o
3
2
9
6
C
2 /
6
) T
Stopped pulsing because CTSi = "H"
D
D
D
D
D
D
D
D
5
6
7
0
1
2
3
4
Cleared to "0" when interrupt request is accepted, or cleared to "0" in a program
Tc = T
= 2(n + 1) / fj
CLK
fj: frequency of UiBRG count source (f
n: value set to UiBRG register
i: 0 to 2
Even if the reception is completed, the RTS
does not change. The RTS becomes "L"
1 / f
when the RI bit changes to "0" from "1".
EXT
Receive data is taken in
D
D
D
D
D
D
D
4
5
6
7
0
1
2
3
Read out from UiRB register
Cleared to "0" when interrupt request is
accepted, or cleared to "0" by program
Make sure the following conditions are met when input
to the CLKi pin before receiving data is high:
• UiC0 register TE bit is set to "1" (transmit enabled)
• UiC0 register RE bit is set to "1" (Receive enabled)
• Write dummy data to the UiTB register
Stopped pulsing because the TE bit = "0"
D
D
D
D
D
D
D
5
6
7
0
1
2
1SIO
D
D
4
5
13. Serial I/O
D
D
D
D
3
4
5
6
7
, f
, f
, f
)
2SIO
8SIO
32SIO

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents