Chapter 5
Clock Distribution
5.1 Introduction
This chapter presents the clock architecture for the device, the overview of the clocks and
includes a terminology section.
The Cortex M0+ resides within a synchronous core platform, where the processor and
bus masters, flash memory, and peripheral clocks can be configured independently. The
clock distribution figure shows how clocks from the MCG and XOSC modules are
distributed to the microcontroller’s other function units. Some modules in the
microcontroller have selectable clock input.
5.2 Programming model
The selection and multiplexing of system clock sources is controlled and programmed via
the MCG module. The setting of clock dividers and module clock gating for the system
are programmed via the SIM module. Refer to the
register and bit descriptions.
5.3 High-level device clocking diagram
The following
module registers control the
multiplexers, dividers, and clock gates shown in the following figure:
OSC
MCG
SIM
Multiplexers
MCG_C
x
MCG_C
x
SIM_SOPT1, SIM_SOPT2
Dividers
—
MCG_C
x
SIM_CLKDIV
x
Clock gates
OSC_CR
MCG_C1
SIM_SCGC
x
KL02 Sub-Family Reference Manual, Rev. 2.1, July 2013
Freescale Semiconductor, Inc.
85