I have managed to measure the position of a DC motor using the QEI. Now I want to measure the speed. This is the code that I have written so far but now I do not know how to continue. Configuring the QEICON register is correct but I do not know about the others. Can someone please help me?
For example. using timer for a second.. check how many pulses is coming?? like 1sec=200pulses then rpm is 50 and 1 sec=1000pulses then rpm become ((50/200)*1000)=250rpm.
Just try these method it might work.. and revert back me.