A power converter comprises an inductor (LP) and a controllable switch
(CF) coupled to the inductor. A switch controller (1) supplies a periodic
switching signal (VC1) which has a repetition time and a duty cycle to
the controllable switch (CF) to generate a periodical inductor current
(IL) through the inductor. A generator (2) generates an emulated signal
(IE) based on timing information (TI) which represents the repetition
time and the duty cycle to emulate a current signal being representative
of the inductor current. A comparator (3) compares the emulated signal
(IE) with the current signal (CS) to obtain an error signal (E). A
generator controller (4) receives the error signal (E) to supply a
control signal (VD) to the generator (2) to adapt a property of the
emulated signal (IE) to become substantially equal to a property of the
current signal (CS).