Skip to main content
klee.15
Associate
March 7, 2019
Question

STM32H743 HRtimer PWM

  • March 7, 2019
  • 2 replies
  • 710 views

hi i'm using HRTIM for PWM output.

i could complete pwm output. but i want to stop it at pulse count that I want.

is there any good way to stop output at i set pulse counts??​

This topic has been closed for replies.

2 replies

flyer31
Senior
March 10, 2019

Sorry, no experience with HRTIM.

For a standard timer, you would either use another timer as counter, and combine the two timers in some suitable maser-slave mode (you need timers with SMCR register, but most of them have...).

Or you would operated the timer in gated mode (again SMCR necessary), and then use another timer to generate the gate pulse the with correct length (thus this other timer then running VERY slowly...).

klee.15
klee.15Author
Associate
March 12, 2019

hi flyer32. thank for reply!!