Section 13 Serial Communication Interface
• Transmitting Serial Data (Synchronous Mode): Figure 13.16 shows a sample flowchart for
transmitting serial data and indicates the procedure to follow.
Initialize
Start transmitting
Read TDRE flag in SSR
TDRE = 1
Yes
Write transmit data in TDR
and clear TDRE flag to 0 in SSR
All data transmitted?
Yes
Read TEND flag in SSR
TEND = 1
Yes
Clear TE bit to 0 in SCR
<End>
Figure 13.16 Sample Flowchart for Serial Transmitting
Rev. 4.00 Jan 26, 2006 page 528 of 938
REJ09B0276-0400
SCI initialization: the transmit data output
(1)
(1)
function
automatically.
SCI status check and transmit data write:
(2)
read SSR, check that the TDRE flag is 1, then
(2)
write transmit data in TDR and clear the
TDRE flag to 0.
No
To continue transmitting serial data: after
(3)
checking that the TDRE flag is 1, indicating
that data can be written, write data in TDR,
then clear the TDRE flag to 0.
DMAC is activated by a transmit-data-empty
interrupt request (TXI) to write data in TDR,
the TDRE flag is checked and cleared
automatically.
No
(3)
No
of
the
TxD
pin
is
selected
When the