Provided is a package structure of a semiconductor device, capable of further reducing a planar size. The input PFC circuit is phase and frequency controlled by the input AC power line which allows the input and output to be operating at completely different frequencies. The voltage detection unit is used to detect the high voltage.