2019-03-07 03:15 AM
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??
2019-03-10 07:54 AM
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...).
2019-03-11 07:39 PM
hi flyer32. thank for reply!!