??? 03/03/05 17:32 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#89017 - breaking out of loops Responding to: ???'s previous message |
Rahul Sadagopan said:
my while(1) has all the characters that need to be printed..
as soon as my timer overflows, i need to come out of the loop, and go to the next line. ( i.e. trigger paper feed). I'd use a global (something like didOverflow, perhaps), and loop on that. The timer ISR would set that bit (and probably do little else), and the main routine would watch for the assertion of that bit to break out of the loop. -a |