This is an old revision of the document!


RCC: Enable/disable clocks for peripherals and reset peripherals

The peripherals can be controlled by the following 3 register sets:

  • The xxxENR registers enable or disable the clocks for the peripherals.
  • The xxxLPENR registers enable or disable the clocks for the peripherals in sleep mode.
  • The xxxRSTR registers can reset a peripheral.





AHB1ENR, AHB1LPENR and AHB1RSTR registers




AHB2ENR, AHB2LPENR and AHB2RSTR registers




AHB3ENR, AHB3LPENR and AHB3RSTR registers




APB1ENR, APB1LPENR and APB1RSTR registers




APB2ENR, APB2LPENR and APB2RSTR registers





Enable register

zEN0Peripheral clock disabled
zEN1Peripheral clock enabled

Low power enable register

zLPEN0Peripheral clock disabled during sleep mode
zLPEN1Peripheral clock enabled during sleep mode

Reset register

zLPEN0Peripheral not reset
zLPEN1Resets peripheral
  • stm32/peripherals/rcc_peripherals.1672168369.txt.gz
  • Last modified: 2022/12/27 19:12
  • by ruan