Patent attributes
The method can include generating a first duty cycle value for the PWM; monitoring a current value of a parameter; generating a duty cycle limit value for the PWM, including activating more than one duty cycle limit functions based on corresponding activation conditions, the corresponding activation conditions based on the current value of the parameter, each of the more than one duty cycle limit functions generating a corresponding duty cycle limit subvalue when the corresponding activation conditions are met, and setting the duty cycle limit value to a sum of the generated duty cycle limit subvalues; setting a second duty cycle value for the PWM, as the first duty cycle value or as the duty cycle limit if the first duty cycle value exceeds the duty cycle limit; and, applying the PWM at the second duty cycle value to the valve.