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

Other Parts Discussed in Thread: TMS320F28016

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?