A new control algorithm for compensation of harmonics and reactive power and its implementation based on DSP | IEEE Conference Publication | IEEE Xplore