This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How To measure PWM signal pulse width on NXP 1343 Cortex M3 ?

Hello Friends,

I have to measure PWM signal pulse width (pulse repetition frequency is 50Hz) on NXP LPC1343 .
How can i measure the pulse width?
and
i have 4 PWM signals whose widths must me measured at the same time.
How can i measure 4 pwm widths at the same time using NXP LPC1343 ??

Thanks in advance

  • Note that you have selected a processor with quite limited support for capture inputs.

    It looks like the chip can just about manage 4 capture if you consume your two 32-bit and your two 16-bit timers.

    You might have to settle for pin-change interrupts and have the ISR manually look up the current count of a freerunning timer. Obviously with the latency of the ISR introducing measurement errors. It all depends on if you need timers for something else.