21.3. Block Diagram
Figure 21-1. OSCCTRL Block Diagram
OSCILLATORS
CONTROL
STATUS
INTERRUPTS
GENERATOR
Interrupts
OSCCTRL
XIN
XOUT
XOSC
OSC16M
DFLL48M
DPLL96M
CLK_XOSC
CLK_OSC16M
CLK_DFLL48M
CLK_DPLL
CFD
CFD Event
register
21.4. Signal Description
Signal
Description
Type
XIN
Multipurpose Crystal Oscillator or external clock generator input
Analog input
XOUT
Multipurpose Crystal Oscillator output
Analog output
The I/O lines are automatically selected when XOSC is enabled.
21.5. Product Dependencies
In order to use this peripheral, other parts of the system must be configured correctly, as described below.
21.5.1. I/O Lines
I/O lines are configured by OSCCTRL when XOSC is enabled, and need no user configuration.
21.5.2. Power Management
The OSCCTRL can continue to operate in any sleep mode where the selected source clock is running.
The OSCCTRL interrupts can be used to wake up the device from sleep modes. The events can trigger
other operations in the system without exiting sleep modes.
Related Links
on page 188
21.5.3. Clocks
The OSCCTRL gathers controls for all device oscillators and provides clock sources to the Generic Clock
Controller (GCLK). The available clock sources are: XOSC, OSC16M, DFLL48M, and FDPLL96M.
The OSCCTRL bus clock (CLK_OSCCTRL_APB) can be enabled and disabled in the Main Clock module
(MCLK).
The DFLL48M control logic uses the DFLL oscillator output, which is also asynchronous to the user
interface clock (CLK_OSCCTRL_APB). Due to this asynchronicity, writes to certain registers will require
synchronization between the clock domains. Refer to
for further details.
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
208