8XC196MC, MD, MH USER’S MANUAL
5-54
Figure 5-26. Asynchronous SIO Transmit Mode — End-of-PTS Interrupt Routine Flowchart
A3276-01
End-Of-PTS Interrupt
Save Critical Data
Set-up next data transfer
- Load next data byte into DATA register
- Reload PTSCOUNT and PTSCON1 registers
- Create start bit (clear TXD)
- Select PTS service for EPA channel
- Re-initialize the EPA channel
- Re-initialize the EPA timer to initiate first bit transfer
Load Critical Data
Return
T_COUNT = T_COUNT - 1
Y
N
T_COUNT = 0?
Clear Interrupt Request Bit
Disable EPA Channel
N
Is PTS
Cycle Completed?
Y
TXDDONE = 1