The present invention relates to a semiconductor device that is employed in a switching power supply for which a higher output is required, prevents noise from the coil, transformer, and so forth and implements a high efficiency power supply. By connecting a current mirror circuit including a p-type MOSFET, an overcurrent detection level tuning circuit, an overcurrent detection circuit, and an intermittent oscillation control circuit to an FB terminal peripheral circuit that is a feedback signal input terminal, PWM control capable of varying the IDRAIN peak value is implemented for the transition from a heavy load state to a light load state and intermittent oscillation control is implemented for the transition between a light load state to a loadless state, such that noise from the coil, transformer, and the like is suppressed and higher efficiency is realized.