2019-04-04 12:08 AM
Hi,
I need to start a single pulse of 1 or 2 ms from software. The length of the pulse is known when I need to start the pulse.
What is the best way to do that ?
Thanks,
2019-04-04 01:05 AM
Using a timer output, and one-pulse mode of a timer.
JW
2019-04-04 04:37 AM
Do you have an example ? I tried to use a one-pulse mode, but unsuccessfully.
In CubeMX, which output type do I have to select ? And how to configure it (Mode, polarity, ...) ?
Thanks,
2019-04-04 07:39 AM
Do you need microsecond accuracy or milisecond accuracy?
Msec maybe use systick to count msec and a global nonzero pulse global countdown to drive any gpio pulse.
Also a one shot output compare with no auto reload. Compare is the first edge, timer max value the falling.
Or use MOSI of slow prescaled SPI to generate a pulse.... If all timers are taken
2019-04-08 08:24 AM
Hi,
Thanks.
I use an Output Compare. It works properly, but only one time.
How to be able to start it again ?