Using Internal Oscillator Just change this config option to select the Fast RC oscillator instead of PRIPLL. #pragma config FNOSC = FRCPLL // Oscillator Selection Bits (Fast RC Osc w/PLL) The Fast RC oscillator is 8MHz so same other setup as using an 8MHz crystal, apart from the accuracy not being […]
Category: Oscillator
Oscillator Configuration
Typical fastest setup (80MHz with 1x divide, 20x multiply, 2 x divide) Using an 8MHz crystal #pragma config FPLLIDIV = DIV_2 //PLL Input Divider (Must produce 4-5MHz from crystal frequency) #pragma config FPLLODIV = DIV_1 //PLL Output Divider #pragma config FPLLMUL = MUL_20 //PLL Multiplier //SYSTEMConfigPerformance(80000000ul); //Note this sets peripheral bus to '1' max speed (regardless […]