Hi,
I'm trying to use the eQEP module to read position from an encoder. This seems like something that should be simple, but I can't get a non-zero reading from the QPOSCNT register. I'm using the TMS570LS07xx.
In halcogen (4.05) I have the module enabled, selected the module on the pinmux tab and have the module position counter mode set to quadrature count.
I have verified that I can read from the registers, since I read 0x800 from the QDECCTL register, which makes sense. However, when I try to read the position count I always read zero, and yes, I'm spinning the motor :)
I'm working to verify electrically that that signals are ok.
[EDIT] It looks like the A and B signals are always high (3.1V). Calling the Halcogen generated qep init function should be all that is needed to enable the module, right? There is nothing that would hold those signals high?
Is there anything else that has to be done to do a read? my main code is below.
Thanks,
David
QEPInit(); qepCTL = eqepREG1->QDECCTL; qep1 = eqepReadPosnCount(eqepREG1); qep2 = eqepReadPosnCount(eqepREG2);