STM8S has no peripheral circuits. The MCU CAP is connected to the 104 capacitor reset and connected to the pull-up resistor. All other pins are left floating. The current is tested using the following program as follows: (Similar experiments have been done with STM8L before, and the situation is basically the same)
In addition, when AWU is turned on, the current becomes 200uA. If the watchdog is turned on, it becomes 500uA. These two parameters are not very good and are not suitable for battery applications with periodic wake-up.
The timer and serial port sleep have little effect on power consumption, and the whole machine is still 4.7uA
If a single pin is left floating, 4UA of current will be wasted. If the floating pin is pulled up or down internally or externally, the current will be reduced.
//GPIO_MODE_OUT_OD_LOW_SLOW 4.8uA
//GPIO_MODE_IN_FL_NO_IT 390uA
//GPIO_MODE_IN_PU_NO_IT 4.7uA
//GPIO_MODE_OUT_PP_HIGH_SLOW 4.8uA
//GPIO_MODE_OUT_OD_HIZ_SLOW 44.3uA
#define gpio_mode GPIO_MODE_OUT_PP_HIGH_SLOW
void main(void)
{
MY_GPIO_Init(GPIOA,0XFF,gpio_mode);//
MY_GPIO_Init(GPIOB,0XFF,gpio_mode);//
MY_GPIO_Init(GPIOC,0XFF,gpio_mode);//
MY_GPIO_Init(GPIOD,0XFF,gpio_mode);//
halt();
}
Previous article:STM8S low power processing
Next article:IAR for STM8 Errors
- Popular Resources
- Popular amplifiers
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
- 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
- [Ateli Development Board AT32F421 Review] 7. Kuga registers jointly light up OLED
- EL817C Optocoupler Transmission Ratio Problem
- Keysight Technologies N9020A 3.6G spectrum analyzer special sale: 8500/unit
- STM32+photosensitive sensor+serial port receiving light intensity source program is successfully produced
- How does the uart.write function output three bytes of 0XFF 0XFF 0XFF (HEX data, not string data)?
- Electric vehicles use silicon carbide power devices to successfully move out of the laboratory
- Chinese programmers VS American programmers, so vivid...
- The last version of Python2, Python 2.7.18, was released
- Unboxing the Renesas CPK-RA2L1 development board and preparing for evaluation
- DSP5402 development board schematic diagram