cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F446 TIM2 16b versus 32b conflict in RM

DHase.1
Associate III

I'm having trouble getting TIM2 PWM to work so I've been studying the RM closely. The following conflict came to light.

The RM shows TIMx_ARR and TIMx_CNT as 16b, but TIMx_CCR1,2,3,4 as 32b. The text (section 17.2) says TIM2 & TIM5 are 32b. Some debugger testing indicates that TIMx_ARR TIMx_CNT are really 32b.

So, am I correct that the 16b for ARR and CNT registers in the RM is not correct, but might be 16b or 32b depending on whether the timer is 2,3,4,or 5? (And, CCR3 and 4 are 16b even though the RM shows 32b?)

 

1 REPLY 1

Yes, the description in RM is sloppy at places and takes some guesswork from the user's side. 

I don't think any of the CCRx registered is 16-bit in a 32-bit timer. Prove me wrong.

JW