Dear Steve,

I made it working as your suggestion although sometimes it doesn't go (seems no clock, it may be the circuit board problem). The following is the change of the code and cofiguration:

code:
========================
DEFINE OSC 8
OSCCON = %01110111
=======================

cofiguration:
==============================================
__CONFIG _CONFIG1H,_OSC_INTIO67_1H
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
__CONFIG _CONFIG3H, _MCLRE_ON_3H & _PBADEN_OFF_3H
__CONFIG _CONFIG4L, _LVP_OFF_4L & _ENHCPU_OFF_4L
==============================================

Once again thank you very much.