An integrated circuit having a bootstrap charger for using in a switching
mode power supply is disclosed. In one embodiment, a capacitor is
connected between a floating terminal and a bootstrap supply terminal
with a voltage drop over the capacitor, a comparing device with a first
input terminal receiving a fraction of the voltage drop, a second input
terminal receiving a reference, and an output terminal providing a
control signal, and a charge circuit configured to charge the capacitor
dependent on the control signal.