This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32F401RE: Where does CK_INT (Internal Clock) come from?

Hi,

Using the STM32F401RE uC I wonder where the clock signal CK_INT is originating from as is shown in a Timer1 figure. I searched al the reference manual but did not find it. As my SysClk is 30MHz, checked with the MCO2 output by oscilloscoop and all AHB and APB prescalers are set to zero, Timer1 is clocked with 15MHz as I can check by toggling a GPIO on the update interrupt (TIM1_UP_TIM10_IRQHandler) with reload value of 10.000. It should be 30MHz. Do I mis some divider?

Thanks

Henk

Parents
  • The Prescaler and Period values are both end values for counters, and act as dividers

    ie

    Prescaler = P - 1; // Always 16-bit integer
    Period = Q - 1; // 16 or 32-bit depending on counter

    UpdateFreq = INT_CLK / (P * Q)

    I don't expect the processor to interrupt at MHz rates

    The timer channels can be set in toggle mode, this doesn't require interrupts.

Reply
  • The Prescaler and Period values are both end values for counters, and act as dividers

    ie

    Prescaler = P - 1; // Always 16-bit integer
    Period = Q - 1; // 16 or 32-bit depending on counter

    UpdateFreq = INT_CLK / (P * Q)

    I don't expect the processor to interrupt at MHz rates

    The timer channels can be set in toggle mode, this doesn't require interrupts.

Children
No data