We present an analog ramp generator for use in fast scanning tunneling
or scanning probe microscopes. The analog design achieves low noise w
ith a relatively simple circuit layout. The circuit requires minimal c
omputer overhead because the X and Y ramps are generated using just tw
o clocks and one digital control line. The resulting X and Y ramps are
automatically set equal in magnitude, yielding images which remain sq
uare despite changes in scan size, number of lines per image, and tip
velocity. We have used the circuit at X ramp frequencies above 10 kHz.