A method for controlling a switching inverter, the method comprising: determining a duty ratio for each output phase of the switching inverter for a present pulse width modulation, PWM, half cycle; determining, for each output phase, a present output control value for the present PWM half cycle as a sum of a previous output control value for that phase for a previous PWM half cycle and the duty ratio for that phase for the present PWM half cycle; determining a pulse width value for the present PWM half cycle according to a maximal one of the present output control values or a maximal present output control value difference between two phases for the present PWM half cycle; in response to the pulse width value for the present PWM half cycle being less than or equal to the threshold value: selectively suspending ramping of the carriers for each output phase for the present PWM half cycle; and selectively generating the switching control signals to operate the switching inverter for the present PWM half cycle according to a zero vector; and in response to the pulse width value for the present PWM half cycle being greater than a threshold value: selectively resuming the ramping of the carriers for each output phase for the present PWM half cycle; selectively generating switching control signals to operate the switching inverter for the present PWM half cycle according to the present output control values; and selectively resetting the present output control values to zero. determining a duty ratio for each output phase of the switching inverter for a present pulse width modulation, PWM, half cycle; determining, for each output phase, a present output control value for the present PWM half cycle as a sum of a previous output control value for that phase for a previous PWM half cycle and the duty ratio for that phase for the present PWM half cycle; determining a pulse width value for the present PWM half cycle according to a maximal one of the present output control values or a maximal present output control value difference between two phases for the present PWM half cycle; in response to the pulse width value for the present PWM half cycle being less than or equal to the threshold value: selectively suspending ramping of the carriers for each output phase for the present PWM half cycle; and selectively generating the switching control signals to operate the switching inverter for the present PWM half cycle according to a zero vector; and selectively suspending ramping of the carriers for each output phase for the present PWM half cycle; and selectively generating the switching control signals to operate the switching inverter for the present PWM half cycle according to a zero vector; and in response to the pulse width value for the present PWM half cycle being greater than a threshold value: selectively resuming the ramping of the carriers for each output phase for the present PWM half cycle; selectively generating switching control signals to operate the switching inverter for the present PWM half cycle according to the present output control values; and selectively resetting the present output control values to zero. selectively resuming the ramping of the carriers for each output phase for the present PWM half cycle; selectively generating switching control signals to operate the switching inverter for the present PWM half cycle according to the present output control values; and selectively resetting the present output control values to zero.