This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Interrupt frequency

Hi all,

I want to know how long time will take which from event occurred to into interrupt service routine on 6657,and if I use GPIO as interrupt source,how many times interrupt I can get per second?

Best regards ,

LPlight

  • We don't specify this.  It should be fairly quickly, from the time an Interrupt occurs, (assuming it's at a point it can take an interrupt - i.e. not in the delay slots of a branch and GIE is enabled at the time.) It should immediately begin as if taking a branch to the ISR (the pipeline will need to be filled.)  You can test this by having your code capture the TSCL/TSCH (core timer - ticks once ever core cycle) at the time you set the interrupt and again as the first thing done in the ISR, and take the difference. And that's how long it takes to get into an ISR.

    For GPIO, again we don't spec the amount of time.  But as soon as the event is detected (from GPIO seeing in the input) this even is seen in the system and it's the same amount of time as any other event trigger an interrupt. 

    The reality is, that your ISR if doing most any useful activity is going to consume more time than the interrupt itself. So, you should probably focus on measuring how long it takes to process your ISR and return to your code.

    Best Regards,

    Chad