Reset
STM32F supports three reset forms, namely system reset, power reset and backup area reset.
1.1 System reset
When one of the following events occurs, a system reset is generated:
1. Low level on the NRST pin (external reset)
2. Window watchdog count termination (WWDG reset)
3. Independent watchdog count termination (IWDG reset)
4. Software reset (SW reset) (Set the SYSRESETREQ bit in the Cortex-M3 interrupt application and reset control register to 1 to achieve software reset.)
5. Low power management reset
The source of the reset event can be confirmed by checking the reset status flag bit in the RCC_CSR control status register.
1.2 Power reset (power reset will reset all registers except the backup area, address 0x0000_0000~0x0000_0004)
1. Power on/off reset (POR/PDR reset)
2. Return from standby mode
1.3 Backup area reset
1. Software reset, backup area reset can be generated by setting the BDRST bit in the backup area control register RCC_BDCR.
2. Under the premise that both VDD and VBAT are powered off, powering on VDD or VBAT will cause the backup area to reset.
clock
Three different clock sources can be used to drive the system clock (SYSCLK): (HSE clock, HSI clock, PLL, LSE clock, LSI clock, system clock (SYSCLK, HSI clock at the beginning of power-on, HSI is turned off when HSE clock is ready), clock security system (CSS), RTC clock, watchdog clock)
1 HSI oscillator clock
2 HSE oscillator clock
3 PLL clock
These devices have the following 2 secondary clock sources:
1 32kHz low speed internal RC, can be used to drive independent watchdog and RTC. RTC is used to automatically wake up the system from stop/standby mode.
2 32.768kHz low speed external crystal can also be used to drive RTC (RTCCLK).
Special: Clock Security System (CSS), once CSS is activated and HSE clock fails, CSS interrupt is generated and NMI is also automatically generated.
Previous article:Implementation of UART communication based on STM32F103ZET6
Next article:STM32 timer time calculation method
- Popular Resources
- Popular amplifiers
- 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
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- PCB design experience - for reference
- Confused, what is an oscilloscope with a Z axis? Don't worry, here is an introduction
- Wireless communication, 5G, RF, antenna and several concepts and indicators
- Happy Lantern Festival! Guess the lantern riddles and have fun
- How to make an automatic switch when there are 3 5V input ports on a circuit board?
- "Operational Amplifier Parameter Analysis and LTspice Application Simulation" Reading Notes Part 3 - Noise
- 280 million yuan in subsidies returned! A Russian supercomputer company's self-developed CPU failed to meet the standards and was sued by the Ministry of Industry and Trade
- I have a question about the drive circuit.
- Oh my god! My air conditioner has become a spirit!
- Analysis of the problem that the program cannot run after F28004x online debugging reset