Skip to main content
xpp07
Associate III
September 11, 2018
Question

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

  • September 11, 2018
  • 1 reply
  • 524 views

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?

    This topic has been closed for replies.

    1 reply

    waclawek.jan
    Super User
    September 11, 2018

    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