17.
MCLK – Main Clock
17.1. Overview
The Main Clock (MCLK) controls the synchronous clock generation of the device.
Using a clock provided by the Generic Clock Module (GCLK_MAIN), the Main Clock Controller provides
synchronous system clocks to the CPU and the modules connected to the AHBx and the APBx bus. The
synchronous system clocks are divided into a number of clock domains. Each clock domain can run at
different frequencies, enabling the user to save power by running peripherals at a relatively low clock
frequency, while maintaining high CPU performance or vice versa. In addition, the clock can be masked
for individual modules, enabling the user to minimize power consumption.
17.2. Features
•
Generates CPU, AHB, and APB system clocks
–
Clock source and division factor from GCLK
–
Clock prescaler with 1x to 128x division
•
Safe run-time clock switching from GCLK
•
Module-level clock gating through maskable peripheral clocks
17.3. Block Diagram
Figure 17-1. MCLK Block Diagram
MAIN
CLOCK CONTROLLER
CPU
GCLK
GCLK_MAIN
PERIPHERALS
CLK_APBx
CLK_AHBx
CLK_CPU
17.4. Signal Description
Not applicable.
17.5. Product Dependencies
In order to use this peripheral, other parts of the system must be configured correctly, as described below.
17.5.1. I/O Lines
Not applicable.
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
141