cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the UG bit in EGR register of the TIMER 1 of STM32f4 discovery

anoop
Associate II
Posted on April 20, 2012 at 14:32

/*  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.

1 REPLY 1
Posted on April 20, 2012 at 17:28

Writing zero to it won't set it, perhaps you want to be using

TIM_PrescalerConfig(TIM1,PrescalerValue,TIM_PSCReloadMode_Immediate);

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..