Quote Originally Posted by precision View Post
you will have to edit your 16F877A.inc file as below.

NOLIST
ifdef PM_USED
LIST
include 'M16F87xA.INC' ; PM header
device pic16F877A, HS_osc, wdt_OFF, lvp_off, protect_ON , CP_ON
XALL
NOLIST
else
LIST
LIST p = 16F877A, r = dec, w = -302
INCLUDE "P16F877A.INC" ; MPASM Header
__config _HS_OSC & _WDT_OFF & _LVP_OFF & _CP_OFF
NOLIST
endif
LIST

Your 16F877A will work on 20Mhz.
Hi ustredna,
The file mentioned above is included into your code automaticly when you compile using PBP and it contains "Default Settings" for your config statements, so if you do not include config statements in YOUR CODE it will default to the settings in this file. If you change the settings here it will DEFAULT to whatever you set here. Now for my opinion: I would not change the default to 20 mhz, I would instead simply put a semicolon at the beginning of the config statements so as to make the compiler overlook them as comments, and then include my own config statements in "MY CODE" every time.
JS
edit: Oh BTW, each PIC type has it's own file like this.