Article sections

    Purpose : Controls various oscillator functions. CPU Frequency

    Using In Your Projects: #include “PIC8Core/core/osc.h”

    Dependencies: xc.h , stdint.h, PIC8Core.h

    Contains The Following Functions:

    cpuFreqSelect
    enableClockReferenceOut
    disableClockReferenceOut


    cpuFreqSelect(Frequency) – Sets the desired CPU Frequency – See specific header file OSC section for a list of supported values.

    Example(s):
    cpuFreqSelect(MHZ16) – Sets the CPU clock to 16Mhz


    enableClockReferenceOut() – Enabled the clock reference output – usually 4/FSOC
    disableClockReferenceOut() – Disables the clock reference output

    in Modules

    Related Articles