Atmel SAM4L-EK Atmel ATSAM4L-EK ATSAM4L-EK Data Sheet

Product codes
ATSAM4L-EK
Page of 1204
229
42023E–SAM–07/2013
ATSAM4L8/L4/L2
13.7.8
Oscillator Control Register
Name:
OSCCTRLn
Access Type:
Read/Write
Reset Value:
0x00000000
• OSCEN: Oscillator Enable
0: The oscillator is disabled.
1: The oscillator is enabled.
• STARTUP: Oscillator Start-up Time
Select start-up time for the oscillator. Refer to the “Oscillator Startup Time” table in the SCIF Module Configuration section for 
details.
• AGC: Automatic Gain Control
For test purposes.
• GAIN: Gain
Selects the gain for the oscillator. Refer to the “Oscillator Gain Settings” table in the SCIF Module Configuration section for 
details.
• MODE: Oscillator Mode
0: External clock connected on XIN. XOUT can be used as general-purpose I/O (no crystal).
1: Crystal is connected to XIN/XOUT.
Note that this register is protected by a lock. To write to this register the UNLOCK register has to be written first. Refer to
 for details.
31
30
29
28
27
26
25
24
-
-
-
-
-
-
-
-
23
22
21
20
19
18
17
16
-
-
-
-
-
-
-
OSCEN
15
14
13
12
11
10
9
8
-
-
-
-
STARTUP[3:0]
7
6
5
4
3
2
1
0
-
-
-
AGC
GAIN[1:0]
MODE