johnwasser:
Looks like it will work and will give results accurate to a few microseconds.
thank' s a lot for answering. As I read that the largest value that will produce an accurate delay is 16383: http://arduino.cc/hu/Reference/DelayMicroseconds
I have modified it a bit. Not too much, but I took tOff/4 and then in Pulse function I use four time delayMicroseconds each around 11975usec.
What do you think?
Thank's ![]()