V vheerdg New Member Oct 31, 2008 #1 Can any one tell me how to cascade the timers to form a minute or hour timer I know how to activate them. Can anyone please help............. THANKS
Can any one tell me how to cascade the timers to form a minute or hour timer I know how to activate them. Can anyone please help............. THANKS
Nigel Goodwin Super Moderator Most Helpful Member Oct 31, 2008 #2 Just use a timer to create a regular interrupt (timer2 is probably the easiest), say every 10mS, then increment counters in software every interrupt. It's a standard technique, and has been for decades.
Just use a timer to create a regular interrupt (timer2 is probably the easiest), say every 10mS, then increment counters in software every interrupt. It's a standard technique, and has been for decades.
AtomSoft Well-Known Member Oct 31, 2008 #3 Nigel i even forgot how to do it lol If i set a 10mS interrupt.. for 1 second i would have to 1000mS(1s) / 10mS Per Interrupt = 100 interrupts to count to 1 second right?
Nigel i even forgot how to do it lol If i set a 10mS interrupt.. for 1 second i would have to 1000mS(1s) / 10mS Per Interrupt = 100 interrupts to count to 1 second right?
Nigel Goodwin Super Moderator Most Helpful Member Oct 31, 2008 #4 AtomSoft said: Nigel i even forgot how to do it lol If i set a 10mS interrupt.. for 1 second i would have to 1000mS(1s) / 10mS Per Interrupt = 100 interrupts to count to 1 second right? Click to expand... Yes, then at 1 second zero the 10mS counter and start counting up for the next second.
AtomSoft said: Nigel i even forgot how to do it lol If i set a 10mS interrupt.. for 1 second i would have to 1000mS(1s) / 10mS Per Interrupt = 100 interrupts to count to 1 second right? Click to expand... Yes, then at 1 second zero the 10mS counter and start counting up for the next second.
AtomSoft Well-Known Member Oct 31, 2008 #5 oh ok cool had to make sure its still locked in my head I seem to forget things when i dont use them.
oh ok cool had to make sure its still locked in my head I seem to forget things when i dont use them.