Patent ID: 8860395

Claim:
A circuit for generating a ramp compensation voltage, comprising: a charging current generating circuit, configured to receive information indicative of a switching signal including information indicative of a frequency of fs, a duty cycle of D and a period of Ts, the charging current generating circuit generating a charging current in direct proportion to f s ( 1 - D ) ⁢ DTs , the charging current generating circuit including: a first current-voltage converting portion configured to provide an impedance proportional to ( 1 - D ) fs to establish a first voltage; an integrating portion coupled to the first current-voltage converting portion configured to receive a receive the first voltage and configured to establish a second voltage including an integrated representation of the first voltage; a first voltage-current converting portion configured to receive the second voltage and configured to establish the charging current; wherein the first current-voltage converting portion is configured to receive an input current established using the charging current; and a voltage generating circuit for generating a quadratic ramp compensation voltage using the charging current.