  We present the design and prototype of a switchable electron mirror, along
with a technique for driving it with a flat-top pulse. We employ a general
technique for electronic pulse-shaping, where high fidelity of the pulse shape
is required but the characteristics of the system, which are possibly
nonlinear, are not known. This driving technique uses an arbitrary waveform
generator to pre-compensate the pulse, with a simple iterative algorithm used
to generate the input waveform. We demonstrate improvement in RMS error of
roughly two orders of magnitude over an uncompensated waveform. This is a
broadly applicable, general method for arbitrary pulse shaping.
