cancel
Showing results for 
Search instead for 
Did you mean: 

How to give a pulse for a certain amount of time?

xpp07
Senior

I'm using a L432KC nucleo for my project. If I have some normal GPIOs (no timer channels) configured as output, how can I give a pulse for a certain period of time? Is this when One Pulse Mode comes to play?

1 REPLY 1

You can set a GPIO, wait some time either in a loop or polling the counter or flags of a timer, then clear that GPIO; but the timing uncertainties and may be relatively big.

One-pulse mode is a timer mode thus it can output a precisely timed pulse but is limited to pins which are mapped as timer channels.

JW