Page 1 of 1

TMR0 INT

Posted: Tue Jan 29, 2008 5:26 pm
by Ron
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

Re: TMR0 INT

Posted: Tue Jan 29, 2008 6:09 pm
by Benj
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. :P