Page 1 of 1

variable timer

Posted: Tue Jan 25, 2011 4:10 pm
by wayne millard
Hi Team,

What is the best way to make a variable time generator giving a start and stop pulse.

Thanks
Wayne

Re: variable timer

Posted: Tue Jan 25, 2011 4:57 pm
by Benj
Hello Wayne,

The most accurate way is probably to use a timer interrupt. You probably want the interrupt to be quite fast and this will be your minimum delay segment. You can then count the number of interrupts to allow you to acheive any multiple of the delay segment. Hope this makes sense.