i am using a power supply of 5V and crystal of 4MHz connected between 13 & 14 th pin. on connecting the power the oscillator doees'nt function which i checked with oscilloscope. only 5V comes in both pin 13 and 14.the set up is made with breadboard and there is continuity that is confirmed by checking with multimeter. can anyone inform if the oscillator has to function irrespective of configuration word of pic16f877. i am also using the following coding for configuration.
LIST P=16F877
#include <P16F877.INC>
__CONFIG _CP_OFF & _WDT_ON & _BODEN_ON & _PWRTE_ON & _XT_OSC & _WRT_ENABLE_ON & _CPD_OFF
Try using other crystal. Chances are very less that a crystal is faulty but once in a blue moon you may get a fauly one. Also check and see that the capacitors are not short.
once the microcontroller is powered up, the oscillator should start oscilatting, regardless of your code.
did u connect capacitor at both end of oscillator???
me myself made a stupid mistake while probing the oscillator..
i forgot to adjust the time scale...
there might be problem on the breadboard. i faced similiar problem before, this was solved after transferring the circuit to another breadboard