PIC24 Internal CLocking
Posted: Tue Dec 04, 2018 11:11 am
Hi,
I would like to run a PIC24FJ256GA406 at 96MHz using the internal FRC Oscillator with PLL. One issue is that FC7.3.0.6 will not allow a Clock speed(Hz) setting (Build\Project Options\General Options) of anything above 32MHz, for this PIC.
As the datasheet states that the "default divisor of the postscaler is 2, which will generate a 4 MHz clock to the PLL module", I assumed that the FRC was running at 4MHz. I set the system clock to 32Mhz, i.e. FRCPLL and fixed PLL x 8, (Clock speed(Hz) set at 32MHz). With these settings everything works correctly. The LED flasher circuit flashes correctly at 1 Hz and the frequency measured on OSCO is 16MHz (FOSC/2). The baud rate on my PCB was also correct when tested against an external device. The flowchart is attached.
If I use the FRCPLL and "96MHz is selected,oscillator input multipied by 24 (4 MHz input)" option, would this give me a 96MHz system clock, as long as the Clock speed (Hz) setting in Build\Project Options\General Options could be set at 96MHz? I would appreciate any assistance wrt setting this up correctly and also how to bypass the clock speed limitation being imposed by FC7, currently.
Thanks.
Leo
I would like to run a PIC24FJ256GA406 at 96MHz using the internal FRC Oscillator with PLL. One issue is that FC7.3.0.6 will not allow a Clock speed(Hz) setting (Build\Project Options\General Options) of anything above 32MHz, for this PIC.
As the datasheet states that the "default divisor of the postscaler is 2, which will generate a 4 MHz clock to the PLL module", I assumed that the FRC was running at 4MHz. I set the system clock to 32Mhz, i.e. FRCPLL and fixed PLL x 8, (Clock speed(Hz) set at 32MHz). With these settings everything works correctly. The LED flasher circuit flashes correctly at 1 Hz and the frequency measured on OSCO is 16MHz (FOSC/2). The baud rate on my PCB was also correct when tested against an external device. The flowchart is attached.
If I use the FRCPLL and "96MHz is selected,oscillator input multipied by 24 (4 MHz input)" option, would this give me a 96MHz system clock, as long as the Clock speed (Hz) setting in Build\Project Options\General Options could be set at 96MHz? I would appreciate any assistance wrt setting this up correctly and also how to bypass the clock speed limitation being imposed by FC7, currently.
Thanks.
Leo