An improved ramp generating circuit which is self-compensating for changes in component performance is disclosed. The circuit is designed to attain a reference voltage in a fixed number of counts as provided by a precision clock source. A single direction compensation feedback network is employed to increase the slope in increments until the desired peak level and clock count are attained simultaneously. Embodiments are shown wherein the circuit is employed in a gas discharge bar graph display driving circuit and as an analog-to-digital converter.