Skip to main content
Associate
June 28, 2024
Solved

STM32G4 TIM3_ARR and TIM4_ARR width

I believe there is an error in the STM32G4 Series Reference Manual regarding the width of TIMx_ARR for timers 3 and 4.

The reference manual shows a width of 20 bits for TIMx_ARR for timers 3 and 4, below.

StevenR_0-1719604169868.png

However, both TIM3 and TIM4 are 16-bit timers, as shown below.

StevenR_1-1719604224897.png

The following experiment on STM32G4 hardware aligns with the 16-bit understanding. 

  1. Write pattern 0x12345678 to TIM3_ARR.
  2. Read TIM3_ARR, result is 0x00005678. Result should be 0x00045678 if width was 20 bits.

On STM32G4 series, for timers 3 and 4, is the width of TIMx_ARR 16 bits or 20 bits? 

 

 

This topic has been closed for replies.
Michal Dudka
Michal DudkaBest answer
Lead
June 28, 2024

It is up to you. 16bits in "non dithering" mode. Additional 4 bits is used in Dithering mode.

2 replies

Michal Dudka
Michal DudkaBest answer
Lead
June 28, 2024

It is up to you. 16bits in "non dithering" mode. Additional 4 bits is used in Dithering mode.

StevenRAuthor
Associate
July 1, 2024

Thank you for the clarification.