Electronic – How to set external clock value for STM32F1

clockclock-speedstm32stm32f10x

I creating a project with the microcontroller STM32F101C8t. This microcontroller has an internal clock of 36MHz. My question is how to correctly set the external clock value, ie what crystal value should I use. I already set the external clock pins in the STM32CubeMX, now it is necessary to set the correct value for the external clock.
enter image description here

Best Answer

If you are using CubeMX there is a tab dedicated to clock setup. On the left there will be a field for the HSE value. Then you either set the PLLs manually or run the clock solver.