An adaptive repetitive control scheme is proposed and applied in the control of a PWM inverter used in a high-performance AC power supply. The proposed control scheme can adaptively eliminate periodic distortions resulted by unknown periodic load disturbances in an AC power supply. The proposed adaptive repetitive controller consists of a voltage regulator using state feedback control, a repetitive controller with tuning parameters, and an adaptive controller with recursive least-squares estimator. This adaptive repetitive controller, used for AC voltage regulation, has been realized by using a single-chip digital signal processor (DSP) TMS320C14 from Texas Instruments. Experimental verifications have been carried out on a 2 kVA PWM inverter. Simulation and experimental result show that the DSP-based adaptive repetitive controller can achieve both good dynamic response and low THD under large load disturbances and plant uncertainties.