Pages: [1]   Go Down
Author Topic: Capture module (pin) in Arduino like a PICs CCP input (manchester decode)  (Read 1239 times)
0 Members and 1 Guest are viewing this topic.
Toronto, Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Bill

Brunsbüttel, SH, F.Rep.GERM
Offline Offline
God Member
*****
Karma: 4
Posts: 596
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

do u mean interrupt routines?
http://arduino.cc/en/Reference/AttachInterrupt
Logged

-Arne

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8475
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.
Logged

Toronto, Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Bill

0
Offline Offline
God Member
*****
Karma: 39
Posts: 988
Get Bitlash: http://bitlash.net
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

Pages: [1]   Go Up
Jump to: