??? 03/16/05 23:02 Read: times |
#89822 - Not a given Responding to: ???'s previous message |
Nick Robinson said:
The timer ISR that stops does have a byte that is accesed in main, but since it is only a byte, we should be ok? That's not necessarily a good assumption. Try disabling the timer interrupt in main right before that shared byte is accessed and then re-enable it when main is done using it. The fact that it's a single byte variable certainly reduces the likelihood of something happening at just the wrong time, but it doesn't eliminate that possibility depending on how the code was generated and what you're doing with the variable in main/ISR. Regards, Craig Steiner |