Interrupt Service Routine - Philips PDIUSBD12 Firmware Programming Manual

Hide thumbs Also See for PDIUSBD12:
Table of Contents

Advertisement

Interconnectivity
Firmware Programming Guide for PDIUSBD12

5. Interrupt Service Routine

The PDIUSBD12 firmware is fully interrupt driven. The flow of ISR is straightforward and this is shown below.
Set Bus Reset Flag
At the entrance of ISR, the firmware uses D12_ReadInterruptRegister() to decide the source of interrupt and
then to dispatch it to the appropriate subroutines for processing.
ISR
ISR Entry
Read D12 Interrupt Register
Reset Idle Timer
Yes
Bus Reset?
No
Suspend Change?
No
DMA EOT?
No
Control In Done?
No
Control Out Done?
No
Generic In Done?
No
Generic Out Done?
No
Main In Done?
No
Main Out Done?
No
Send EOI to Interrupt Controller
End of ISR
Philips Semiconductors - Asia Product Innovation Centre
Visit
http://www.flexiusb.com
Yes
Set Suspend Changed Flag
Yes
DMA EOT handler Subroutine
Yes
Control RX handler Subroutine
Yes
Control TX handler Subroutine
Generic RX handler Subroutine
Yes
Yes
Generic TX handler Subroutine
Main RX handler
Yes
Subroutine
Main TX handler
Yes
Subroutine
Page 8 of 22

Advertisement

Table of Contents
loading

Table of Contents