Skip to content

STMicroelectronics STM32 Nucleo-64 MCU Development Board NUCLEO-F446RE #1386

Closed Answered by ABOSTM
amirpdn asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fpistm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants