Bruce,
Thanks for the reply. I've managed to port Mel's RTC code from the 16F877A to the 18F4580, however I have one config setting that I can't work out
If I set the config bits in the programmer thus

The code runs. However if I let the code set the config bits it fails to run correctly. It seems I need to set the Oscillator to HS-PPL in order for it to run at the correct speed. Could you advise me what I need to add to the code to set this correctly ?
Edit:
Forgot to mention I've tried
Code:
__CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H
and get the "symbol not previously defined" error, even though I've edited the PBP INC file.
Bookmarks