Patent ID: 8154889

Claim:
A method comprising: measuring a voltage of a flyback converter, wherein a waveform for the voltage includes a first rate of change when the flyback converter is in a first mode of operation and a second rate of change when the flyback converter is in a second mode of operation; analyzing the waveform for the voltage at multiple points in time to determine a delay in the waveform in crossing a first threshold and a second threshold; determining if the first rate of change or the second rate of change is present based on the delay in the waveform, wherein determining if the first rate of change or the second rate of change is present comprises: comparing the delay to a value; if the delay is below the value, determining the flyback converter is in the first mode of operation; and if the delay is above the value, determining the flyback converter is in the second mode of operation; determining whether the flyback converter is in the first mode of operation or the second mode of operation based on the presence of the first rate of change or the second rate of change; and controlling a switch coupled to a diode using different conditions based on whether the flyback converter is in the first mode of operation or the second mode of operation.