Patent ID: 8638151
Filing Date: 2014-01-28
Classification: G06F,H03K

Abstract:
1. A method for controlling variable frequency ratio-metric pulse width modulation (PWM) signals, said method comprising the steps of: defining a maximum count value; providing a scale factor value; clearing an accumulator register to a zero value; adding the scale factor value and a value of the accumulator and storing the result in the accumulator register; comparing the result in the accumulator register to the maximum count value, wherein if the result in the accumulator register is less than the maximum count value then returning to the steps of adding the scale factor value and the value of the accumulator register and storing the result in the accumulator register, and if the result in the accumulator register is equal to or greater than the maximum count value then subtracting the maximum count value from the result in the accumulator register and furthermore asserting a count enable to a PWM generator and returning to the steps of adding the scale factor value and the value of the accumulator register and storing the result in the accumulator register, wherein the count enable signal, when not asserted, inhibits some of the clock pulse received by the PWM generator.