Go Down

Topic: Arduino Due counter (Read 161 times) previous topic - next topic

rajivpersonal

I need to time the period between two events, available as interrupts. I want to use a Due timer/counter to measure the period between the two events.

The Due I believe, can count at MCLK/2 i.e. 42 MHz. That will give me a resolution of around 23.809 nanoseconds, which is ok for my application. At the START event, I start the count from zero and at the STOP event I stop the count. The period between the two events, including interrupt latency, will be (count * 23.809) nanoseconds.

Can anyone help me with this?

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