LED power switch control method

The invention discloses an LED power switch control method. The LED load regulation rate can be increased, and overvoltage of output voltage is controlled. A chip is included. The chip internally comprises a turn-off time setting module, a peak current detecting module, a logic control module and a drive control module. A first resistor is arranged between an IDET pin of the chip and the positive electrode end of input voltage. The chip further comprises an input voltage detecting module connected with the IDET pin, an output current dynamic compensation module connected with the turn-off time setting module, and an output OVP module connected with the drive control module. The input voltage detecting module, the output current dynamic compensation module and the output OVP module are sequentially connected. The LED power switch control method has the advantages that after the input voltage is detected, dynamic compensation control is performed on output current and the output voltage is judged in time, the purpose of optimizing the output LED load regulation rate is achieved, and output open-circuit protection is achieved.