Most peak detectors employ a rectifier and a sample-andhold circuit, which is prone to output droop. In an alternative approach, shown in the figure, a 5-bit digital potentiometer with servo loop is used to create an inexpensive peak detector with a logic-level reset input and no output droop.
Comparator control of IC1’s chip-select input ensures that the digital potentiometer becomes active only when VIN exceeds the VOUT level currently latched, and R1 ensures that the potentiometer increments upward (rather than downward) as a result. When VIN rises above VOUT, the comparator output (IC2) swings low and selects IC1, allowing the wiper position to increment upwards with each high-tolow transition of the clock (—INC). When VOUT reaches VIN, the comparator output goes high and latches VOUT at that level.
VOUT ranges between the voltage levels connected to the upper and lower extremes of the digital pot (5 V and 0 V in this case) in 32 equally spaced increments. By reducing this VOUT range, the size of an LSB can be decreased, thereby increasing the output resolution.
Most peak detectors employ a capacitor for holding the output voltage, and the droop (slow change) in VOUT caused by the capacitor's leakage current is particularly noticeable with low frequency or low duty cycle signals. The primary advantage of this circuit is a complete absence of such output droop. It holds the output level indefinitely, making it useful as a long-term memory.