??? 10/18/06 10:45 Read: times |
#126634 - Stepping inside ISR Responding to: ???'s previous message |
Russ,
Stepping inside ISR was actually my first choice. The reason I move it outside ISR is I want to keep ISR as simple as possible. Since the code to move motor is a little bit complicated and to be honest I haven't check how long it takes inside a ISR. The Timer0 also severs as a timer tick whick provide precise ticks for other peridically tasks such as A/D sampling and updating Outport ports. Of course I can use other Timer, but it will introduce more interrupt latency, unless I put the Timer0 as highest priority. But the other precise sensitive task will get delayed, which is not good. Yu |