those 6 lines allowed me to use an accurate inside clock and to use all pins as digital input or outputs:
DEFINE OSC 4
INTRC_OSC_NOCLKOUT
INTRC_IO
OSCCON=%01101000
ANSEL=%00000000 'this comand disable all adc
CMCON=%00000111 'this bit disable all comparators
the two last commands fixed the problem to get just digital inpout and outpout on all 15 pins available, and disabled all adc and comparators.
Bookmarks