Quote Originally Posted by lerameur View Post
yes it does oscillate
when I put thisline:

@ DEVICE PIC16F876A , HS_OSC , WDT_OFF , PWRT_ON , BOD_ON , LVP_OFF , PROTECT_OFF

and not:
DEFINE OSC 20
DEFINE OSC 20 is for PBP and it's internal compiler and setting up various timing loops; it doesn't set any config bits anywhere in the PIC.

Leave both in there.