AnsweredAssumed Answered

counter0 doesn't work

Question asked by 吕泓智 on Aug 31, 2017
Latest reply on Sep 14, 2017 by yvg

ADSP-CM408F,Quadrature decoder (with A,B,Vcc,GND);

using counter0 and TIMER0_TMR6, in order to get position and speed .

A,B has pulses output with 90 phase difference , observed with an oscilloscope.

But, counter0 only count (+2) when the motor is open or stop, never counting when the motor is running.

And the TIMER0_TMER6_CNT counts up to 0xFFFFFFFF with an overflow signal. then TMR6 didn't work until I switch the motor.

 It feels like no pulse is recognized.

the qep config program is given below , can anyone give some suggestions?

Outcomes