Hello.
I'm working with eQEP on the F28M35H52C1 (M3+C28), and just found that C28 doesn't clear flags of eQEP unit.
I use CCS 5.5.
Two examples bellow on the pictures:
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.
Hello.
I'm working with eQEP on the F28M35H52C1 (M3+C28), and just found that C28 doesn't clear flags of eQEP unit.
I use CCS 5.5.
Two examples bellow on the pictures:
I launched example eqep_pos_speed_c28 and got same result: flags weren't clearing.
Hi Arthur,
I haven't looked into your issue too deeply at this point, but it appears that the way you are debugging isn't ideal. Can you try the above when the QEP module is not free running. (QEPCTL= 0b00xx xxxx xxxx xxxx)
This should allow you to better check if you are actually able to clear flags (it is possible that new flags are being generated immediately after the clear).
Hopefully this helps.
Thank you,
Brett
Thank you very much, I'll certainly try it. But QPFLG must be set after 10 ms (frequency 100Hz).
Yes, they were cleared! I made as you said : set FREE_SOFT bits of the QEPCTL register to 0 , and launch by set 1 to SWI bit in the QEPCTL register. And after few time, flags was set. After clearing all good.
So, is it mean that all working ?
Regards.