1.8.20.3 1.34.21.3 1.35.14.3 1.36.16.3 SUPC_WaitModeEnter Function
C
void SUPC_WaitModeEnter ( WAITMODE_FLASH_STATE flash_lpm, WAITMODE_WKUP_SOURCE source );
Summary
Puts the device into Wait mode
Description
This functions is used to put the device into Wait mode to achieve very low power consumption while maintaining the whole device in a powered state for a startup time of less than 10μs.
In Wait mode, the clocks of the core, peripherals and memories are stopped. However, the core, peripherals and memories power supplies are still powered.
When entering Wait mode, the embedded Flash can be placed in one of the low_power modes (Deep_power_down or Standby mode).
Exit from Wait mode occurs as a result of one of the following enabled wakeup events:
-
WKUP0 to WKUP13 pins
-
RTC alarm
-
RTT alarm
-
USB alarm
-
GMAC wake on LAN event
A fast startup is enabled upon the detection of a programmed level on one of the 14 wake-up inputs (WKUP) or upon an active alarm from the RTC, RTT and USB Controller. The polarity of the 14 wakeup inputs is programmable by writing the PMC Fast Startup Polarity register (PMC_FSPR).
Precondition
The peripherals (RTT, RTC etc) must be configured to generate wakeup event.
Parameters
Param | Description |
---|---|
WAITMODE_FLASH_STATE | Identifies Flash Low_power mode |
WAITMODE_WKUP_SOURCE | Identifies possible wakeup input source |
Returns
None.
Example
SUPC_WaitModeEnter (PMC_FSMR_FLPM_FLASH_DEEP_POWERDOWN, WAITMODE_WKUP_RTC);
Remarks
None.