robert
you are right about the toggle but I assumed I that in the "production" version that line would be removed. if you can do this the interrupt latency can be reduced heaps .i'm sure henrik has a posting about this issue for his pid project , its worth looking at .
and yes pic18 high priority int can interrupt a low priority int but imo its better policy to make interrupts a short as possible and set flags to indicate that further processing is necessary .
what clock speed are you using ? the chip can do 32mhz that helps too
isn't pir1.1=0 resetting the tmr2 int flag
and
_Handler TMR2_INT, _ClockCounter, PBP, yes
the yes on the end resets the flag too
its a bit redundant if time is that critical
Bookmarks