Hi,
I want to use TMR0 to bit bang outputs to control toy servos.
Before I begin the controlling of the outputs I need to read several eeprom addresses, do some RS-232 communcations to other devices and other house keeping.
I do not want the outputs to be controlled when doing the above.
Is there a way to only allow TMR0 INT to run by poking a value into a variable. Var = 1 enable TMR0 routine, VAR = 0 disable TMR0 INT?
If Yes, there is a way, then how do I do it?
Can you provide an example.
Thanks
Ron
TMR0 INT
- 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: TMR0 INT
Hello Ron
You start and stop the Timer0 by using the Interrupt icon. Once you are inside the icon properties you can choose to start or stop the interrupt.
You start and stop the Timer0 by using the Interrupt icon. Once you are inside the icon properties you can choose to start or stop the interrupt.

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