UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
415 of 464
NXP Semiconductors
UM10850
Chapter 30: LPC5410x Power profiles/Power control API
30.4.2 Chip_POWER_SetVoltage
This routine configures the device’s internal power control settings according to the calling
arguments. The goal is to prepare on-chip regulators to deliver the amount of power
needed for the requested performance level, as defined by the CPU operating frequency.
Remark:
The Chip_POWER_SetVoltage API should only be used when the system clock
divider is 1 (AHBCLKDIV = 1, see
).
30.4.2.1 Param1: frequency
The frequency is the clock rate the CPU will be using during the selected mode.
microcontroller uses to source the system and peripheral clocks. This operand must be an
integer between 1 to 100 MHz inclusive.
30.4.2.2 Error or return codes
A return code of zero indicates that the operation was successful.
30.4.3 Chip_POWER_EnterPowerMode
The Chip_POWER_EnterPowerMode API prepares the part, then enters any of the low
power modes. Specifically for power-down and deep-sleep modes, the API function
configures which analog components remain running in those two modes, so that an
interrupt from one of the analog peripherals can wake up the part.
Table 469. Chip_POWER_SetVoltage routine
Routine
Chip_POWER_SetVoltage
Prototype
uint32_t Chip_POWER_SetVoltage (0, uint32_t desired_freq)
;
Input parameter
Param0:
0
Param1:
desired frequency (in Hz)
Result
Error code. 0 = no error.
Description
Configures the internal device voltage in active mode, as well as setting up the
corresponding flash wait states.
Table 470. Error codes
Return code
Error code
Description
0x000C 0004
PWR_ERROR_INVALID_CFG
Mode is invalid
0x000B 0002
ERR_CLK_INVALID_PARAM
Frequency is outside the supported range
Table 471. Chip_POWER_EnterPowerMode routine
Routine
Chip_POWER_EnterPowerMode
Prototype
void Chip_POWER_EnterPowerMode (POWER_MODE_T mode, uint32_t peripheral_ctrl)
;
Input parameter
Param0:
mode
Param1:
peripheral
Result
None
Description
Defines the low power mode (either sleep, deep-sleep, power-down, or deep
power-down modes) and allows controlling which peripherals are powered up in
the reduced power mode.