Patent ID: 7426123

Claim:
A digital pulse width modulator (DPWM) for generating pulse control signals for controlling the operation of a switching power supply in response to receiving a duty cycle control signal from a digital control section, each pulse control signal having a leading edge for changing the associated pulse control signal from a first state to a second state and a trailing edge for changing from the second state back to the first state, comprising: a master counter for providing a count value from the initiation of a switching cycle to the end thereof based on a master clock; and a plurality of finite state machines, one associated with each edge of each the pulse control signals, each of said finite state machines including: a programmable configuration register for configuring the operation of said finite state machine, a reference count input for receiving a reference count value defining a reference count for the associated edge, an edge count output for providing an edge count value for the number of clock cycles to delay the associated edge from the reference count, an edge generator for generating said associated edge to change from either the first or second state to the second or first state, respectively, at an edge count value when the master count value equals the sum of the reference count value and the edge count value, and wherein the reference count value and the edge count value are determined in accordance with the programmed contents of said configuration register.