Content originally posted in LPCWare by ub3r on Mon Feb 27 15:58:16 MST 2012
Hi Guys,
I have 2 interrupts. One on a GPIO, and another timer Match interrupt.
The GPIO interrupt measures the pulse length (Servo Signal), by reading the timer counter at the rising, then the falling edges.
The Timer Match interrupt takes and ADC reading when its triggered.
The issue is, ive noticed jitter occuring on the pulse length value. When i disable the ADC, everything is fine. I suspect the GPIO interrupts cant occur whilst we are still in the Match interrupt taking an ADC reading??
Any work arounds for this issue?? If i use the input capture to read the RX pulse, will this work?
cheers