Rev. 5.00, 09/03, page 470 of 760
RDRF = 1?
FER = 1 or ORER = 1?
RDRF = 1?
All data received?
No
End of reception
Yes
Set MPIE bit
in
SCSCR to 1
Read RDRF bit
in
SCSSR
Clear RE bit
in
SCSCR to 0
No
No
Read ORER and FER
bits
in
SCSSR
FER = 1 or ORER = 1?
Read RDRF bit
in
SCSSR
Read receive data
from
SCRDR
Is ID the
station's ID?
Yes
Read ORER and FER
bits
in
SSCSR
No
Error handling
Yes
Yes
Yes
No
Start of reception
No
Yes
Read receive data
from
SCRDR
(1)
(2)
(4)
(3)
Note: Numbers in parentheses refer to steps in the preceding procedure description.
Figure 14.15 Sample Flowchart for Receiving Multiprocessor Serial Data