Datasheet
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
Section 13.7.7 ”Unlock Register” on page 228 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]
76543210
- - - AGC GAIN[1:0] MODE