Skip to main content
Visitor II
August 7, 2023
Solved

In up-down mode, compare value limit is 3 periods or 6 periods

  • August 7, 2023
  • 1 reply
  • 2193 views

Hi ,

I am using HRTIM of STM32G4 (up-down mode, Complementary PWM).
I am confused by what the reference manulal says.

In RM0440 Rev 7 p.874,  the compare values is limited to within 3 periods of the fHRTIM clock below the period value.
However, the compare value is limited to within 6 periods in the example.
・Prescaling ratio is 32 at CKPSC=0
・0xC0/32 = 6

Which limit is correct, 3 or 6 periods?

naga_0-1691387157725.png

This topic has been closed for replies.
Best answer by waclawek.jan

waclawekjan_0-1691393557835.png

JW

1 reply

waclawek.jan
waclawek.janBest answer
Super User
August 7, 2023

waclawekjan_0-1691393557835.png

JW