Hi Team,
What is the best way to make a variable time generator giving a start and stop pulse.
Thanks
Wayne
variable timer
Moderator: Benj
-
wayne millard
- Posts: 234
- Joined: Thu May 31, 2007 2:18 pm
- Has thanked: 7 times
- Been thanked: 12 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: variable timer
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel