In a capacitor charger, a transformer has a primary winding connected
between an input voltage and a switch for generating a primary current
flowing through the primary winding by switching the switch to thereby
induce a secondary current flowing through a secondary winding of the
transformer and a secondary voltage tapered from the secondary winding, a
control apparatus and method adjusts the on-time period for the switch in
response to the input voltage. The charging time and charging current are
independent of the input voltage, and there is no power loss resulted
from current sense to the primary current.