Dear all, What is the meaning of CNT_INIT in the Figure 120 of Reference manual RM0008 of showing the Internal clock source mode of STM32F103? The tile of this figure is 'Control circuit in normal mode', is it right? Thanks.


@DC.18hen you are welcome :)
This bit is set by the UG flag.
You can more check the RM0008, in the timer section that you are using.
For example for (TIM2 to TIM5) section:
"Update: counter overflow/underflow, counter initialization (by software or internal/external trigger)."
The update event can be generated at each counter overflow and at each counter underflow or by setting the UG bit in the TIMx_EGR register (by software or by using the slave mode controller) also generates an update event. In this case, the counter restarts counting from 0, as well as the counter of the prescaler.
Please mark my answer as best by clicking on the "Select as Best" button if it helped :smiling_face_with_smiling_eyes:.
Imen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.