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