PeakDetectorReset

A PeakDetector with voltage-controlled reset.

Parameters

decay

peak_rate

Options
decay_shape $$\in \{$$ LINEAR $$,$$ EXPONENTIAL $$\}$$

peak_to_detect $$\in \{$$ POSITIVE_PEAK $$,$$ NEGATIVE_PEAK $$\}$$

comparator_output $$\in \{$$ REFERENCE_VOLTAGE_OUTPUT $$,$$ DIGITAL_OUTPUT $$\}$$

input_phase $$\in \{$$ PHASE1 $$,$$ PHASE2 $$\}$$

compare_to $$\in \{$$ GROUND $$,$$ SECOND_INPUT $$,$$ VARIABLE_REFERENCE $$\}$$

control_signal_polarity $$\in \{$$ ACTIVE_HIGH $$,$$ ACTIVE_LOW $$\}$$

opamp_mode $$\in \{$$ DEFAULT $$,$$ CHOPPER_STABILIZED $$\}$$

Inputs

input Half-Cycle

control Half-Cycle

Outputs

output Continuous

reset_out Continuous

Transfer Function

$$\frac{\Delta V_{out}}{\Delta t} = \begin{cases} \text{Peak} & \text{if \> V_{out} < V_{in}} \\ -\text{Decay} & \text{if \> V_{out} > V_{in}} \end{cases} \\ \text{reset if V_{ctrl} > V_{ref}}$$

Analog Resource Usage

$$\begin{array}{|c|c|} \hline \text{Opamps} & \text{2 of 8} \\ \hline \text{Comparators} & \text{2 of 4} \\ \hline \text{Capacitors} & \text{5 of 32} \\ \hline \end{array}$$