ATSAMD51N20A OSCCTRL registers

The 22 registers of OSCCTRL (Oscillators Control), from 0x40001000, with their reset value and every field. The ATSAMD51N20A has 2689 registers in 66 peripherals, one page each.

OSCCTRL Oscillators Control

EVCTRLEvent Control

Address
0x40001000
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1CFDEO1
  8. 0CFDEO0
2 fields
FieldBitsWhat it does
CFDEO11Clock 1 Failure Detector Event Output Enable
CFDEO00Clock 0 Failure Detector Event Output Enable

INTENCLRInterrupt Enable Clear

Address
0x40001004
Reset
0x00000000
Access
read/write
Size
32-bit
17 fields
FieldBitsWhat it does
DPLL1LDRTO27DPLL1 Loop Divider Ratio Update Complete Interrupt Enable
DPLL1LTO26DPLL1 Lock Timeout Interrupt Enable
DPLL1LCKF25DPLL1 Lock Fall Interrupt Enable
DPLL1LCKR24DPLL1 Lock Rise Interrupt Enable
DPLL0LDRTO19DPLL0 Loop Divider Ratio Update Complete Interrupt Enable
DPLL0LTO18DPLL0 Lock Timeout Interrupt Enable
DPLL0LCKF17DPLL0 Lock Fall Interrupt Enable
DPLL0LCKR16DPLL0 Lock Rise Interrupt Enable
DFLLRCS12DFLL Reference Clock Stopped Interrupt Enable
DFLLLCKC11DFLL Lock Coarse Interrupt Enable
DFLLLCKF10DFLL Lock Fine Interrupt Enable
DFLLOOB9DFLL Out Of Bounds Interrupt Enable
DFLLRDY8DFLL Ready Interrupt Enable
XOSCFAIL13XOSC 1 Clock Failure Detector Interrupt Enable
XOSCFAIL02XOSC 0 Clock Failure Detector Interrupt Enable
XOSCRDY11XOSC 1 Ready Interrupt Enable
XOSCRDY00XOSC 0 Ready Interrupt Enable

INTENSETInterrupt Enable Set

Address
0x40001008
Reset
0x00000000
Access
read/write
Size
32-bit
17 fields
FieldBitsWhat it does
DPLL1LDRTO27DPLL1 Loop Divider Ratio Update Complete Interrupt Enable
DPLL1LTO26DPLL1 Lock Timeout Interrupt Enable
DPLL1LCKF25DPLL1 Lock Fall Interrupt Enable
DPLL1LCKR24DPLL1 Lock Rise Interrupt Enable
DPLL0LDRTO19DPLL0 Loop Divider Ratio Update Complete Interrupt Enable
DPLL0LTO18DPLL0 Lock Timeout Interrupt Enable
DPLL0LCKF17DPLL0 Lock Fall Interrupt Enable
DPLL0LCKR16DPLL0 Lock Rise Interrupt Enable
DFLLRCS12DFLL Reference Clock Stopped Interrupt Enable
DFLLLCKC11DFLL Lock Coarse Interrupt Enable
DFLLLCKF10DFLL Lock Fine Interrupt Enable
DFLLOOB9DFLL Out Of Bounds Interrupt Enable
DFLLRDY8DFLL Ready Interrupt Enable
XOSCFAIL13XOSC 1 Clock Failure Detector Interrupt Enable
XOSCFAIL02XOSC 0 Clock Failure Detector Interrupt Enable
XOSCRDY11XOSC 1 Ready Interrupt Enable
XOSCRDY00XOSC 0 Ready Interrupt Enable

INTFLAGInterrupt Flag Status and Clear

Address
0x4000100C
Reset
0x00000000
Access
read/write
Size
32-bit
17 fields
FieldBitsWhat it does
DPLL1LDRTO27DPLL1 Loop Divider Ratio Update Complete
DPLL1LTO26DPLL1 Lock Timeout
DPLL1LCKF25DPLL1 Lock Fall
DPLL1LCKR24DPLL1 Lock Rise
DPLL0LDRTO19DPLL0 Loop Divider Ratio Update Complete
DPLL0LTO18DPLL0 Lock Timeout
DPLL0LCKF17DPLL0 Lock Fall
DPLL0LCKR16DPLL0 Lock Rise
DFLLRCS12DFLL Reference Clock Stopped
DFLLLCKC11DFLL Lock Coarse
DFLLLCKF10DFLL Lock Fine
DFLLOOB9DFLL Out Of Bounds
DFLLRDY8DFLL Ready
XOSCFAIL13XOSC 1 Clock Failure Detector
XOSCFAIL02XOSC 0 Clock Failure Detector
XOSCRDY11XOSC 1 Ready
XOSCRDY00XOSC 0 Ready

STATUSStatus

Address
0x40001010
Reset
0x00000000
Access
read only
Size
32-bit
19 fields
FieldBitsWhat it does
DPLL1LDRTO27DPLL1 Loop Divider Ratio Update Complete
DPLL1TO26DPLL1 Timeout
DPLL1LCKF25DPLL1 Lock Fall
DPLL1LCKR24DPLL1 Lock Rise
DPLL0LDRTO19DPLL0 Loop Divider Ratio Update Complete
DPLL0TO18DPLL0 Timeout
DPLL0LCKF17DPLL0 Lock Fall
DPLL0LCKR16DPLL0 Lock Rise
DFLLRCS12DFLL Reference Clock Stopped
DFLLLCKC11DFLL Lock Coarse
DFLLLCKF10DFLL Lock Fine
DFLLOOB9DFLL Out Of Bounds
DFLLRDY8DFLL Ready
XOSCCKSW15XOSC 1 Clock Switch
XOSCCKSW04XOSC 0 Clock Switch
XOSCFAIL13XOSC 1 Clock Failure Detector
XOSCFAIL02XOSC 0 Clock Failure Detector
XOSCRDY11XOSC 1 Ready
XOSCRDY00XOSC 0 Ready

XOSCCTRL0External Multipurpose Crystal Oscillator Control

Address
0x40001014
Reset
0x00000080
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
CFDPRESC27:24Clock Failure Detector Prescaler
  • 0 48 MHz
  • 1 24 MHz
  • 2 12 MHz
  • 3 6 MHz
  • 4 3 MHz
  • 5 1.5 MHz
  • 6 0.75 MHz
  • 7 0.3125 MHz
STARTUP23:20Start-Up Time
  • 0 31 us
  • 1 61 us
  • 2 122 us
  • 3 244 us
  • 4 488 us
  • 5 977 us
  • 6 1953 us
  • 7 3906 us
  • 8 7813 us
  • 9 15625 us
  • 10 31250 us
  • 11 62500 us
  • 12 125000 us
  • 13 250000 us
  • 14 500000 us
  • 15 1000000 us
SWBEN17Xosc Clock Switch Enable
CFDEN16Clock Failure Detector Enable
ENALC15Automatic Loop Control Enable
IMULT14:11Oscillator Current Multiplier
IPTAT10:9Oscillator Current Reference
LOWBUFGAIN8Low Buffer Gain Enable
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
XTALEN2Crystal Oscillator Enable
ENABLE1Oscillator Enable

XOSCCTRL1External Multipurpose Crystal Oscillator Control

Address
0x40001018
Reset
0x00000080
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
CFDPRESC27:24Clock Failure Detector Prescaler
  • 0 48 MHz
  • 1 24 MHz
  • 2 12 MHz
  • 3 6 MHz
  • 4 3 MHz
  • 5 1.5 MHz
  • 6 0.75 MHz
  • 7 0.3125 MHz
STARTUP23:20Start-Up Time
  • 0 31 us
  • 1 61 us
  • 2 122 us
  • 3 244 us
  • 4 488 us
  • 5 977 us
  • 6 1953 us
  • 7 3906 us
  • 8 7813 us
  • 9 15625 us
  • 10 31250 us
  • 11 62500 us
  • 12 125000 us
  • 13 250000 us
  • 14 500000 us
  • 15 1000000 us
SWBEN17Xosc Clock Switch Enable
CFDEN16Clock Failure Detector Enable
ENALC15Automatic Loop Control Enable
IMULT14:11Oscillator Current Multiplier
IPTAT10:9Oscillator Current Reference
LOWBUFGAIN8Low Buffer Gain Enable
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
XTALEN2Crystal Oscillator Enable
ENABLE1Oscillator Enable

DFLLCTRLADFLL48M Control A

Address
0x4000101C
Reset
0x82
Access
read/write
  1. 7ONDEMAND
  2. 6RUNSTDBY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1ENABLE
  8. 0–
3 fields
FieldBitsWhat it does
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
ENABLE1DFLL Enable

DFLLCTRLBDFLL48M Control B

Address
0x40001020
Reset
0x00
Access
read/write
  1. 7WAITLOCK
  2. 6BPLCKC
  3. 5QLDIS
  4. 4CCDIS
  5. 3USBCRM
  6. 2LLAW
  7. 1STABLE
  8. 0MODE
8 fields
FieldBitsWhat it does
WAITLOCK7Wait Lock
BPLCKC6Bypass Coarse Lock
QLDIS5Quick Lock Disable
CCDIS4Chill Cycle Disable
USBCRM3USB Clock Recovery Mode
LLAW2Lose Lock After Wake
STABLE1Stable DFLL Frequency
MODE0Operating Mode Selection

DFLLVALDFLL48M Value

Address
0x40001024
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
COARSE15:10Coarse Value
FINE7:0Fine Value
DIFF31:16Multiplication Ratio Difference

DFLLMULDFLL48M Multiplier

Address
0x40001028
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
FSTEP23:16Fine Maximum Step
MUL15:0DFLL Multiply Factor
CSTEP31:26Coarse Maximum Step

DFLLSYNCDFLL48M Synchronization

Address
0x4000102C
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4DFLLMUL
  5. 3DFLLVAL
  6. 2DFLLCTRLB
  7. 1ENABLE
  8. 0–
4 fields
FieldBitsWhat it does
DFLLMUL4DFLLMUL Synchronization Busy
DFLLVAL3DFLLVAL Synchronization Busy
DFLLCTRLB2DFLLCTRLB Synchronization Busy
ENABLE1ENABLE Synchronization Busy

DPLLCTRLA0DPLL Control A

Address
0x40001030
Reset
0x80
Access
read/write
  1. 7ONDEMAND
  2. 6RUNSTDBY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1ENABLE
  8. 0–
3 fields
FieldBitsWhat it does
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
ENABLE1DPLL Enable

DPLLRATIO0DPLL Ratio Control

Address
0x40001034
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
LDRFRAC20:16Loop Divider Ratio Fractional Part
LDR12:0Loop Divider Ratio

DPLLCTRLB0DPLL Control B

Address
0x40001038
Reset
0x00000020
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
DIV26:16Clock Divider
DCOEN15DCO Filter Enable
DCOFILTER14:12Sigma-Delta DCO Filter Selection
  • 0 Capacitor(pF) = 0.5 and Bandwidth Fn (MHz) = 3.21
  • 1 Capacitor(pF) = 1 and Bandwidth Fn (MHz) = 1.6
  • 2 Capacitor(pF) = 1.5 and Bandwidth Fn (MHz) = 1.1
  • 3 Capacitor(pF) = 2 and Bandwidth Fn (MHz) = 0.8
  • 4 Capacitor(pF) = 2.5 and Bandwidth Fn (MHz) = 0.64
  • 5 Capacitor(pF) = 3 and Bandwidth Fn (MHz) = 0.55
  • 6 Capacitor(pF) = 3.5 and Bandwidth Fn (MHz) = 0.45
  • 7 Capacitor(pF) = 4 and Bandwidth Fn (MHz) = 0.4
LBYPASS11Lock Bypass
LTIME10:8Lock Time
  • 0 No time-out. Automatic lock
  • 4 Time-out if no lock within 800us
  • 5 Time-out if no lock within 900us
  • 6 Time-out if no lock within 1ms
  • 7 Time-out if no lock within 1.1ms
REFCLK7:5Reference Clock Selection
  • 0 Dedicated GCLK clock reference
  • 1 XOSC32K clock reference
  • 2 XOSC0 clock reference
  • 3 XOSC1 clock reference
WUF4Wake Up Fast
FILTER3:0Proportional Integral Filter Selection
  • 0 Bandwidth = 92.7Khz and Damping Factor = 0.76
  • 1 Bandwidth = 131Khz and Damping Factor = 1.08
  • 2 Bandwidth = 46.4Khz and Damping Factor = 0.38
  • 3 Bandwidth = 65.6Khz and Damping Factor = 0.54
  • 4 Bandwidth = 131Khz and Damping Factor = 0.56
  • 5 Bandwidth = 185Khz and Damping Factor = 0.79
  • 6 Bandwidth = 65.6Khz and Damping Factor = 0.28
  • 7 Bandwidth = 92.7Khz and Damping Factor = 0.39
  • 8 Bandwidth = 46.4Khz and Damping Factor = 1.49
  • 9 Bandwidth = 65.6Khz and Damping Factor = 2.11
  • 10 Bandwidth = 23.2Khz and Damping Factor = 0.75
  • 11 Bandwidth = 32.8Khz and Damping Factor = 1.06
  • 12 Bandwidth = 65.6Khz and Damping Factor = 1.07
  • 13 Bandwidth = 92.7Khz and Damping Factor = 1.51
  • 14 Bandwidth = 32.8Khz and Damping Factor = 0.53
  • 15 Bandwidth = 46.4Khz and Damping Factor = 0.75

DPLLSYNCBUSY0DPLL Synchronization Busy

Address
0x4000103C
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
DPLLRATIO2DPLL Loop Divider Ratio Synchronization Status
ENABLE1DPLL Enable Synchronization Status

DPLLSTATUS0DPLL Status

Address
0x40001040
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
CLKRDY1DPLL Clock Ready
LOCK0DPLL Lock Status

DPLLCTRLA1DPLL Control A

Address
0x40001044
Reset
0x80
Access
read/write
  1. 7ONDEMAND
  2. 6RUNSTDBY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1ENABLE
  8. 0–
3 fields
FieldBitsWhat it does
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
ENABLE1DPLL Enable

DPLLRATIO1DPLL Ratio Control

Address
0x40001048
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
FieldBitsWhat it does
LDRFRAC20:16Loop Divider Ratio Fractional Part
LDR12:0Loop Divider Ratio

DPLLCTRLB1DPLL Control B

Address
0x4000104C
Reset
0x00000020
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
DIV26:16Clock Divider
DCOEN15DCO Filter Enable
DCOFILTER14:12Sigma-Delta DCO Filter Selection
  • 0 Capacitor(pF) = 0.5 and Bandwidth Fn (MHz) = 3.21
  • 1 Capacitor(pF) = 1 and Bandwidth Fn (MHz) = 1.6
  • 2 Capacitor(pF) = 1.5 and Bandwidth Fn (MHz) = 1.1
  • 3 Capacitor(pF) = 2 and Bandwidth Fn (MHz) = 0.8
  • 4 Capacitor(pF) = 2.5 and Bandwidth Fn (MHz) = 0.64
  • 5 Capacitor(pF) = 3 and Bandwidth Fn (MHz) = 0.55
  • 6 Capacitor(pF) = 3.5 and Bandwidth Fn (MHz) = 0.45
  • 7 Capacitor(pF) = 4 and Bandwidth Fn (MHz) = 0.4
LBYPASS11Lock Bypass
LTIME10:8Lock Time
  • 0 No time-out. Automatic lock
  • 4 Time-out if no lock within 800us
  • 5 Time-out if no lock within 900us
  • 6 Time-out if no lock within 1ms
  • 7 Time-out if no lock within 1.1ms
REFCLK7:5Reference Clock Selection
  • 0 Dedicated GCLK clock reference
  • 1 XOSC32K clock reference
  • 2 XOSC0 clock reference
  • 3 XOSC1 clock reference
WUF4Wake Up Fast
FILTER3:0Proportional Integral Filter Selection
  • 0 Bandwidth = 92.7Khz and Damping Factor = 0.76
  • 1 Bandwidth = 131Khz and Damping Factor = 1.08
  • 2 Bandwidth = 46.4Khz and Damping Factor = 0.38
  • 3 Bandwidth = 65.6Khz and Damping Factor = 0.54
  • 4 Bandwidth = 131Khz and Damping Factor = 0.56
  • 5 Bandwidth = 185Khz and Damping Factor = 0.79
  • 6 Bandwidth = 65.6Khz and Damping Factor = 0.28
  • 7 Bandwidth = 92.7Khz and Damping Factor = 0.39
  • 8 Bandwidth = 46.4Khz and Damping Factor = 1.49
  • 9 Bandwidth = 65.6Khz and Damping Factor = 2.11
  • 10 Bandwidth = 23.2Khz and Damping Factor = 0.75
  • 11 Bandwidth = 32.8Khz and Damping Factor = 1.06
  • 12 Bandwidth = 65.6Khz and Damping Factor = 1.07
  • 13 Bandwidth = 92.7Khz and Damping Factor = 1.51
  • 14 Bandwidth = 32.8Khz and Damping Factor = 0.53
  • 15 Bandwidth = 46.4Khz and Damping Factor = 0.75

DPLLSYNCBUSY1DPLL Synchronization Busy

Address
0x40001050
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
DPLLRATIO2DPLL Loop Divider Ratio Synchronization Status
ENABLE1DPLL Enable Synchronization Status

DPLLSTATUS1DPLL Status

Address
0x40001054
Reset
0x00000000
Access
read only
Size
32-bit
2 fields
FieldBitsWhat it does
CLKRDY1DPLL Clock Ready
LOCK0DPLL Lock Status