A power factor controller for a switching power supply, that in one
embodiment couples a power factor control circuit between an AC input and
an output wherein a digital controller computes circuit currents for
regulating the power supply without direct current measurements.