Looking at your code again. The
DEFINE OSC 8
leads me to believe you are using the internal OSC. If so try this
in place of you config line.Code:@ __CONFIG _CONFIG1H, _OSC_INTIO67_1H @ __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H @ __CONFIG _CONFIG3H, _PBADEN_OFF_3H @ __CONFIG _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L
Bookmarks