2012-04-20 05:32 AM
/* Configures the TIM1 Prescaler. */
TIM_PrescalerConfig(TIM1,PrescalerValue,TIM_PSCReloadMode_Update); I used the above statement to set the UG bit in the EGR register of timer1, but it did not work. Can someone please tell me how i can set this bit? I am using a STM32F4 discovery board.2012-04-20 08:28 AM
Writing zero to it won't set it, perhaps you want to be using
TIM_PrescalerConfig(TIM1,PrescalerValue,TIM_PSCReloadMode_Immediate);