1.35.2 Clock Generator (CLOCK)

The Clock Generator is made up of:

  • A low-power 32768 Hz slow clock oscillator with Bypass mode

  • A low-power RC oscillator

  • A 3 to 20 MHz crystal or ceramic resonator-based oscillator, which can be bypassed.

  • A factory-programmed fast RC oscillator. Three \output frequencies can be selected: 8/16/24 MHz. By default 8 MHz is selected.

  • A 24 to 96 MHz programmable PLL (input from 32 to 1000 KHz), capable of providing the clock MCK to the processor and to the peripherals.

It provides the following clocks:

  • SLCK, the slow clock, which is the only permanent clock within the system.

  • MAINCK is the output of the main clock oscillator selection: either the crystal or ceramic resonator-based oscillator or 8/16/24 MHz fast RC oscillator.

  • PLLACK is the output of the 24 to 96 MHz programmable PLL (PLLA).

Using The Library

The Clock peripheral library initializes the clock system as configured by the user in the MHC Clock configurator. It can be accessed via the "Tools" drop down of the MPLAB harmony configurator menu bar.

Library Interface

Clock Generator peripheral library provides the following interfaces:

Functions

Name Description
CLOCK_Initialize Initializes the clock for system and peripherals