AnsweredAssumed Answered

STM32 Timers - Help with TIM_Period

Question asked by xavier.jose on Aug 28, 2013
Latest reply on Aug 30, 2013 by Clive One
I'm studying the timers on STM32F100 using a STM32VLDISCOVERY board.

Per example: 

   TIM_TimeBaseStructure.TIM_Prescaler = SystemCoreClock/1000 - 1;
   TIM_TimeBaseStructure.TIM_Period = 1;
Will set the count frequency to 500Hz.If I configure an OC like this:
   //configure channel TIM2 CH2
   TIM_OCInitStructure.TIM_OCMode = TIM_OCMode_Toggle;
   TIM_OCInitStructure.TIM_OutputState = TIM_OutputState_Enable;
   TIM_OC2Init(TIM2, &TIM_OCInitStructure);
It will create an output clock at 250Hz on TIM2CH2. Now what I don't understand.Why can't be the TIM_Period = 0?