Yes, when you're using DT-Ints with an PBP-type ISR it has to save all the system variables when entering the ISR (and restore them on exit). The exact amount of time that takes can probably be...
To save context?
And the answer is....
Mypin var Portb.6
Report var byte
Report = 48 + (Mypin ^ 1)
There is NO need to be changing variable types. Mypin just needs to be inverted. So why not invert it as if...
For accurate timings you also need to take the interrupt latency and the time it takes to actually reload the timer registers into account.
The interrupt fires, then it takes a couple of hundred...
also dont take the MIkro timer calculator at its word
i been testing lower osc +PPL for power usage ( lower the main osc the lower the current use)
when using thier calculator for 1mhz main...
yes i fixed it after puting in a pin to toggle found it was jumping out of the service routine
YES CHECKED THE PRESCALLER AS SHOWN
osc as shown
ameding the interupt routine as follows changes nothing
it not clear what i missed
Not sure it's got anything to do with your problem but flipping INTCON.5 does not start/stop TMR0 - it enables/disables the interrupt.
INTCON.5 = 0 '...
As your error is double, it's likely a problem with the 2:1 prescaler. Perhaps your setting of T0CON is being overwritten in one of the include files.
Or your clock is running at 16Mhz.
No, not really.
That has been the point of this discussion.
We would not want PBP to do the interim calculations as a byte, we would want PBP to do them as a bit.
The issue is that in this...