Hi, Alessandro,
As far as I know that the encoder sensor outputs PhaseA, PhaseB, Home(optional), index(optional), the PhaseA and PhaseB are phase-shifted by 90 degree. In general, in high speed, we need to count the rising/falling edges of both PhaseA and PhaseB in the fixed cycle, then figure out the speed. In low speed, it is required that rising or falling edge of ONE signal for example PhaseA can trigger capture interrupt, we can use another Timer as free Timer to count the tick, in the capture ISR, we can read the Timer counter and figure the speed.
I have checked the UM of LPC2129, the LPC2129 appears to not have decoder module, I do not know how you use LPC2129 to figure out speed.
Can you use for example LPC43xx or LPC18xx? they have QEI module, this is the chapter Chapter 32: LPC18xx Quadrature Encoder Interface (QEI) in UM10430, but the LPC18xx is a bit old. You can use for example Kinetis KV family or DSC family.
Hope it can help you
BR
XiangJun Rong