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
  • Thank you for this information. I made it as you described.

    In the main() where I initialize the Interrupt I added the line #pragma NOIV

    In another file I put the ISR.

    The USB tranfer is not disturbed now. Thats an improvement for the problem. But there's a further problem.

    In the ISR I increment a variable. This variable I send over USB to my PC to see if the ISR ran. But it is not incremented. Incrementing it in a "normal" function is going well.

    I declared the variable in ane xtra header file. The two files (file with main() and the file with the ISR) now see the varibale.

    static volatile char value=0;
    

    By the way, there is no compilation error. Can you see a failure?

Reply
  • Thank you for this information. I made it as you described.

    In the main() where I initialize the Interrupt I added the line #pragma NOIV

    In another file I put the ISR.

    The USB tranfer is not disturbed now. Thats an improvement for the problem. But there's a further problem.

    In the ISR I increment a variable. This variable I send over USB to my PC to see if the ISR ran. But it is not incremented. Incrementing it in a "normal" function is going well.

    I declared the variable in ane xtra header file. The two files (file with main() and the file with the ISR) now see the varibale.

    static volatile char value=0;
    

    By the way, there is no compilation error. Can you see a failure?

Children