A control circuit for controlling a resonant power converter, comprising: - a modulator signal generator ; - a carrier signal generator ; - a pulse width signal generator ; wherein, the modulator signal generator is configured to generate a modulation signal; wherein, the carrier signal generator is configured to generate a carrier signal, wherein the generation of the carrier signal comprises a measurement of at least one signal from the resonant power converter, and wherein the at least one signal from the resonant power converter from which the carrier signal is generated comprises a resonant voltage multiplied by a sign of a resonant current and wherein the sign of the resonant current is either -1 or +1 and is given by the resonant current, be it positive or negative, divided by its absolute magnitude or modulus; wherein, the pulse width signal generator is configured to generate a switching signal that is useable to control a value of at least one magnitude of the resonant power converter based on the modulation signal and the carrier signal; wherein the pulse width signal generator is configured to generate the switching signal that is in the high state when the modulation signal is greater than the carrier signal; and wherein the resonant power converter comprises a pulse duration monitor configured to measure at least one duration of the switching signal, wherein the at least one duration comprises a duration of a switching cycle, and wherein the duration of the switching cycle is a duration of the switching signal in a low state and a duration of the switching signal in a high state, and wherein the pulse width signal generator is configured to generate the switching signal that is in the low state when the modulation signal is greater than the carrier signal and the duration of the switching cycle is less than or equal to a threshold value, in order to limit switching to a maximum switching frequency if the distance between consecutive switching events becomes too short. - a modulator signal generator ; - a carrier signal generator ; - a pulse width signal generator ; wherein, the modulator signal generator is configured to generate a modulation signal; wherein, the carrier signal generator is configured to generate a carrier signal, wherein the generation of the carrier signal comprises a measurement of at least one signal from the resonant power converter, and wherein the at least one signal from the resonant power converter from which the carrier signal is generated comprises a resonant voltage multiplied by a sign of a resonant current and wherein the sign of the resonant current is either -1 or +1 and is given by the resonant current, be it positive or negative, divided by its absolute magnitude or modulus; wherein, the pulse width signal generator is configured to generate a switching signal that is useable to control a value of at least one magnitude of the resonant power converter based on the modulation signal and the carrier signal; wherein the pulse width signal generator is configured to generate the switching signal that is in the high state when the modulation signal is greater than the carrier signal; and wherein the resonant power converter comprises a pulse duration monitor configured to measure at least one duration of the switching signal, wherein the at least one duration comprises a duration of a switching cycle, and wherein the duration of the switching cycle is a duration of the switching signal in a low state and a duration of the switching signal in a high state, and wherein the pulse width signal generator is configured to generate the switching signal that is in the low state when the modulation signal is greater than the carrier signal and the duration of the switching cycle is less than or equal to a threshold value, in order to limit switching to a maximum switching frequency if the distance between consecutive switching events becomes too short. <EOS>