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.

Interrupts and priority

Intellectual 900 points

Replies: 1

Views: 150

Hi all,

I am working right now with a DPS model TMS320F28016, to control it I am using an  FOC engine. This system consists on moving a piece from an initial position to a final position (initial and final position are always the same) with a high speed on the one way and slower on the back way.

 What is the problem? I found out, that the initial and final position change/move, as if  this error was accumulating.

 When I monitorized the values read by the encoder, I see that the values hasn´t changed. Right now, the encoder's pulses are controlled with GPIO interruptions (yes, I would be better if I do it with an eCAP, but in this moment I have no choice to do it).

 Could it be that when a different interruption is executed (PWM, CAN BUS,…),, some encoder`s interruptions were missing?

 If so, could I program any register, which allows me when an interruption happens and a pulse arrives, then the encoders' interruption is executed and go back to the one/ interruption before?

1 Reply

  • Hi Masky,

    If you feel that prioritizing the interrupts would solve your issue then do go through this topic:

    http://processors.wiki.ti.com/index.php/Interrupt_Nesting_on_C28x

    Regards,

    Gautam

     

    If a post answers your question, please click on "This resolved my issue" button

    Are You A Beginner or New to TI's C2000™ Family? Do Check This Book!

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.