Repetitive single cycle pulse width modulation generation
First Claim
1. An apparatus for generating a repetitive single cycle PWM signal, comprising:
- a duty cycle register storing a duty cycle value;
a duty cycle counter having a clock input coupled to a clock generating a plurality of clock pulses and incrementing a duty cycle count value for each of the plurality of clock pulses received;
a duty cycle comparator coupled to the duty cycle register and the duty cycle counter, wherein the duty cycle comparator compares the duty cycle count value to the duty cycle value and generates a PWM signal when the duty cycle count value is less than or equal to the duty cycle value and stops the duty cycle counter when the duty cycle count value is greater than the duty cycle value;
a phase counter having a clock input coupled to the clock generating the plurality of clock pulses and incrementing a phase count value for each of the plurality of clock pulses received, and a reset input adapted for coupling to a PWM cycle start signal from a time base, wherein when the PWM cycle start signal is asserted the phase count value is reset to zero, thereby restarting the phase counter;
a phase offset register storing a phase offset value; and
a phase offset comparator coupled to the phase offset register, the phase counter and a stop input thereof, wherein the phase offset comparator compares the phase count value to the phase offset value and stops the phase counter when the phase count value is equal to the phase offset value and resets the duty cycle value to zero, thereby restarting the duty cycle counter.
15 Assignments
0 Petitions
Accused Products
Abstract
Multiple pulse width modulation (PWM) generators each have a separate phase offset counter creating a phase shift. The phase shifting process is separated from the duty cycle generation process, thereby easing the task of preserving the duty cycle and phase relationships among the various PWM channels following an asynchronous external synchronization event. A master time base generates a PWM cycle start signal that resets the phase offset counters in each of the PWM generator circuits. The phase offset counter continues counting until it matches the respective phase offset value. Then, the associated duty cycle counter is reset and restarted. The duty cycle continues until its count matches the specified value at which time the duty cycle counter stops until reset by the terminal count from the phase offset counter. The output of the duty cycle comparators provide the output PWM signals as a repetitive series of single cycle PWM signals.
-
Citations
18 Claims
-
1. An apparatus for generating a repetitive single cycle PWM signal, comprising:
-
a duty cycle register storing a duty cycle value; a duty cycle counter having a clock input coupled to a clock generating a plurality of clock pulses and incrementing a duty cycle count value for each of the plurality of clock pulses received; a duty cycle comparator coupled to the duty cycle register and the duty cycle counter, wherein the duty cycle comparator compares the duty cycle count value to the duty cycle value and generates a PWM signal when the duty cycle count value is less than or equal to the duty cycle value and stops the duty cycle counter when the duty cycle count value is greater than the duty cycle value; a phase counter having a clock input coupled to the clock generating the plurality of clock pulses and incrementing a phase count value for each of the plurality of clock pulses received, and a reset input adapted for coupling to a PWM cycle start signal from a time base, wherein when the PWM cycle start signal is asserted the phase count value is reset to zero, thereby restarting the phase counter; a phase offset register storing a phase offset value; and a phase offset comparator coupled to the phase offset register, the phase counter and a stop input thereof, wherein the phase offset comparator compares the phase count value to the phase offset value and stops the phase counter when the phase count value is equal to the phase offset value and resets the duty cycle value to zero, thereby restarting the duty cycle counter. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system for generating a plurality of repetitive single cycle pulse width modulation (PWM) signals, said system comprising:
-
a master time base generator, wherein the master time base generator comprises; a master period register storing a master period value; a master period counter having a clock input coupled to a clock generating a plurality of clock pulses, and incrementing a master count value for each of the plurality of clock pulses received; a master period comparator coupled to the master period register and the master period counter, wherein the master period comparator compares the master count value to the master period value, generates a PWM cycle start signal when the master count value is equal to or greater than the master period value, and then resets the master count value in the master period counter to zero; and a plurality of PWM generators for generating a plurality of repetitive single cycle PWM signals, each of the plurality of PWM generators comprises; a duty cycle register storing a duty cycle value; a duty cycle counter having a clock input coupled to the clock and incrementing a duty cycle count value for each of the plurality of clock pulses received; a duty cycle comparator coupled to the duty cycle register and the duty cycle counter, wherein the duty cycle comparator compares the duty cycle count value to the duty cycle value and generates a PWM signal when the duty cycle count value is less than or equal to the duty cycle value and stops the duty cycle counter when the duty cycle count value is greater than the duty cycle value; a phase counter having a clock input coupled to the clock generating the plurality of clock pulses and incrementing a phase count value for each of the plurality of clock pulses received and a reset input coupled to the master time base, wherein when the PWM cycle start signal from the master time base is asserted the phase count value is reset to zero, thereby restarting the phase counter; a phase offset register storing a phase offset value; and a phase offset comparator coupled to the phase offset register, the phase counter and a stop input thereof, wherein the phase offset comparator compares the phase count value to the phase offset value and stops the phase counter when the phase count value is equal to the phase offset value and resets the duty cycle value to zero, thereby restarting the duty cycle counter. - View Dependent Claims (7, 8, 9, 10, 11, 12)
-
-
13. A system for generating a plurality of repetitive single cycle pulse width modulation (PWM) signals, said system comprising:
-
a plurality of time base generators, wherein each of the plurality of time base generators comprises; a period register storing a period value; a period counter having a clock input coupled to a clock generating a plurality of clock pulses, and incrementing a period count value for each of the plurality of clock pulses received; a period comparator coupled to the period register and the period counter, wherein the period comparator compares the period count value to the period value, generates a PWM cycle start signal when the count value is equal to or greater than the period value, and then resets the count value in the period counter to zero; a plurality of multiplexers having inputs coupled to the PWM cycle start signals from the plurality of time base generators; and a plurality of PWM generators for generating a plurality of repetitive single cycle PWM signals, each of the plurality of PWM generators comprises; a duty cycle register storing a duty cycle value; a duty cycle counter having a clock input coupled to the clock and incrementing a duty cycle count value for each of the plurality of clock pulses received; a duty cycle comparator coupled to the duty cycle register and the duty cycle counter, wherein the duty cycle comparator compares the duty cycle count value to the duty cycle value and generates a PWM signal when the duty cycle count value is less than or equal to the duty cycle value and stops the duty cycle counter when the duty cycle count value is greater than the duty cycle value; a phase counter having a clock input coupled to the clock generating the plurality of clock pulses and incrementing a phase count value for each of the plurality of clock pulses received and a reset input coupled to an output of a respective one of the plurality of multiplexers, wherein a respective PWM cycle start signal is selected through the plurality of multiplexers and when asserted the phase count value is reset to zero, thereby restarting the phase counter; a phase offset register storing a phase offset value; and a phase offset comparator coupled to the phase offset register, the phase counter and a stop input thereof, wherein the phase offset comparator compares the phase count value to the phase offset value and stops the phase counter when the phase count value is equal to the phase offset value and resets the duty cycle value to zero, thereby restarting the duty cycle counter.
-
-
14. A method for generating a plurality of repetitive single cycle pulse width modulation (PWM) signals, said method comprising the steps of:
-
storing a master period value in a master period register; incrementing a master count value in a master period counter for each clock pulse received by the master period counter; comparing the master count value to the master period value with a master period comparator; generating a PWM cycle start signal when the master count value is equal to or greater than the master period value and then resetting the master count value to zero; restarting a plurality of PWM generators with the PWM cycle start signal, wherein each of the plurality of PWM generators generates a PWM signal that is synchronized with the PWM cycle start signal, operation of each of the plurality of PWM generators comprises the steps of; storing a duty cycle value in a duty cycle register; incrementing a duty cycle count value in the duty cycle counter for each clock pulse received by the duty cycle counter; comparing the duty cycle count value to the duty cycle value with a duty cycle comparator; generating a PWM signal when the duty cycle count value is less than or equal to the duty cycle value; stopping the duty cycle counter when the duty cycle count value is greater than the duty cycle value; storing a phase offset value in a phase offset register; incrementing a phase count value in the phase counter for each clock pulse received by the phase counter; comparing the phase count value to the phase offset value with a phase offset comparator; stopping the phase counter and resetting the duty cycle count value to zero when the phase count value is equal to the phase offset value; and resetting the phase count value to zero when the PWM cycle start signal is received by the phase counter. - View Dependent Claims (15, 16, 17, 18)
-
Specification