Clock speed 48000000 (48MHz)
Chip settings: At the start of the Main macro add a C code block to setup the oscillator:
Code: Select all
osccon = 0b01110000;
osccon2 = 0b00010000;
// wait for oscillator to tune
while (osccon2.PLLRDY != 1) ;
// enable USB tuning
actcon = 0b10010000;