I've used the stm32 one pule mode timer to generate pulse train. one pulse mode generate the pulse train in response of a extranl event originally, but i want to know that is there anyway to trigger the OPM timer internally? for example by writing a bit to a specific register.
Asked
Active
Viewed 240 times
0
-
The first case is actualy more complex, then the question. To start timer by some external event you have to configure it in slave mode. For a software trigger, just don't use slave mode, and timer will start once CEN bit is set. – Flexz Mar 30 '23 at 12:24
-
You have to explain what "internally" means in this context. What "external" is then. Yes, you can enable one pulse mode by setting a special OPM bit in timer control register. And you can start counter by writing to another specific Counter Enable bit in timer. – Ilya May 11 '23 at 12:12