Rev. 5.00, 09/03, page 459 of 760
TDRE = 1?
Write transmit data to
SCTDR and clear TDRE bit in
SCSSR to 0
All data transmitted?
Yes
TEND = 1?
Read TEND bit
in
SCSSR
Break output?
Yes
Clear TE bit in SCSCR to 0
End of transmission
Yes
Read TDRE bit
in
SCSSR
No
No
Yes
No
No
(1)
(2)
(3)
Start of transmission
Set SCPDR and SCPCR
Note: Numbers in parentheses refer to steps in the preceding procedure description.
Figure 14.8 Sample Flowchart for Transmitting Serial Data