CMSIS-Driver_PIC32CM-JH  
Peripheral Library (PLIB) Documentation
 
Loading...
Searching...
No Matches
PM Interface

Driver API for PM (plib_pm.h) More...

Typedefs

typedef uint32_t PM_VREG_MODE
 Standby voltage regulator mode selection.
 

Functions

void PM_EnterIdle0SleepMode (void)
 Enter Idle0 sleep mode.
 
void PM_EnterIdle2SleepMode (void)
 Enter Idle2 sleep mode.
 
void PM_EnterStandbySleepMode (void)
 Configures the Power Manager to enter Standby sleep mode and executes the WFI instruction.
 
void PM_EnableStandbySRAMBackBias (void)
 Enable SRAM back-biasing in Standby sleep mode.
 
void PM_DisableStandbySRAMBackBias (void)
 Disable SRAM back-biasing in Standby sleep mode.
 
void PM_SetStandbyRegulatorMode (PM_VREG_MODE mode)
 Configure voltage regulator mode for Standby sleep mode.
 

Description

Driver API for PM (plib_pm.h)

Usage Example

The following example demonstrates typical usage of the PM peripheral:

#include "plib_pm.h"
int32_t configure_pm(void)
{
/* Enter Idle sleep modes */
/* Configure standby voltage regulator mode (Low Power) */
PM_SetStandbyRegulatorMode(PM_STDBYCFG_VREGSMOD_LP);
/* Enable SRAM back-biasing */
/* Enter Standby sleep mode */
return 0;
}
void PM_EnableStandbySRAMBackBias(void)
Enable SRAM back-biasing in Standby sleep mode.
void PM_SetStandbyRegulatorMode(PM_VREG_MODE mode)
Configure voltage regulator mode for Standby sleep mode.
void PM_EnterIdle0SleepMode(void)
Enter Idle0 sleep mode.
void PM_EnterIdle2SleepMode(void)
Enter Idle2 sleep mode.
void PM_EnterStandbySleepMode(void)
Configures the Power Manager to enter Standby sleep mode and executes the WFI instruction.

Typedef Documentation

◆ PM_VREG_MODE

typedef uint32_t PM_VREG_MODE

Standby voltage regulator mode selection.

Function Documentation

◆ PM_DisableStandbySRAMBackBias()

void PM_DisableStandbySRAMBackBias ( void )

Disable SRAM back-biasing in Standby sleep mode.

Keeps SRAM in normal operating mode during Standby sleep, allowing DMA access.

◆ PM_EnableStandbySRAMBackBias()

void PM_EnableStandbySRAMBackBias ( void )

Enable SRAM back-biasing in Standby sleep mode.

Reduces power consumption by back-biasing SRAM during Standby mode. When enabled, DMA access to SRAM is not available in Standby mode.

◆ PM_EnterIdle0SleepMode()

void PM_EnterIdle0SleepMode ( void )

Enter Idle0 sleep mode.

Configures the Power Manager to enter Idle0 sleep mode and executes the Wait For Interrupt (WFI) instruction.

◆ PM_EnterIdle2SleepMode()

void PM_EnterIdle2SleepMode ( void )

Enter Idle2 sleep mode.

Configures the Power Manager to enter Idle2 sleep mode and executes the Wait For Interrupt (WFI) instruction.

◆ PM_EnterStandbySleepMode()

void PM_EnterStandbySleepMode ( void )

Configures the Power Manager to enter Standby sleep mode and executes the WFI instruction.

◆ PM_SetStandbyRegulatorMode()

void PM_SetStandbyRegulatorMode ( PM_VREG_MODE mode)

Configure voltage regulator mode for Standby sleep mode.

Parameters
modeUse one of: PM_STDBYCFG_VREGSMOD_AUTO PM_STDBYCFG_VREGSMOD_PERFORMANCE PM_STDBYCFG_VREGSMOD_LP