This invention generally relates to discontinuous conduction mode switch
mode power supply (SMPS) controllers employing primary side sensing. We
describe an SMPS controller which integrates a feedback signal from a
point determined by a target operating voltage to a peak or trough of an
oscillatory or resonant portion of the feedback signal when substantially
no energy is being transferred to the SMPS output. When regulation is
achieved this value should be zero; the difference from zero can be used
to regulate the output voltage of the SMPS.