Go Down

Topic: Capture module (pin) in Arduino like a PICs CCP input (manchester decode) (Read 1 time) previous topic - next topic

BlueBill

Does the Arduino UNO have a pin with a hardware capture module? Its primary use would be pulse width decoding.
Bill

RIDDICK

-Arne

Graynomad

Or maybe the timer/counter's capture pins, a trigger on them will latch the current counter value.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com


BlueBill


Or maybe the timer/counter's capture pins, a trigger on them will latch the current counter value.

______
Rob


Yes that's the idea. Interrupts would also work but using the timers makes the chore less tedious.
Bill

billroy

FWIW, I just dug out an old Input Capture sketch and posted it here:

https://gist.github.com/4032657

Input Capture is described in section 15.6 of the '328p datasheet.

-br


Go Up