37.7.1 Control A Register

Note: All bits in CTRLA are enable protected except for ENABLE and SWRST.
Table 37-3. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: CTRLA
Offset: 0x0000
Reset: 0x0000000000
Property: PAC Write-Protection

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
      REFCLKSELIDOVENIDVAL 
Access R/WR/WR/W 
Reset 000 
Bit 76543210 
       ENABLESWRST 
Access R/WR/W 
Reset 00 

Bit 10 – REFCLKSEL Select USB PLL Reference Clock Speed

ValueDescription
012 MHz clock input
124 MHz clock input

Bit 9 – IDOVEN ID Source Select

Note: Affects the value of DEVCTL.B Device.
ValueDescription
0IDDIG value from PHY is the source of ID
1IDVAL is the source of ID

Bit 8 – IDVAL Override value of ID

ValueDescription
0ID override value is 0 (A plug) bit
1ID override value is 1 (B plug)

Bit 1 – ENABLE Enable

Note:
  1. Due to synchronization, there is delay from writing CTRLA.ENABLE until the operation completes. The value written to CTRL.ENABLE reads back immediately and the SYNCBUSY.ENABLE bit is set. SYNC- BUSY.ENABLE is cleared when the operation completes.
  2. Before clearing ENABLE ensure the USBCORE Controller has entered Suspend mode.
  3. It is necessary to make all other configuration settings in this register first before setting the ENABLE bit.
ValueDescription
0Disable module: Only SFR reads/writes
1Enable module: Requests Reference Clock

Bit 0 – SWRST Software initiated Reset for USB System

Note:
  1. Writing'1' to CTRLA.SWRST take precedence over other bit updates in the same write-operation. Any register write during the ongoing reset results in a bus error. Reading any register returns the reset value of the register.
  2. Due to synchronization there is a delay from writing CTRLA.SWRST until the reset completes. CTRLA.SWRST and SYNCBUSY.SWRST are both cleared when the reset is completes.
  3. During a SWRST, access to registers/bits without SWRST are disallowed until SYNCBUSY.SWRST is cleared by hardware.
ValueDescription
0This module remains in its current state. Writing a 0 to this field has no effect.
1Reset all logic and registers in the USB system, except SYNCBUSY.SWRST, and disable the module (USBCORE, PHY, and VREG).