Is there any example of how to measure a time between two rising edges on RB0 interrupt.
From 0 - 20ms with a accuracy of 1us or better. i can us flowcode 5 or Arm 4.
Thanks,
Wayne

Moderator: Benj
Ben why you don't use timer1 or timer3 as a counter? That what I would do. I the rising edge int, first read the timer, and then reset it, that way I don't need to have very high frequency timer in macro running...Benj wrote:Hi Wayne,
What I would do is on the first INT interrupt I would reset my count variable and set a timer interrupt going. On the second INT interrupt I would disable the timer interrupt.
With a normal PIC running at 19.6608MHz you can get a timer interrupt rate of 19200Hz which equates to 52us.