Showing results for 
Search instead for 
Did you mean: 

STM32F051K6 I want to set to 32bit TIMER for TIM2

Associate III

Hi ,

I am trying to set STM32F051K6  to 32bit TIMER for TIM2. what register needs to be set in-order to count to 32bit mode. I read the HRM but there is not detailed description where to set TIM 2 to 32bit mode.


Does it have a 32 bit timer?

The prescalers are always 16 bit,​ but depending on STM32 some have a couple of 32 bit TIM, and you simply write ARR and CCRx registers at their full width.

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

Thanks this helped I was able to set ONLY TIM2 to 32 bit mode others are 16 bit timers