A linear-predict sampling circuit is developed to generate a feedback
signal by detecting a demagnetized voltage of the transformer. A
switching signal is generated in response to the feedback signal for
regulating the output of the power converter. A signal-generation circuit
is used to generate a sample signal in response to a first signal, a
second signal, and the switching signal. The first signal is correlated
to a magnetized voltage of the transformer. The second signal is
correlated to the demagnetized voltage of the transformer. A
sample-and-hold circuit is coupled to the transformer to generate the
feedback signal by sampling the demagnetized voltage of the transformer
in response to the sample signal. The feedback signal is correlated to
the output voltage of the power converter.