What are the interrupt sources for the USB block in PSoC 4100L / 4200L family of devices?
The USB block has 13 interrupt sources that are mapped to the three hardware interrupts (interrupt vectors) as shown in Figure 1.
Figure 1. Mapping of USB Interrupt Events to Interrupt Vectors
The three hardware interrupts are named Interrupt Low, Interrupt Medium, and Interrupt High. The low and high interrupts are hardwired to the Nested Vectored Interrupt Controller (NVIC) in the ARM® Cortex® M0 CPU, and assigned interrupt vector numbers 30 and 31 respectively. The medium interrupt can be routed to any NVIC input and can have any vector number from 0-29.
Note that low, medium and high interrupts are just the names assigned for the USB interrupts, and have no relation to the priority assigned to these interrupts.
The USB Component automatically maps the interrupt sources to one of these three interrupts by default. You can also change the assignment using the radio buttons in the “Interrupts” tab of the Component GUI as shown in Figure 1. The interrupt priority of the three interrupt vectors can be changed in the <project>.cydwr file.
The 13 interrupt sources are listed below. See the PSoC Creator USB Component datasheet for more information on the interrupt sources and guidelines for working with the USB interrupts.
In addition to these three interrupt vectors—low, medium, high—the USB Component uses two more interrupt vectors internally as part of the implementation:
See the USB Component datasheet for more details on these interrupts.