SLAU533D September 2013 – April 2017
Next, main() sets the PMMCOREV register field to 2. PMMCOREV controls the VCORE voltage, which is the voltage at which the MCU core circuitry operates. VCORE is generated from a low-dropout (LDO) regulator inside the MCU Power Management Module (PMM). Higher CPU operating speeds require higher VCORE levels, and higher VCORE levels result in higher quiescent current on the LDO. For this reason, VCORE is programmable.
Although primarily related to CPU speed, the device data sheet also shows that during operation of the USB PLL (that is, during an active USB connection), VCORE must be set to 2 or 3, the highest two levels. Because the demo's use of an 8-MHz clock does not require a setting of 3, the PMMCOREV register is set to 2.