The present invention provides a method and a control circuit to detect an
input voltage for the control and protections of a power converter. It
includes a current sense circuit for generating a current signal in
response to a switching current of a transformer. A detection circuit is
coupled to sense the current signal for generating a slope signal in
response to a slope of the current signal. A protection circuit is
further developed to control the switching signal in accordance with the
slope signal. The level of the slope signal is corrected to the input
voltage of the power converter.