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

do u mean interrupt routines?
http://arduino.cc/en/Reference/AttachInterrupt
-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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy