An AC power supply includes a digital feedback loop for output regulation. The feedback loop generates an RMS control signal that is mixed with a desired waveform to produce an input for a feedback loop that generates an instantaneous control signal. The instantaneous control signal is used to regulate power supply output.