This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FX2 external interrupt 5

Hello

I'm developing an application on the Cypress CY7C68013 USB controller. How can I enable and manage the INT5 interrupt? In all my tries, when the interrupt occurs (falling edge on the pin), the firmware freezes.
Which function does the code call when the interrupt occurs?

Thanks

Parents
  • (i.e. ISR_Ep0in, ISR_Ep0out, ecc.) that are automatically called when an interrupt occurs.
    

    Certain interrupts with the Cypress chip employ what they refer to auto-vectoring. The libraries supplied by Cypress will vector to the functions that you describe. INT5 is not one of these interrupts that employ auto-vectoring however. There probably is no handler present for this interrupt unless you have provided it yourself. Check the interrupt vector location for INT5 (0x5B?) in your MAP file (or in the simulator) and see what code is present there. Does it handle the interrupt?

Reply
  • (i.e. ISR_Ep0in, ISR_Ep0out, ecc.) that are automatically called when an interrupt occurs.
    

    Certain interrupts with the Cypress chip employ what they refer to auto-vectoring. The libraries supplied by Cypress will vector to the functions that you describe. INT5 is not one of these interrupts that employ auto-vectoring however. There probably is no handler present for this interrupt unless you have provided it yourself. Check the interrupt vector location for INT5 (0x5B?) in your MAP file (or in the simulator) and see what code is present there. Does it handle the interrupt?

Children