cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743 HRtimer PWM

klee.15
Associate

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??​

2 REPLIES 2
flyer31
Senior

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
Associate

hi flyer32. thank for reply!!