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 interrupt int0

Hello,

I want to work with the interrupt int0 of the FX2.

The regsiters I have to use are written down in the TRM of the FX2. But where are informations about enabling the interrupt or name of the ISR for example?

Where I can search? I only find information snippets.

Best regards
Jan

Parents
  • The examples for EZUSB FX2LP are included in the Dev kit CD image on the Cypress site,

    SETUP_FX2LP_DVK_1004.exe (26.4 MBytes)
    www.cypress.com/

    After installation, this folder holds an example for INT0 and other interrupts.

    C:\Cypress\USB\Examples\FX2LP\extr_intr



    The point for ISR coding is,

    The main file, extr_intr.c, starts with this line

    #pragma NOIV               // Do not generate interrupt vectors
    


    This setting is required to set up EZUSB-specific interrupt vector table. But it disturbs usual interrupt vector for '51, which is required for INT0 handling.

    Then, you have to place your INT0 ISR in an other file, which doesn't have above #pragma. The example places it in isr.c

    Tsuneo

Reply
  • The examples for EZUSB FX2LP are included in the Dev kit CD image on the Cypress site,

    SETUP_FX2LP_DVK_1004.exe (26.4 MBytes)
    www.cypress.com/

    After installation, this folder holds an example for INT0 and other interrupts.

    C:\Cypress\USB\Examples\FX2LP\extr_intr



    The point for ISR coding is,

    The main file, extr_intr.c, starts with this line

    #pragma NOIV               // Do not generate interrupt vectors
    


    This setting is required to set up EZUSB-specific interrupt vector table. But it disturbs usual interrupt vector for '51, which is required for INT0 handling.

    Then, you have to place your INT0 ISR in an other file, which doesn't have above #pragma. The example places it in isr.c

    Tsuneo

Children