cancel
Showing results for 
Search instead for 
Did you mean: 

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

AFied.1
Associate III

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.

2 REPLIES 2
Piranha
Chief II

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
Associate III

Hey, thanks a lot! I will try that!