-
Dear Sir/Madam, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @amirpdn, About your 50 pulses, you can for example attach an interrupt to count the number of pulses and stop timer once 50 pulses are reached. |
Beta Was this translation helpful? Give feedback.
Hi @amirpdn,
You can use HadwareTimer library to generate the pulses:
https://github.com/stm32duino/wiki/wiki/HardwareTimer-library
Several examples are provided:
https://github.com/stm32duino/wiki/wiki/HardwareTimer-library#4-examples
About your 50 pulses, you can for example attach an interrupt to count the number of pulses and stop timer once 50 pulses are reached.