26.7.8 Voltage Regulator System (VREG) Control

Note: During normal operation, all voltage regulators that are in use must be left in the On state to allow for the proper transition between different low-power/standby states.
Table 26-10. 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: VREGCTRL
Offset: 0x001C
Reset: 0x00000004
Property: PAC Write-Protection

Bit 3130292827262524 
      AVREGSTGBY[2:0] 
Access R/WR/WR/W 
Reset 000 
Bit 2322212019181716 
      AVREGEN[2:0] 
Access R/WR/WR/W 
Reset 000 
Bit 15141312111098 
      CPEN[2:0] 
Access R/WR/WR/W 
Reset 000 
Bit 76543210 
   BKUP_VLDSRAM_VLD     
Access R/W/HCR/W/HC 
Reset 00 

Bits 26:24 – AVREGSTGBY[2:0] Additional Voltage Regulator Configuration

ValueDescription
0x0USB0, USB1 and PLL regulators are off in sleep, standby, hibernate or backup mode
0x1USB0 Regulator is ON in Standby mode if corresponding AVREGEN bit is set.

It is OFF in Hibernate or Backup mode.

0x2USB1 Regulator is ON in Standby mode if corresponding AVREGEN bit is set.

It is OFF in Hibernate or Backup mode.

0x3USB0 & USB1 Regulators are ON in Standby mode if corresponding AVREGEN bit(s) are set.

They are OFF in Hibernate or Backup mode.

0x4PLL Regulators is ON in Standby mode if corresponding AVREGEN bit is set.

It is OFF in Hibernate or Backup mode.

0x5USB0 & PLL regulators are ON in Standby mode if corresponding AVREGEN bit(s) are set.

They are OFF in Hibernate or Backup mode.

0x6USB1 & PLL regulators are ON in Standby mode if corresponding AVREGEN bit(s) are set.

They are OFF in Hibernate or Backup mode.

0x7USB0, USB1 and PLL regulators are ON in Standby mode if corresponding AVREGEN bit(s) are set.

They are OFF in Hibernate or Backup mode.

Bits 18:16 – AVREGEN[2:0] Additional Voltage Regulator Enabled

Note: The USB0 and USB1 regulators should be enabled one at a time, when needed, with at least 1us of delay between the enabling event for each.
ValueDescription
0x0USB0, USB1 and PLL regulators disabled (Default)
0x1USB0 Regulator Enabled
0x2USB1 Regulator Enabled
0x3USB0 & USB1 Regulators Enabled
0x4PLL Regulators enabled
0x5USB0 & PLL regulators enabled
0x6USB1 & PLL regulators enabled
0x7USB0, USB1 and PLL regulators enabled

Bits 10:8 – CPEN[2:0]  Analog Peripheral Charge Pump Enabled

ValueDescriptionRequirements
0x0All charge pumps disabled.AVDD ≥ 2.5v
0x1Enable charge pump for I/O analog mux and Analog Comparator (AC)AVDD < 2.5v
---Reserved
0x3Enable charge pumps for I/O, AC, ADC Modules 2 & 3
---Reserved
0x5Enable charge pumps for I/O, AC, ADC Modules 0 & 1 plus PTC
---Reserved
0x7Enable for charge pumps for I/O, AC, ADC Modules 0, 1, 2 & 3 plus PTC
Note:
  1. When AVDD < 2.5v the corresponding appropriate CPEN must be enabled.
  2. User must have previously enabled the charge pump clocks defined in Configuration Register 5, FUCFG5.

Bit 5 – BKUP_VLD MCU Backup Domain Valid Status Bit

Note: Hardware Cleared by Reset and Power Management Unit Whenever Backup power domain is lost. Software (SW) Set by Backup Domain Initialization Code in BOOT ROM when completed.
ValueDescription
0Backup “BKUP” Power Domain has encountered a power loss and contents are not valid.(DEFAULT)
1Backup “BKUP” Power Domain has not encountered a power loss. Contents are valid.

Bit 4 – SRAM_VLD SRAM Valid Status Bit

Note:
  1. Hardware Clear by Reset and Power Management Units whenever SRAM power domain is lost.
  2. Automatically set by BOOT ROM code after Boot-up Sequence when " MCRAMC.CTRLA.ENABLE = 1" after SRAM is initialized.
  3. Should be set by Users SW Code once valid data has been written into System SRAM when " MCRAMC.CTRLA.ENABLE = 0" after SRAM is initialized by user.
ValueDescription
0SRAM has encountered a power loss and contents are not valid. (DEAFAULT)
1SRAM has not encountered a power loss.