This could help.
OSCCON 6:4 need setting for 16 MHZ which is $70, which is what you have.
OSCTUNE 6 needs setting to connect internal oscillator to 4xPLL $40, which you have.
Looking at the Internal Oscillator Block OSCCON 1:0 have an effect and from the datasheet.
bit 1-0 SCS<1:0>: System Clock Select bits
1x = Internal oscillator block
01 = Secondary (Timer1) oscillator
00 = Primary clock (determined by CONFIG1H[FOSC<3:0>]).
which tells me, if I understand correctly, that OSCCON 1 needs setting. Which is what Richard said.
Which now makes OSCCON $72.
Last there is config1H for HSPLL and HFINTOSC/PLL
_FOSC_HSPLL_1H EQU H'F6' ; HS oscillator, PLL enabled (Clock Frequency = 4 x FOSC1)
_FOSC_INTIO67_1H EQU H'F8' ; Internal oscillator block, port function on RA6 and RA7
_FOSC_INTIO7_1H EQU H'F9' ; Internal oscillator block, CLKOUT function on RA6, port function on RA7
which I leave to you or others to explain, I use boot loader and never used configs.
Bookmarks