Switching Controllers Current-Mode PWM Controllers with an Error Amplifier for Isolated/Nonisolated Power Supply