Reference is now made to FIG. 9B, showing a simplified block diagram according to an embodiment of the present invention for up conversion of 100/120 Hz. into a higher frequency in order to enable faster detection in receiver 907 of leakage from the grid. The 100 Hertz or 120 Hertz signal is AC coupled by capacitor 931 to remove the direct current component in serial string 923 and lines 410 and 412. The 100/120 Hz. signal is optionally amplified and rectified by a full wave rectifier 935 so that a 100 Hz or 120 Hz unipolar DC ripple is achieved. The 100/120 Hz unipolar signal is split. One portion of the 100/120 Hz. unipolar ripple is converted to a square wave, such as in a comparator/digitize circuit 939. A second portion of the 100/120 Hz unipolar ripple undergoes a known phase shift, e.g. of 400 Hz. in a phase shifter 933 and output to a second comparator/digitizing circuit 931. The two outputs of two digitizing circuits 939,931 undergo an exclusive OR in a XOR circuit 933 which outputs a signal at a much higher frequency, e.g. 800
Hz.