− This paper describes a simple power quality analyzer based on a digital signal processor. In this analyzer, a new algorithm for detection and classification of power quality events is implemented. The analyzer detects and classifies in real-time transients, waveform distortions, sags, interruptions and swells.