??? 04/09/09 11:20 Read: times |
#164505 - oops Responding to: ???'s previous message |
Kai Klaas said:
...to make the ISR exessively long by putting everything into it, what has to be done when the timer ticks.
The deep meaning of a timer interrupt is not to kick-start everything that is to be done when the time ticks, but to remember the main program that something has to be done now. So, the fastest ISR would do nothing but only set a certain flag in RAM to remember the main program that the timer has ticked. This "remember flag" has periodically to be polled by the main program, of course. Kai, I must admit to having written "long" timer routines, but in mitigation, have used "ticks" within the timer so it only executes a very short task each pass through, then increments the ticker. Steve |