On other microcontrollers I've used, it was possible to start a single timer on a rising edge, and capture-and-reset on a falling edge (to capture the pulse time). It doesn't look like this method is available on the (for example) LPC2131. What would be a good mechanism for these microcontrollers? Start two timers, feed the PWM to two pins, have one capture-and-reset on rising edge, the other on the falling edge? (the difference between the two capture registers would be the pulse time) or is there a better way? Thanks, -Pete.
Message
PWM demodulation
2005-04-24 by Peter Gray
Attachments
- No local attachments were found for this message.