With OSCCON = %01110000, the internal oscillator will be running at 8Mhz.
But the default setting for PBP is 4Mhz.
So the PAUSE 1000 is only pausing for 1/2 second instead of a whole second.
Which then only allows it to count half of the pulses.
ADD<br>Code:DEFINE OSC 8




Bookmarks