A charging circuit for charging a battery of an electronic device, the charging circuit comprising: a first switching element having one side connected to an interface into which external power is input; a second switching element having one side serially connected to another side of the first switching element; a third switching element having one side connected to another side of the second switching element; a fourth switching element having one side serially connected to another side of the third switching element; a flying capacitor located between the other side of the first switching element and the other side of the third switching element; an inductor having a first side connected to a node between the second switching element and the third switching element; a control circuit configured to control a charging function of the battery by controlling on/off of the first switching element, the second switching element, the third switching element and the fourth switching element; a battery switching element located between a second side of the inductor and the battery, wherein the control circuit is configured to control the charging function or an On The Go, OTG, function by further controlling the battery switching element; a first modulation circuit configured to control on/off of the first switching element and the fourth switching element; and a second modulation circuit configured to control on/off of the second switching element and the third switching element; wherein the control circuit is further configured to: control a voltage applied to the flying capacitor such that the voltage applied to the flying capacitor is maintained at 1/2 of an input voltage inputted to the first switching element; and control a voltage applied to the first side of the inductor such that the voltage applied to the indcutor is maintained at 1/2 of the input voltage. a first switching element having one side connected to an interface into which external power is input; a second switching element having one side serially connected to another side of the first switching element; a third switching element having one side connected to another side of the second switching element; a fourth switching element having one side serially connected to another side of the third switching element; a flying capacitor located between the other side of the first switching element and the other side of the third switching element; an inductor having a first side connected to a node between the second switching element and the third switching element; a control circuit configured to control a charging function of the battery by controlling on/off of the first switching element, the second switching element, the third switching element and the fourth switching element; a battery switching element located between a second side of the inductor and the battery, wherein the control circuit is configured to control the charging function or an On The Go, OTG, function by further controlling the battery switching element; a first modulation circuit configured to control on/off of the first switching element and the fourth switching element; and a second modulation circuit configured to control on/off of the second switching element and the third switching element; wherein the control circuit is further configured to: control a voltage applied to the flying capacitor such that the voltage applied to the flying capacitor is maintained at 1/2 of an input voltage inputted to the first switching element; and control a voltage applied to the first side of the inductor such that the voltage applied to the indcutor is maintained at 1/2 of the input voltage. control a voltage applied to the flying capacitor such that the voltage applied to the flying capacitor is maintained at 1/2 of an input voltage inputted to the first switching element; and control a voltage applied to the first side of the inductor such that the voltage applied to the indcutor is maintained at 1/2 of the input voltage.