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.

QEI Interrupt sources

Hello everyone,

So i need to use a encoder or 2. The Tiva has a QEI so i want to use it. But i do have some questions about the interrupt sources. My encoder is very simple and doesn't have a index pulse so i want to use this mode:

When RESMODE is clear, the positional counter is constrained to the range [0:M], where M is the
programmable maximum value. The index pulse is ignored by the positional counter in this mode.

 


Does this mean i can't use INTINDEX interrupt when it reaches the maximum value?

  • Hello Luis

    I have not used this mode in any application, but I think it will not give an interrupt when it reaches maximum position count. You may have to use this mode/play with it to see the actual behavior.

    Regards

    Amit

  • Hi Amit,

    It was what i thought first to. I wanted just to check. 

    For area mapping it's better to always check the position and interrupt on direction change anyway. It's a nice peripheral. It takes the job of counting every position and getting the direction of the processor.