The invention is suitable for the field of integrated circuits and provides a
power compensation circuit and a power supply
chip of a
switching power supply. The
power compensation circuit comprises a sampling logic unit, a sampling retaining unit, an operational amplification unit, an energy accumulation unit, a
comparator and a clamping unit, wherein the sampling logic unit is used for generating a sampling
control signal according to a
logic control signal; the sampling retaining unit is used for outputting a sampling
processing unit according to the sampling
control signal; the operational amplification unit is used for outputting an error amplification
signal according to the sampling
processing signal and a reference signal; the energy accumulation unit is used for charging and discharging according to the error amplification signal so as to adjust the
voltage of the error amplification signal; the
comparator is used for comparing a sampling
voltage with the adjusted error amplification signal and outputting a compensation
control signal so as to compensate
peak current of a primary
inductor and further compensate power; and the clamping unit is used for clamping the error compensation signal. In the invention, the
peak current of the primary
inductor is controlled through a
negative feedback loop, and the
loop gain is increased, thus the sampling time point is precisely optimized, and the output power is compensated on the basis that
chip pins are not additionally increased and
system efficiency is reduced.