A method is disclosed for generating pulse width modulated pulse control
signals for controlling switches in a switching power supply. First, a
count value is determined of a master clock within a switching cycle of
the power supply from beginning to end thereof. A separate state machine
providing for each edge in each of pulse control signals and each is
operated to generate the associated edge as a function of the sum of a
fixed reference count value from the beginning of the switching cycle and
a determined count value when the sum is determined to equal the actual
count value.