Go Down

Topic: Arduino Mega 2560 Timer/counter problem (Read 80 times) previous topic - next topic

EJLED

Hi, friends. i am working on arduino mega.

i want to measure the count of 16 bit timer. following is steps.

1) detects rising edge on ICP pin of arduino i am using Pin 47 of mega.
2) Timer will start by detecting rising edge. it will counting till falling edge.
3)as soon as pulse edge fall timer stop counting and, immediately it will store data into inside memory and then upon request it can display via serial or LCD display.

at present i am generating a single pulse from UNO and its width is varying from 5uS to 100uS. this pulse i am planning to give ICP Pin of MEGA.

i need help in coding to get such function.

kindly help, how do i move.
Thanks in advance.

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