For STM8L151, the chip manual says that when entering the active shutdown state, the power consumption of the microcontroller is 0.8uA. I found the automatic wake-up function in the program and woke up once every 30s; when the user has no operation for 30S, it enters the low power mode through Halt(). But I found that the power consumption is not low, about 125uA. Because the system is powered by a battery, such a high power consumption, a battery can't last for a few days. Later, I checked the technical manual and found that the unused pins need to be set. I set them all to push-pull output low, but there are two pins that must be paid attention to, the two pins connected to the external crystal oscillator, if the external crystal oscillator is not used, that is, they must be set to input mode.
Download the program and use the microampere range of the Volk meter to measure the current, which is 1.8uA, which is very close to the value given in the chip manual. Unplug the battery, and a 106 capacitor can also power the system for more than ten seconds. This project is now complete.
Now let's talk about another project. The chip used is STM8L101, a 20-pin package. There is no external crystal connection pin, so don't worry about the configuration of these two pins. I originally wanted to use the shutdown mode to enter low power consumption, but sometimes it cannot be woken up. So I switched to the active shutdown function, but when entering the active shutdown state, the power consumption is very high, sometimes reaching 120 to 30 uA, sometimes more than 70 uA, and sometimes more than 30 uA. But most of them stay at more than 70 uA. The pins that are not available have been set, and I don't know what went wrong.
After checking the schematics and debugging, I finally found the problem. The project uses the STM8 pin as the touch ring pin. When entering the active stop mode, the touch pin is in an uncertain state. This problem may cause the current to be too high during low power consumption. Two lines of code are added to the program. The first line initializes the touch ring pin to push-pull output low before entering low power consumption. The second line initializes the pin to the touch ring pin again after waking up.
I downloaded the program and used the microampere range of the Flock meter to measure the current, which was 0.8uA, which is very close to the value given in the chip manual.
This project also ends here.
But there is still a problem here, that is, when waking up and initializing to the touch pin, the touch ring or touch button cannot be over-touched, otherwise it will become insensitive.
Previous article:GPIO output---control the buzzer
Next article:ARM Download Error
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- RT-Thread device framework learning RTC device
- Orcad learning notes (three) class and sub class in PCB
- [Hua Diao Experience] 17 Beetle ESP32C3 and WS2812 screen music visualization rhythm light
- EEWORLD University----42/5000 Power over Ethernet (PoE) Training Series
- How to effectively program a microcontroller active buzzer driver
- MSP430 SPI reads AFE4400 register value code
- WPG Live Broadcast Registration | Thundercomm, Lianda, Qualcomm IOT Platform Solutions and Success Stories
- The rain is a surprise in spring, the valley is clear, the summer is full of grains, and the summer heat is connected
- [Anxinke NB-IoT Development Board EC-01F-Kit] 4. Serial port MQTT networking and information sending and receiving test
- Microchip Live FAQ|ADAS Platform Root of Trust