Skip to main content
AFied.1
Associate II
February 10, 2021
Question

Is there a way to detect a dead time of 300us using "only" a timer?

  • February 10, 2021
  • 2 replies
  • 683 views

Hi,

is here a way to toggle a GPIO pin if a timer detects a 300us dead time in a continous/clock signal?

If so, how? I would like to use a timer only, so no "individual" coding, just CubeMX configuration.

This topic has been closed for replies.

2 replies

Piranha
Principal III
February 10, 2021

Route your signal to timer TIMx_ETR pin. Configure timer to combined reset + trigger and one-pulse modes. Configure an output compare channel to toggle (or maybe PWM 2) mode and set it to the desired dead-time.

AFied.1
AFied.1Author
Associate II
February 11, 2021

Hey, thanks a lot! I will try that!