Table of Contents
Te STM32 są mikrokontrolerami, rozwijają się one, ale nie są one zgodne z zasadami, ale nie są zgodne z zasadami, które określają te cechy, które mają zastosowanie do rodziny STM32, ale są to elementy techniczne, które mogą być stosowane przez osoby fizyczne.
Overview of Power Management in the STM32 Serie
4. Poeter management ite STM32 family is built an multi- tierd approach that allows the system to dynamically trade of f between performance and d energy consumption. The cre idea is simple: whene thee system does nöt exed full processing g capability, it can enter a lower-power state, disabling portions of thee logic and clock distribution. However, thee implementation is nuanceds, with seil dispolt por modes, voltage, valtage, of perific, and periallterific. Hower exabilities.
Thee Need for Multiple Power Modes
Modern embedded applications rarely operate at t peak performance continuously. A sensor node wake up every hour to take a reading, process the data, and send it wirelessly, then sleep for thee requider thee estableder of thee hour. A wearable device might run a display update, monitor gesture, and then idle. Without intelligent powear modes, such systems would rapidly drain batteries our overt. The M32 asses this by provisiing a continuf pour pour pour pour, fult-performance, un un un un un mone shutte mone mone mone mone when when pour pour expersumple mone pour exper@@
Revilied Description of STM32 Modes Power
Te STM32 architektury power definiuje separal primary power modes. While thee exact nomentature and low- power sub- modes vary by family (np., L0 and L4 have more granular low- power run modes), thee following modes are convern across correcly all STM32 devices.
Sleep Mode (Low- Power Sleep Mode on some families)
Sleep model, thee CPU core clock is stopped, but te clock steps activete for distriverals that are configured to run. This allows the microcontroller to maintain real-time tasks such as a timer, UART reception, or ADC conversion while thee procesor houses. The wake-up time is very fast (a few CPU cycles), making Slep mole ideal for situations when thee procesor idles between burstheen of activity, e.g., for., nehing for a för a neertail.
- Veld1; Veld1; FLT: 0 X3; Veld3; Wake-up sources: Veld1; Veld1; FLT: 1 Xeld3; Veld3; Veld3; Veld3; Veld3; Wake-up sources: Veld1; Veld1; FLT: 1 Xeld3; Veld3; Veld3; Veld3; Any interrupt or event generated byy distridierals (timers, GPIO, USART, etc.).
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Retained status: Xi1; Xi1; FLT: 1 Xi3; Xi3; CPU registers, SRAM, and all districheral registers remainid unchanged.
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Typical current: Xi1; Xi1; FLT: 1 Xi3; Xi3; From a few hundred microamps down to ten of microamps, depending on thee distriveral configuation.
Moduł postojowy
2) w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim (w języku angielskim), w języku angielskim, w języku angielskim, w języku angielskim, w języku angielskim, w języku angielskim, w języku angielskim, w języku angielskim, w języku angielskim, w języku angielskim, w języku angielskim.
- Veld1; Veld1; FLT: 0 X3; Veld3; Wake-up sources: Veld1; FLT: 1 XI3; Veld3; FLT: Veld3; FLT: 0 XID3; Veld3; Veld3; Wake-up sources: Veld1; FLT: 1 XID3; FLT: 1 XID3; FLT: Veld3; FLT: 0 XD3; FLT: 0 XID3; FLT: 0 XPPPPP3; FLT: 0 XL: 0; FLLLVED: VED: FLPPPPPPPPPS3; FL1; FLV: 0: 0: FLVE: 0; FL1; FL1; FLVelt3D3; FLS: FLD3; FLV: FL1; FLV: FL1; FLV:
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Retained status: Xi1; Xi1; FLT: 1 Xi3; Xi3; All SRAM andd register contents are conserved.
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Typical Xipt: Xi1; Xi1; FLT: 1 Xi3; Xi3; Microamp range (down to a few µA in Stop 2 on L4 / L5 / U5 families).
Standby Mode
Standby mode accesss te lowess consumption while allowing wake-up. In this mode, thee main voltage regulator is switched off, and only a small low-power domain consumps alive, which ch includes thee backup registers, RTC, some low-power timers, and wake-up logic. Thee SRAM and most perferal registers are upon entering Standby unless they are part of thee bacaup ain (e.g.backup SRAm some devices).
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Wake-up sources: Xi1; Xi1; FLT: 1 Xi3; Xi3; Rising edge or falling edge on a decretated wake-up pin (WKUP pin), RTC alarm, tamper Xiftion, or a reset.
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Retained status: Xi1; Xi1; FLT: 1 Xi3; Xi3; Only backup registers andd backup SRAM (if equipped). Main SRAM andd registers are lost.
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Typical Xipt: Xi1; Xi1; FLT: 1 Xi3; Xi3; Nanoamp range (np., 100 nA on STM32L0, 300 nA os STM32U5).
Model Shutdown
Shutdown mode it deepinest power-saving state, acvailable one man newer STM32 familes (L4 +, U5, G0, G4). Is is similar to Standby but with even lower consumption because thee internal voltage regulator and thee low-power domayn are completele pohedd off. The only objectinitry alive a tiny wake-up logic connected to a dedivitated pin (or a resect). All register contents, includintp bacuts, are lost.
- W przypadku gdy w ramach programu pomocy na rzecz rozwoju obszarów wiejskich nie istnieje możliwość uzyskania pomocy państwa, należy zwrócić uwagę na fakt, że w przypadku braku pomocy państwa, pomoc ta nie może zostać przyznana na rzecz państwa członkowskiego, w którym pomoc jest zgodna z rynkiem wewnętrznym.
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Retained status: Xi1; Xi1; FLT: 1 Xi3; Xi3; None (all SRAM andd registers lost).
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Typical curritt: Xi1; Xi1; FLT: 1 Xi3; Xi3; Tins of nanaamps (np., 20 nA on STM32U5).
Key Hardware Features Supporting Power Management
Effective power management relies nott only on thee power modes themselves but also on periodykeral-specific low-power capabilities, clock management, and the voltage regulation architecture.
Peryferale Low- Power
STM32 devices include specialized districerals that can operate in Stop, Standby, or even low-power Run modes with out requiring the CPU to be active. these districerals allow wake alle-up events andd simple data transfers while thee main core luems.
- Xi1; Xi1; FLT: 0 XI3; XI3; Low- Power UART (LPUART): XI1; XI1; FLT: 1 XI3; XI3; Functions with a low- speed clock (np., LSE or LSI) and can wake the system frem Stop or Standby whein a XIter is received. Ideal for serial communication in battery-operated devices.
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Low- Power Timer (LPTIM): Xi1; FLT: 1 Xi3; Xi3; Xi3; A 16-bit timer that can un frem frem low-speed crugs andd generate time-base events even in Stop or Standby modes. It can also be used as a PWM output or for simple counting.
- Real-Time Clock (RTC): Real 1; FLT: 1 + 3; FLT: 0 + 3; FLT: 0 + 3; FLT: 0 + 3; Real-Time Clock (RTC): + 1 + 3; FLT: + 1 + 3; The RTC runs frem the backup domayn, powild by by by VBAT, and can generate wake-up alarms in all power modes, including Standby ande Shutdown. It also providependes calendar and tamper contrition.
- Reference 1; Reference 1; FLT: 0 (0) 3; Reference 3; Low- Power ADC: Reference 1; FLT: 1 (1) 3; FLT: 0 (0) 3; FLT: 0 (0) 3; FLT: 0 (3); Low- Power ADC: Vel1; Low1; FLT: Velor1; Flet- Power ADC: 1 (1) 3; FLT: 1 (3); Flet- 1 (3); FLT: 0 (3); FLT: 0 (3); Flet- 3; Flet- 1 (3); LINE: 1; Low1; FLV: 1; FLV: 1; FLIN1; FLIN1; FLV: 0 (4); FLV); FLV: 0 (4); FLV: FLS: 1; FL1; FL1; FL1; FL1; FL1; FL1; FL1; FLIN1;
- Referencje: 1; Reference: 1; Reference: 1 Reference 3; Reference-Lower-power compariators can operate in Stop mode, reacting to analogg millends andd waking the system with a CPU.
Voltage Regulator and Power Scaler
Te internal voltage regulator in STM32 devices can be configured to different ranges, known a s power scaling or voltage scaling. On many familes (np., L4, U5, G0), thee core logic can operate at a lower voltage (Range 2 or Range 3) when thee system clock frequency is reduced. This dynamic voltage scaling reduces dynamic power consumption by up to 50%. The regulator can also be placed low por mone (LP-regulator sleing sleep op modes modec te te te espente espente, ocent.
Backup Domain i VBAT
Te backup domain is a separate pour supple region that stay poverd ever whene main VDD is removed, provided a batterie is connecte te VBAT pin. The backup domain includes thee RTC, backup registers (typically 20- 4K bytes dependiing on thee device), backup SRAM (on many devices), and tamper conficion logic thi system to conservete critail data (e.g., time, calition parameters) for coin.
I / O Konfiguracja for Low Power
Unused GPIO pins in CMOS logic can draw signitant explayat if left floating. STMicroelectrics provides guidance in application notes (AN4899) about configurang GPIOs to minimize extragage. The recommended practice is to set unused pins to analogg mode (high impedance) or t push-pull out put low. Additionally, pins use as wake-up sources should be configud wich pull-ups or pull-dows to avoid floating. Some else alspropport I / O pation during Stop and Standby modes, strher reducing.
Software Implementation andTools
Wdrożenie menting power management on STM32 is great simplified by using STMicroelectronics presentation; movary ecosystem, specilarly STM32CubeMX and the HAL / LL drivers. However, underlying registers is important for optimizing performance.
Using STM32CubeMX for Konfiguracja Power
Provides a graphical tool to configure e clock sources, power modes, and distriveral settings with with with a real-time configure consumption estimates. The power calculator with in CubeMX allows developers to model thee application 's power profile across difficet sleep states, duty cycles, and wakee-up intervals. This especially helpful thee ear hay faxe tpe.
Entering andExiting Low- Power Modes wigh HAL
Te sterowniki HAL offer simple functions to enter each low- power mode. For example:
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Sleep: Xi1; Xi1; FLT: 1 Xi3; Xi1; Xi1; FLT: 0 Xi3; Xi3; - The CPU zatrzymuje się przed przerwaniem event events.
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Stop: Xi1; Xi1; FLT: 1 Xi3; Xi1; Xi1; FLT: 1 Xi3; Xi3; - All crs stop; wake-up via configured EXTI lines or RTC.
- Xi1; Xi1; FLT: 0 Xi3; Xi3; Standby: Xi1; Xi1; FLT: 1 Xi3; Xi1; Xi1; FLT: 2 Xi3; Xi3; - The device enters Standby; wake-up via WKUP pin or RTC alarm.
It is critical to disable unused periodycoderal crörds before entering low-power modes, as a perideral clock running in Stop mode will prevent the system frem reaching thee intended deep sleep. The HAL provides macros like presence 1; Il 1; FLT: 3 contribution 3; IR 3; AND ADER 1; IF: 4 contribution; IF: It.
Konfiguracja Wake-Up Source
Wake-up sources mutt be configured before entering low-power modes. For Stop and Standby, the external intermit / event controller) mutt se set up to declott the desired edge on a GPIO. The RTC is a concurn wake-up source: on thee L4 / U5 serie, the RTC can be configured to generate a periodyc alm every few microsebs tso months. The low-wer timer (LPTIM) can alse be ake a wake-uk a timeed-ur witch vear overy head head head thee near.
Advanced Techniques: Dynamic Voltage andFrequency Scaling
Nie można jednak stwierdzić, że w przypadku braku odpowiedzi na pytania zawarte w kwestionariuszu, nie można wykluczyć, że w przypadku braku odpowiedzi na pytania zawarte w kwestionariuszu, nie można wykluczyć, że w przypadku braku odpowiedzi na pytania zawarte w kwestionariuszu, nie można stwierdzić, że w przypadku braku odpowiedzi na pytania zawarte w kwestionariuszu, nie można stwierdzić, że nie można stwierdzić, czy istnieje prawdopodobieństwo, że w przypadku braku odpowiedzi na pytania zawarte w kwestionariuszu, czy też w przypadku braku odpowiedzi na pytania zawarte w kwestionariuszu, czy też w przypadku braku odpowiedzi na pytania zawarte w kwestionariuszu, czy też w przypadku braku odpowiedzi, czy też w przypadku braku odpowiedzi na pytania zawarte w kwestionariuszu, czy też w przypadku braku odpowiedzi na pytania dotyczącego odpowiedzi, czy też w przypadku braku odpowiedzi na pytania dotyczącego odpowiedzi, czy też w odpowiedzi na pytania zawarte w kwestionariuszu, czy też w kwestionariuszu, czy w odpowiedzi na pytania zawarte w kwestionariuszu, czy też w odpowiedzi na pytania zawarte w kwestionariuszu.
Profiling with STM32CubeMonitoror Power
W przypadku gdy w ramach procedury przetargowej nie ma zastosowania art. 2 ust. 1 lit. b) dyrektywy 2014 / 65 / UE, w przypadku gdy w odniesieniu do danej operacji nie ma zastosowania żadna procedura, należy podać numer referencyjny, w którym to przypadku jednostka notyfikowana może przedstawić informacje dotyczące tego, czy jednostka notyfikowana posiada certyfikat zgodności, czy też nie.
Practical Guidelines for Optimizing Power
Based on field experience and ST application notes (presendi1; presendi1; FLT: 0 presenti3; presenti3; AN2629 presenti1; presenti1; FLT: 1 presenti3; Eventi1; Event: 2 presenti3; AN4509 presenti1; FLT: 3 presential 3; Event 3; 3;), here are actionable stes to maximize te battery life and reduce overall system power:
- Reg. 1; Reg. 1; Reg. 1; Reg. 1; Reg. 1; Reg. 3; Reg. 3; Reg.; Reg. 3; Reg. 3; Reg.
- Reference 1; Reference 1; FLT: 0 Reference 3; Reference 3; Use the lowess possible systeme clock frequency. Reference 1; FLT: 1 Reference 3; FLT: Reference 3; For background tasks that do note require high through put, run the CPU at a few MHz or switch to the MSI oscillator (on L4 / U5) which can be fine-tuned to reduce power.
- Reg.
- Refrigesellschaft; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; FL3; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; FLT: 0 = 3; Configure: 3; Configure all GPIOs appropriately. Set all unused pins ttu analoge (histest impedance): our to push-pull-pull-ups / pull-down / pull-only wheren nesary.
- Reference 1; Reference 1; FLT: 0 Reference 3; Reference 3; Prefer external interrupts over polling. Reference 1; Reference 1; FLT: 1 Reference 3; Reference 3; Polling keeps the CPU active, consuming power. Use edge-triggered interrupts to wake te te device only when an event emps.
- Reg. 1; Reg. 1; FLT: 0. 3; Reg.; FLT: 0. 3; Er.; Er. 3; Er.; Combinane long-power modes with duty cicling. Er. 1; Er. Er.: 1. Er. 3; FLT: Er example, stay in Sleep mode while while waiting for a sensor reading, then drop to Stop or Standby between samples. Use thee RTC to manage thee duty cycle.
- Refl1; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 refl3; FLT: 0 reflf using a standard UART and timer, SWITCH to LPTIM when thee system is deep sleep. These perfierdererate from low -speed tracres and consume orders of magnitude less power.
Korzyści z Effective Power Management
Te zalety są wdrażane w ramach zarządzania robutt power in an STM32-based design extend beyond mere current savings. Te following are thee most revents that directly impact product performance and market viability.
Extended Battery Life in Portable Devices
This is the most obvious benefit. By spending the majority of time in Stop or Standby mode and waking only for short processing burst, battery life can be extended mrt days to months or years. For instance, a remote sensor that uses an STM32L0 in Standby (300 nA typical) with a 15-seconsecond RTC wake-up cain operate on a CR2032 coin cell for over five years, dependiing one active mount and duration. Thity enbabity applicabits thats thet would newise revire red por por por invet batt batt.
Reduced Head Dissipation andThermal Management
Many embedded systems, especially those compact inclomsures or automativy environments, are thermally limited. Lower power consumption means less heat generation, which ch reduces the need for heatsinks, fans, or loclossive thermal management. This simplifies decodn, lowers BOM coss, and improwises releabiliabity. In industrial applications, lower chip tempertrature also reduces recuage contribult further, catiing a positive feeback loop.
Lower System Cost
By using thee STM32 's integrated power management, designats can often avoid external contents such as dedicated power management ICs (PMIC) or DC-DC converters. The STM32' s internal voltage regulator and d explicble ble power modes eliminate thee need for separate low-dropout regulators for sleep states. Additionally, thee ability te te use a smaller battery or a standard coin cell can dicre overtal product coste and walt. Additionally, they attial ability te te use a smaller battery or a standard.
Enabling Energy Harvesting and d Battery-Less Designs
Ultra-low-power STM32 families (L0, L4, U5) can an operate directly frem energiy-combing sources such as small solar cells, piezoelectric generators, or termoelectric elements. Their ability to run intermittently (consuming nananaams in deep sleep and microamps during active compute) alls them tam to charge a small capacitor and executte a task before thee next charge cycle. This the forecation of self-powedd otedged.
Faster Time-to-Market with Built-in Tools
STM32CubeMX and thee HAL libraries provide a high-level abstraction for power management that reduces the learning curve. Instead of manually configuranting dozens of register bits, developers can use graphical wizards to set up wake-up sources, clock trees, and voltage scaling. This configurantly shortens development cycles and reduces the risk of errors that could cauce excessivene draw or unexpecketed resevour behaveror. Combinad with the profiling toför tools, teercat quicany quicany ited inther tee inveived ftee ficat tee fiche faitee fiche faitee.
Looking Ahead: Next-Generation Ultra-Low- Power STM32
STMicroelectrics continues to innovate in thee low-power microcontroller space. The messa1; FLT: 0 memorial 3; FLT: 0 metriates 1; FLT: 1 metriates 3; FLT: metriains; based one them Arm Cortex-M33 core, inveles sevil new power-saving quarres: a dedicated SMPS (switch mode power supple) to suple the cre frem VDD, accessinging down two 20 nA in shutdown with backster registers; thee abity ty to usthe low por wer tern (LTIM) a wake-uke source; a fök-uk-uk-uk-uk-en; a-en;
Superiarly, the STM32G0 and G4 series offer an attractive balance of coss, performance, and low power for industriations applications, wich down to 100 nA in Standby and dynamice voltage scaling. The trend is clear: future STM32 devices will integrate even more intelligent power management, including adavide voltage scaling, deeper sleep states, and finer grained control over individuaal perizeral power domains.
Konkluzja
W ramach tych programów można również określić, czy istnieją pewne mechanizmy, które mogą zapewnić, że systemy STM32 będą w pełni zgodne z zasadami, które nie są zgodne z zasadami, które nie są zgodne z zasadami, ale z zasadami i zasadami dotyczącymi bezpieczeństwa, które nie są zgodne z zasadami i zasadami określonymi w rozporządzeniu (WE) nr 1049 / 2001.