ARM clock system

1. The clock came from

In the clock tree stm32f4 for example, as shown ARM general there are four clock sources (green circle)

  1. Internal low clock LSI (low speed inter)
  2. High-speed internal clock HSI (high speed inter)
  3. External speed clock LSE (Low speed external)
  4. External high-speed clock HSE (high speed external)

2. What devices require clock (red circle)

First, the kernel system requires a high frequency clock (FCLK), a number of high-speed peripherals such as DMA to mount on the AHB bus using high-speed peripherals HCLK, as well as low-speed peripheral portion of the mount a general APB peripherals used on the bus is PCLK.

        Why do low speed at high school

             First, to be able to stable and efficient operation of the program, the system must not be lower core clock, colleges and universities may have run only when the clock runs faster overall system. Why do not unified high-speed clock, the biggest reason is the power, with the improvement of the power consumption of the clock frequency will be doubled, so in order to be able to simultaneously stable and efficient operation, to ensure that power is not too high, clock distribution It requires very careful management.

3, how to configure the clock

In a typical process clock configuration is:

  1. Select the clock source (external / internal low-speed / high-speed clock source)
  2. After PLL (Phase Locked Loop) frequency multiplied to obtain a high frequency clock Pllclk
  3. After a series of data selection and divider achieve the configuration of the peripheral clock

 

 

Published 25 original articles · won praise 6 · views 3520

Guess you like

Origin blog.csdn.net/bojin4564/article/details/105300910