Rev. 5.00, 09/03, page 462 of 760
Start of reception
Read ORER, PER, and FER
bits in SCSSR
All data received?
End of reception
No
Yes
PER ∨ FER ∨ ORER = 1?
RDRF = 1?
Yes
Yes
Clear RE bit in SCSCR to 0
No
No
Read RDRF bit in SCSSR
Error handling
Read receive data from SCRDR
and clear RDRF bit in SCSSR to 0
(1)
(2)
(3)
Note: Numbers in parentheses refer to steps in the preceding procedure description.
Figure 14.10 Sample Flowchart for Receiving Serial Data