A peak detector circuit receives an oscillating power supply signal. A capacitor is selectably coupled to the signal and charged to a value corresponding to a peak value of the signal. A switch is then opened to isolate the capacitor. When the signal rises to within a selected threshold, relative to the stored value, a comparator produces a command signal to close the switch, again coupling the capacitor to the signal. The peak detector can also include a tracking circuit that controls the capacitor to track the oscillating signal while the switch is closed, a timer circuit that closes the switch and activates the tracking circuit if more than a selected time passes without production of a command signal, a circuit that controls the polarity of a leakage current of the capacitor, a further auxiliary capacitor and a further auxiliary switch with a further control logic.
展开▼