Page 2 of 2

Re: MOD5234 eTPU Quadrature Encoder goes to output mode?

Posted: Mon Oct 11, 2010 6:58 am
by barttech
If I have my QD init'd correctly, shouldn't this give a changing result as I spin the encoder shaft? I can see in lines pulsing on my 'scope.
long pc = 100;
while (1) {
OSTimeDly(1);
pc = fs_etpu_qd_get_pc(ChanA);
iprintf("%6d ",pc);
}
Sam

Re: MOD5234 eTPU Quadrature Encoder goes to output mode?

Posted: Mon Oct 11, 2010 6:55 pm
by barttech
It seems there is (was) a problem with the supplied eTPU sets. NB will be upgrading the eTPU sets. Once I installed the upgraded etpu_qd_auto.h I had no trouble getting set3 to work. Still not sure what is up with my custom set but I need to move on with my QD work now. I still get a trap with etpu_set4.h...
Sam