CHAPTER 14 ASYNCHRONOUS SERIAL INTERFACE (UART)
User’s Manual U16896EJ2V0UD
414
(2) Ending procedure
The procedure for ending continuous transmission is shown below.
Figure 14-6. Continuous Transmission End Procedure
TXDn (output)
Data (m
−
1)
Data (m)
<11>
<7>
<6>
<8>
<10>
INTSTn (output)
TXBn register
Data (m
−
1)
Data (m
−
1)
Data (m)
FFH
Data (m)
<9>
ASIFn register
(TXBFn, TXSFn bits)
UARTEn bit
or
TXEn bit
11
01
11
01
00
TXSn register
Start
bit
Start
bit
Stop
bit
Stop
bit
ASIFn Register
Transmission End Procedure
Internal Operation
TXBFn TXSFn
<6> Transmission of data (m
−
2) is in
progress
1 1
<7> INTSTn interrupt occurs
•
Read ASIFn register (confirm that TXBFn bit = 0)
0
0
1
1
•
Write data (m)
<8> Generate start bit
Start data (m
−
1) transmission
<<Transmission in progress>>
1 1
<9> INTSTn interrupt occurs
•
Read ASIFn register (confirm that TXSFn bit = 1)
There is no write data
<10> Generate start bit
Start data (m) transmission
<<Transmission in progress>>
0
0
1
1
<11> Generate INTSTn interrupt
•
Read ASIFn register (confirm that TXSFn bit = 0)
•
Clear (0) the UARTEn bit or TXEn bit
Initialize internal circuits
0
0
0
0