A combined power supply and driver control module includes rectifier circuitry,
switching circuitry, and driver circuitry for providing output power to a load.
Rectified output from an input power source is used to produce a DC power. The
switching circuitry receives the DC power and modulates the input current drawn
from the power source. An intelligent control module includes control circuitry,
such as a digital processor, for controlling the switching circuitry. Power factor
is improved by modulating the input current to be closer in phase with the voltage
of the power source. Also disclosed is a power factor correction circuit in which
a digital processor reads waveform values from a lookup table and modulates the
input current waveform based on the values. A zero crossing detector connected
to the input power source may direct the digital processor when to commence reading
values from the lookup table.