DS13560 Rev 1 19/159
STM32G0B1xB/C/xE Functional overview
35
3.7.4 Low-power modes
By default, the microcontroller is in Run mode after system or power reset. It is up to the
user to select one of the low-power modes described below:
• Sleep mode
In Sleep mode, only the CPU is stopped. All peripherals continue to operate and can
wake up the CPU when an interrupt/event occurs.
• Low-power run mode
This mode is achieved with V
CORE
supplied by the low-power regulator to minimize the
regulator's operating current. The code can be executed from SRAM or from Flash,
and the CPU frequency is limited to 2 MHz. The peripherals with independent clock can
be clocked by HSI16.
• Low-power sleep mode
This mode is entered from the low-power run mode. Only the CPU clock is stopped.
When wakeup is triggered by an event or an interrupt, the system reverts to the Low-
power run mode.
• Stop 0 and Stop 1 modes
In Stop 0 and Stop 1 modes, the device achieves the lowest power consumption while
retaining the SRAM and register contents. All clocks in the V
CORE
domain are stopped.
The PLL, as well as the HSI16 RC oscillator and the HSE crystal oscillator are
disabled. The LSE or LSI keep running. The RTC can remain active (Stop mode with
RTC, Stop mode without RTC).
Some peripherals with wakeup capability can enable the HSI16 RC during Stop mode,
so as to get clock for processing the wakeup event. The main regulator remains active
in Stop 0 mode while it is turned off in Stop 1 mode.
• Standby mode
The Standby mode is used to achieve the lowest power consumption, with POR/PDR
always active in this mode. The main regulator is switched off to power down V
CORE
domain. The low-power regulator is either switched off or kept active. In the latter case,
it only supplies SRAM to ensure data retention. The PLL, as well as the HSI16 RC
oscillator and the HSE crystal oscillator are also powered down. The RTC can remain
active (Standby mode with RTC, Standby mode without RTC).
For each I/O, the software can determine whether a pull-up, a pull-down or no resistor
shall be applied to that I/O during Standby mode.
Upon entering Standby mode, register contents are lost except for registers in the RTC
domain and standby circuitry. The SRAM contents can be retained through register
setting.
The device exits Standby mode
upon external reset event (NRST pin), IWDG reset
event, wakeup event (WKUP pin, configurable rising or falling edge) or RTC event
(alarm, periodic wakeup, timestamp, tamper), or when a failure is detected on LSE
(CSS on LSE).
• Shutdown mode
The Shutdown mode allows to achieve the lowest power consumption. The internal
regulator is switched off to power down the V
CORE
domain. The PLL, as well as the
19/159
35
3.7.4
•
•
•
STM32G0B1xB/C/xE 功能概述
低功耗模式
默认情况下,微控制器在系统或电源复位后处于运行模式。用户可以选择下面描述的低
功耗模式之一:
睡眠模式
在睡眠模式下,只有CPU停止。所有外围设备都继续工作,并且可以在发生中断/事
件时唤醒CPU。
低功耗运行模式
这种模式是通过低功耗稳压器提供的VCORE来实现的,以最大限度地减少稳压器的工作
电流。代码可以从SRAM或从Flash执行,CPU频率限制为2MHz。具有独立时钟的外围
设备可以由HSI16提供时钟。
低功耗睡眠模式
该模式从低功率运行模式进入。只有CPU时钟停止。当唤醒被一个事件或中断触发时
,系统恢复到低功率运行模式。
停止0和停止1模式
在Stop0和Stop1模式下,器件实现了最低功耗,同时保留了SRAM和寄存器内容。VCO
RE域中的所有时钟都停止。
锁相环以及HSI16RC振荡器和HSE晶体振荡器被禁用。LSE或LSI继续运行。RTC可以保
持活动状态(带RTC的停止模式,不带RTC的停止模式)。
一些具有唤醒功能的外围设备可以在停止模式期间启用HSI16RC,以便获得处理唤醒事
件的时钟。主调节器在停止0模式下保持活动状态,而在停止1模式下关闭。
待机模式
待机模式用于实现最低功耗,POR/PDR在此模式下始终处于活动状态。主调节器被关
闭以关闭VCORE 域的电源。低功率稳压器关闭或保持有效。在后一种情况下,它只提
供SRAM以确保数据保留。PLL以及HSI16RC振荡器和HSE晶体振荡器也被关断。RTC可
以保持活动状态(带RTC的待机模式,不带RTC的待机模式)。
对于每个I/O,软件可以确定在待机模式期间是否将上拉、下拉或不将电阻应用于该I/O
。
进入待机模式时,除了RTC域和待机电路中的寄存器外,寄存器内容将丢失。SRAM内
容可通过寄存器设置保留。
当外部复位事件(NRST引脚)、IWDG复位事件、唤醒事件(WKUP引脚,可配置的
上升沿或下降沿)或RTC事件(警报、周期性唤醒、时间戳、篡改)或在LSE上检测
到故障(LSE上的CSS)时,器件退出待机模式。
关机模式
关断模式允许实现最低功耗。内部调节器被关闭以关闭VCORE域的电源。的PLL,
以及
DS13560转1
趣卡翻译(fanyi.qukaa.com)