ATSAML22J16A OSCCTRL registers

The 18 registers of OSCCTRL (Oscillators Control), from 0x40001000, with their reset value and every field. The ATSAML22J16A has 1065 registers in 38 peripherals, one page each.

OSCCTRL Oscillators Control

INTENCLRInterrupt Enable Clear

Address
0x40001000
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
DPLLLDRTO19DPLL Ratio Ready Interrupt Enable
DPLLLTO18DPLL Time Out Interrupt Enable
DPLLLCKF17DPLL Lock Fall Interrupt Enable
DPLLLCKR16DPLL 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
OSC16MRDY4OSC16M Ready Interrupt Enable
XOSCFAIL1XOSC Clock Failure Detector Interrupt Enable
XOSCRDY0XOSC Ready Interrupt Enable

INTENSETInterrupt Enable Set

Address
0x40001004
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
DPLLLDRTO19DPLL Ratio Ready Interrupt Enable
DPLLLTO18DPLL Time Out Interrupt Enable
DPLLLCKF17DPLL Lock Fall Interrupt Enable
DPLLLCKR16DPLL 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
OSC16MRDY4OSC16M Ready Interrupt Enable
XOSCFAIL1XOSC Clock Failure Detector Interrupt Enable
XOSCRDY0XOSC Ready Interrupt Enable

INTFLAGInterrupt Flag Status and Clear

Address
0x40001008
Reset
0x00000000
Access
read/write
Size
32-bit
12 fields
FieldBitsWhat it does
DPLLLDRTO19DPLL Ratio Ready
DPLLLTO18DPLL Timeout
DPLLLCKF17DPLL Lock Fall
DPLLLCKR16DPLL Lock Rise
DFLLRCS12DFLL Reference Clock Stopped
DFLLLCKC11DFLL Lock Coarse
DFLLLCKF10DFLL Lock Fine
DFLLOOB9DFLL Out Of Bounds
DFLLRDY8DFLL Ready
OSC16MRDY4OSC16M Ready
XOSCFAIL1XOSC Clock Failure Detector
XOSCRDY0XOSC Ready

STATUSPower and Clocks Status

Address
0x4000100C
Reset
0x00000000
Access
read only
Size
32-bit
13 fields
FieldBitsWhat it does
DPLLLDRTO19DPLL Ratio Ready
DPLLTO18DPLL Timeout
DPLLLCKF17DPLL Lock Fall
DPLLLCKR16DPLL Lock Rise
DFLLRCS12DFLL Reference Clock Stopped
DFLLLCKC11DFLL Lock Coarse
DFLLLCKF10DFLL Lock Fine
DFLLOOB9DFLL Out Of Bounds
DFLLRDY8DFLL Ready
OSC16MRDY4OSC16M Ready
XOSCCKSW2XOSC Clock Switch
XOSCFAIL1XOSC Clock Failure Detector
XOSCRDY0XOSC Ready

XOSCCTRLExternal Multipurpose Crystal Oscillator (XOSC) Control

Address
0x40001010
Reset
0x0080
Access
read/write
Size
16-bit
9 fields
FieldBitsWhat it does
STARTUP15:12Start-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
AMPGC11Automatic Amplitude Gain Control
GAIN10:8Oscillator Gain
  • 0 2 MHz
  • 1 4 MHz
  • 2 8 MHz
  • 3 16 MHz
  • 4 30 MHz
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
SWBEN4Xosc Clock Switch Enable
CFDEN3Xosc Clock Failure Detecteor Enable
XTALEN2Crystal Oscillator Enable
ENABLE1Oscillator Enable

CFDPRESCCloc Failure Detector Prescaler

Address
0x40001012
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2CFDPRESC2
  7. 1CFDPRESC1
  8. 0CFDPRESC0
1 field
FieldBitsWhat it does
CFDPRESC2:0Clock Failure Detector Prescaler
  • 0 OSC16M/1
  • 1 OSC16M/2
  • 2 OSC16M/4
  • 3 OSC16M/8
  • 4 OSC16M/16
  • 5 OSC16M/32
  • 6 OSC16M/64
  • 7 OSC16M/128

EVCTRLEvent Control

Address
0x40001013
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0CFDEO
1 field
FieldBitsWhat it does
CFDEO0Clock Failure Detector Event Output Enable

OSC16MCTRL16MHz Internal Oscillator (OSC16M) Control

Address
0x40001014
Reset
0x82
Access
read/write
  1. 7ONDEMAND
  2. 6RUNSTDBY
  3. 5–
  4. 4–
  5. 3FSEL1
  6. 2FSEL0
  7. 1ENABLE
  8. 0–
4 fields
FieldBitsWhat it does
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
FSEL3:2Oscillator Frequency Select
  • 0 4MHz
  • 1 8MHz
  • 2 12MHz
  • 3 16MHz
ENABLE1Oscillator Enable

DFLLCTRLDFLL48M Control

Address
0x40001018
Reset
0x0080
Access
read/write
Size
16-bit
11 fields
FieldBitsWhat it does
WAITLOCK11Wait Lock
BPLCKC10Bypass Coarse Lock
QLDIS9Quick Lock Disable
CCDIS8Chill Cycle Disable
ONDEMAND7On Demand Control
RUNSTDBY6Run in Standby
USBCRM5USB Clock Recovery Mode
LLAW4Lose Lock After Wake
STABLE3Stable DFLL Frequency
MODE2Operating Mode Selection
ENABLE1DFLL Enable

DFLLVALDFLL48M Value

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

DFLLMULDFLL48M Multiplier

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

DFLLSYNCDFLL48M Synchronization

Address
0x40001024
Reset
0x00
Access
read/write
  1. 7READREQ
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–
1 field
FieldBitsWhat it does
READREQ7Read Request

DPLLCTRLADPLL Control

Address
0x40001028
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
RUNSTDBY6Run in Standby
ENABLE1Enable

DPLLRATIODPLL Ratio Control

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

DPLLCTRLBDigital Core Configuration

Address
0x40001030
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
DIV26:16Clock Divider
LBYPASS12Lock Bypass
LTIME10:8Lock Time
  • 0 No time-out. Automatic lock.
  • 4 Time-out if no lock within 8ms
  • 5 Time-out if no lock within 9ms
  • 6 Time-out if no lock within 10ms
  • 7 Time-out if no lock within 11ms
REFCLK5:4Reference Clock Selection
  • 0 XOSC32K clock reference
  • 1 XOSC clock reference
  • 2 GCLK clock reference
WUF3Wake Up Fast
LPEN2Low-Power Enable
FILTER1:0Proportional Integral Filter Selection
  • 0 Default filter mode
  • 1 Low bandwidth filter
  • 2 High bandwidth filter
  • 3 High damping filter

DPLLPRESCDPLL Prescaler

Address
0x40001034
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1PRESC1
  8. 0PRESC0
1 field
FieldBitsWhat it does
PRESC1:0Output Clock Prescaler
  • 0 DPLL output is divided by 1
  • 1 DPLL output is divided by 2
  • 2 DPLL output is divided by 4

DPLLSYNCBUSYDPLL Synchronization Busy

Address
0x40001038
Reset
0x00
Access
read only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3DPLLPRESC
  6. 2DPLLRATIO
  7. 1ENABLE
  8. 0–
3 fields
FieldBitsWhat it does
DPLLPRESC3DPLL Prescaler Synchronization Status
DPLLRATIO2DPLL Ratio Synchronization Status
ENABLE1DPLL Enable Synchronization Status

DPLLSTATUSDPLL Status

Address
0x4000103C
Reset
0x00
Access
read only
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1CLKRDY
  8. 0LOCK
2 fields
FieldBitsWhat it does
CLKRDY1DPLL Clock Ready
LOCK0DPLL Lock Status