Jump to main content

##

# 3.15.5 Clock Generator (CLOCK)

The PIC32MK GP/MC clock system has the following modules and features:

- Five external and internal oscillator options as clock sources

- On-Chip PLL with user-selectable input divider, multiplier and output divider to boost operating frequency on select internal and external oscillator sources

- On-Chip user-selectable divisor postscaler on select oscillator sources

- Software-controllable switching between various clock sources

- A Fail-Safe Clock Monitor (FSCM) that detects clock failure and permits safe application recovery or shut down with dedicated FRC

- Dedicated On-Chip PLL for USB modules

- Flexible reference clock output

- Multiple clock branches for peripherals for better performance flexibility

## Using The Library

The Clock peripheral library initializes the clock system as configured by the user in the MCC easy view.

## Library Interface

Clock Generator peripheral library provides the following interfaces:

Functions

Name | Description
--- | ---
CLK_Initialize | Initializes hardware of the System Clock and Peripheral Clock