Team,
I am about to post a question and an answer regarding an issue that I recently worked on and found it a valuable experience that I hope can be used in the future.
When using an LM4F231E5QR (REV A1), and attempting to use QEI0 on PF0/PF1 there was an issue. While in debug I observered the encoder's position and speed. The position oscillated between 2 points but the speed registered movement. When scoping the pins, it appeared that the encoder was working correctly, and when reviewing the code, the configurations seemed correct.
Unfortunately the following was what the processor was actually seeing.
The issue at its core was that PF0 was not actually being configured as QEI0 - phA0. It was locked as an NMI. In my following post, I will walk you through how to restore the PF0 to a GPIO capable of being modified.
Regards,
Ricky Chelminski
Digital Applications