An analog voltage latch for use in a controller for controlling a motor
equipped electric bicycle, includes a window comparator for comparing an
analog voltage latch output and an analog input voltage to produce a
comparison result, an S-R latch for producing HIGH or LOW according to
the comparison result, a selector for selecting an operation, an up/down
counter for counting up or down according to the HIGH or LOW from the S-R
latch, and holding the counted result according to the selector result,
and a DA converter for converting the counted result to analog signal.