Skip to main content
Gil1
Associate II
February 24, 2023
Question

Using the STM32H757i-EVAL HRTIM, Timer A to generate a square wave. This is working as expected in continuous mode. Rather than run in continuous mode, I would like to specify the number of pulses generated. For example, 10 pulses then stop.

  • February 24, 2023
  • 1 reply
  • 844 views

..

This topic has been closed for replies.

1 reply

ST_Sophia
ST Employee
May 25, 2023

Hello,

The FW solution would be enabling the interrupt of roll-over with a counter and disable the waveformoutput after reaching the value of 10 interrupts.

Otherwise, the HW solution would be: the use of single-shot mode (with PER/CMP to set/reset channel) and the Chopper to generate pulses with the number (and characteristics) you want.

Best regards.

Yassine.