cancel
Showing results for 
Search instead for 
Did you mean: 

I found the TIM3 of the G070 chip has 32bits Cnt register and ARR register in Reference manual. However, I can only configure the Low 16bits of these registers in STM32CubeIDE which means the max value of these registers is 65535 instead of 2^32 - 1. Why

fhu.11
Associate II
1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

That doesn't say TIM3 is 32 bit.

It's actually copy/pasted from the STM32G0x1 reference manual, which has TIM2 (a 32-bit timer) and lists TIM2/TIM3/TIM4 in the same section. However, the STM32G0x0 doesn't have TIM2, so they sloppily removed all references to TIM2 and left inconsistencies like this.

0693W00000DnBvIQAV.png 

TIM3 is 16 bits.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

4 REPLIES 4
TDK
Guru

TIM3 is a 16-bit timer per the reference manual and datasheet.

0693W00000DnBqwQAF.png 

The CNT register might be 32-bits, but only the lower 16 bits are usable.

If you feel a post has answered your question, please click "Accept as Solution".
fhu.11
Associate II

0693W00000DnBt7QAF.pngthis is the TIM3 register map which means only TIM3 has 32bits Cnt and ARR register

TDK
Guru

That doesn't say TIM3 is 32 bit.

It's actually copy/pasted from the STM32G0x1 reference manual, which has TIM2 (a 32-bit timer) and lists TIM2/TIM3/TIM4 in the same section. However, the STM32G0x0 doesn't have TIM2, so they sloppily removed all references to TIM2 and left inconsistencies like this.

0693W00000DnBvIQAV.png 

TIM3 is 16 bits.

If you feel a post has answered your question, please click "Accept as Solution".
fhu.11
Associate II

oh I see !😂

Thank you very much �?😁