Those numbers are sort of surprising, esp. the ASM one. That seems like a lot of instructions. I haven't used PBP for a long time... is there really that much overhead?An ASM interrupt consumes about 12uSec (determining INT source and context saving and context restoring).
A PBP interrupt consumes about 25uSec (more variables to save/restore).
I need to check the ASM listing to figure out all the details, but it is a solid 12uSec. About 7uSec to get "in" and 5 to get "out".
This is with TMR0 as the interrupt source. Some other sources may take a few more clock cycles to decode.
Charles Linquist
Bookmarks