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.

TMS320F280270: Reading external interrupt value

Part Number: TMS320F280270
Other Parts Discussed in Thread: TMS320F28027

Hi Team, 

Good day! 

I have posted the customer's below and kindly plesae help us check.

I am using TMS320F28027. I have 2 external interrupt, in ISR of XINT1 I read counter of XINT2 and in ISR of XINT2 I read counter of XINT1 to get time period between 2 interrupt but the result is not stable and some time not correct. My question is how I can correct read value of externel interrupt counter. Is there other way to get time period between XINT1 and XINT2. Thanks! 

Best regards,

Jonathan

  • Hi Jonathan,

    Another possible implementation would be to start a timer in the ISR of one of the external interrupts (whichever one is starting first) and then stop the timer in the ISR of the other external interrupt. This could serve as another method to get the time difference between the two interrupts.

    Best Regards,

    Marlyn