An electronic device, comprising: a battery (189, 220); a power management module (188, 210) electrically connected to the battery (189, 220) and configured to manage charging or discharging of the battery (189, 220), wherein the power management module (188, 210) includes: a charging circuit including a plurality of switches, a capacitor, and an inductor, and wherein the power management module (188, 210) is further configured to: identify an electrical connection between the charging circuit and an external power supply device, receive power from the external power supply device, determine a type of the external power supply device, control the charging circuit to operate in a first mode in which the plurality of switches are controlled such that the charging circuit has a fixed voltage conversion ratio due to a resonance of the capacitor and the inductor, to charge the battery (189, 220), when the type of the external power supply device is a first type, and control the charging circuit to operate in a second mode in which the plurality of switches are controlled such that a voltage conversion ratio changes in response to a state of charge of the battery (189, 220), to charge the battery (189, 220), when the type of the external power supply device is a second type. a battery (189, 220); a power management module (188, 210) electrically connected to the battery (189, 220) and configured to manage charging or discharging of the battery (189, 220), wherein the power management module (188, 210) includes: a charging circuit including a plurality of switches, a capacitor, and an inductor, and a charging circuit including a plurality of switches, a capacitor, and an inductor, and wherein the power management module (188, 210) is further configured to: identify an electrical connection between the charging circuit and an external power supply device, receive power from the external power supply device, determine a type of the external power supply device, control the charging circuit to operate in a first mode in which the plurality of switches are controlled such that the charging circuit has a fixed voltage conversion ratio due to a resonance of the capacitor and the inductor, to charge the battery (189, 220), when the type of the external power supply device is a first type, and control the charging circuit to operate in a second mode in which the plurality of switches are controlled such that a voltage conversion ratio changes in response to a state of charge of the battery (189, 220), to charge the battery (189, 220), when the type of the external power supply device is a second type. identify an electrical connection between the charging circuit and an external power supply device, receive power from the external power supply device, determine a type of the external power supply device, control the charging circuit to operate in a first mode in which the plurality of switches are controlled such that the charging circuit has a fixed voltage conversion ratio due to a resonance of the capacitor and the inductor, to charge the battery (189, 220), when the type of the external power supply device is a first type, and control the charging circuit to operate in a second mode in which the plurality of switches are controlled such that a voltage conversion ratio changes in response to a state of charge of the battery (189, 220), to charge the battery (189, 220), when the type of the external power supply device is a second type.