Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I am using the CY7C64013 USB controller and have a question. I have set Endpoint2 to be Interrupt OUT and Endpoint4 to be Interrupt IN. I am using visual basic to generate a writefile API call to trigger the Endpoint2 Interrupt. This works fine. However, while in the Endpoint2 interrupt service routine, I need to send data back to the host using Endpoint4. Question: While in the Endpoint2 interrupt service routine, is the CY7C64013 capable of seeing another interrupt on Endpoint4? I am not able to do this. I believe the CY7C64013 interrupt system is disabled as soon as an interrupt is generated, although I do not know if this is true. I have re-enabled interrupts a soon as I enter the Endpoint2 service routine, but my code is not able to see the Endpoint4 interrupt. Is there any test code that would show me how to do this? Thanks, George Frueh
When dealing with USB protocol the abstraction to be in mind is in packets... when ep2 isr is triggered it means the host is sending in data... there is no way host can send a request in the middle of the packet to ep4 asking for a interrupt packet... if an in transfer is triggered by host right after the out transfer the ep4 isr should be triggered...