STM32 reset and clock

Publisher:pi26Latest update time:2018-08-17 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.


Keywords:STM32 Reference address:STM32 reset and clock

Previous article:Implementation of UART communication based on STM32F103ZET6
Next article:STM32 timer time calculation method

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号