For a detailed analysis of STM32's low power consumption, please refer to the interpretation of STM32's low power consumption mode . It is mentioned that when STM32 is in stop mode, the chip's 1.8V area clock is turned off, and the HSI and HSE clocks are also turned off. When an enabled interrupt or event occurs, STM32 exits from stop mode. At this time, the default clock of STM32 is HSI. Therefore, if you want to return STM32 to run mode and work normally for a period of time, you must pay attention to the clock problem of STM32 and choose whether to restore the system clock to the clock configuration before stop mode according to the actual situation.
The chip used in the test is stm32fo30, the HSI clock frequency is 8M, the system frequency is 48M, the PLL multiplication is 12, and the input is HSI/2.
Test the influence of LED lighting time
The systick timer is used for timing. When the button is pressed, the LED lights up and the timer starts timing for 5 seconds. When the timing is up, the LED goes out.
In normal mode, the LED lights up for 5 seconds.
After waking up from stop mode, the system clock is not restored and the LED light turns off after 30 seconds.
Analysis: The system frequency is 6 times the HSI frequency, so the LED lighting time also satisfies the 6-fold relationship.
After waking up from stop mode, the system clock is not restored and the LED light turns off after 30 seconds.
After waking up from stop mode, the system clock is restored and the Timer 5 LED is off.
Test 2, serial port
In normal mode, the serial port can send and receive normally.
After waking up from stop mode, the system clock is not restored, the serial port receives a bunch of garbled characters, and normal data cannot be received. Reason:
The serial port clock is set to the system clock, resulting in a baud rate mismatch.
After waking up from stop mode, the system clock is restored and the serial port reception and transmission are normal.
Summary: Pay special attention to the clock recovery configuration after the STM32 wakes up from stop mode to prevent various minor problems.
Previous article:STM32F10xxx supports three reset
Next article:Analysis of the different GPIOs of STM32F0 and STM32F1
Recommended ReadingLatest update time:2024-11-15 13:26
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- [TI recommended course] #Amplifier design in test and measurement#
- Seeking long-term cooperative lecturers for win-win cooperation
- MSP430F149 I/O port control
- Xunwei-i.MX6ULL Development Board-Busybox transplant DHCP (Part 3)
- Free download of test solutions: R&SCMA180 - ideal test tool for analog and digital radio walkie-talkies
- Review summary: APM32E103VET6S MINI development board with the Polar Ocean M3 core
- Live broadcast at 13:15 this afternoon [Keysight World 2020|Telecom Infrastructure, Cloud and Artificial Intelligence Forum]
- [RISC-V MCU CH32V103 Review] - 4: EXTI starts the troubleshooting journey
- Use of SN74LVC125AD
- [Zero-knowledge ESP8266 tutorial] Quick Start 17 Station mode creates a wifi hotspot