A method and system for operating a motor are provided. Power is provided
to the motor through at least one switch operating at a first switching
frequency. A pulse ratio of the motor is calculated based on the first
switching frequency. The at least one switch is operated at a second
switching frequency if the calculated pulse ratio is less than a first
pulse ratio value and greater than a second pulse ratio value.