You are here

Seeing a second interrupt | Cypress Semiconductor

Seeing a second interrupt

Summary: 1 Reply, Latest post by aasi on 02 Apr 2009 10:27 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
gtfrueh's picture
4 posts

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?


George Frueh

aasi's picture
Cypress Employee
1166 posts

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...

Log in to post new comments.