cancel
Showing results for 
Search instead for 
Did you mean: 

One Pulse Mode - How to terminate a one shot pulse with an external trigger ?

DWeer
Associate

Hi, For my application, I need to do the following -

  1. Fire a one shot pulse on a MCU pin in response to a positive edge on the Trigger input
  2. Make the MCU pin go low in response to an external trigger on ETR pin or any other pin

Is this possible with the STM32? Can you suggest any other method for implementing this? I need the operation to work properly at 400kHz.

Thanks,

Dhara

2 REPLIES 2

This should be possible, read the Clearing the OCxREF signal on an external event subchapter of the TIM chapter.

JW

Khouloud GARSI
Lead II

Hello @DWeer​ ,

Regarding your first question, you should:

  • configure the timer in trigger mode.
  • select the "external trigger input" as trigger selection.
  • configure the output channel in PWM_One pulse mode.

Regarding your second question, please provide further details.

Khouloud.