TMR0 INT

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times

TMR0 INT

Post 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

User avatar
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

Post 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

Post Reply