Electronic device

By designing system circuits, power connectors, path selection circuits and series circuits in electronic devices, switching between multiple charging and discharging modes is achieved, solving the problems of charging and discharging complexity and power imbalance in multi-battery architectures, and improving charging efficiency. and discharge efficiency.

CN118589622APending Publication Date: 2024-09-03GETAC TECH CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310939944.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-01
Filing Date
2023-07-28
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The charging and discharging circuits of existing electronic devices with multi-battery architecture are complex and difficult to adapt to multiple charging and discharging modes. Unbalanced power may lead to delayed discharge or inefficient charging and discharging.

Method used

An electronic device is designed, including a system circuit, a power connector, a path selection circuit, multiple battery connectors and a series circuit. Through the control circuit, it realizes switching of multiple charge and discharge modes, including cycle charging, parallel charging, cycle discharge, Parallel-discharge and other modes use the combination of discharge path and charging path to ensure the charging and discharging efficiency of the battery.

Benefits of technology

It realizes flexible switching of multiple charging and discharging modes, simplifies the circuit architecture, avoids delayed discharge caused by imbalance of battery power, and improves the charging and discharging efficiency of the battery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118589622A
    Figure CN118589622A
Patent Text Reader

Abstract

An electronic device includes a system circuit, a power connector, a path selection circuit, a plurality of battery connectors, a plurality of series circuits, and a control circuit. The power connector is used for receiving power. The path selection circuit is coupled to the system circuit and the power connector. The battery connectors are respectively suitable for coupling a plurality of batteries. The series circuits respectively correspond to the battery connectors, and each series circuit is connected between the corresponding battery connector and the path selection circuit. Each series circuit includes a charge switch, a battery switch, and a discharge path. In the cyclic discharge mode, the control circuit controls the series circuits to turn on the battery switch in turn and controls the path selection circuit to turn on the series circuits and the system circuit. And the other battery switches are disconnected from all the charging switches.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a charge and discharge technology, and in particular to an electronic device having a charge and discharge circuit applicable to multiple charge and discharge modes. Background Art

[0002] Many electronic devices today use batteries. As electronic devices continue to innovate, their functions are increased while their performance is enhanced. However, it is foreseeable that the power consumption of electronic devices will also increase accordingly.

[0003] In order to provide sufficient power, portable electronic devices usually use a multi-battery architecture. In a multi-battery architecture, the charging and discharging of these batteries are achieved through different paths. Therefore, the multi-battery architecture uses many components and the circuit is also quite complicated. Summary of the invention

[0004] In one embodiment, an electronic device includes: a system circuit, a power connector, a path selection circuit, a plurality of battery connectors, a plurality of series circuits, and a control circuit. The power connector is used to receive power. The path selection circuit couples the system circuit and the power connector. The battery connectors are respectively suitable for coupling a plurality of batteries. The series circuits correspond to the battery connectors respectively. Each series circuit is connected between the corresponding battery connector and the path selection circuit. Each series circuit includes: a charging switch, a battery switch, and a discharge path. The charging switch and the battery switch are connected in series between the path selection circuit and the corresponding battery connector, and the discharge path is connected across the two ends of the charging switch. The control circuit couples the path selection circuit and each series circuit, and is used to control the conduction state of the path selection circuit and control the charging switch and the battery switch of each series circuit. Wherein, in the cycle mode, the control circuit controls the plurality of series circuits to turn on the battery switch in turn and controls the path selection circuit to turn on the series circuit and the system circuit. The remaining battery switches and the charging switches of all series circuits remain disconnected.

[0005] In some embodiments, in the cycling mode, the control circuit further controls the path selection circuit to conduct the power connector and the system circuit.

[0006] In some embodiments, in the parallel mode, the control circuit controls the battery switch of each series circuit to be turned on, controls the charging switch of each series circuit to be turned off, and controls the path selection circuit to turn on the multiple series circuits and the system circuit.

[0007] In some embodiments, before performing the control of the parallel mode, the control circuit first performs the control of the cyclic mode, and then when the power levels of the multiple batteries meet the specified power levels, the control circuit performs the control of the parallel mode again.

[0008] In some embodiments, in the parallel mode, the control circuit further controls the path selection circuit to connect the power connector and the system circuit.

[0009] In some embodiments, in the cycle charging mode, the control circuit controls the plurality of series circuits to turn on the charging switch and the battery switch in turn, and controls the path selection circuit to turn on the plurality of series circuits and the external power.

[0010] In some embodiments, in the parallel charging mode, the control circuit turns on the charging switch and the battery switch of each series circuit, and controls the path selection circuit to turn on the multiple series circuits and the external power.

[0011] In some embodiments, the multiple batteries have different capacities. Before performing the parallel charging mode control, the control circuit first performs a cycle charging mode control, and then when the multiple batteries have the same capacities, the control circuit performs the parallel charging mode control again. In addition, in the cycle charging mode, the control circuit controls the multiple series circuits to alternately turn on the charging switch and the battery switch and controls the path selection circuit to turn on the multiple series circuits and the external power.

[0012] In some embodiments, the electronic device further includes: a USB connector. The USB connector is connected to the path selection circuit and is suitable for receiving another external power.

[0013] In some embodiments, the discharge path is a discharge switch connected across two terminals of the charge switch, and the discharge switch is controlled by a control circuit.

[0014] In some embodiments, the discharge switch is a metal oxide semi-conductor field effect transistor device, a bipolar junction transistor or a relay.

[0015] In some embodiments, the discharge switch is a MOSFET diode, wherein the MOSFET diode is connected across two terminals of the charge switch with the reverse end thereof adjacent to the path selection circuit.

[0016] In some embodiments, the discharge path is a unidirectional control unit, and the unidirectional control unit is connected across two terminals of the charging switch in a direction in which the reverse end is adjacent to the path selection circuit.

[0017] In some embodiments, the unidirectional control unit is a diode.

[0018] In some embodiments, the control circuit includes a controller. The controller is coupled to the path selection circuit and electrically connected to each series circuit. In addition, the controller is used to control the conduction state of the path selection circuit and control the charging switch and the battery switch of each series circuit.

[0019] In some embodiments, the path selection circuit includes a charger, the power connector is coupled to the system circuit via the charger, and the system circuit is coupled to each series circuit via the charger.

[0020] In some embodiments, the path selection circuit includes a charger, two transistor switches, and a unidirectional control unit. The charger is coupled to the control end of the two transistor switches. The first end of the two transistor switches is coupled to the first end of each series circuit and is coupled to the system circuit via the unidirectional control unit. The second end of the two transistor switches is respectively coupled to the wiring connecting the power connector and the system circuit and the ground.

[0021] In summary, the electronic device of any embodiment can achieve charging and discharging functions by using most of the common paths, and can be applicable to multiple charging and discharging modes, so as to select a charging and discharging mode to be used according to the use requirements or switch to a suitable charging and discharging mode to be used in response to the change of the use environment. In addition, the electronic device can simplify the circuit architecture of the charging and discharging circuit of multiple batteries. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a functional block diagram of an electronic device according to some embodiments;

[0023] Figure 2 for Figure 1 Equivalent circuit diagrams of some embodiments of series circuits;

[0024] Figure 3 for Figure 1 Equivalent circuit diagrams of other embodiments of the series circuit;

[0025] Figure 4 for Figure 1 A schematic circuit diagram of some embodiments of a switch combination;

[0026] Figure 5 for Figure 1 A schematic circuit diagram of an embodiment of an electronic device;

[0027] Figure 6 for Figure 1 A schematic circuit diagram of another embodiment of the electronic device;

[0028] Figure 7 for Figure 1 A schematic circuit diagram of another embodiment of the electronic device;

[0029] Figure 8 for Figure 7 A signal timing diagram of an exemplary electronic device.

[0030]

Explanation of symbols

[0031] 10: Electronic devices

[0032] 110: System Circuit

[0033] 120: Power connector

[0034] 130:Charge and discharge circuit

[0035] 131: Path selection circuit

[0036] 1311: Charger

[0037] 1313:OTG output circuit

[0038] 133: Series Circuit

[0039] 133A: Series Circuit

[0040] 133B: Series Circuit

[0041] 140:Battery connector

[0042] 141:Battery connector

[0043] 143:Battery connector

[0044] 150: USB connector

[0045] 151: Input / Output Switcher

[0046] 153:USB controller

[0047] 160: Control circuit

[0048] 161: Controller

[0049] 163:Signal conversion circuit

[0050] 164: Switch combination

[0051] 170: Power detection circuit

[0052] 20: Power conversion device

[0053] 210: Power adapter

[0054] 220: Charging base

[0055] 30: Electronic devices

[0056] 310: Transmission Line

[0057] AC: Power supply

[0058] Bat:Battery

[0059] BatA:Battery

[0060] BatB:Battery

[0061] CK: Clock signal

[0062] D1: MOSFET diode

[0063] D2: MOSFET diode

[0064] Di: One-way control unit

[0065] Dc: One-way control unit

[0066] Dp: One-way control unit

[0067] DT:Battery information

[0068] GND: Ground

[0069] Icc:Electricity

[0070] Idc: Electricity

[0071] IPO: Electricity

[0072] L1~L3: Inductor

[0073] M1~M14: MOSFET components

[0074] M15~M18: Transistor switch

[0075] M25~M26: Transistor switch

[0076] M35~M37: Transistor switch

[0077] N11: First End

[0078] N12: Second end

[0079] N21~N23: Input terminal

[0080] N31~N32: Output terminal

[0081] N4: contact

[0082] N5: contact

[0083] NT0~NT2: Inverter

[0084] PTd: discharge path

[0085] R1: voltage divider resistor

[0086] R2: voltage divider resistor

[0087] SC1: Control signal

[0088] SC2: Control signal

[0089] SCe: Control signal

[0090] SCo: Control signal

[0091] SD: switch signal

[0092] SD1: switch signal

[0093] SD2: switch signal

[0094] SM0~SM2: switch signal

[0095] STa: Detection signal

[0096] STb: Detection signal

[0097] STd: Detection signal

[0098] STu: Detection Signal

[0099] SW1~SW3: Control switch

[0100] SWb:Battery switch

[0101] SWc: Charging switch

[0102] SWd: discharge switch

[0103] SWg: Grounding switch

[0104] t1~t24: time point

[0105] Tc1~Tc4: Charging period

[0106] Td1~Td3: Discharge period

[0107] Vpo: voltage signal

[0108] Vta: battery voltage

[0109] Vtb:Battery voltage

[0110] Vtp: Detection voltage DETAILED DESCRIPTION

[0111] Reference Figure 1 An electronic device 10 includes a system circuit 110, a power connector 120, a charge and discharge circuit 130, a plurality of battery connectors 140, and a control circuit 160. The charge and discharge circuit 130 couples the system circuit 110, the power connector 120, and the battery connector 140.

[0112] The power connector 120 is used to receive power Ipo (also called external power Ipo) from an external power source AC. Each battery connector 140 is suitable for coupling a battery Bat. Each battery Bat stores an amount of electricity. The charge-discharge circuit 130 can charge the battery Bat coupled to it with power Ipo through each battery connector 140 (i.e., increase the amount of electricity stored in the battery Bat) and receive power Idc provided by the battery Bat coupled to it based on the stored amount of electricity through each battery connector 140.

[0113] The control circuit 160 can control the conduction path of the charge and discharge circuit 130, so that the charge and discharge circuit 130 can supply power to the system circuit 110 with the power Ipo from the power connector 120 and / or the power Idc from the battery connector 140, and charge the low-power battery Bat with the received power Ipo via the corresponding battery connector 140. The power Ipo used for charging can be composed of the power Ipo from the power connector 120, or the power Idc from the battery connector 140 coupled to the high-power battery Bat, or the power Ipo from the power connector 120 and the power Idc from the battery connector 140 coupled to the high-power battery Bat.

[0114] Here, the charge and discharge circuit 130 includes a path selection circuit 131 and a plurality of series circuits 133. The series circuits 133 correspond one-to-one to the battery connectors 140. Each series circuit 133 is coupled between the corresponding battery connector 140 and the path selection circuit 131. The path selection circuit 131 can selectively provide a conduction path between the power connector 120 and the system circuit 110, a conduction path between the system circuit 110 and each series circuit 133, and a conduction path between the power connector 120 and each series circuit 133.

[0115] Reference Figure 2 and Figure 3 Each series circuit 133 includes a battery switch SWb, a charging switch SWc, and a discharge path PTd. The charging switch SWc and the battery switch SWb are connected in series between two ends (hereinafter referred to as the first end N11 and the second end N12, respectively) of the series circuit 133. The first end N11 of the series circuit 133 is externally coupled to the path selection circuit 131, and the second end N12 of the series circuit 133 is externally coupled to the corresponding battery connector 140. In other words, the charging switch SWc and the battery switch SWb are sequentially connected in series between the path selection circuit 131 and the corresponding battery connector 140. The discharge path PTd is connected across the two ends of the charging switch SWc.

[0116] Reference Figures 1 to 3The control circuit 160 is coupled to the path selection circuit 131 and each series circuit 133, and is used to control the conduction path of the path selection circuit 131 and control the switching (i.e., on and off) of the charging switch SWc and the battery switch SWb of each series circuit 133.

[0117] In some embodiments, the discharge path PTd only allows the power Idc discharged by the corresponding battery Bat to pass through.

[0118] In some embodiments, the discharge path PTd may be a unidirectional control unit Di or a discharge switch SWd. The “on” of the discharge path PTd may mean that the discharge switch SWd responds to the switch signal SD to electrically connect its two ends and allow the power Idc to pass through, or the unidirectional control unit Di responds to the forward bias to electrically connect its two ends and allow the power Idc to pass through. Conversely, the “off” of the discharge path PTd may mean that the discharge switch SWd responds to the switch signal SD to electrically disconnect its two ends and not allow the power Idc to pass through, or the unidirectional control unit Di responds to the reverse bias to electrically disconnect its two ends and not allow the power Idc to pass through.

[0119] In some embodiments, reference Figure 1 and Figure 2 When the discharge path PTd is a unidirectional control unit Di, the unidirectional control unit Di is connected across the two ends of the charging switch SWc in a direction where the reverse end is adjacent to the path selection circuit 131.

[0120] In some examples, the unidirectional control unit Di may be a diode, such as Figure 2 Here, the forward end of the diode is coupled to the first end of the charging switch SWc (ie, coupled to one end of the battery switch SWb), and the reverse end of the diode is coupled to the second end of the charging switch SWc (ie, coupled to one end of the path selection circuit 131).

[0121] In other embodiments, referring to Figure 1 and Figure 3 When the discharge path PTd is the discharge switch SWd, the discharge switch SWd is connected across two ends of the charging switch SWc, and the discharge switch SWd is controlled by the control circuit 160.

[0122] In any charging mode (eg, the cyclic charging mode or the parallel charging mode), the control circuit 160 controls the discharge switch SWd to remain turned off.

[0123] In any discharge mode (eg, the cycle discharge mode or the parallel discharge mode, etc.), the control circuit 160 controls the discharge switch SWd to remain turned on.

[0124] In some examples, the discharge switch SWd may be a MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor), a BJT (bipolar junction transistor), or a relay, etc. Moreover, the discharge switch SWd is controlled by the control circuit 160 .

[0125] Here, two ends of the MOSFET element are respectively coupled to two ends of the charging switch SWc, and a control end of the MOSFET element is coupled to the control circuit 160. When the corresponding battery Bat is to perform a charge / discharge operation (e.g., discharge or charge), the control end of the MOSFET element receives a switch signal SD from the control circuit 160, so that the MOSFET element is turned on or off according to the switch signal SD, thereby providing a discharge bypass that bypasses the charging switch SWc when the battery Bat is discharging, and disconnecting the discharge bypass when the battery Bat is not discharging.

[0126] In some embodiments, the discharge control pin of the controller 161 can be directly coupled to the control end of the discharge switch SWd or coupled via the inverter NT0. The controller 161 outputs a switch signal SD with a corresponding level in response to the operation to be performed by the charge-discharge circuit 130 (e.g., battery Bat discharge or battery Bat charge, etc.) to control the operation of the discharge switch SWd.

[0127] In some embodiments, the discharge switch SWd can be designed to be normally turned on. When it is necessary to limit the discharge of the battery Bat, the controller 161 switches the level of the switch signal SD and provides it to (or provides it to) the discharge switch SWd via the inverter NT0 to turn off the discharge switch SWd (i.e., the discharge switch SWd disconnects its two terminals in response to the discharge switch SWd).

[0128] In other embodiments, the discharge switch SWd may also be designed to be normally disconnected. When the battery Bat is to be discharged, the controller 161 switches the level of the switch signal SD and provides it to (or provides it to) the discharge switch SWd via the inverter NT0 to turn on the discharge switch SWd (i.e., the discharge switch SWd conducts its two terminals in response to the discharge switch SWd).

[0129] In some embodiments, the MOSFET element can be configured as a MOSFET diode D1 (or D2) in a diode connected manner, such as Figures 5 to 7 As shown. Among them, reference Figures 5 to 7, the forward end of the MOSFET diode D1 / D2 is coupled to the first end of the charging switch SWc (i.e., one end coupled to the battery switch SWb), and the reverse end of the MOSFET diode D1 / D2 is coupled to the second end of the charging switch SWc (i.e., one end coupled to the path selection circuit 131). In other words, the MOSFET diode D1 / D2 is connected across the two ends of the charging switch SWc in a direction where the reverse end is adjacent to the path selection circuit 131. The control end of the MOSFET diode D1 / D2 is coupled to the control circuit 160.

[0130] In some examples, each of the aforementioned MOSFET elements may be an N-type metal oxide semiconductor field effect transistor (NMOSFET) or a P-type metal oxide semiconductor field effect transistor (PMOSFET).

[0131] In some embodiments, reference Figures 5 to 7 In addition to coupling the controller 161, the control end of each MOSFET diode D1 / D2 (i.e., the discharge switch SWd) is also coupled to the ground via the ground switch SWg, and the ground switch SWg is controlled by the detection voltage Vtp of the external power Ipo, such as Figures 5 to 7 shown.

[0132] In some embodiments, one end of the ground switch SWg may be coupled to the control end of the discharge switch SWd directly or via the inverter NT1 / NT2 , and the other end of the ground switch SWg is coupled to the ground.

[0133] For example, refer to Figure 3 , Figure 5 , Figure 6 and Figure 7, taking the discharge switch SWd as MOSFET diodes D1 and D2 implemented by NMOSFET and normally turned on as an example, the controller 161 normally outputs low-level switch signals SD1 and SD2, which are inverted into high-level signals by inverters NT1 / NT2 and input to MOSFET diodes D1 and D2, so that MOSFET diodes D1 and D2 are normally turned on. In the cycle mode, battery BatA is discharged first, while the remaining battery BatB is not discharged; at this time, the switch signal SD2 output by the controller 161 is switched from a low level to a high level, so that the MOSFET diode D2 is turned off, and the MOSFET diode D1 remains turned on because the switch signal SD1 output by the controller 161 is maintained at a low level, so that the battery BatA is electrically connected to the path selection circuit 131 through the MOSFET element M2 and the MOSFET diode D1. After the battery BatA completes discharging, the battery BatB is switched to discharge, while the battery BatA is not discharged; at this time, the switch signal SD1 output by the controller 161 is switched from a low level to a high level, and the switch signal SD2 output by the controller 161 is switched from a high level to a low level, so that the switch signal SD1 output by the controller 161 is switched from a low level to a high level, so that the MOSFET diode D1 is disconnected and the MOSFET diode D2 is turned on, thereby making the battery BatB electrically connected to the path selection circuit 131 through the MOSFET element M4 and the MOSFET diode D2.

[0134] It should be clear that if the discharge switch SWd is a PMOSFET, under the same circuit architecture and operation mode, the relationship between the switching of the PMOSFET and the level of the switch signal SD is opposite to that of the NMOSFET.

[0135] In some embodiments, the charge and discharge circuit 130 can be applicable to a variety of charge and discharge control modes. Among them, the charge and discharge mode can be, for example, a cyclic discharge mode, a parallel discharge mode, a cyclic charging mode, or a parallel charging mode. Here, the control circuit 160 can provide path control of the aforementioned single or multiple charge and discharge modes, so that the conduction path of the charge and discharge circuit 130 is controlled corresponding to the current charge and discharge mode. In other words, corresponding to the number of path controls of the charge and discharge modes that the control circuit 160 can provide, the charge and discharge circuit 130 can have one or more charge and discharge control modes. For example, if the control circuit 160 can provide path control of any of the aforementioned charge and discharge modes, the charge and discharge circuit 130 can have one charge and discharge control mode. If the control circuit 160 can provide path control of any two of the aforementioned charge and discharge modes, the charge and discharge circuit 130 can have two charge and discharge control modes, and be set to switch between these two charge and discharge control modes.

[0136] In the cycling mode, the control circuit 160 controls the battery switch SWb of one of the plurality of series circuits 133 to be turned on, controls the battery switches SWb of the other series circuits 133 (i.e., the rest of the plurality of series circuits 133) and the charging switches SWc of all the series circuits 133 to be turned off, and controls the path selection circuit 131 to turn on the series circuits 133 and the system circuit 110. In other words, the control circuit 160 controls the series circuits 133 to turn on their battery switches SWb in turn, and except for the battery switch SWb that is currently turned on, the remaining battery switches SWb and all the charging switches SWc remain turned off.

[0137] Specifically, in the circulating mode, the path selection circuit 131 keeps the series circuit 133 and the system circuit 110 turned on, and the battery switches SWb of the multiple series circuits 133 are turned on one by one, so that the turned-on battery switches SWb and the discharge path PTd form an electrical trace that directly connects the battery connector 140 and the system circuit 110, so that the multiple batteries Bat can discharge power Idc to the system circuit 110 through their corresponding battery connectors 140 and the electrical traces when forming electrical traces in their corresponding series circuits 133 one by one.

[0138] In some embodiments, in the cycle mode, the discharge order of the multiple batteries Bat may follow the battery ranking, power level or preset priority.

[0139] For example, refer to Figure 5 , taking two batteries BatA and BatB and the discharge sequence following the battery sequence as an example, here, in each series circuit 133A / 133B, the charging switch SWc and the battery switch SWb are MOSFET elements M1, M2 / M3, M4. Here, the battery BatA is coupled to the battery connector 141, and the series circuit 133A is coupled between the battery connector 141 and the path selection circuit 131. The battery BatB is coupled to the battery connector 143, and the series circuit 133B is coupled between the battery connector 143 and the path selection circuit 131.

[0140] In the cycle mode, battery BatA is discharged first, and during the discharge of battery BatA, battery BatB is inactive (ie, neither discharged nor charged). After battery BatA is discharged, the charge-discharge circuit 130 switches to discharge battery BatB, while battery BatA is inactive.

[0141] In other words, the discharge process first includes a stage where the battery BatA is discharged and the battery BatB is not activated. In the stage where the battery BatA is discharged and the battery BatB is not activated, under the control of the control circuit 160, the MOSFET element M2 (i.e., the battery switch SWb of the series circuit 133A corresponding to the battery BatA) is in the on state, and the MOSFET element M1 (i.e., the charging switch SWc of the series circuit 133A corresponding to the battery BatA) and the MOSFET elements M3 and M4 (i.e., the battery switch SWb and the charging switch SWc of the series circuit 133B corresponding to the battery BatB) are in the off state. At this time, in the series circuit 133A, the turned-on MOSFET element M2 and the discharge path PTd form an electrical trace connected between the corresponding battery connector 141 and the path selection circuit 131 (i.e., connecting the two ends of the series circuit 133A), and the path selection circuit 131 further conducts the first end N11 of the series circuit 133A to the system circuit 110 (i.e., conducting the third end and the second end of the path selection circuit 131), so that the battery BatA releases the power Idc according to its power, and this power Idc is sequentially provided to the system circuit 110 via the corresponding battery connector 141, the electrical trace connecting the two ends of the series circuit 133A, and the path selection circuit 131.

[0142] After the battery BatA is discharged, the discharge process is switched from the stage where the battery BatA is discharged and the battery BatB is not operated to the stage where the battery BatB is discharged and the battery BatA is not operated. In the stage where the battery BatB is discharged and the battery BatA is not operated, under the control of the control circuit 160, the MOSFET element M4 corresponding to the battery BatB is in the on state, while the MOSFET element M3 corresponding to the battery BatB and the MOSFET elements M1 and M2 corresponding to the battery BatA are in the off state. At this time, in the series circuit 133B, the MOSFET element M4 and the discharge path PTd form an electrical trace connected between the corresponding battery connector 143 and the path selection circuit 131 (i.e., connecting the two ends of the series circuit 133B), and the path selection circuit 131 further conducts the first end N11 of the series circuit 133B to the system circuit 110 (i.e., conducting the third end and the second end of the path selection circuit 131), so that the battery BatB releases the power Idc according to its power, and this power Idc is provided to the system circuit 110 in sequence via the corresponding battery connector 141, the electrical trace connecting the two ends of the series circuit 133B, and the path selection circuit 131.

[0143] In the parallel mode, the control circuit 160 controls the battery switches SWb of all the series circuits 133 to be turned on, controls the charging switches SWc of all the series circuits 133 to be turned off, and controls the path selection circuit 131 to connect the series circuits 133 and the system circuit 110. In other words, the control circuit 160 controls the path selection circuit 131 to connect the discharge path and the system circuit 110.

[0144] Specifically, in the parallel mode, the path selection circuit 131 keeps the series circuit 133 and the system circuit 110 turned on, and the battery switches SWb of all the series circuits 133 are turned on together to form an electrical trace that directly connects the battery connector 140 and the system circuit 110, so that all the batteries Bat can discharge power Idc to the system circuit 110 through their corresponding battery connectors 140 and the electrical traces when their corresponding electrical traces are formed.

[0145] In some embodiments, the control circuit 160 can directly control the charge-discharge circuit 130 to enter the parallel discharge mode, regardless of whether the amount of electricity stored in these batteries Bat is the same, so that all the batteries Bat are discharged together.

[0146] In other embodiments, the control circuit 160 may first control the charge and discharge circuit 130 to enter the circulation mode so that all the batteries Bat meet the specified power, and then control the charge and discharge circuit 130 to enter the parallel mode so that all the batteries Bat are discharged together. In this way, delayed discharge caused by the protection mechanism inside the battery Bat can be avoided. The specified power can be the lowest power among the power stored in all the batteries Bat, or a pre-set and stored power. "Meet" means that the peak power of the battery Bat or the average power within a given time is the same as the specified power, or the difference with the specified power is 0 or less than a given value that is not 0. In some embodiments, the specified power may be the power when the charging switch in the battery Bat is released. The charging switch in the battery Bat can generally be a complementary field effect transistor (CFET). In one example, the specified power is generally less than 95%.

[0147] In some embodiments, when the power (i.e., the remaining power) stored in these batteries Bat is inconsistent, the control circuit 160 can first control the charge-discharge circuit 130 to enter the cycle mode, so that the battery Bat with a high power (i.e., its power is higher than the battery Bat with the lowest power) is discharged in sequence until its power is substantially the same as the battery Bat with the lowest power. When the power of all batteries Bat is substantially the same, the control circuit 160 controls the charge-discharge circuit 130 to enter the parallel discharge mode, so that all batteries Bat discharge the system circuit 110 together.

[0148] In the cycle charging mode, the control circuit 160 controls the charging switch SWc and the battery switch SWb of one of the plurality of series circuits 133 to be turned on, controls the charging switch SWc and the battery switch SWb of the other series circuits 133 (i.e., the remaining of the plurality of series circuits 133) to be turned off, and controls the path selection circuit 131 to connect the series circuit 133 with the external power Ipo. For example, when the power Ipo comes from the power connector 120, the path selection circuit 131 connects the series circuit 133 with the power connector 120.

[0149] Specifically, in the cycle charging mode, the path selection circuit 131 keeps the series circuit 133 and the external power Ipo turned on, and the multiple series circuits 133 turn on their charging switches SWc and battery switches SWb one by one, so that the turned-on battery switches SWb and the turned-on charging switches SWc form an electrical route that directly connects the battery connector 140 and the external power Ipo, so that the external power Ipo charges the multiple batteries Bat one by one.

[0150] In some embodiments, in the cycle charging mode, the charging order of the multiple batteries Bat may be based on battery ranking, power level, or a preset priority.

[0151] For example, refer to Figure 3 and Figure 5 , as the previous example, take two batteries BatA and BatB and the charging sequence follows the battery sequence. Here, in each series circuit 133A / 133B, the charging switch SWc and the battery switch SWb are MOSFET elements M1, M2 / M3, M4. In the cycle charging mode, the battery BatA will be charged first (that is, its corresponding charging switch SWc and battery switch SWb are turned on), and during the charging process of the battery BatA, the battery BatB will not be activated (that is, it will not be discharged or charged, in other words, its corresponding charging switch SWc and battery switch SWb are disconnected). After the battery BatA is charged, the charging and discharging circuit 130 switches to charging the battery BatB, and the battery BatA is not activated. The following is an example of the external power Ipo coming from the power connector 120.

[0152] In other words, the charging process begins with a stage where the battery BatA is charged and the battery BatB is not activated. In the stage where the battery BatA is charged and the battery BatB is not activated, under the control of the control circuit 160, the MOSFET elements M1 and M2 (i.e., the battery switch SWb and the charging switch SWc of the series circuit 133A corresponding to the battery BatA) are in the on state, and the MOSFET elements M3 and M4 (i.e., the battery switch SWb and the charging switch SWc of the series circuit 133B corresponding to the battery BatB) are in the off state. At this time, in the series circuit 133A, the turned-on MOSFET elements M1 and M2 form an electrical trace connected between the corresponding battery connector 141 and the path selection circuit 131 (i.e., connecting the two ends of the series circuit 133A), and the path selection circuit 131 further turns on the third end of the path selection circuit 131 (i.e., the first end N11 coupled to the series circuit 133A) to the first end (i.e., one end coupled to the power connector 120), so that the external power Ipo is sequentially provided to the battery BatA via the power connector 120, the path selection circuit 131, the electrical trace connecting the two ends of the series circuit 133A and the corresponding battery connector 141, and then stored in the battery BatA (i.e., charged).

[0153] After the battery BatA is fully charged, the charging procedure is switched from the stage where the battery BatA is charged and the battery BatB is not activated to the stage where the battery BatB is charged and the battery BatA is not activated. In the stage where the battery BatB is charged and the battery BatA is not activated, under the control of the control circuit 160, the MOSFET elements M3 and M4 are in the on state, and the MOSFET elements M1 and M2 are in the off state. At this time, in the series circuit 133B, the turned-on MOSFET elements M3 and M4 form an electrical trace connected between the corresponding battery connector 143 and the path selection circuit 131 (i.e., connecting the two ends of the series circuit 133B), and the path selection circuit 131 further conducts the third end of the path selection circuit 131 to the first end, so that the external power Ipo is sequentially provided to the battery BatA through the power connector 120, the path selection circuit 131, the electrical trace connecting the two ends of the series circuit 133B and the corresponding battery connector 141, and then stored in the battery BatA (i.e., charging).

[0154] In the parallel charging mode, the control circuit 160 controls the battery switches SWb and the charging switches SWc of all the series circuits 133 to be turned on, and controls the path selection circuit 131 to turn on the series circuits 133 and the external power Ipo. For example, when the external power Ipo comes from the power connector 120, the path selection circuit 131 turns on the series circuits 133 and the power connector 120.

[0155] Specifically, in the parallel charging mode, the path selection circuit 131 keeps the series circuit 133 and the external power Ipo turned on, and the battery switches SWb and the charging switches SWc of all the series circuits 133 are turned on together to form an electrical trace that directly connects the battery connector 140 and the external power Ipo, so that the external power Ipo can charge all batteries Bat via the electrical trace and the battery connector 140.

[0156] In some embodiments, the control circuit 160 can directly control the charge-discharge circuit 130 to enter the parallel charging mode, regardless of whether the amount of electricity stored in these batteries Bat is the same, so that all the batteries Bat are charged together.

[0157] In other embodiments, the control circuit 160 may first control the charge-discharge circuit 130 to enter the cycle charge mode so that all batteries Bat have substantially the same storage capacity, and then control the charge-discharge circuit 130 to enter the parallel charge mode so that all batteries Bat are charged together.

[0158] In some embodiments, when the power (i.e., the remaining power) stored in these batteries Bat is inconsistent, the control circuit 160 can first control the charge and discharge circuit 130 to enter the cycle charging mode, so that the battery Bat with low power (i.e., its power is lower than the battery Bat with the highest power) is charged in sequence until its power is substantially the same as the battery Bat with the highest power. When the power of all batteries Bat is substantially the same, the control circuit 160 controls the charge and discharge circuit 130 to enter the parallel charging mode, so that all batteries Bat are charged together. In some embodiments, in the charging mode of first cycle charging and then parallel charging, the control circuit 160 can first control the charge and discharge circuit 130 to charge the battery Bat with low power in sequence with the external power Ipo or the power Idc of the battery Bat with the highest power, and then control the charge and discharge circuit 130 to charge all batteries Bat with the external power Ipo at the same time after the power is substantially the same. Among them, if charging is performed with the external power Ipo, the control circuit 160 will control the path selection circuit 131 to conduct the series circuit 133 and the external power Ipo. If charging is performed with the external power Ipo, the control circuit 160 controls the path selection circuit 131 to keep the series circuit 133 disconnected from other circuits (ie, disconnecting the external power Ipo and the system circuit 110).

[0159] In some embodiments, reference Figure 1 The control circuit 160 includes a controller 161 , and the controller 161 is coupled to the path selection circuit 131 . Here, the controller 161 is used to control the conduction state of the path selection circuit 131 and the conduction state of each series circuit 133 .

[0160] In some embodiments, the control circuit 160 may further include a signal conversion circuit 163, and the signal conversion circuit 163 is coupled between the controller 161 and the series circuit 133. The signal conversion circuit 163 couples the control end of the charging switch SWc of each series circuit 133 and the control end of the battery switch SWb. Here, the control circuit 160 generates a control signal for controlling each series circuit 133 to perform a corresponding switch actuation according to the charge and discharge mode used, and then the signal conversion circuit 163 converts the control signals SC1 and SC2 into corresponding switch signals SM1 and SM2 and outputs them to the control end of the charging switch SWc of each series circuit 133 and the control end of the battery switch SWb, so that the control end of the charging switch SWc of each series circuit 133 and the control end of the battery switch SWb respond to the received switch signals SM1 and SM2 to be turned on or remain off.

[0161] In some embodiments, reference Figure 1 and Figure 4 The signal conversion circuit 163 includes a plurality of switch combinations 164 , and these switch combinations 164 correspond one-to-one to the series circuits 133 .

[0162] Each switch combination 164 is composed of a plurality of control switches SW1 to SW3. The first end of the control switch SW1 is coupled to the ground GND, and the second end of the control switch SW1 is coupled to the output end N31. The control end of the control switch SW1 is coupled to the input end N21. The first end of the control switch SW2 is coupled to the ground GND, and the second end of the control switch SW2 is coupled to the control end of the control switch SW3. The control end of the control switch SW2 is coupled to another input end N22. The first end of the control switch SW3 is coupled to the ground GND, and the second end of the control switch SW3 is coupled to another output end N32. Here, the output end N31 is coupled to the control end of the charging switch SWc of the corresponding series circuit 133, and the output end N32 is coupled to the control end of the battery switch SWb of the corresponding series circuit 133. The two input ends N21 and N22 are respectively coupled to the controller 161, and receive two control signals SC1 and SC2 from the controller 161 respectively.

[0163] Reference Figures 1 to 4When receiving control signals SC1 and SC2, control switch SW1 generates switch signal SM1 in response to control signal SC1, and control switch SW2 generates switch signal SM0 in response to control signal SC2. Control switch SW3 generates switch signal SM2 in response to switch signal SM0. Output terminal N31 outputs switch signal SM1 to the control terminal of charging switch SWc of corresponding series circuit 133, so that charging switch SWc switches in response to switch signal SM1. Output terminal N32 outputs switch signal SM2 to the control terminal of battery switch SWb of corresponding series circuit 133, so that battery switch SWb switches in response to switch signal SM2.

[0164] In some embodiments, the control switches SW1-SW3 may be MOSFET elements M9-M11 (or M12-M14), such as Figures 5 to 7 In some examples, each MOSFET element M9 / M10 / M11 / M12 / M13 / M14 may be an N-type metal oxide semiconductor field effect transistor (NMOSFET) or a P-type metal oxide semiconductor field effect transistor (PMOSFET).

[0165] In some embodiments, reference Figures 4 to 7 In addition to receiving the switch signal SM0 from the control switch SW2, the control switch SW3 is also coupled to the input terminal N23 and coupled to the forward terminals of a plurality of unidirectional control units Dc via the input terminal N23. The reverse terminals of these unidirectional control units Dc receive the detection voltage Vtp of the external power Ipo and the battery voltages Vta and Vtb one-to-one. Figures 5 to 7 At this time, the control switch SW3 generates the switch signal SM1 according to the switch signal SM0, the detection voltage Vtp and the battery voltages Vta and Vtb.

[0166] In some embodiments, the electronic device 10 may further include a power detection circuit 170, and the power detection circuit 170 is used to detect the received external power Ipo and generate a detection voltage Vtp accordingly. Figure 5 and Figure 6 shown.

[0167] In some examples, the unidirectional control unit Dc may be a diode, such as Figures 5 to 7 Here, the forward end of the diode is coupled to the detection voltage Vtp and one of the battery voltages Vta and Vtb. The reverse end of the diode is coupled to the input terminal N21.

[0168] For example, in the previous example, refer to Figure 5 and Figure 6Taking two batteries BatA and BatB as an example, the forward end of a diode (hereinafter referred to as the first diode) is coupled to the output end of the power detection circuit 170, and the reverse end of the first diode is coupled to the input terminal N21. Therefore, the input terminal N21 receives the detection voltage Vtp output by the power detection circuit 170 through the first diode. The forward end of another diode (hereinafter referred to as the second diode) is coupled to the battery connector 141, and the reverse end of the second diode is coupled to the input terminal N21. Therefore, the input terminal N21 receives the battery voltage Vta obtained through the battery connector 141 through the second diode. The forward end of another diode (hereinafter referred to as the third diode) is coupled to the battery connector 143, and the reverse end of the third diode is coupled to the input terminal N21. Therefore, the input terminal N21 receives the battery voltage Vtb obtained through the battery connector 143 through the third diode.

[0169] In some embodiments, the power detection circuit 170 may be a voltage-dividing resistor circuit. Specifically, the voltage-dividing resistor circuit is composed of two voltage-dividing resistors R1 and R2 connected in series between the power connector 120 and the ground, and the detection voltage Vtp is output from the junction between the two voltage-dividing resistors R1 and R2 (i.e., the output end of the power detection circuit 170).

[0170] In some embodiments, reference Figure 5 and Figure 6 , the path selection circuit 131 includes a charger 1311. The charger 1311 is coupled to the controller 161. The charger 1311 receives a control signal SCe from the controller 161, and provides a conduction path between the system circuit 110, the power connector 120, and each series circuit 133 according to the control signal SCe. In some embodiments, the charger 1311 can also be used to reduce the voltage of the power Ipo from the power connector 120, such as Figure 5 shown.

[0171] In some implementations, reference Figure 5 , the first end of the charger 1311 is coupled to the power connector 120. The second end of the charger 1311 is coupled to the system circuit 110 via the inductor L1. In other words, the first end of the inductor L1 is coupled to the second end of the charger 1311, and the second end of the inductor L1 is coupled to the system circuit 110. The third end of the charger 1311 is coupled to the first end N11 of each series circuit 133. In other words, each series circuit 133 is coupled between the third end of the charger 1311 and the corresponding battery connector 140. In some examples, the aforementioned power detection circuit 170 is coupled to the wiring between the power connector 120 and the first end of the charger 1311.

[0172] Here, the charger 1311 includes a step-down circuit and a plurality of transistor switches M15 and M18. The step-down circuit includes transistor switches M16 and M17. The transistor switches M15 and M16 are sequentially connected in series between the first terminal and the second terminal, and the transistor switch M17 is coupled between the second terminal and the ground. The transistor switch M18 is coupled between the third terminal and the fourth terminal. The transistor switch M18 is coupled to the second terminal of the inductor L1 and the node N4 of the system circuit 110.

[0173] In any charging mode (e.g., cyclic charging mode or parallel charging mode, etc.), the control signal SCe from the controller 161 enables the charger 1311, and then the charger 1311 turns on the transistor switches M15 and M18 and drives the transistor switches M16 and M17 to work. Specifically, the charger 1311 controls the switching of the transistor switches M16 and M17 in a PWM (Pulse Width Modulation) or PFM (Pulse Frequency Modulation) manner to adjust the voltage output by the transistor switches M16 and M17.

[0174] In any discharge mode (eg, the circulating discharge mode or the parallel discharge mode, etc.), the control signal SCe from the controller 161 enables the charger 1311, and then the charger 1311 turns on the transistor switch M18, but keeps the transistor switches M15-M17 turned off.

[0175] In some other embodiments, referring to Figure 6 , the path selection circuit 131 may further include a buck circuit. The buck circuit includes transistor switches M25 and M26. The power connector 120 is coupled to the system circuit 110. The first end of the transistor switch M25 is coupled to the first end of the transistor switch M26. The second end of the transistor switch M25 is coupled to the contact point N5 between the power connector 120 and the system circuit 110. The second end of the transistor switch M26 is grounded. The control ends of the transistor switches M25 and M26 are coupled to the charger 1311.

[0176] The first end of the transistor switch M25 and the first end of the transistor switch M26 are also coupled to the first end N11 of each series circuit 133 via the inductor L2. And the first end N11 of each series circuit 133 is also coupled to the system circuit 110 via the unidirectional control unit Dp. The forward end of the unidirectional control unit Dp is coupled to the first end N11 of each series circuit 133, and the reverse end of the unidirectional control unit Dp is coupled to the system circuit 110. In some examples, the unidirectional control unit Dp can be a diode, such as Figure 6 shown.

[0177] Here, the controller 161 generates a control signal SCe to enable the charger 1311. After being enabled, the charger 1311 drives the transistor switches M25 and M26 to work based on the charge and discharge mode used, for example, controlling the switching of the transistor switches M25 and M26 in a PWM or PFM manner to adjust the voltage output by the transistor switches M25 and M26.

[0178] In any charging mode (eg, the cycle charging mode or the parallel charging mode, etc.), the charger 1311 is enabled by the control signal SCe to control the transistor switches M25 and M26 to operate, so that the external power Ipo is provided to the series circuit 133 via the transistor switches M25 and M26.

[0179] In some embodiments, the charge-discharge mode may also be a mixed power cycle mode. In contrast, the aforementioned cycle mode may also be referred to as a single power cycle mode.

[0180] In the hybrid power recycling mode, under the control of the controller 161, the charger 1311 is enabled by the control signal SCe to control the transistor switches M25 and M26 to keep working, and the series circuit 133 turns on its battery switch SWb in turn, and except for the battery switch SWb that is currently turned on, the other battery switches SWb and all charging switches SWc remain disconnected. Therefore, the external power Ipo and the power Idc provided by the battery Bat (i.e., its corresponding battery switch SWb turns on the series circuit 133) are simultaneously supplied to the system circuit 110.

[0181] In some embodiments, the charge-discharge mode may also be a mixed power supply parallel discharge mode. In contrast, the aforementioned parallel discharge mode may also be referred to as a single power supply parallel discharge mode.

[0182] In the mixed power parallel mode, under the control of the controller 161, the charger 1311 is enabled by the control signal SCe to control the transistor switches M25 and M26 to keep working, and all the series circuits 133 turn on their battery switches SWb but keep their charging switches SWc off. Therefore, the external power Ipo and the power Idc provided by all the batteries Bat are simultaneously supplied to the system circuit 110.

[0183] In some implementations, each of the transistor switches M15 / M16 / M17 / M18 / M25 / M26 may be a MOSFET element or an IGBT (Insulated Gate Bipolar Transistor) element. In some examples, each of the MOSFET elements may be an NMOSFET or a PMOSFET.

[0184] For example, Figure 5Taking the circuit structure shown as an example, the conduction state of the charge and discharge circuit 130 of the electronic device 10 in various charge and discharge modes is shown in Table 1. Here, the electronic device 10 has two series circuits 133A, 133B and two battery connectors 141, 143, and is coupled with two batteries BatA, BatB. In each series circuit 133A / 133B, the MOSFET elements M1, M2 / M3, M4 (i.e., the charging switch SWc and the battery switch SWb) are PMOSFETs, and the discharge path PTd is a MOSFET diode D1 / D2 configured by the MOSFET elements in a diode connection manner. The path selection circuit 131 is composed of a charger 1311 and an inductor L1, and the charger 1311 has four transistor switches M15~M18 inside.

[0185] Table 1

[0186]

[0187] * Cyclic charging mode A: The stage where battery BatA is charged but battery BatB is not activated.

[0188] * Cyclic charging mode B: The stage where battery BatB is charged but battery BatA is not activated.

[0189] * Cycle mode A: The stage where “Battery BatA is discharged, but battery BatB is not activated”.

[0190] * Cycle mode B: The stage where “battery BatB is discharged, but battery BatA is not activated”.

[0191] Then Figure 6 Taking the circuit architecture shown as an example, the conduction state of the charge and discharge circuit 130 of the electronic device 10 in various charge and discharge modes is shown in Table 2 and Table 3. Here, the electronic device 10 has two series circuits 133A, 133B and two battery connectors 141, 143, and is coupled with two batteries BatA, BatB. In each series circuit 133A / 133B, the MOSFET elements M1, M2 / M3, M4 (i.e., the charging switch SWc and the battery switch SWb) are PMOSFETs, and the discharge path PTd is a MOSFET diode D1 / D2 configured by the MOSFET elements in a diode connection manner. The path selection circuit 131 is composed of a charger 1311, two transistor switches M25, M26, an inductor L2 and a unidirectional control unit Dp. The transistor switches M25, M26 are PMOSFETs, and the unidirectional control unit Dp is a diode.

[0192] Table 2

[0193]

[0194] * Cyclic charging mode A: The stage where battery BatA is charged but battery BatB is not activated.

[0195] * Cyclic charging mode B: The stage where battery BatB is charged but battery BatA is not activated.

[0196] Table 3

[0197]

[0198] * Single power cycle mode A: The stage where "battery BatA is discharged, but battery BatB is not activated and the external power Ipo is not supplying power".

[0199] * Single power cycle mode B: The stage where "battery BatB is discharged, but battery BatA is not activated and the external power Ipo is not supplying power".

[0200] *Single power parallel mode: Battery BatA and battery BatB provide power, but external power Ipo does not.

[0201] *Mixed power cycle mode A: The stage where "battery BatA and external power Ipo are supplying power at the same time, but battery BatB is not working".

[0202] *Mixed power cycle mode B: The stage where "battery BatB and external power Ipo are supplying power at the same time, but battery BatA is not working".

[0203] *Mixed power supply mode: Battery BatA, battery BatB and external power Ipo are used to supply power at the same time.

[0204] In some embodiments, reference Figure 7 The controller 161 is further coupled to each battery connector 140, and reads the battery information DT of the coupled battery Bat through each battery connector 140 based on the clock signal CK from the coupled battery Bat, so as to obtain the power of the battery Bat from the battery information DT of each battery Bat.

[0205] In some implementations, the clock pin and the data pin of the controller 161 are respectively coupled to the clock pin and the data pin of each battery connector 140 . Here, each series circuit 133 is coupled to the power pin of the corresponding battery connector 140 .

[0206] In some implementations, the detection pin of the controller 161 is also coupled to the detection pin of each battery connector 140. Here, the controller 161 can detect whether the battery connector 140 is coupled to the battery Bat through the detection pin.

[0207] In some embodiments, reference Figure 5 and Figure 6The power connector 120 can be connected to a power conversion device 20, and coupled to a power source AC through the power conversion device 20. The power conversion device 20 is used to receive AC power from the power source AC, convert the received AC power into DC power Ipo, and provide the power Ipo to the electronic device 10 through the power connector 120. The power conversion device 20 can be a power adapter (Power Adapter) 210 (such as Figure 5 ) or a charging base (Dock) 220 (as shown Figure 6 shown).

[0208] In some embodiments, the power connector 120 can be connected to another electronic device (not shown) via a transmission line. In this case, the other electronic device can provide a DC power Ipo to the electronic device 10 via the power connector 120. In one example, the power connector 120 can be a USB (Universal Serial Bus) connector, and the transmission line can be a USB transmission line.

[0209] In some embodiments, reference Figure 7 The electronic device 10 may further include a USB connector 150. Specifically, the electronic device 10 is provided with a power connector 120 and a USB connector 150. The USB connector 150 is externally connected to another electronic device 30 via a transmission line 310, and receives a DC power Ipo provided by the electronic device 30.

[0210] The power pin of the USB connector 150 is coupled to the first end of the charger 1311 via the input / output switch 151. The clock pin and the data pin of the USB connector 150 are coupled to the USB controller 153. The clock pin and the data pin of the USB controller 153 are respectively coupled to the clock pin and the data pin of the controller 161. Based on this, when the USB connector 150 receives the external power Ipo, the controller 161 can obtain the power information related to the external power Ipo via the clock pin and the data pin of the USB controller 153 and the USB connector 150.

[0211] In some embodiments, the path selection circuit 131 may further include an OTG (On-The-Go) output circuit 1313, and is controlled by the controller 161. A first end of the OTG output circuit 1313 is coupled to a power pin of the USB connector 150. A second end of the OTG output circuit 1313 is coupled to the contact N4 via the inductor L3. A control end of the OTG output circuit 1313 is coupled to the controller 161. The OTG output circuit 1313 receives a control signal from the controller 161, and selectively conducts the first end and the second end according to the control signal.

[0212] Therefore, when the USB connector 150 is connected to another electronic device 30 (not shown), the battery Bat can supply power to the external electronic device via the battery connector 140 , the series circuit 133 , the charger 1311 , the OTG output circuit 1313 and the USB connector 150 .

[0213] In some implementations, the OTG output circuit 1313 may include a plurality of transistor switches M35-M37. The transistor switches M35 and M36 are sequentially connected in series between the first terminal and the second terminal, and the transistor switch M37 is coupled between the second terminal and the ground. In one example, the OTG output circuit 1313 is implemented by an OTG chip.

[0214] When the battery Bat is used to supply power to an external electronic device, the charger 1311 is enabled by the control signal SCe from the controller 161 to turn on the transistor switch M18, and the OTG output circuit 1313 is enabled by the control signal SCo from the controller 161 to turn on the transistor switch M35 and drive the transistor switches M36 and M37 to operate. For example, the OTG output circuit 1313 controls the switching of the transistor switches M36 and M37 in a PWM or PFM manner to adjust the voltage output by the transistor switches M36 and M37.

[0215] Furthermore, the charging switch SWc of any or all of the series circuits 133 is turned off in response to the switch signal SM1, and the battery switch SWb and the discharge path PTd thereof are turned on in response to the switch signals SM2 and SD. Therefore, the battery Bat can supply power to an external electronic device via the battery connector 140, the series circuit 133, the charger 1311, the OTG output circuit 1313, and the USB connector 150.

[0216] by Figure 7 As an example of the circuit structure shown in FIG. 1 , in response to the change of the external connection status of the power connector 120 and the USB connector 150, the signal timing diagram of the electronic device 10 is as follows: Figure 8As shown. Here, the electronic device 10 has two series circuits 133A, 133B and two battery connectors 141, 143, and is coupled with two batteries BatA, BatB. In each series circuit 133A / 133B, the MOSFET elements M1, M2 / M3, M4 (i.e., the charging switch SWc and the battery switch SWb) are PMOSFETs, and the discharge path PTd is a MOSFET diode D1 / D2 configured by the MOSFET elements in a diode connection manner. The path selection circuit 131 is composed of a charger 1311, an OTG chip (i.e., an OTG output circuit 1313) and inductors L1, L3. In addition, the charger 1311 has four transistor switches M15-M18 inside, and the OTG chip has three transistor switches M35-M37 inside. In addition, this electronic device 10 adopts a parallel charging mode to charge the two batteries BatA, BatB, and adopts a parallel discharge mode to discharge the two batteries BatA, BatB.

[0217] Since the two batteries BatA and BatB remain coupled to the corresponding battery connectors 141 and 143, the detection signals STa and STb of the two batteries BatA and BatB will be the same and continue to maintain a low level (that is, indicating that the corresponding battery connector 140 is coupled to the battery Bat), so the signal timing diagram only draws one signal for the detection signals STa and STb to illustrate. In addition, since the signal changes of the control signals SC1 and SC2 are exactly the same, the signal timing diagram only draws one signal for the control signals SC1 and SC2 to illustrate. Similarly, since the signal changes of the switch signals SD1 and SD2 are exactly the same, the signal timing diagram only draws one signal for the switch signals SD1 and SD2 to illustrate.

[0218] The voltage signal Vpo is the level of the power Ipo input to the charger 1311. When the voltage signal Vpo is at a high level, it indicates that the power Ipo is input to the charger 1311. On the contrary, when the voltage signal Vpo is at a low level, it indicates that the power Ipo is not input to the charger 1311. The level of the detection signal STd indicates the connection status of the power connector 120 to the external power source AC. When the detection signal STd is at a high level, it indicates that the power source AC is not connected, that is, the power Ipo is not received. On the contrary, when the detection signal STd is at a low level, it indicates that the power source AC is connected, that is, the power Ipo is received. The level of the detection signal STu indicates the connection status of the USB connector 150 to other electronic devices. When the detection signal STu is at a high level, it indicates that no other electronic devices are connected. On the contrary, when the detection signal STu is at a low level, it indicates that other electronic devices are connected.

[0219] At time points t1 to t24, changes in the external connection status of the power connector 120 and the USB connector 150 are shown in Table 4 below.

[0220] Table 4

[0221]

[0222]

[0223]

[0224] The time points t3 to t4, t6 to t7, t9 to t10, and t12 to t18 are charging periods Tc1, Tc2, Tc3, and Tc4 for the power Ipo to charge the battery Bat. The time points t18 to t19 and t20 to t21 are discharging periods Td1 and Td3 for the battery Bat to supply power to the system circuit 110. The time points t19 to t20 are discharging periods Td2 for the battery Bat to supply power to the system circuit 110 and other electronic devices connected to the USB connector 150.

[0225] It should be clear that for the convenience of schematic illustration, the charging power Icc and discharging power Idc of each battery Bat are simultaneously drawn in the accompanying drawings. However, in actual operation, the charging power Icc and discharging power Idc of the same battery Bat will not appear at the same time, but the charging power Icc or discharging power Idc will appear correspondingly depending on whether the charging and discharging mode currently implemented by the battery Bat is a charging mode or a power supply mode.

[0226] In some embodiments, the aforementioned electronic device 10 may be a smart phone, a navigation device (PND), a digital photo frame (PDF), an electronic book (e-book), a notebook, or a tablet computer (Tablet or Pad).

[0227] In some embodiments, the aforementioned electronic device 30 may be an OTG device or a fast charging device, etc. For example, the electronic device 30 may be a handheld electronic device, a personal computer, a car electric cigarette lighter, and a home appliance, etc. The handheld electronic device may be a smart phone, a navigation device, a notebook computer, or a tablet computer, etc.

[0228] In some embodiments, the charger 1311 may be implemented by a charger IC.

[0229] In some embodiments, the controller 161 may be implemented by a microprocessor, a microcontroller, or an embedded controller.

[0230] In summary, the electronic device 10 of any embodiment can achieve the charging and discharging functions by mostly sharing paths, and can be applicable to multiple charging and discharging modes, so as to select a charging and discharging mode according to the use requirements or switch to a suitable charging and discharging mode according to the change of the use environment. In addition, this electronic device 10 can simplify the circuit architecture of the charging and discharging circuit 130 of the multi-battery Bat. In some embodiments, this electronic device 10 can be applied to the operation of the discharge mode of the hybrid power supply of the multi-battery Bat. In some embodiments, this electronic device 10 can simultaneously monitor the input power supply (i.e., the external power Ipo) and the charging and discharging of the multi-battery Bat.

Claims

1. An electronic device, characterized in that: include: A system circuit; A power connector for receiving power; a path selection circuit coupling the system circuit and the power connector; A plurality of battery connectors, each adapted to couple with a plurality of batteries; a plurality of series circuits, corresponding to the plurality of battery connectors respectively, each of the series circuits being connected between the corresponding battery connector and the path selection circuit, each of the series circuits comprising: a charging switch, a battery switch and a discharging path, the charging switch and the battery switch being connected in series between the path selection circuit and the corresponding battery connector, and the discharging path being connected across two ends of the charging switch; and a control circuit coupled to the path selection circuit and each of the series circuits to control the conduction state of the path selection circuit and the charging switch and the battery switch of each of the series circuits; In a cycling mode, the control circuit controls the plurality of series circuits to turn on the battery switch in turn and controls the path selection circuit to turn on the series circuit and the system circuit, and the remaining battery switches and the charging switches of each series circuit remain disconnected.

2. The electronic device according to claim 1, wherein: In the circulating mode, the control circuit further controls the path selection circuit to conduct the power connector and the system circuit.

3. The electronic device according to claim 1, wherein: In a parallel mode, the control circuit controls the battery switch of each of the series circuits to be turned on, controls the charging switch of each of the series circuits to be turned off, and controls the path selection circuit to turn on the multiple series circuits and the system circuit.

4. The electronic device as claimed in claim 3, characterized in that: Before performing the control of the parallel mode, the control circuit first performs the control of the circulating mode, and then when the power of the plurality of batteries meets a specified power, the control circuit performs the control of the parallel mode again.

5. The electronic device as claimed in claim 3, characterized in that: In the parallel mode, the control circuit also controls the path selection circuit to conduct the power connector and the system circuit.

6. The electronic device as claimed in claim 1, wherein: In a cyclic charging mode, the control circuit controls the plurality of series circuits to conduct the charging switch and the battery switch in turn, and controls the path selection circuit to conduct the plurality of series circuits and the external power.

7. The electronic device according to claim 1, wherein: In a parallel charging mode, the control circuit turns on the charging switch and the battery switch of each of the series circuits, and controls the path selection circuit to turn on the plurality of series circuits and the power connector.

8. The electronic device as claimed in claim 7, characterized in that: The multiple batteries have different capacities. Before performing the control of the parallel charging mode, the control circuit first performs a cycle charging mode control. Then, when the multiple batteries have the same capacities, the control circuit performs the parallel charging mode control again. In the cycle charging mode, the control circuit controls the multiple series circuits to alternately turn on the charging switch and the battery switch and controls the path selection circuit to turn on the multiple series circuits and the external power.

9. The electronic device as claimed in claim 1, wherein: Also includes: A USB connector is connected to the path selection circuit and is suitable for receiving another external power.

10. The electronic device according to claim 1, wherein: The discharge path is a discharge switch connected across two ends of the charging switch, and the discharge switch is controlled by the control circuit.

11. The electronic device according to claim 10, wherein: The discharge switch is a metal oxide semi-conductor field effect transistor element, a bipolar junction transistor or a relay.

12. The electronic device according to claim 10, wherein: The discharge switch is a metal oxide semi-conductor field effect transistor diode, and the metal oxide semi-conductor field effect transistor diode is connected across the two ends of the charge switch in a direction in which the reverse end is adjacent to the path selection circuit.

13. The electronic device as claimed in claim 1, wherein: The discharge path is a unidirectional control unit, and the unidirectional control unit is connected across two ends of the charging switch in a direction where the reverse end is adjacent to the path selection circuit.

14. The electronic device according to claim 13, wherein: The unidirectional control unit is a diode.

15. The electronic device as claimed in claim 1, wherein: The control circuit includes a controller, which is coupled to the path selection circuit and electrically connected to each of the series circuits, and is used to control the conduction state of the path selection circuit and the charging switch and the battery switch of each of the series circuits.

16. The electronic device as claimed in claim 1, wherein: The path selection circuit includes a charger, the power connector is coupled to the system circuit via the charger, and the system circuit is coupled to each of the series circuits via the charger.

17. The electronic device as claimed in claim 1, wherein: The path selection circuit includes a charger, two transistor switches and a unidirectional control unit, the charger is coupled to the control ends of the two transistor switches, the first ends of the two transistor switches are coupled to the first ends of each of the series circuits and coupled to the system circuit via the unidirectional control unit, and the second ends of the two transistor switches are respectively coupled to a connection and grounding connecting the power connector and the system circuit.