Part Number: TMS320F28379D
Interrupt once per PWM period. The execution time of the interrupt code in 25kHz PWM ISR is significantly less than in 50kHz PWM ISR. And, execution time are the same in 25kHz's and below. Execution time are the same at 50kHz's and above.
The following FOR loop code uses 32 clock cycles in the 25kHz PWM ISR and 128 clock cycles in the 50kHz PWM ISR.

The FOR loop is used because when the PWM ISR frequency exceeds 25kHz, running the DELAY_US function will enter the Illegal ISR.
The disassembly code at different frequencies is also the same.

SYSCLK = 200MHz
Set SVPWM_FULL to 5000 or 1000 to change the frequency.
--
Thanks & Regards
Yale
100kHz
20kHz