Patent ID: 8289097

Claim:
A method of of providing a pulse width modulated signal based on an input signal and a reference signal, the reference signal being a periodical signal having a voltage step in each cycle, the method comprising: feeding back the pulse width modulated signal to the input signal thereby obtaining a composite signal, filtering the composite signal by means of a loop filter, switching over the pulse width modulated signal from a first voltage level to a second voltage level and from the second voltage level to the first voltage level in dependence on a comparison between the loop filtered composite signal and the reference signal wherein said method further comprising providing a correction signal based on the reference signal, wherein said correction signal is oppositely directed to the switch-over of the pulse width modulated signal associated with the voltage step in the reference signal; adding the correction signal to any one of the pulse width modulated signal, the fed back pulse width modulated signal, the loop filtered composite signal and the reference signal, so as to compensate at least in part for said switching over.