Hello, I have included the following code to activate the PLL with clock at 16 Mhz internal, but I can not make it work at 64Mhz
OSCCON = %11110110
OSCCON2 = %00000101
FOSC = IRC ' Internal RC oscillator
PLLEN = On 'On ' Oscillator multiplied by 4
PCLKEN = On ' Primary clock enabled
FCMEN = On ' Fail-Safe Clock Monitor enabled
IESO = On
PWRTEN = On ' PWRT enabled
BOREN = OFF ' Brown-out Reset disabled in hardware and software
WDTEN = OFF ' WDT is controlled by SWDTEN bit of the WDTCON register
HFOFST = On ' HFINTOSC starts clocking the CPU without waiting for the oscillator to stablize.
MCLRE = OFF ' RA3 input pin enabled; MCLR disabled
LVP = OFF ' Single-Supply ICSP disabled
Somebody could help me ? Thanks.