|
Dear Sir/Madam, |
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. |
|
Dear Sir/Madam, |
|
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. |
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.