Rev.2.00 Oct 16, 2006 page 65 of 354
REJ09B0340-0200
M30245 Group
2. UART
Example of wiring
Example of operation
T
X
Di
CTSi
R
X
D
Port
Microcomputer
Receiver side IC
(Note)
Note: Since T
X
D
2
pin is N-channel open drain,
this pin needs pull-up resistance.
Transmit
enable bit (TE)
Transmit buffer
empty flag (Tl)
Transmit
register empty
flag (TXEPT)
D
0
D
1
D
2
D
3
D
4
D
5
D
6
D
7
ST
P
Start
bit
Parity
bit
TxDi
CTSi
“0”
“1”
“0”
“1”
“L”
“H”
“0”
“1”
Transmit
interrupt request
bit (IR)
“0”
“1”
Cleared to “0” when interrupt request is accepted, or cleared by software
D
0
D
1
D
2
D
3
D
4
D
5
D
6
D
7
ST
P
SP
D
0
D
1
ST
Shown in ( ) are bit symbols.
SP
Stopped pulsing because transfer enable bit = “0”
Stop
bit
Data is set in UARTi transmit buffer register
Transferred from UARTi transmit buffer register to UARTi transmit register
Tc
Transfer clock
When confirming stop bit, stopped transfer clock once because CTS = “H”
Started transfer clock again to start transmitting immediately after confirming CTS = “L”
(1) Transmission enabled
(2) Confirme CTS
(3) Start transmission
(4) Confirme stop bit
(5) Start transmission
The above timing applies to the following settings :
• Parity is enabled.
• One stop bit.
• CTS function is selected.
• Transmit interrupt cause select bit = “1”.
Tc = 16 (n + 1) / fi or 16 (n + 1) / f
EXT
fi : frequency of BRGi count source (f
1
, f
8
, f
32
)
f
EXT
: frequency of BRGi count source (external clock)
n : value set to BRGi
Figure 2.4.7. Operation timing of transmission in UART mode
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...