There are some problems in the study of eliminating the decaying DC component at present
such as large amount of calculation and existing error.Aiming at these problems
this paper presents an efficient algorithm which use all zero digital filter for filtering the periodic component.This method need not to calculate the amplitude of the decaying DC component and the decay time constant.It can calculate the amplitude and phase of the fundamental wave and harmonics precisely.Simulation results show its strong applicability and high precision.