Re: Trying to measure time between two pulses on different pins.
What if you were to use DT's Instant Interrupts? Have an interrupt that times out at some frequency - every time that interrupt happens, increment a counter. When the leading edge of the first pulse happens (could also be an interrupt), zero the counter. When the leading edge of the second pulse hits, read the counter and multiply by the frequency of the interrupt to determine the time.
That was my first thought. Never actually done it - but I think it would work.
Last edited by andywpg; - 21st August 2014 at 16:17.
Reason: Spelling
"I have noticed that even those who assert that everything is predestined and that
we can change nothing about it still look both ways before they cross the street"
-Stephen Hawking
Bookmarks