8XC196MC, MD, MH USER’S MANUAL
5-58
Figure 5-28. Asynchronous SIO Receive Mode — End-of-PTS Interrupt Routine Flowchart
A3277-01
End-Of-PTS Interrupt
Save Critical Data
Set-up next data reception
- Clear DATA register
- Reload PTSCOUNT and PTSCON1 registers
- Select PTS service for EPA channel
- Re-initialize the EPA channel
Load Critical Data
Return
R_COUNT = R_COUNT - 1
Y
N
R_COUNT = 0?
Save Received Data
Disable EPA Channel
Y
Start Bit?
N
Clear Interrupt Request Bit
RXDDONE = 1
Y
Parity Error?
N
Y
Framing Error?
N
RXDDONE = 3
Start Bit Error?
N
Initialize
EPA Channel
Set Time To First
Bit Sample
Enable PTS Service
for EPA Channel
Y