English
Language : 

RM0376 Datasheet, PDF (7/968 Pages) STMicroelectronics – This reference manual targets application developers
RM0376
Contents
7.2 Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
7.2.1 HSE clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
External source (HSE bypass) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .173
External crystal/ceramic resonator (HSE crystal) . . . . . . . . . . . . . . . . . . . . . . . .173
7.2.2 HSI16 clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .173
7.2.3 MSI clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .174
7.2.4 HSI48 clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
7.2.5 PLL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
7.2.6 LSE clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
External source (LSE bypass) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .176
7.2.7 LSI clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
LSI measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .176
7.2.8 System clock (SYSCLK) selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
7.2.9 System clock source frequency versus voltage range . . . . . . . . . . . . . 177
7.2.10 HSE clock security system (CSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
7.2.11 LSE Clock Security System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
7.2.12 RTC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
7.2.13 Watchdog clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
7.2.14 Clock-out capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
7.2.15 Internal/external clock measurement using TIM21 . . . . . . . . . . . . . . . 179
7.2.16 Clock-independent system clock sources for TIM2/TIM21/TIM22 . . . . 180
7.3 RCC registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
7.3.1 Clock control register (RCC_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
7.3.2 Internal clock sources calibration register (RCC_ICSCR) . . . . . . . . . . 184
7.3.3 Clock recovery RC register (RCC_CRRCR) . . . . . . . . . . . . . . . . . . . . 185
7.3.4 Clock configuration register (RCC_CFGR) . . . . . . . . . . . . . . . . . . . . . 186
7.3.5 Clock interrupt enable register (RCC_CIER) . . . . . . . . . . . . . . . . . . . . 188
7.3.6 Clock interrupt flag register (RCC_CIFR) . . . . . . . . . . . . . . . . . . . . . . 190
7.3.7 Clock interrupt clear register (RCC_CICR) . . . . . . . . . . . . . . . . . . . . . 191
7.3.8 GPIO reset register (RCC_IOPRSTR) . . . . . . . . . . . . . . . . . . . . . . . . . 192
7.3.9 AHB peripheral reset register (RCC_AHBRSTR) . . . . . . . . . . . . . . . . 193
7.3.10 APB2 peripheral reset register (RCC_APB2RSTR) . . . . . . . . . . . . . . 194
7.3.11 APB1 peripheral reset register (RCC_APB1RSTR) . . . . . . . . . . . . . . 196
7.3.12 GPIO clock enable register (RCC_IOPENR) . . . . . . . . . . . . . . . . . . . . 198
7.3.13 AHB peripheral clock enable register (RCC_AHBENR) . . . . . . . . . . . 199
7.3.14 APB2 peripheral clock enable register (RCC_APB2ENR) . . . . . . . . . . 201
DocID025941 Rev 2
7/968
37