Abstract: A power supply system includes: a power supply terminal, for receiving first power from an external power source or outputting second power to a load; at least one battery, for receiving and storing first power in a charging mode, and outputting second power to the power supply terminal in a discharging mode; a charger, enabled in the charging mode for charging the battery by first power; a switch, turned on in the discharging mode for transmitting second power to the power supply terminal; a current detection circuit, for detecting a current of the power supply terminal to determine whether the power supply system is operated in the charging or discharging mode. The current detection circuit controls the charger to be enabled in the charging mode and disabled in the discharging mode, and controls the switch to be turned on in the discharging mode and turned off in the charging mode.
Abstract: A voltage converter for determining whether input power is DC power or AC power includes a power input terminal, an AC to DC converter, a switch and a DC detector. The AC to DC converter converts AC power into a DC output voltage when the input power is AC power. The AC to DC converter includes a brown-out detector, for disabling the AC to DC converter when a voltage of the input power is smaller than a predefined voltage. The switch passes DC power when the input power is DC power. The DC detector determines that the input power is DC power and turns on the switch when the voltage of the input power is within a predefined voltage range, and determines that the input power is AC power and turns off the switch when the voltage of the input power is not within the predefined voltage range.