This circuit uses a NAND port to convert rectangular signals from 50 kHz to 1 MHz into triangular signals. The circuit is powered by 5 V and this is the amplitude of the output signals. The trimpot adjusts the linearity of the output signal. The input signal can have amplitudes greater than 5 V and the resistor without value depends precisely on this signal.