DM timing microsecond?


Author Message
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 12:36pm 18 Mar 2012      

  robarino said  
I was wondering if any of you had used the auidio pulse as a counter. I am using the duinomite mega and I need to count with an accuracy of 10 microseconds. I can send a sound out at a frequency of 100 kHz from the audio jack. The question is how do I count the number of cycles in MMBASIC?
Thanks!
Rob


Rob,

There's a page and a half discussion on using the Maximite for exactly this in the March issue of "Silicon Chip" (pp 68 Circuit Notebook section). It involves a small amount of external circuitry but apparently gives a resolution of 5 microseconds.

Greg