Value
Description
0
The XOSC is not running in Standby sleep mode if no peripheral requests the clock.
1
The XOSC is running in Standby sleep mode. If ONDEMAND=1, the XOSC will be running
when a peripheral is requesting the clock. If ONDEMAND=0, the clock source will always be
running in Standby sleep mode.
Bit 4 – SWBACK: Clock Switch Back
This bit controls the XOSC output switch back to the external clock or crystal oscillator in case of clock
recovery:
Value
Description
0
The clock switch back is disabled.
1
The clock switch back is enabled. This bit is reset once the XOSC putput clock is switched
back to the external clock or crystal oscillator.
Bit 3 – CFDEN: Clock Failure Detector Enable
This bit controls the clock failure detector:
Value
Description
0
The Clock Failure Detector is disabled.
1
the Clock Failure Detector is enabled.
Bit 2 – XTALEN: Crystal Oscillator Enable
This bit controls the connections between the I/O pads and the external clock or crystal oscillator:
Value
Description
0
External clock connected on XIN. XOUT can be used as general-purpose I/O.
1
Crystal connected to XIN/XOUT.
Bit 1 – ENABLE: Oscillator Enable
Value
Description
0
The oscillator is disabled.
1
The oscillator is enabled.
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
244