This invention relates to the field of
switching power supply control technology, and discloses a method and circuit for dual random frequency dithering and adaptive slope compensation in
switching power supplies. The method generates a dual-layer independent
random sequence based on pseudo-random numbers, and generates a slow random
triangular wave frequency dithering
signal and a fast random jump frequency dithering
signal through layered mapping. The
switching cycle duration is obtained through cycle counting and numerical conversion, and the target
duty cycle is calculated by combining the input
voltage and output
voltage reference values. Using the target
duty cycle,
switching cycle, and
system parameters, an adaptive compensation slope value is calculated through a
lookup table combined with interpolation or formulas. A digital compensation slope is generated based on the smoothed compensation slope and the cycle
synchronization signal. This slope is digitally added to and compared with the
inductor current sampling
signal to achieve stable LED drive current output. This invention maintains stable output current while effectively suppressing
broadband electromagnetic interference, and is suitable for high-reliability applications such as automotive LED drives.