A ramp generator includes a resistance ladder supplied with a constant current.
Switches are closed in sequence by a shift register to provide a stepped ramp output.
The constant current is controlled by referencing an on-chip bandgap voltage that
is used as an input to a feedback circuit controlling current through a reference
resistor ladder.