A novel digital control using primary feedback flyback switching power supply is designed by digital control methods,combined with a pulse frequency modulation( PFM) and pulse width modulation( PWM) features.The novel digital control technology can achieve fast dynamic response,tight output regulation,as well as a variety of PWM /PFM hybrid control. Cyclone 3 Series FPGA is used as a digital controller to verify the results,which achieve the desired design requirements.