16-Bit Oscillator System: Fast RC Oscillator (FRC/LPFRC)

The FRC Oscillator is a fast (7.37 or 8 MHz nominal), user-trimmable, internal-RC oscillator. The output can drive the PLL or be divided using the programmable RCDIV bits.

Some devices contain an additional 500kHz Low-Power FRC (LPFRC) oscillator which enables lower-power consumption as compared with standard FRC oscillator.

The CLKDIV register RCDIV bits configure a selectable output divider that allows the choice of a lower clock frequency from seven different options plus, the direct FRC/LPFRC frequency output.

The FRC Oscillator Tuning register, OSCTUN, allows the user to fine tune the FRC/LPFRC Oscillator over a range of approximately ±12% (typical). Each bit increment or decrement changes the factory calibrated frequency of the FRC/LPFRC Oscillator by a fixed amount.

frc.png

Code Example:

The following MPLAB® XC16 compiler code example enables FRCDIV as the default system clock source and sets the RCDIV divider bits to divide-by-16 at run-time for a PIC24FJ128GA010 MCU:

#include <xc.h>

#pragma config FNOSC FRCDIV    // Enable FRCDIV as system clock source
                    // default RCDIV setting sets FRC @ 4 MHz providing 4 MHz sys clk (2 MIPs)

int main(void)
{
    CLKDIVbits.RCDIV = 4;        // enable divide-by-16 setting
                        // sets FRC @ 0.5 MHz providing 0.5 MHz sys clk (0.25 MIPs)

    while(1);
}

Due to specified FRC accuracy, the FRC Oscillator modes may not meet the minimum frequency accuracy requirements for serial communications (such as UART and USB). Refer to the product family data sheet for more information about the FRC accuracy.

© 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.