16-Bit Oscillator System: 4x PLL

4x PLL (PIC24F GA, GC, KA, KL, KM)

This PLL provides a fixed 4x multiplier, which can be used with XT and EC Primary Oscillators and the FRC Oscillator.

The PLL accepts any frequency input from approximately 3.5 MHz to 8 MHz.

Whenever the clock source of the PLL is changed, the PLL ready timer is reset to allow the PLL to synchronize to the new clock source. After the ready timer has counted the required time, the PLL output is ready for use. Application code can monitor the PLL Lock flag (OSCCON<5>) to determine when the PLL output frequency is locked.


Code Example:

The following MPLAB® XC16 Compiler code example enables the 4x PLL with Fast RC Oscillator source as the default system clock for a PIC24FJ128GA010 MCU. The default RCDIV setting (divide-by-2) sets FRC @ 4 MHz providing a 16 MHz system clock (8 MIPs):

#include <xc.h>

#pragma config FNOSC = FRCPLL  // default System clock = Fast RC Osc. with 4x PLL module
                        // default RCDIV setting sets FRC at 4 MHz providing 16 MHz sys clk (8 MIPs)

int main(void)
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.