LPC1769 Quadrature Encoder Interface

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1769 Quadrature Encoder Interface

2,580 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by denn4208 on Tue Feb 03 16:43:35 MST 2015
I have two issues with the QEI module
1.  I only have the index pulse detected interrupt enabled (QEIIE bit 0) however the intterupts status (QEIINTSTAT) Shows multiple interrupts.
2. The counter will always reset on an index pulse.  I have not set the RESPI bit in the QEICON register
Is there an errata on this module that I have not found?

The first issue is not a big deal I can mask the interrupts that I am looking for.
any help or ideas would be appreciated.
Labels (1)
0 Kudos
Reply
2 Replies

1,937 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Pavel975 on Mon Oct 19 06:11:50 MST 2015
Hi,

I have the same Problem with QEI on my LPC1765. The masking Register QEIIE seams to not work. Ive spent already quite some time trying to find the solution there but without satisfying effect. If one bit is set there (e.g. Index Interrupt) always all QEI Interrupts are coming which cause (by fast running motor) lots of interrupts to handle per second. Have you found solution for that problem beside handling (filtering) all the interrupts? Or is there an official errata/fix for that issue available already ?
I attached screen shot from debugger showing QEIIE and QEIINTSTAT registers.
0 Kudos
Reply

1,937 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xianghuiwang on Mon Feb 09 15:51:55 MST 2015
Hi,
Did you check your confirm your interrupt enable settings in the debug window as well?
Try run the LPCOpen example code maybe:
http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc17xx-packages
regards,
0 Kudos
Reply