Patent ID: 8278899

Claim:
A digital slope compensation apparatus for a switched-mode power supply, comprising: a sensor for sensing an analog inductor current (i L ) of the switched-mode power supply, a comparator for generating a trigger signal according to a comparison of an analog current threshold level and the analog inductor current (i L ), and a pulse width modulator (PWM) for controlling the operation of the switched-mode power supply, wherein the pulse width modulator (PWM) is arranged to be triggered by the trigger signal of the comparator, characterised in that a first analog to digital converter is arranged for converting an analog output voltage (V out ) of the switched-mode power supply into a digital output voltage, at least one transformation module is arranged for transforming the digital output voltage into a digital current threshold level (i cmp ), a digital to analog converter is arranged for generating the analog current threshold level according to the digital current threshold level (i cmp ), a voltage controller is arranged to receive the digital output voltage and to generate a digital current reference (i*), a second analog to digital converter is arranged to convert the analog inductor current (i L ) of the switched-mode power supply into a digital inductor current, and a digital slope compensation module is arranged to receive the digital current reference (i*), the digital inductor current, and a compensation factor (k sc ) to generate the digital current threshold level (i cmp ).