cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Gil1
Associate II
 
1 REPLY 1

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.