About STM32L100XX, stm32l151xx, stm32l152xx, Stm32l162xx's Reset

Source: Internet
Author: User

There are three kinds of Reset:system reset, Power Reset, RTC domain reset.

    • System Reset

      System resets all registers, except for the RTC,RTC backup register and the control/status register RCC_CSR.

      The system resets are generated in the following scenarios:

      1. Nrst Pin Pull Low

      2. Watchdog count End (WWDG reset)

      3. Independent watchdog technology End (IWDG reset)

      4. Software reset (SW reset)

      5. Low power Management Reset

      6. Option byte load reset

      7. Exit Standby mode

These reset sources can be confirmed by viewing the corresponding reset identification bit of the RCC_CSR register.

Software Reset

Reset the Sysresetreq bit of the register by setting the CORTEXT-M3 application interrupt and reset control (application Interrupt and reset controls). Need to refer to the CORTEXT-M3 kernel data.

Low power Management reset

The following two scenarios produce low power management resets:

1. Enter Standby mode:

The user option byte resets the Nrst_stdby bit to enable this reset. In this case, the device will go into the reset state instead of entering standby mode at any time after executing the sequence entering standby mode.

2. Enter Stop mode:

The user option byte resets the nrst_stop bit to enable this reset. In this case, the device will enter the reset state instead of entering stop mode at any time after executing the sequence entering stop mode.

option byte load reset

The obl_launch position of the FLASH_PECR Register 1 generates the option byte to load the reset. This bit is used to load option bytes in software mode.

    • Power Reset

When a power reset occurs:

1.power-on/power-down Reset (por/pdr reset)

2.BOR Reset

Power reset resets the values of all registers, including the RTC domain registers.

The resets generated by these reset sources allow the Nrst pin to remain low for the delay phase. The Reset service entry vector address is 0x0000_0004.

The system reset signal is also output on the Nrst pin. The pulser generates a minimum 20us reset time for each internal reset source. In the case of external reset, the reset pulse is generated when the Nrst pin is pulled low.

    • RTC and Backup Register reset

In the following two cases, you can reset the RTC perimeter, RTC Clock Source Selection (RCC_CSR), and the backup register:

1. Reset caused by the rtcrst of the RCC_CSR register.

2. Power Reset (BOR/POR/PDR)


About STM32L100XX, stm32l151xx, stm32l152xx, Stm32l162xx's Reset

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.