High frequency interrupts, in particular, should be handed in the order shown in the following table. The most important of these are the first two, 1a and 1b. They have equal priority because the software must acknowledge a setup token in the timeliest manner possible to have the control endpoint and buffer always available for another Setup token. The SOF interrupt is next important.
| Execution Order | Interrupt | usb.USBSTS | Action |
|---|---|---|---|
| 1a | USB Interrupt ENDPTSETUPSTATUS | [UI] | Copy contents of setup buffer and acknowledge setup packet. Process setup packet according to USB 2.0 Chapter 9 or application specific protocol. |
| 1b | USB Interrupt ENDPTCOMPLETE | [UI] | Handle completion of dTD. |
| 2 | SOF Interrupt | [SRI] | Action as deemed necessary by application. This interrupt might not have a use in all applications. |