I'm not sure what the fix would be to be honest, but if you're up for an experiment, try this;
Make a backup copy of your PBPPIC18.LIB.
Now use an editor to find & replace all instances of OSC with XTAL.
Save the .LIB file, and compile with DEFINE XTAL 48, and the new config directives in your code.
Does it work?
Bookmarks