The invention discloses a valley-switching 
digital control circuit of a switch power source, and belongs to the technical field of switch power source 
circuit design. The valley-switching 
digital control circuit comprises a 
voltage feedback detection module, a current feedback detection module, an arithmetic unit, a valley-switching 
digital control module, a 
and gate device and a PWM generating module, wherein the 
voltage feedback detection module is used for collecting switch power source 
voltage feedback signals, the current feedback detection module is used for collecting drive switch tube currents, the arithmetic unit is used for obtaining drive switch tube breakover signals according to voltage feedback detection module output signals and current feedback detection module output signals, the valley-switching digital control module is used for obtaining valley-switching signals according to the voltage feedback detection module output signals, the 
and gate device is used for conducting and operation on the drive switch tube breakover signals and the valley-switching signals, and the PWM generating module is used for generating actual duty ratio signals according to the operation result of the 
and gate device. By means of the valley-switching digital 
control circuit, the switch loss is effectively reduced while accurate valley switching is achieved, the valley-switching mode is switched into the real-time breakover mode when the resonant period is abnormal, and the valley-switching digital 
control circuit is suitable for discontinuous-
mode switch power source chips in the PWM mode and PFM mode.