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

Timeperiod calculations in Stm32F103

hai, In stm32F103,How can we calculate prescaler and time period.
say for example i need 5 ms delay.so need procedure for it.
how to selct prescaler ?

TIM_TimeBaseStructure.TIM_Prescaler = 5; TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up; TIM_TimeBaseStructure.TIM_Period = 0x3FFF; TIM_TimeBaseStructure.TIM_ClockDivision = 0x0; TIM_TimeBaseStructure.TIM_RepetitionCounter = 0x0;

Thanks in advance
Nirmala

0