DEFINE OSC 8 ' Set RC Clock to 8 Megs
that doesn't set any clock ... just tell the compiler to adjust the timings for a 8 Mhz clock ...

sooo, clock settings are missing ...

default settings are ...

Code:
#CONFIG
    __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
#ENDCONFIG
is that what you want ???

Alain