Electronic – When would be occasions to use a lower clock given that high speed would always be preferable

clockclock-speedstm32

I am using STM32F0 MCU and STM32 CubeMX configurator. I encountered the clock configuration below

enter image description here

When would be occasions to use a lower clock speed? Wouldn't faster always be preferable?

Best Answer

The microcontroller draws more power when running at higher clock speeds. In battery-powered devices, running at a lower speed may improve battery life.

Additionally, many peripherals derive their clocks from core clocks; the requirements of those peripherals and the devices they're connected to may place requirements on core clock speeds. (To give a specific example: The USB peripherals on certain STM32 microcontrollers require that a 48 MHz clock be available. If the core clock is not a multiple of 48 MHz, this isn't possible.)