raman00084
Full Member level 6
I have connected a incremental linear scale in QEI module 1 of DSPIC33EP512MU810 controller. if i move the scale i am getting pulses in increment of 1 but my qei module is 4x.
also the Repeat-ability of the pulses for a fixed linear distance is not same it fluctuates by 4 to 7 counts.
if i connect the same scale to DRO of the scale manufacturer i am getting exact pulses of for the fixed linear distance.
i have attached the wave form of the linear scale.
setup_qei(1,QEI_MODE_X4,QEI_FILTER_DIV_16,QEI_MODE_TIMER_INTERNAL,QEI_POS_LE_INT,QEI_POS_GE_INT);
COPMLIER USED IS PIC CCS
also the Repeat-ability of the pulses for a fixed linear distance is not same it fluctuates by 4 to 7 counts.
if i connect the same scale to DRO of the scale manufacturer i am getting exact pulses of for the fixed linear distance.
i have attached the wave form of the linear scale.
setup_qei(1,QEI_MODE_X4,QEI_FILTER_DIV_16,QEI_MODE_TIMER_INTERNAL,QEI_POS_LE_INT,QEI_POS_GE_INT);
COPMLIER USED IS PIC CCS