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
413 of 464
NXP Semiconductors
UM10850
Chapter 30: LPC5410x Power profiles/Power control API
30.4 API description
Power APIs provide functions to configure the system clock and set up the system for
expected performance requirements. The Power APIs are available in the power library
provided with LPCOpen software package.
Remark:
Do not use ROM API calls in
. Use the power library from the
LPCOpen software package and
Table 466 “Power API calls in LPCOpen power library”
configure the PLL, power consumptions, and entry into low power modes.
The following elements have to be defined in an application that uses the ROM power
profiles:
typedef struct _PWRD {
unsigned int (*set_pll)(unsigned int multiplier, unsigned int input_freq);
unsigned int (*set_voltage)(unsigned int mode, unsigned int desired_freq);
void (*power_mode_configure)(unsigned int mode, unsigned int peripheral);
} PWRD;
Fig 61. ROM power API pointer structure
3RLQWHUWR520GULYHU
WDEOH[
3RLQWHUWRGHYLFHWDEOH
3RLQWHUWRGHYLFHWDEOH
3RLQWHUWRGHYLFHWDEOH
3RLQWHUWR3RZHU$3,WDEOH
«
3RLQWHUWRGHYLFHWDEOHQ
520GULYHUWDEOH
VHWBSOO
VHWBYROWDJH
SRZHUBPRGHBFRQILJXUH
3RZHU$3,IXQFWLRQWDEOH
Table 465. Power API ROM calls
Function prototype
API description
Reference
unsigned int set_pll
(unsigned int multiplier,
unsigned int input_freq)
Power API PLL configuration routine.This API sets up basic PLL operation.
unsigned int set_voltage
(unsigned int mode,
unsigned int desired_freq)
Power API internal voltage configuration routine.This API configures the
internal regulator for the desired active operating mode and frequency.
void power_mode_configure
(unsigned int mode,
unsigned int peripheral);
Power API power mode configuration routine.This API prepares the chip for
sleep, deep-sleep, power-down, or deep power-down mode and selects which
peripherals can wake up the part from deep-sleep or power-down modes.