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
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.
Thanks Adam!