The invention relates to a line
voltage compensation circuit based on
peak detection current mode switch circuit. The line
voltage compensation circuit provided by the invention comprises a sample circuit and a compensation circuit, wherein, the sample circuit is used for sampling voltages related with the line
voltage, thus obtaining sampling voltages which are in
linear relation with the line voltage and scaling down in proportion. The compensation circuit is connected with the sample circuit and is used for compensating the non-inverting input end or inverted input end of a
comparator in the
peak detection circuit by utilizing the sampling voltage of the output by the sample circuit in an electrical
signal mode, so that the
inductance peak point current is equal to the
inductance peak point current under the ideal situation. The line
voltage compensation circuit provided by the invention not only has the advantages of steady loop and quick
reaction speed and the like in the traditional
peak detection current mode switch
control circuit, but also can be used for overcoming the problem of unstable
inductance peak point current caused by
system delay, so that the inductance peak point current is invariant. The line
voltage compensation circuit provided by the invention can be widely applied to analogue integrated circuits.