Patent ID: 7502697

Claim:
A power supply comprising: power hardware having an AC power output configured for coupling to a load impedance, the AC power output configured to provide an AC output voltage and an AC output current to the load impedance; an interface for selecting an output voltage or an output current of said power supply for application to said load impedance; one or more output parameter sensors configured to sense power supply output voltage and output current; analog to digital converters configured to produce digital representations of said sensed output voltage and current; and a digital feedback loop receiving said digital representations and coupled to regulate the power hardware, wherein said digital feedback loop comprises: an RMS voltage generator in a first feedback loop, said first feedback loop configured to generate an RMS voltage error signal; an RMS current generator in a second feedback loop, said second feedback loop configured to generate an RMS current error signal; mode selection and processing logic configured to generate a power hardware RMS control signal derived at least in part from a selected one of the RMS voltage error signal and the RMS current error signal; and an instantaneous voltage control signal generator in a third feedback loop receiving said digital representations of said sensed power supply output voltage and current and also receiving a signal derived at least in part from said power hardware RMS control signal, said third feedback loop configured to generate an instantaneous output voltage control signal that sets the power hardware output to a desired output waveform having said pre-set RMS output voltage or said pre-set RMS output current depending on whether the RMS voltage error signal or RMS current error signal is selected by said mode selection and processing logic.