lpcware

LPC1769 QEI Help

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by PH.RAYMOND on Sun Apr 06 02:09:26 MST 2014
Dear all,
I am using an optical encoder with PHA PHB 256 steps.
QEIMAXPOS register is set to 0xff. Trial done also with  QEIMAXPOS register set to 0xf.
QEIPOS register is incrementing/decrementing correctly and resetting when overflow/underflow.

According to §26.6.3.6 of the UM10360 INXCNT is incrementing/decrementing during QEIPOS overflow/underflow.

Problem: INXCNT register remains to 0.

LPC1769 is a revA.
QEI Interrupt is disabled.

Index pin left as GPIO In a second time was set as Index input connected to GND with INVINX to 0 or to1.

Thanks in advance for help
Ph.RAYMOND

Outcomes