29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Connectivity line devices: reset <strong>and</strong> clock control (RCC)<br />

RM0008<br />

Bits 26:24 MCO[3:0]: Microcontroller clock output<br />

Set <strong>and</strong> cleared by software.<br />

00xx: No clock<br />

0100: System clock (SYSCLK) selected<br />

0101: HSI clock selected<br />

0110: HSE clock selected<br />

0111: PLL clock divided by 2 selected<br />

1000: PLL2 clock selected<br />

1001: PLL3 clock divided by 2 selected<br />

1010: XT1 external 3-25 MHz oscillator clock selected (for Ethernet)<br />

1011: PLL3 clock selected (for Ethernet)<br />

Note: This clock output may have some truncated cycles at startup or during MCO clock source<br />

switching.<br />

The selected clock to output onto the MCO pin must not exceed 50 MHz (the maximum I/O<br />

speed).<br />

Bit 22 OTGFSPRE: USB OTG FS prescaler<br />

Set <strong>and</strong> cleared by software to generate the 48 MHz USB OTG FS clock. This bit must be valid<br />

before enabling the OTG FS clock in the RCC_APB1ENR register. This bit can not be cleared if the<br />

OTG FS clock is enabled.<br />

0: PLL VCO clock is divided by 3<br />

1: PLL VCO clock is divided by 2<br />

Bits 21:18 PLLMUL[3:0]: PLL multiplication factor<br />

These bits are written by software to define the PLL multiplication factor. They can be written only<br />

when PLL is disabled.<br />

000x: Reserved<br />

0010: PLL input clock x 4<br />

0011: PLL input clock x 5<br />

0100: PLL input clock x 6<br />

0101: PLL input clock x 7<br />

0110: PLL input clock x 8<br />

0111: PLL input clock x 9<br />

10xx: Reserved<br />

1100: Reserved<br />

1101: PLL input clock x 6.5<br />

111x: Reserved<br />

Caution: The PLL output frequency must not exceed 72 MHz.<br />

Bit 17 PLLXTPRE: LSB of division factor PREDIV1<br />

Set <strong>and</strong> cleared by software to select the least significant bit of the PREDIV1 division factor. It is the<br />

same bit as bit(0) in the RCC_CFGR2 register, so modifying bit(0) in the RCC_CFGR2 register<br />

changes this bit accordingly.<br />

If bits[3:1] in register RCC_CFGR2 are not set, this bit controls if PREDIV1 divides its input clock by<br />

2 (PLLXTPRE=1) or not (PLLXTPRE=0).<br />

This bit can be written only when PLL is disabled.<br />

Bit 16 PLLSRC: PLL entry clock source<br />

Set <strong>and</strong> cleared by software to select PLL clock source. This bit can be written only when PLL is<br />

disabled.<br />

0: HSI oscillator clock / 2 selected as PLL input clock<br />

1: Clock from PREDIV1 selected as PLL input clock<br />

Note: When changing the main PLL’s entry clock source, the original clock source must be switched<br />

off only after the selection of the new clock source.<br />

116/995 Doc ID 13902 Rev 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!