Go Down

Topic: Arduino Due counter (Read 612 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