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
MOD5234 eTPU Quadrature Encoder goes to output mode?
Re: MOD5234 eTPU Quadrature Encoder goes to output mode?
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
Sam