Patent ID: 7323851

Claim:
A PFC AC-to-DC power supply comprising: a switching converter comprising at least one main power switch; and a PFC controller for controlling the at least one main power switch, wherein the PFC controller comprises: a processing unit comprising a processor and a memory having firmware stored thereon which, when executed by the processor, causes the processor to compute an input current set point for the AC-to-DC power supply based on the input and output voltage of the AC-to-DC power supply; and hardware circuitry in communication with the processing unit, wherein the hardware circuitry comprises: a first a/d converter for outputting a digital input current error value based on the input current of the AC-to-DC power supply and an analog form of the input current set point from the processing unit; and a digital current mode compensator in communication with the first a/d converter for determining the duty cycle for the at least one main power switch based on the digital input current error value from the a/d converter.