Re: Questions on Darrel's Instant Interrupts

Originally Posted by
richard
ps
if the do something in the checksensor int takes longer than the tmr2 time out period you are wasting your time ever trying to get it to work.
Well, I'm learning something new which is the whole idea
. But, yes it looks like you are right about that. The only option to really make it work would be to upgrade to an 18F pic, which I've been told can support a high priority interrupt. In other words, it can interrupt an interrupt. Please, somebody correct me if I'm wrong about this.

Originally Posted by
richard
the ClockCounter interrupt could be made a bit faster since it uses no pbp code it can be called an asm interrupt and secondly the interrupt flag is being cleared twice
What do you mean by no PBP code? Isn't TOGGLE a PBP command?
Also, where do you see that I'm clearing the interrupt flag twice?

Originally Posted by
richard
why not just set a flg here and then process the "do something " in an interruptable routine
That would be the best solution. I have to start working on that.
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks