What is deadTimePerTs parameter in system.h?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is deadTimePerTs parameter in system.h?

929 Views
derekcook
Senior Contributor I

In the system.h file I see a deadTimePerTs parameter. What is this parameter? The comment says percent of total duty cycle within deadtime. However, there is a separate deadtime within the pwm_sys.c file. Is this another deadtime? 

If I want 3us of deadtime should I set this to: .deadTimePerTs = _LQ(3e-06/0.00025) for a 4kHz pwmFreq

Labels (1)
0 Kudos
2 Replies

788 Views
linestream-adam
Senior Contributor I

deadTimePerTs is used by the pwm_sys.c file to set the deadtime in the FlexTimer. The other value (PWM_SYS_MIN_DEADTIME_US) is the minimum allowable deadtime of the reference hardware. This value is placed here to prevent people from breaking their reference kits due to a mis-configured deadtime.

Yes, you would set .deadTimePerTs = _LQ(3e-06/0.00025) for 3us of deadtime with 4kHz PWM.

788 Views
derekcook
Senior Contributor I

Thanks Adam! 

0 Kudos