Set the .. ANSEL=3 'set a.0 and a.1 as digital input, thx. Probably a good idea, but did not have any impact.

Oddly as I test, I find that my setting for OSCAL 8 mhz or OSCAL 4 Mhz does not have any impact on the system..

I have tried:

OSCCON=%01101000 ' 4 mhz
DEFINE OSC 4

----

and in another test...

DEFINE OSC 8
OSCCON=%01111000 '8 Mhz


Something must not be getting written somewhere. I'd expect that these settings would have a big impact on overall system operation.

Is there some prescaler setting that I am missing?

tg