Charging circuit and charging control circuit thereof
By designing a charging circuit combining wall charging mode and mobile power mode, the problem of insufficient coordination of power conversion circuits in the prior art is solved, and more efficient power utilization and convenient charging process are achieved.
Patent Information
- Application Number
- CN202420869112.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-24
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2034-04-24
AI Technical Summary
In existing two-in-one fast charging charging equipment, the coordination between the two power conversion circuits is relatively simple and power utilization cannot be maximized.
A charging circuit is designed, including a first power converter, a second power converter, a battery pack and a charging control circuit. The charging control circuit control circuit controls the switching of the charging circuit path according to the protocol parameters of the device and the state of the power converter to realize the wall. Combination of charging mode and power bank mode.
It improves the convenience of charging electrical equipment, improves power utilization, simplifies the circuit structure, and reduces the number and cost of devices.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of power supply, in particular to a charging circuit and a charging device. Background Art
[0002] With the popularity of portable smart electronic devices, most portable electronic devices have fast charging functions to meet user needs. In actual applications, it is found that users may need to carry chargers and mobile power supplies to charge electronic devices at any time. In order to meet consumers' portable needs, fast charging devices that combine chargers and mobile power supplies have emerged.
[0003] The coordination between the two power conversion circuits in the current two-in-one fast charging devices is relatively simple and cannot maximize power utilization. Utility Model Content
[0004] In view of the above problems, the purpose of the present disclosure is to provide a charging circuit and a charging control circuit thereof that can improve power utilization, realize the combination of wall charging mode and mobile power supply mode, and improve the convenience of charging electrical devices.
[0005] According to one aspect of the present disclosure, a charging circuit is provided, comprising: a first power converter, wherein an input end of the first power converter is connected to an AC input voltage, and an output end of the first power converter outputs a first DC supply voltage and a first DC supply current; a second power converter, wherein a first end of the second power converter is connected to an output end of the first power converter via a first switch; a battery pack connected to a second end of the second power converter; at least one output branch connected to an intermediate node between the first power converter and the second power converter, each output branch comprising an output port connected to an external device and a second switch connected between the intermediate node and the output port; and a charging control circuit connected to at least one output port, the first power converter and the second power converter, wherein the charging control circuit controls the switching of the charging path of the charging circuit according to the protocol parameters of the device connected to the at least one output port and the working state of the first power converter.
[0006] Optionally, the charging circuit includes: a first charging path from the first power converter to the output port, a second charging path from the first power converter to the battery pack, a third charging path from the battery pack to the output port, and a fourth charging path from the output port to the battery pack.
[0007] Optionally, the external device includes an electrical device or an adapter.
[0008] Optionally, when the first power converter is in operation and the external device is a power-consuming device, the charging control circuit controls the first switch and the second switch to be closed to conduct the first charging path.
[0009] Optionally, when the external charging power of the output port is less than the maximum power requested by the protocol parameters, the charging control circuit controls the power transmission direction of the second power converter from the first end of the second power converter to the second end of the second power converter to turn on the second charging path.
[0010] Optionally, the charging power of the second charging path is equal to the difference between the maximum power requested by the protocol parameters and the external charging power of the output port.
[0011] Optionally, when the first power converter is in working state and the external device is an adapter or the output port is suspended, the charging control circuit controls the first switch to be closed and the second switch to be opened to conduct the second charging path.
[0012] Optionally, when the first power converter is in a shutdown state and the external device is an electric device, the charging control circuit controls the first switch to be opened and the second switch to be closed to conduct the third charging path.
[0013] Optionally, when the first power converter is in a shutdown state and the external device is an adapter, the charging control circuit controls the first switch to be opened and the second switch to be closed to conduct the fourth charging path.
[0014] Optionally, the charging control circuit samples the first DC supply voltage and the first DC supply current, and generates a first control signal for the first power converter according to the sampling results and the protocol parameters to adjust the first DC supply voltage.
[0015] Optionally, the charging control circuit samples the second DC supply voltage and the second DC supply current at the intermediate node of the first power converter and the second power converter, and generates a second control signal for the second power converter based on the sampling results of the second DC supply voltage and the second DC supply current, the battery voltage and the protocol parameters to adjust the second DC supply voltage.
[0016] Optionally, the charging control circuit is further configured to: when the number of the output branches connected to the electrical device is one, control the charging circuit to quickly charge the electrical device connected to the output port; when the number of the output branches connected to the electrical device is multiple, control the charging circuit to normally charge the electrical devices connected to multiple output ports.
[0017] Optionally, the charging control circuit includes: multiple protocol interface modules, connected to the output port on the at least one output branch to obtain protocol parameters of an external device connected to the output port; and a protocol communication calculation module, connected to the multiple protocol interface modules, generating a digital reference voltage and a digital reference current of the first power converter and the second power converter according to the protocol parameters of the external device.
[0018] Optionally, the charging control circuit also includes: a first voltage sampling unit, used to sample the first DC supply voltage to obtain a first sampling voltage; a first operational amplifier, used to sample and amplify the first DC supply current to obtain a first sampling current; a first digital-to-analog converter, used to convert the digital reference voltage into an analog reference voltage; a second digital-to-analog converter, used to convert the digital reference current into an analog reference current; and a first power controller, connected to the first voltage sampling unit and the first digital-to-analog converter to receive the first sampling voltage and the analog reference voltage, respectively, connected to the first operational amplifier and the second digital-to-analog converter to receive the first sampling current and the analog reference current, respectively, and compare the first sampling voltage and the first sampling current with the analog reference voltage and the analog reference current, respectively, to obtain an error signal, and perform loop compensation on the error signal to generate a first control signal, wherein the first power converter adjusts the first DC supply voltage according to the first control signal.
[0019] Optionally, the first power controller includes: a first error amplifier, whose non-phase input terminal is used to receive the analog reference voltage, whose inverting input terminal is used to receive the first sampling voltage, and whose output terminal is used to provide a first error signal; a second error amplifier, whose non-phase input terminal is used to receive the analog reference current, whose inverting input terminal is used to receive the first sampling current, and whose output terminal is used to provide a second error signal; and a loop compensation module, which is connected to the first error amplifier and the second error amplifier to receive the first error signal and the second error signal, and performs loop compensation on the first error signal and the second error signal to generate the first control signal.
[0020] Optionally, the charging control circuit further includes: a second voltage sampling unit, used to sample the second DC supply voltage output by the second power converter to obtain a second sampled voltage; a first analog-to-digital converter, used to convert the analog value of the second sampled voltage into a digital value; a second operational amplifier, used to sample and amplify the second DC supply current output by the second power converter to obtain a second sampled current; a second analog-to-digital converter, used to convert the analog value of the second sampled current into a digital value; a third voltage sampling unit, used to sample the battery voltage of the battery pack to obtain a third sampled voltage; a third analog-to-digital converter, used to convert the analog value of the third sampled voltage into a digital value; and a second power controller, connected to the first analog-to-digital converter, the second analog-to-digital converter and the third analog-to-digital converter to obtain the digital value of the second sampled voltage, the digital value of the second sampled current and the digital value of the third sampled voltage, and compare the digital value of the second sampled voltage, the digital value of the second sampled current and the digital value of the third sampled voltage with the digital reference voltage and the digital reference current to generate a second control signal, wherein the second power converter adjusts the second DC supply voltage according to the second control signal.
[0021] Optionally, the charging control circuit also includes: a fourth analog-to-digital converter, used to convert the analog value of the first sampling current into a digital value; a fifth analog-to-digital converter, used to convert the analog value of the first sampling voltage into a digital value; and a power distribution operation controller, receiving the digital value of the first sampling voltage, the digital value of the second sampling voltage, the digital value of the third sampling voltage, the digital value of the first sampling current, the digital value of the second sampling current, the digital reference voltage and the digital reference current, and generating a switch control signal for controlling the first switch and the second switch and a third logic signal provided to the second power controller.
[0022] Optionally, the second power controller includes: a first comparator, which compares the digital value of the second sampling voltage, the digital value of the third sampling voltage and the digital reference voltage to generate a first logic signal; a second comparator, which compares the digital value of the second sampling current with the digital reference current to generate a second logic signal; a pulse width modulation module, which is respectively connected to the first comparator and the second comparator to obtain the first logic signal and the second logic signal, and generates a first intermediate signal according to the first logic signal, the second logic signal and the third logic signal; and a PWM drive module, which is connected to the pulse width modulation module to obtain the first intermediate signal, and generates the second control signal according to the first intermediate signal.
[0023] Optionally, the protocol communication calculation module obtains the device type and the requested charging voltage and charging current according to the protocol parameters of the power-consuming device connected to at least one output port.
[0024] Optionally, the output port of the at least one output branch is a USB port.
[0025] Optionally, the output port of the at least one output branch is a TYPE-C USB port, a TYPE-A USB port, a Micro USB port or a Lightning port.
[0026] Optionally, the first power converter is an AC-DC converter.
[0027] Optionally, the second power converter is a DC-DC converter.
[0028] According to another aspect of the present disclosure, a charging control circuit for a charging circuit is provided, wherein the charging circuit comprises a first power converter, a second power converter, a battery pack, and at least one output branch, wherein the first power converter converts an AC input voltage into a first DC supply voltage and a first DC supply current, wherein a first end of the second power converter is connected to an output end of the first power converter via a first switch, the battery pack is connected to a second end of the second power converter, and the at least one output branch is connected to an intermediate node between the first power converter and the second power converter, wherein each output branch comprises an output port connected to an external device and a second switch connected between the intermediate node and the output port, wherein the charging circuit comprises: a first charging path from the first power converter to the output port, a second charging path from the first power converter to the battery pack, a third charging path from the battery pack to the output port, and a fourth charging path from the output port to the battery pack, and the charging control ... The circuit is used to control the switching of the charging path of the charging circuit according to the protocol parameters of the device connected to at least one output port and the working state of the first power converter, and includes: a plurality of protocol interface modules, connected to the output port of the at least one output branch to obtain the protocol parameters of the external device connected to the output port; a protocol communication calculation module, connected to the plurality of protocol interface modules, generating a digital reference voltage and a digital reference current of the first power converter and the second power converter according to the protocol parameters of the external device; and a power distribution operation controller, generating a switch control signal for controlling the first switch and the second switch and a third logic signal for controlling the second power converter according to a comparison and operation between a sampled value of the first DC supply voltage, a sampled value of the first DC supply current, a sampled value of the battery pack voltage, a sampled value of the second DC supply voltage at the intermediate node, a sampled value of the second DC supply current at the intermediate node, the digital reference voltage and the digital reference current.
[0029] Optionally, the protocol communication calculation module obtains the device type and the requested charging voltage and charging current according to the protocol parameters of the device connected to at least one output port.
[0030] Optionally, the charging control circuit also includes: a first voltage sampling unit, used to sample the first DC supply voltage to obtain a first sampling voltage; a first operational amplifier, used to sample and amplify the first DC supply current to obtain a first sampling current; a first digital-to-analog converter, used to convert the digital reference voltage into an analog reference voltage; a second digital-to-analog converter, used to convert the digital reference current into an analog reference current; and a first power controller, connected to the first voltage sampling unit and the first digital-to-analog converter to receive the first sampling voltage and the analog reference voltage, respectively, connected to the first operational amplifier and the second digital-to-analog converter to receive the first sampling current and the analog reference current, respectively, and compare the first sampling voltage and the first sampling current with the analog reference voltage and the analog reference current, respectively, to obtain an error signal, and perform loop compensation on the error signal to generate a first control signal, wherein the first power converter adjusts the first DC supply voltage according to the first control signal.
[0031] Optionally, the first power controller includes: a first error amplifier, whose non-phase input terminal is used to receive the analog reference voltage, whose inverting input terminal is used to receive the first sampling voltage, and whose output terminal is used to provide a first error signal; a second error amplifier, whose non-phase input terminal is used to receive the analog reference current, whose inverting input terminal is used to receive the first sampling current, and whose output terminal is used to provide a second error signal; and a loop compensation module, which is connected to the first error amplifier and the second error amplifier to receive the first error signal and the second error signal, and performs loop compensation on the first error signal and the second error signal to generate the first control signal.
[0032] Optionally, the charging control circuit further includes: a second voltage sampling unit, used to sample the second DC supply voltage to obtain a second sampled voltage; a first analog-to-digital converter, used to convert the analog value of the second sampled voltage into a digital value; a second operational amplifier, used to sample and amplify the second DC supply current to obtain a second sampled current; a second analog-to-digital converter, used to convert the analog value of the second sampled current into a digital value; a third voltage sampling unit, used to sample the battery voltage of the battery pack to obtain a third sampled voltage; a third analog-to-digital converter, used to convert the analog value of the third sampled voltage into a digital value; and a second power controller, connected to the first analog-to-digital converter, the second analog-to-digital converter and the third analog-to-digital converter to obtain the digital value of the second sampled voltage, the digital value of the second sampled current and the digital value of the third sampled voltage, and compare the digital value of the second sampled voltage, the digital value of the second sampled current and the digital value of the third sampled voltage with the digital reference voltage and the digital reference current to generate a second control signal, wherein the second power converter adjusts the second DC supply voltage according to the second control signal.
[0033] Optionally, the charging control circuit also includes: a fourth analog-to-digital converter, used to convert the analog value of the first sampling current into a digital value; and a fifth analog-to-digital converter, used to convert the analog value of the first sampling voltage into a digital value, wherein the power distribution operation controller receives the digital value of the first sampling voltage, the digital value of the second sampling voltage, the digital value of the third sampling voltage, the digital value of the first sampling current, the digital value of the second sampling current, the digital reference voltage and the digital reference current, and generates a switch control signal for controlling the first switch and the second switch and a third logic signal provided to the second power controller.
[0034] Optionally, the second power controller includes: a first comparator, which compares the digital value of the second sampling voltage, the digital value of the third sampling voltage and the digital reference voltage to generate a first logic signal; a second comparator, which compares the digital value of the second sampling current with the digital reference current to generate a second logic signal; a pulse width modulation module, which is respectively connected to the first comparator and the second comparator to obtain the first logic signal and the second logic signal, and generates a first intermediate signal according to the first logic signal, the second logic signal and the third logic signal; and a PWM drive module, which is connected to the pulse width modulation module to obtain the first intermediate signal, and generates the second control signal according to the first intermediate signal.
[0035] In summary, the charging circuit of the present invention combines the AC input and the AC-DC converter into a first-stage power converter, and the battery pack and the DC-DC converter into a second-stage power converter. By using the charging topology in which the above two outputs are independently controlled, the combination of the wall charging mode and the mobile power supply mode is realized under the conditions of using simpler devices and lower costs, thereby improving the convenience of charging electrical devices.
[0036] In addition, the present invention uses a single chip to implement functions such as DC-DC converter feedback control, protocol communication, and AC-DC converter feedback control, which greatly simplifies the circuit structure when the wall charging solution and the mobile power solution are combined together, while reducing the number of components and reducing costs.
[0037] Furthermore, the charging control circuit of the present invention also has a built-in power distribution operation controller. When the output power of the AC-DC converter is less than the requested power of the electrical equipment, the difference between the requested charging power and the actual output power is distributed to the DC-DC converter to charge and store energy in the internal battery pack, so that the AC-DC converter can operate in a high-efficiency state for a long time, thereby improving the utilization efficiency of the AC-DC converter.
[0038] Furthermore, in the wall charging mode, the AC-DC converter of the charging circuit disclosed in the present invention gives priority to charging external power devices and stores excess energy in the internal battery pack, thereby fully realizing the function of the adapter and saving energy. In the mobile power supply mode, the charging circuit disclosed in the present invention can charge external power devices through the port, and can also charge the internal battery through the port external adapter, thereby fully retaining the function of the mobile power supply. Therefore, the charging circuit disclosed in the present invention combines the travel charger and the mobile power supply together while maintaining the integrity of their respective functions, greatly improving the user's convenience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The above and other purposes, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0040] Figure 1 A schematic block diagram of a single-channel charging circuit provided according to a first embodiment of the present disclosure is shown.
[0041] Figure 2 A schematic block diagram of a single-channel charging circuit in a first state according to a first embodiment of the present disclosure is shown.
[0042] Figure 3 A schematic block diagram of a single-channel charging circuit in a second state according to a first embodiment of the present disclosure is shown.
[0043] Figure 4 A schematic block diagram of a single-channel charging circuit in a third state according to the first embodiment of the present disclosure is shown.
[0044] Figure 5 A schematic block diagram of a single-channel charging circuit in a fourth state according to the first embodiment of the present disclosure is shown.
[0045] Figure 6 A schematic block diagram of a single-channel charging circuit in a fifth state according to the first embodiment of the present disclosure is shown.
[0046] Figure 7 A schematic block diagram of a multi-channel charging circuit in a sixth state according to a second embodiment of the present disclosure is shown.
[0047] Figure 8 A schematic block diagram of a multi-channel charging circuit in a seventh state according to a second embodiment of the present disclosure is shown.
[0048] Fig. 9 A schematic diagram of the internal structure of a charging control circuit in a multi-channel charging circuit provided according to a second embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0049] Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, the same elements are represented by the same or similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale.
[0050] The present disclosure provides a charging circuit to realize the charging functions of a charger and a mobile power supply.
[0051] Figure 1 FIG. 3 is a schematic block diagram of a single-channel charging circuit according to a first embodiment of the present disclosure. The single-channel charging circuit 300 of this embodiment includes a two-stage power converter to support fast charging and discharging of a TYPE-C USB port. Figure 1 As shown, the single-channel charging circuit 300 includes an output branch formed by a first power converter 110, a second power converter 120, a battery pack 130, a switch S1, a switch S2 and an output port 140 connected in series. The first power converter 110 is, for example, an AC-DC converter, the second power converter 120 is, for example, a bidirectional non-isolated H-bridge topology type DC-DC converter, the output port 140 can be, for example, a TYPE-C USB port, a TYPE-A USB port, a Micro USB port, a Lightning port, etc., and the output port 140 can be connected to an electrical device or an adapter, or can be in a suspended state.
[0052] The input end of the first power converter 110 is connected to the AC input voltage AC, and is used to rectify the AC input voltage AC. The output end of the first power converter 110 is used to provide a DC supply voltage VD1 and a DC supply current ID1. The DC supply voltage VD1 is related to the charging demand of the power-consuming device and can be adjusted according to the charging parameters requested by the power-consuming device. The first end of the switch S1 is connected to the output end of the first power converter 110, the second end of the switch S1 is connected to the first end of the switch S2, and the second end of the switch S2 is connected to the output port 140. Among them, the switches S1 and S2 are used to provide the DC supply voltage VD1 output by the first power converter 110 to the power-consuming device connected to the output port 140 to charge the power-consuming device, and the switch S2 is used to control the conduction and disconnection of the charging path of the output branch.
[0053] The second end of the switch S1 and the first end of the switch S2 are also connected to the first end of the second power converter 120, and the second end of the second power converter 120 is connected to the battery pack 130. The second power converter 120 of this embodiment is, for example, a bidirectional DC-DC converter, which can make the power between the battery pack 130 and the output port 140 flow in both directions. For example, when the output port is connected to the adapter, the second power converter 120 can convert the voltage from the adapter via the switch S2 to reversely charge the battery pack 130; when the output port 140 is connected to the power device, the second power converter 120 can convert the battery voltage provided by the battery pack 130 to obtain a DC power supply voltage VD2 and a DC power supply current ID2, so as to charge the power device connected to the output port 140 via the switch S2. The second power converter 120 can also perform voltage conversion according to the DC power supply voltage VD1 provided by the first power converter 110 when the output port 140 is in a suspended state, so as to charge the battery pack 130.
[0054] The charging control circuit 200 is used to detect the DC supply voltage VD1 and the DC supply current ID1 at the output end of the first power converter 110, and judge the state of the first power converter 110 (for example, whether the first power converter 110 is in a working state or a shutdown state) according to the DC supply voltage VD1, and monitor the output voltage and output current of the first power converter 110 according to the DC supply voltage VD1 and the DC supply current ID1, so as to realize system loop control and protection of the first power converter 110.
[0055] The charging control circuit 200 is also used to monitor the DC supply voltage VD2 and the DC supply current ID2 at the output end of the second power converter 120, and generate a control signal CTRL2 according to the comparison result between the DC supply voltage VD2 and the reference voltage required by the protocol and the comparison result between the DC supply current ID2 and the reference current required by the protocol. The control signal CTRL2 is used to adjust the output current of the second power converter 120, thereby realizing system loop control and protection of the second power converter 120.
[0056] The charging control circuit 200 is also used to connect to the output port 140, determine whether the output port 140 is connected to a device and the type of the connected device through port detection, and then provide a digital reference voltage and a digital reference current for the first power converter 110 and the second power converter 120 according to the protocol parameters of the output port 140, and provide a control signal CTRL1 (compensation signal) to the first power converter 110 and a control signal CTRL2 (PWM control signal) to the second power converter 120 according to the DC supply voltage and DC supply current obtained from the output ends of the first power converter 110 and the second power converter 120 as well as the digital reference voltage and the digital reference current.
[0057] The charging control circuit 200 is respectively connected to the output end of the first power converter 110 to sample the DC supply voltage VD1 and the DC supply current ID1, connected to the output of the second power converter 120 to sample the DC supply voltage VD2 and the DC supply current ID2, and connected to the communication pin of the output port 140 to obtain the protocol parameters of the output branch. Further, the charging control circuit 200 determines whether the output port 140 is connected to a device and the type of device connected to the output port 140 according to the signal received from the output port 140 (for example, the signal P1CC1, P1CC2, P2CC1, P2CC2, DP0, DP1, DP2, DN0, DN1, DN2). It should be noted that the scheme of the charging control circuit 200 determining the type of the connected device according to the signal provided by the output port 140 adopts a known technology, which is not the main research direction of the present disclosure and will not be described in detail here.
[0058] During the operation of the single-channel charging circuit 300, when the charging control circuit 200 detects that the first power converter 110 is in the working state, it is determined that the single-channel charging circuit 300 is in the wall charging mode. Then, when the charging control circuit 200 detects that the output port 140 is connected to the power-consuming device, the charging control circuit 200 compares the power requested by the power-consuming device with the actual charging power of the power-consuming device according to its internal power allocation operation controller. When the actual charging power of the power-consuming device is lower than the requested maximum power, the charging control circuit 200 enables the second power converter 120 to turn on, and provides the remaining power to the battery pack 130 through the second power converter 120 to charge the battery pack 130, so that the first power converter 110 can always be in a full power output state.
[0059] When the charging control circuit 200 detects that the first power converter 110 is in working state (i.e., the single-channel charging circuit 300 is in wall charging mode) and the output port 140 is in a suspended state, the charging control circuit 200 enables the second power converter 200 to be controlled to adjust to a unidirectional mobile power supply mode that can only charge the battery pack 130. At the same time, the charging control circuit 200 adjusts the DC supply voltage VD1 and the DC supply current ID1 at the output end of the first power converter 110 through the generated control signal CTRL1, so that the first power converter 110 charges the battery pack 130 at a fixed power.
[0060] When the charging control circuit 200 detects that the first power converter 110 is in working state (i.e., the single-channel charging circuit 300 is in wall charging mode) and the output port 140 is connected to the adapter, the charging control circuit 200 also enables the control of the second power converter 120 to adjust to a unidirectional mobile power supply mode that can only charge the battery pack 130. At the same time, the charging control circuit 200 adjusts the DC supply voltage VD1 and the DC supply current ID1 at the output end of the first power converter 110 through the generated control signal CTRL1, so that the first power converter 110 charges the battery pack 130 at a fixed power.
[0061] When the charging control circuit 200 detects that the first power converter 110 is in the shutdown state, the unidirectional charging circuit 300 is set to the mobile power mode. When the charging control circuit 200 detects that the output port 140 is connected to the power-consuming device, the charging control circuit 200 generates a control signal CTRL2 according to the protocol parameters of the power-consuming device, and adjusts the DC supply voltage VD2 at the output end of the second power converter 120 to charge the power-consuming device; when the charging control circuit 200 detects that the output port 140 is connected to the adapter, the charging control circuit 200 generates a control signal CTRL2 according to the protocol parameters of the adapter to control the charging current of the second power converter 120 to the battery pack.
[0062] In addition, the charging control circuit 200 of this embodiment is also used to detect the battery voltage VBAT of the battery pack 130 and adjust the duty cycle of the control signal CTRL2 according to the detection result to control the charging current of the battery pack 130 to protect the battery pack 130.
[0063] In addition, the charging control circuit 200 of this embodiment is also used to generate switch control signals CTRL-S1 and CTRL-S2 according to the working state of the first power converter 110 and the protocol parameters of the output port 140 to control the on and off of the switches S1 and S2 respectively. For example, when the single-channel charging circuit 300 is in the wall charging mode and the output port 140 is suspended or the output port 140 is connected to the adapter, the charging control circuit 200 generates a valid switch control signal CTRL-S1 and an invalid switch control signal CTRL-S2 to control the switch S2 to be disconnected and the switch S1 to be turned on; when the single-channel charging circuit 300 is in the mobile power mode, the charging control circuit 200 generates a valid switch control signal CTRL-S2 and an invalid switch control signal CTRL-S1 to control the switch S1 to be disconnected and the switch S2 to be turned on.
[0064] Figure 2 A schematic block diagram of a single-channel charging circuit in a first state according to a first embodiment of the present disclosure is shown. Figure 2 2 shows the working state of the single-channel charging circuit 300 of the present disclosure when it is in the wall charging mode and the output port 140 is suspended.
[0065] like Figure 2 As shown, when the input end of the first power converter 110 is connected to the AC input voltage AC, the first power converter 110 obtains a DC supply voltage VD1 after rectification according to the AC input voltage AC. The charging control circuit 200 determines that the system is in the wall charging mode by detecting the DC supply voltage VD1 output by the first power converter 110, and then sets the second power converter 120 to the unidirectional internal mobile power mode through the control signal CTRL2. In this mode, the second power converter 120 is prohibited from discharging to the outside, and the battery pack 130 can only be charged through the second power converter 120.
[0066] At the same time, the charging control circuit 200 determines that the output port 140 is not connected to the power-consuming device according to the signal provided by the output port 140, so the charging control circuit 200 generates a valid switch control signal CTRL-S1 and an invalid switch control signal CTRL-S2 to turn on the switch S1 and turn off the switch S2. Then, the charging control circuit 200 controls the first power converter 110 to output a DC supply voltage VD1 with a fixed power (for example, 9V / 3A) through the control signal CTRL1, and controls the second power converter 120 to charge the battery pack 130 through the control signal CTRL2, thereby realizing the function of the first power converter 110 outputting a fixed power to charge the internal battery.
[0067] Figure 3 A schematic block diagram of a single-channel charging circuit in a second state according to a first embodiment of the present disclosure is shown. Figure 3 It shows the working state of the single-channel charging circuit 300 of the present disclosure when it is in the wall charging mode and the output port 140 is connected to the adapter.
[0068] like Figure 3 As shown, when the input end of the first power converter 110 is connected to the AC input voltage AC, the first power converter 110 obtains a DC supply voltage VD1 after rectification according to the AC input voltage AC. The charging control circuit 200 determines that the system is in the wall charging mode by detecting the DC supply voltage VD1 output by the first power converter 110, and then sets the second power converter 120 to the unidirectional internal mobile power mode through the control signal CTRL2. In this mode, the second power converter 120 is prohibited from discharging to the outside, and the battery pack 130 can only be charged through the second power converter 120.
[0069] At the same time, the charging control circuit 200 determines that the output port 140 is connected to the adapter according to the signal provided by the output port 140. In this case, the charging control circuit 200 does not process the information at the output port 140, so the charging control circuit 200 controls the system to work in the same manner as the output port 140. Figure 2 In the same working state, the charging control circuit 200 generates a valid switch control signal CTRL-S1 and an invalid switch control signal CTRL-S2 to turn on the switch S1 and turn off the switch S2. Then, the charging control circuit 200 controls the first power converter 110 to output a DC supply voltage VD1 of a fixed power (e.g., 9V / 3A) through the control signal CTRL1, and controls the second power converter 120 to charge the battery pack 130 through the control signal CTRL2, thereby realizing the function of the first power converter 110 outputting a fixed power to charge the internal battery.
[0070] Figure 4A schematic block diagram of a single-channel charging circuit in a third state according to the first embodiment of the present disclosure is shown. Figure 4 It shows the working state of the single-channel charging circuit of the present disclosure when it is in the wall charging mode and the output port 140 is connected to the power-consuming device.
[0071] like Figure 4 As shown, when the input end of the first power converter 110 is connected to the AC input voltage AC, the first power converter 110 obtains a DC supply voltage VD1 after rectification according to the AC input voltage AC. The charging control circuit 200 determines that the system is in the wall charging mode by detecting the DC supply voltage VD1 output by the first power converter 110. Then, the charging control circuit 200 sets the second power converter 120 to a unidirectional internal mobile power supply mode. In this mode, the second power converter 120 is prohibited from discharging to the outside, and the battery pack 130 can only be charged through the second power converter 120. In this mode, the charging current of the battery pack 130 is adjusted by controlling the duty cycle of the control signal CTRL2.
[0072] At the same time, after the charging control circuit 200 detects that the output port 140 is connected to the power-consuming device, the charging control circuit 200 supports simultaneous communication and communicates with the connected power-consuming device via the output port 140 to obtain the device type and fast charging requirements of the power-consuming device. The charging control circuit 200 also obtains the charging voltage and charging current requested by the power-consuming device according to the protocol parameters of the connected power-consuming device, and then the charging control circuit 200 calculates the reference voltage value according to the charging voltage requested by the power-consuming device, compares the actual first DC supply voltage and the first DC supply current with the reference voltage and the reference current respectively, amplifies the comparison result and performs loop compensation to generate the compensation signal CTRL1 to control the first power converter 110 to output the power requested by the power-consuming device. In addition, the charging control circuit 200 also generates effective switch control signals CTRL-S1 and CTRL-S2 to control the switches S1 and S2 to close, and then charge the power-consuming device through the output port 140.
[0073] For example, the charging control circuit 200 provides a compensation signal to the first power converter 110 through an optical coupler, and the driving circuit of the first power converter 110 generates a driving signal of the first power converter 110 according to the compensation signal to adjust the DC supply voltage VD1.
[0074] In addition, the charging control circuit 200 of the present embodiment also has a power distribution function. When the charging power required by the electrical device decreases (for example, when the electrical device is almost fully charged), the charging control circuit 200 separates the excess charging capacity of the first power converter 110 and charges the internal battery pack 130 through the second power converter 120. Specifically, the charging control circuit 200 continuously detects the magnitude of the DC supply current ID2, and compares the DC supply current ID2 with the reference current value required by the protocol parameters. If the DC supply current ID2 is less than the reference current value, the charging control circuit 200 generates a control signal CTRL2 to control the second power converter 120, and uses the difference between the reference current value and the DC supply current ID2 as a constant current value for the second power converter 120 to charge the internal battery pack 130, so as to ensure that both the first power converter 110 and the second power converter 120 have high transmission efficiency.
[0075] Figure 5 A schematic block diagram of a single-channel charging circuit in a fourth state according to the first embodiment of the present disclosure is shown. Figure 5 It shows the working state of the single-channel charging circuit 300 of the present disclosure when it is in the mobile power mode and the output port 140 is connected to the adapter.
[0076] like Figure 5 As shown, when the input end of the first power converter 110 is not connected to the AC input voltage AC, the charging control circuit 200 determines that the system is in the mobile power mode according to the size of the DC supply voltage VD1, and then sets the second power converter 120 to the mobile power mode with bidirectional charging. In this mode, the charging control circuit 200 can control the second power converter 120 to be in the external charging state or the internal charging state for the battery pack 130 according to the device connected to the output port 140.
[0077] In this embodiment, when the charging control circuit 200 detects that the output port 140 is connected to an adapter, the protocol parameters obtained through the output port 140 are used to determine the type of device connected. After the charging control circuit 200 and the adapter communicate bidirectionally, the charging voltage determined by the connected adapter is obtained, and then the charging control circuit 200 controls the switch S2 to close and the switch S1 to open, and controls the second power converter 120 to convert the voltage connected by the adapter into a charging voltage for charging the battery pack 130 through the control signal CTRL2, thereby realizing the function of the port adapter charging the internal battery pack 130.
[0078] Figure 6 A schematic block diagram of a single-channel charging circuit in a fifth state according to the first embodiment of the present disclosure is shown. Figure 6 2 shows the working state of the single-channel charging circuit 300 of the present disclosure when it is in the mobile power mode and the output port 140 is connected to the power-consuming device.
[0079] like Figure 6 As shown, when the input end of the first power converter 110 is not connected to the AC input voltage AC, the charging control circuit 200 determines that the system is in the mobile power mode according to the size of the DC supply voltage VD1, and then sets the second power converter 120 to the mobile power mode with bidirectional charging. In this mode, the charging control circuit 200 can control the second power converter 120 to be in the external charging state or the internal charging state for the battery pack 130 according to the device connected to the output port 140.
[0080] In this embodiment, when the charging control circuit 200 detects that the output port 140 is connected to the power-consuming device, the charging control circuit 200 performs bidirectional communication with the power-consuming device to obtain the device type of the power-consuming device and obtain the charging voltage and charging current requested by the power-consuming device according to the protocol parameters of the connected power-consuming device. Then, the charging control circuit 200 calculates the reference voltage value according to the charging voltage requested by the power-consuming device, and generates the control signal CTRL2 according to the comparison result between the reference voltage value and the DC power supply voltage VD2 to control the second power converter 120 to convert the battery voltage provided by the internal battery pack 130 into the charging voltage requested by the power-consuming device. In addition, the charging control circuit 200 also generates a valid switch control signal CTRL-S2 and an invalid switch control signal CTRL-S1 to control the switch S2 to be closed and the switch S1 to be opened, so that the internal battery pack 130 can charge the power-consuming device through the second power converter 120.
[0081] Figure 7 A schematic block diagram of a multi-channel charging circuit in the sixth state according to the second embodiment of the present disclosure is shown. Compared with the single-channel charging circuit 300 of the first embodiment, the multi-channel charging circuit 400 of this embodiment includes multiple output branches arranged in parallel, such as a first output branch formed by a switch S2 and an output port 141 connected in series, a second output branch formed by a switch S3 and an output port 142 connected in series, and a third output branch formed by a switch S4 and an output port 143 connected in series. Among them, one end of the multiple output branches in this embodiment is connected to the output end of the first power converter 110 and to the first end of the second power converter 120 via the switch S1. In addition, the remaining structure of the multi-channel charging circuit 400 of this embodiment is the same as the single-channel charging circuit 300 of the first embodiment, and will not be repeated here.
[0082] Figure 7 4 shows the working state of the multi-channel charging circuit 400 of the present disclosure when it is in the wall charging mode and the multiple output ports 141 to 143 are connected to the power-consuming devices.
[0083] like Figure 7As shown, when the input end of the first power converter 110 is connected to the AC input voltage AC, the first power converter 110 obtains a DC supply voltage VD1 after rectification according to the AC input voltage AC. The charging control circuit 200 determines that the system is in the wall charging mode by detecting the DC supply voltage VD1 output by the first power converter 110. Then, the charging control circuit 200 sets the second power converter 120 to a unidirectional internal mobile power supply mode. In this mode, the second power converter 120 is prohibited from discharging to the outside, and the battery pack 130 can only be charged through the second power converter 120. In this mode, the charging current of the battery pack 130 is adjusted by controlling the duty cycle of the control signal CTRL2.
[0084] In addition, when the charging control circuit 200 detects that multiple output ports 141 to 143 are connected to power devices, the charging control circuit 200 communicates with the connected power devices via the multiple output ports 141 to 143. Since the first power converter 110 can only provide a DC power supply voltage VD1, the circuit cannot simultaneously meet the different charging power requests of different power devices of multiple output ports. Therefore, in the application of the multi-channel charging circuit 400 disclosed in the present invention, the charging control circuit 200 communicates with the power devices connected to the multiple output ports 141 to 143 through protocol parameters and outputs a control signal CTRL1 to control the first power converter 110 to output a 5V power supply voltage to the port device for normal charging. In this state, the charging control circuit 200 will set a maximum charging current of, for example, 6A, to the first power converter 110 by default. At the same time, the switches S1 to S4 are controlled to be closed to charge multiple power devices through the ports.
[0085] At the same time, the charging control circuit 200 of the present embodiment also has a power distribution function, which is the same as when used for the single-channel charging circuit 300. When the charging power required by the electrical device decreases (for example, when the electrical device is almost fully charged), the charging control circuit 200 separates the excess charging capacity of the first power converter 110 and charges the internal battery pack 130 through the second power converter 120. Specifically, the charging control circuit 200 continuously detects the magnitude of the DC supply current ID2 and compares the DC supply current ID2 with the set maximum charging current value. If the DC supply current ID2 is less than the set maximum charging current value, the charging control circuit 200 generates a control signal CTRL2 to control the second power converter 120, and uses the difference between the maximum charging current value and the DC supply current ID2 as the constant current value for the second power converter 120 to charge the internal battery pack 130, so as to ensure that both the first power converter 110 and the second power converter 120 have high transmission efficiency.
[0086] Figure 8 A schematic block diagram of a multi-channel charging circuit in a seventh state according to a second embodiment of the present disclosure is shown. Figure 8 4 shows the working state of the multi-channel charging circuit 400 of the present disclosure when it is in the mobile power mode and the multiple output ports 141 to 143 are all connected to power-consuming devices.
[0087] like Figure 8 As shown, when the input end of the first power converter 110 is not connected to the AC input voltage AC, the charging control circuit 200 determines that the system is in the mobile power mode according to the size of the DC supply voltage VD1, and then sets the second power converter 120 to the mobile power mode with bidirectional charging. In this mode, the charging control circuit 200 can control the second power converter 120 to be in the external charging state or the internal charging state for the battery pack 130 according to the device connected to the output ports 141 to 143.
[0088] Similarly, when the charging control circuit 200 detects that multiple output ports 141-143 are connected to power devices, the charging control circuit 200 communicates with the connected power devices via the multiple output ports 141-143. Since the second power converter 120 can only provide a DC power supply voltage VD2, the circuit cannot simultaneously meet the different charging power requests of different power devices of multiple output ports. Therefore, in the application of the multi-channel charging circuit 400 disclosed in the present invention, the charging control circuit 200 communicates with the power devices connected to the multiple output ports 141-143 through protocol parameters and outputs a control signal CTRL2 to control the second power converter 120 to output a 5V power supply voltage to the port device for normal charging. In this state, the charging control circuit 200 will set a maximum charging current of, for example, 6A, to the second power converter 120 by default. At the same time, the control switches S2-S4 are closed, so that the internal battery pack 130 can charge multiple power devices simultaneously through the second power converter 120.
[0089] It should be noted that in the above-mentioned multi-channel charging circuit 400, the multiple output branches of the multi-channel charging circuit 400 are respectively provided with respective switches. However, the present disclosure is not limited thereto. According to the port protocol of the USB port, for a TYPE-C type USB port, switches S1 to S2 are necessary components, and their function is to control the charging process of the USB port. For other types of USB ports, switches S2 to S4 are optional devices, and their function is to provide additional protection for the charging circuit itself and the electrical equipment connected to the USB port.
[0090] In addition, it should be noted that in the above-mentioned single-channel charging circuit 300 and multi-channel charging circuit 400, the multiple switches S1-S4 in the charging circuit can also be built into the charging control circuit 200, and the present disclosure does not limit this.
[0091] It should be noted that the multiple output ports in the multi-channel charging circuit 400 of the present disclosure may be, for example, USB ports. Further, at least one of the multiple output ports is a TYPE-C USB port, a TYPE-A USB port, a Micro USB port, or a Lightning port, wherein the TYPE-C USB port may support bidirectional charging, and other USB ports, such as a TYPE-A USB port, a Micro USB port, or a Lightning port, may only support external charging.
[0092] According to the charging circuit of this embodiment, the AC input and the AC-DC converter form a first-stage power converter, and the battery pack and the DC-DC converter form a second-stage power converter. By using a charging topology in which the above two outputs are independently controlled, a combination of a wall charging mode and a mobile power supply mode is achieved while using simpler devices and at a lower cost, thereby improving the convenience of charging electrical devices.
[0093] Fig. 9 The internal structure schematic diagram of the charging control circuit in the multi-path charging circuit provided according to the second embodiment of the present disclosure is shown. The charging control circuit 200 provides control signals CTRL1 and CTRL2 to the first power converter 110 and the second power converter 120 respectively according to the DC power supply voltage VD1 and the DC power supply current ID1 obtained from the output end of the first power converter 110, the DC power supply voltage VD2 and the DC power supply current ID2 obtained from the output end of the second power converter 120, the battery voltage VBAT obtained from the battery pack 130, and the protocol parameters, and provides corresponding switch control signals to multiple switches in the circuit to realize the switching of the charging path.
[0094] like Fig. 9 As shown, the charging control circuit 200 includes a first power controller 201, a second power controller 202, a power distribution operation controller 203, voltage sampling units 211~213, analog-to-digital converters ADC1~ADC5, digital-to-analog converters DAC1 and DAC2, operational amplifiers AMP1 and AMP2, protocol interface modules 231 and 232, and a protocol communication calculation module 233.
[0095] The charging control circuit 200 is connected to the output end of the first power converter 110 to obtain a DC supply voltage VD1 and a DC supply current ID1. Inside the charging control circuit 200, the input end of the voltage sampling unit 211 is used to receive the DC supply voltage VD1, and the output end of the voltage sampling unit 211 is used to provide a sampling voltage Vs1 that represents the magnitude of the DC supply voltage VD1. The operational amplifier AMP1 is used to sample and amplify the DC supply current ID1 to obtain a sampling current Is1. The input end of the first power controller 201 receives the sampling voltage Vs1, the sampling current Is1, and the analog reference voltage Vref and the analog reference current Iref set inside the circuit, which is used to compare the sampling voltage Vs1 and the sampling current Is1 with the analog reference voltage Vref and the analog reference current Iref respectively to obtain an error signal, and loop compensation is performed on the error signal to generate a control signal CTRL1 to improve the stability of the voltage loop of the first power converter 110. For example, the charging control circuit 200 provides the control signal CTRL1 to the first power converter 110, for example, to the compensation terminal of the first power converter 110 via an optical coupler, and the first power converter 110 adjusts the magnitude of the DC supply voltage VD1 according to the control signal CTRL1.
[0096] Furthermore, the first power controller 201 can be implemented, for example, by an analog circuit, specifically including error amplifiers EA1 and EA2 and a loop compensation module 221. Among them, the non-inverting input terminal of the error amplifier EA1 is used to receive the analog reference voltage Vref, the inverting input terminal is used to receive the sampled voltage Vs1, and the output terminal is used to provide the error signal Vea1. The non-inverting input terminal of the error amplifier EA2 is used to receive the analog reference current Iref, the inverting input terminal is used to receive the sampled current Is1, and the output terminal is used to provide the error signal Vea2. The loop compensation module 221 is connected to the output terminals of the error amplifiers EA1 and EA2, and is used to perform loop compensation on the error signals Vea1 and Vea2 to generate the control signal CTRL1.
[0097] Further, the charging control circuit 200 is connected to the output end of the second power converter 120 to obtain the DC supply voltage VD2 and the DC supply current ID2, and is connected to the battery pack 130 to obtain the battery voltage VBAT. Inside the charging control circuit 200, the input end of the voltage sampling unit 212 is used to receive the DC supply voltage VD2, the output end of the voltage sampling unit 212 is used to provide a sampling voltage Vs2 that characterizes the magnitude of the DC supply voltage VD2, and the analog-to-digital converter ADC1 converts the analog value of the sampling voltage Vs2 into a digital value of the sampling voltage Vs2. The operational amplifier AMP2 samples and amplifies the DC supply current ID2 output by the second power converter 120 to obtain the sampling current Is2, and the analog-to-digital converter ADC2 converts the analog value of the sampling current Is2 into a digital value of the sampling current Is2. The input end of the voltage sampling unit 213 is used to receive the battery voltage VBAT, the output end of the voltage sampling unit 213 is used to provide a sampling voltage Vs3, and the analog-to-digital converter ADC3 is used to convert the analog value of the sampling voltage Vs3 into a digital value of the sampling voltage Vs3. The input end of the second power controller 202 receives the digital values of the sampling current Is2, the sampling voltage Vs2, the sampling voltage Vs3, and the digital reference voltage and digital reference current inside the circuit, and its output end is used to provide a control signal CTRL2 to the second power converter 120.
[0098] Further, the second power controller 202 can be implemented by a digital circuit, for example, and specifically includes a first comparator COMP1 and a second comparator COMP2, a pulse width modulation module 222 and a PWM drive module 223. The first comparator COMP1 compares the digital value of the sampled voltage Vs2, the digital value of the sampled voltage Vs3 and the digital reference voltage to generate a first logic signal, and the second comparator COMP2 compares the digital value of the sampled current Is2 with the digital reference current to generate a second logic signal. The pulse width modulation module 222 generates a first intermediate signal for controlling the second power converter 120 according to the first logic signal, the second logic signal and the third logic signal provided by the power distribution operation controller 203. The PWM drive module 223 generates the control signal CTRL2 according to the first intermediate signal for controlling the second power converter 120. The first comparator COMP1 and the second comparator COMP2 can be digital comparators, which compare the digital value of the sampled voltage Vs2 with the digital value of the sampled voltage Vs3 to obtain an initial duty cycle, and adjust the initial duty cycle so that the digital value of the sampled voltage Vs2 follows the digital reference voltage.
[0099] Inside the charging control circuit 200, the protocol interface modules 231 and 232 are used to obtain the charging protocol parameters of the power device or adapter connected to the output port 140, such as the protocol type of the fast charging protocol of the power device connected to the output port 140, the requested charging voltage and charging current. The protocol communication calculation module 223 is connected to the outputs of the protocol interface modules 231 and 232, and calculates the digital reference voltage and digital reference current inside the circuit according to the protocol type of the power device, the requested charging voltage and charging current obtained by the protocol interface modules 231 and 232.
[0100] In the charging control circuit 200, the digital-to-analog converter DAC1 is connected to the protocol communication calculation module 223 to receive the digital reference voltage and convert the digital reference voltage into an analog reference voltage Vref. The digital-to-analog converter DAC2 is connected to the protocol communication calculation module 223 to receive the digital reference current and convert the digital reference current into an analog reference current Iref. The analog-to-digital converter ADC4 is connected to the output end of the operational amplifier AMP1 to convert the analog value of the sampling current Is1 into the digital value of the sampling current Is1, and the analog-to-digital converter ADC5 is connected to the output end of the voltage sampling unit 211 to convert the analog value of the sampling voltage Vs1 into the digital value of the sampling voltage Vs1.
[0101] The power distribution operation controller 203 is connected to the analog-to-digital converter ADC4 to obtain the digital value of the sampled current Is1, connected to the analog-to-digital converter ADC5 to obtain the digital value of the sampled voltage Vs1, connected to the analog-to-digital converter ADC3 to obtain the digital value of the sampled voltage Vs3, connected to the protocol communication calculation module 233 to obtain the digital reference voltage and digital reference current requested by the protocol, connected to the analog-to-digital converter ADC1 to obtain the digital value of the sampled voltage Vs2, and connected to the analog-to-digital converter ADC2 to obtain the digital value of the sampled current Is2. The power distribution operation controller 203 is used to compare and operate according to the above-mentioned digital signals to obtain the aforementioned third logic signal, and to regulate the charging process of the charging circuit of the present disclosure.
[0102] For example, the power distribution operation controller 203 can calculate the external charging power or internal charging power of the charging circuit system according to the digital values of the sampled voltage Vs2 and the sampled current Is2. The power distribution operation controller 203 is also used to determine the working state of the battery pack 130 inside the system according to the digital value of the battery voltage sampled, so as to protect the battery pack 130. The power distribution operation controller 203 is also used to calculate the maximum power requested by the protocol according to the digital reference voltage and digital reference current output by the protocol communication calculation module 233. The power distribution operation controller 203 is also used to determine the working state of the first power converter 110 according to the digital values of the sampled voltage Vs1 and the sampled current Is1, and calculate the actual output power of the first power converter 110. The power distribution operation controller 203 is also used to generate switch control signals CTRL-S1 to CTRL-S4 of multiple switches S1 to S4 according to the digital values of the sampled voltage Vs1 and the sampled current Is1 and the protocol parameters of the electrical equipment connected to the output port 140. The power allocation operation controller 203 is also used to compare the external charging power of the output port with the maximum power requested by the protocol when it is detected that the first power converter 110 is in the working state. If the external charging power of the port is less than the maximum power requested by the protocol, the remaining power is used as the charging power of the battery pack 130 through the second power converter 120. For example, when the first power converter 110 charges the electric device connected to the output port, the DC supply voltage VD1 is equal to the DC supply voltage VD2, and is equal to the port charging voltage. At this time, the DC supply current ID2 is the charging current of the electric device. If the DC supply current ID2 is less than the reference current, it means that the external charging power of the port is less than the maximum power requested, and the difference between the two is equal to (reference current-ID2)*VD2.
[0103] In summary, the charging circuit of the present invention combines the AC input and the AC-DC converter into a first-stage power converter, and the battery pack and the DC-DC converter into a second-stage power converter. By using the charging topology in which the above two outputs are independently controlled, the combination of the wall charging mode and the mobile power supply mode is realized under the conditions of using simpler devices and lower costs, thereby improving the convenience of charging electrical devices.
[0104] In addition, the present invention uses a single chip to implement functions such as DC-DC converter feedback control, protocol communication, and AC-DC converter feedback control, which greatly simplifies the circuit structure when the wall charging solution and the mobile power solution are combined together, while reducing the number of components and reducing costs.
[0105] Furthermore, the charging control circuit of the present invention also has a built-in power distribution operation controller. When the output power of the AC-DC converter is less than the requested power of the electrical equipment, the difference between the requested charging power and the actual output power is distributed to the DC-DC converter to charge and store energy in the internal battery pack, so that the AC-DC converter can operate in a high-efficiency state for a long time, thereby improving the utilization efficiency of the AC-DC converter.
[0106] Furthermore, in the wall charging mode, the AC-DC converter of the charging circuit disclosed in the present invention gives priority to charging external power devices and stores excess energy in the internal battery pack, thereby fully realizing the function of the adapter and saving energy. In the mobile power supply mode, the charging circuit disclosed in the present invention can charge external power devices through the port, and can also charge the internal battery through the port external adapter, thereby fully retaining the function of the mobile power supply. Therefore, the charging circuit disclosed in the present invention combines the travel charger and the mobile power supply together while maintaining the integrity of their respective functions, greatly improving the user's convenience.
[0107] The embodiments of the present invention are described above, and these embodiments do not describe all the details in detail, nor do they limit the present invention to the specific embodiments described. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modifications based on the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A charging circuit, characterized in that: include: A first power converter, wherein an input end of the first power converter is connected to an AC input voltage, and an output end of the first power converter outputs a first DC supply voltage and a first DC supply current; a second power converter, wherein a first terminal of the second power converter is connected to an output terminal of the first power converter via a first switch; a battery pack connected to the second end of the second power converter; at least one output branch connected to an intermediate node between the first power converter and the second power converter, each output branch comprising an output port connected to an external device and a second switch connected between the intermediate node and the output port; as well as a charging control circuit connected to at least one output port, the first power converter and the second power converter, The charging control circuit controls the switching of the charging path of the charging circuit according to the protocol parameters of the device connected to the at least one output port and the working state of the first power converter.
2. The charging circuit according to claim 1, characterized in that: The charging circuit includes: a first charging path from the first power converter to the output port, a second charging path from the first power converter to the battery pack, a third charging path from the battery pack to the output port, and a fourth charging path from the output port to the battery pack.
3. The charging circuit according to claim 2, characterized in that: The external device includes an electric device or an adapter.
4. The charging circuit according to claim 3, characterized in that: When the first power converter is in operation and the external device is an electric device, the charging control circuit controls the first switch and the second switch to be closed to conduct the first charging path.
5. The charging circuit according to claim 4, characterized in that: When the external charging power of the output port is less than the maximum power requested by the protocol parameters, the charging control circuit controls the power transmission direction of the second power converter from the first end of the second power converter to the second end of the second power converter to conduct the second charging path.
6. The charging circuit according to claim 5, characterized in that: The charging power of the second charging path is equal to the difference between the maximum power requested by the protocol parameters and the external charging power of the output port.
7. The charging circuit according to claim 3, characterized in that: When the first power converter is in operation and the external device is an adapter or the output port is suspended, the charging control circuit controls the first switch to be closed and the second switch to be opened to conduct the second charging path.
8. The charging circuit according to claim 3, characterized in that: When the first power converter is in a shutdown state and the external device is an electric device, the charging control circuit controls the first switch to be opened and the second switch to be closed to conduct the third charging path.
9. The charging circuit according to claim 3, characterized in that: When the first power converter is in a shutdown state and the external device is an adapter, the charging control circuit controls the first switch to be opened and the second switch to be closed to conduct the fourth charging path.
10. The charging circuit according to claim 2, characterized in that: The charging control circuit samples the first DC supply voltage and the first DC supply current, and generates a first control signal for the first power converter according to the sampling result and the protocol parameter to adjust the first DC supply voltage.
11. The charging circuit according to claim 2, characterized in that: The charging control circuit samples a second DC supply voltage and a second DC supply current at an intermediate node between the first power converter and the second power converter, and generates a second control signal for the second power converter according to the sampling results of the second DC supply voltage and the second DC supply current, the battery voltage and the protocol parameters to adjust the second DC supply voltage.
12. The charging circuit according to claim 3, characterized in that: The charging control circuit is also configured to: when the number of the output branches connected to the electrical device is one, control the charging circuit to quickly charge the electrical device connected to the output port; when the number of the output branches connected to the electrical device is multiple, control the charging circuit to normally charge the electrical devices connected to multiple output ports.
13. The charging circuit according to claim 2, characterized in that: The charging control circuit comprises: a plurality of protocol interface modules connected to the output ports on the at least one output branch to obtain protocol parameters of external devices connected to the output ports; and A protocol communication calculation module is connected to the plurality of protocol interface modules and generates a digital reference voltage and a digital reference current for the first power converter and the second power converter according to protocol parameters of the external device.
14. The charging circuit according to claim 13, characterized in that: The charging control circuit further includes: A first voltage sampling unit, used for sampling the first DC supply voltage to obtain a first sampled voltage; A first operational amplifier, used for sampling and amplifying the first DC supply current to obtain a first sampled current; A first digital-to-analog converter, configured to convert the digital reference voltage into an analog reference voltage; A second digital-to-analog converter, configured to convert the digital reference current into an analog reference current; and a first power controller, connected to the first voltage sampling unit and the first digital-to-analog converter to receive the first sampling voltage and the analog reference voltage respectively, connected to the first operational amplifier and the second digital-to-analog converter to receive the first sampling current and the analog reference current respectively, and compares the first sampling voltage and the first sampling current with the analog reference voltage and the analog reference current respectively to obtain an error signal, and performs loop compensation on the error signal to generate a first control signal, The first power converter adjusts the first DC supply voltage according to the first control signal.
15. The charging circuit according to claim 14, characterized in that: The first power controller comprises: A first error amplifier, whose non-inverting input terminal is used to receive the analog reference voltage, whose inverting input terminal is used to receive the first sampling voltage, and whose output terminal is used to provide a first error signal; a second error amplifier, whose non-inverting input terminal is used to receive the analog reference current, whose inverting input terminal is used to receive the first sampling current, and whose output terminal is used to provide a second error signal; and The loop compensation module is connected to the first error amplifier and the second error amplifier to receive the first error signal and the second error signal, and performs loop compensation on the first error signal and the second error signal to generate the first control signal.
16. The charging circuit according to claim 14, characterized in that: The charging control circuit further includes: A second voltage sampling unit, used for sampling the second DC supply voltage output by the second power converter to obtain a second sampled voltage; A first analog-to-digital converter, configured to convert an analog value of the second sampled voltage into a digital value; A second operational amplifier, used for sampling and amplifying a second DC supply current output by the second power converter to obtain a second sampled current; A second analog-to-digital converter, used for converting the analog value of the second sampling current into a digital value; A third voltage sampling unit, used for sampling the battery voltage of the battery pack to obtain a third sampled voltage; A third analog-to-digital converter, configured to convert the analog value of the third sampled voltage into a digital value; and a second power controller connected to the first analog-to-digital converter, the second analog-to-digital converter and the third analog-to-digital converter to obtain a digital value of the second sampling voltage, a digital value of the second sampling current and a digital value of the third sampling voltage, and compares the digital value of the second sampling voltage, the digital value of the second sampling current and the digital value of the third sampling voltage with the digital reference voltage and the digital reference current to generate a second control signal, The second power converter adjusts the second DC supply voltage according to the second control signal.
17. The charging circuit according to claim 16, characterized in that: The charging control circuit further includes: a fourth analog-to-digital converter, configured to convert the analog value of the first sampling current into a digital value; a fifth analog-to-digital converter, configured to convert the analog value of the first sampled voltage into a digital value; and A power distribution operation controller receives the digital value of the first sampling voltage, the digital value of the second sampling voltage, the digital value of the third sampling voltage, the digital value of the first sampling current, the digital value of the second sampling current, the digital reference voltage and the digital reference current, and generates a switch control signal for controlling the first switch and the second switch and a third logic signal provided to the second power controller.
18. The charging circuit according to claim 17, characterized in that: The second power controller comprises: a first comparator, comparing the digital value of the second sampled voltage, the digital value of the third sampled voltage, and the digital reference voltage to generate a first logic signal; a second comparator, comparing the digital value of the second sampling current with the digital reference current to generate a second logic signal; a pulse width modulation module, connected to the first comparator and the second comparator respectively to obtain a first logic signal and a second logic signal, and to generate a first intermediate signal according to the first logic signal, the second logic signal and the third logic signal; and A PWM driving module is connected to the pulse width modulation module to obtain the first intermediate signal, and generates the second control signal according to the first intermediate signal.
19. The charging circuit according to claim 13, characterized in that: The protocol communication calculation module obtains the device type and the requested charging voltage and charging current according to the protocol parameters of the power-consuming device connected to at least one output port.
20. The charging circuit according to claim 1, characterized in that: The output port of the at least one output branch is a USB port.
21. The charging circuit according to claim 1, characterized in that: The output port of the at least one output branch is a TYPE-C USB port, a TYPE-A USB port, a Micro USB port or a Lightning port.
22. The charging circuit according to claim 1, characterized in that: The first power converter is an AC-DC converter.
23. The charging circuit according to claim 1, characterized in that: The second power converter is a DC-DC converter.
24. A charging control circuit for a charging circuit, the charging circuit comprising a first power converter, a second power converter, a battery pack and at least one output branch, the first power converter converts an AC input voltage into a first DC supply voltage and a first DC supply current, a first end of the second power converter is connected to the output end of the first power converter via a first switch, the battery pack is connected to the second end of the second power converter, the at least one output branch is connected to an intermediate node between the first power converter and the second power converter, each output branch comprises an output port connected to an external device and a second switch connected between the intermediate node and the output port, wherein: The charging circuit includes: a first charging path from the first power converter to the output port, a second charging path from the first power converter to the battery pack, a third charging path from the battery pack to the output port, and a fourth charging path from the output port to the battery pack. The charging control circuit is used to control the switching of the charging path of the charging circuit according to the protocol parameters of the device connected to at least one output port and the working state of the first power converter, including: A plurality of protocol interface modules connected to the output port on the at least one output branch to obtain protocol parameters of an external device connected to the output port; a protocol communication calculation module connected to the plurality of protocol interface modules, and generating a digital reference voltage and a digital reference current of the first power converter and the second power converter according to the protocol parameters of the external device; and A power distribution operation controller generates a switch control signal for controlling the first switch and the second switch and a third logic signal for controlling the second power converter based on comparison and operation of the sampling value of the first DC supply voltage, the sampling value of the first DC supply current, the sampling value of the battery pack voltage, the sampling value of the second DC supply voltage at the intermediate node, the sampling value of the second DC supply current at the intermediate node, the digital reference voltage and the digital reference current.
25. The charging control circuit according to claim 24, characterized in that: The protocol communication calculation module obtains the device type and the requested charging voltage and charging current according to the protocol parameters of the device connected to at least one output port.
26. The charging control circuit according to claim 24, characterized in that: The charging control circuit further includes: A first voltage sampling unit, used for sampling the first DC supply voltage to obtain a first sampled voltage; A first operational amplifier, used for sampling and amplifying the first DC supply current to obtain a first sampled current; A first digital-to-analog converter, configured to convert the digital reference voltage into an analog reference voltage; A second digital-to-analog converter, configured to convert the digital reference current into an analog reference current; and a first power controller, connected to the first voltage sampling unit and the first digital-to-analog converter to receive the first sampling voltage and the analog reference voltage respectively, connected to the first operational amplifier and the second digital-to-analog converter to receive the first sampling current and the analog reference current respectively, and compares the first sampling voltage and the first sampling current with the analog reference voltage and the analog reference current respectively to obtain an error signal, and performs loop compensation on the error signal to generate a first control signal, The first power converter adjusts the first DC supply voltage according to the first control signal.
27. The charging control circuit according to claim 26, characterized in that: The first power controller comprises: A first error amplifier, whose non-inverting input terminal is used to receive the analog reference voltage, whose inverting input terminal is used to receive the first sampling voltage, and whose output terminal is used to provide a first error signal; a second error amplifier, whose non-inverting input terminal is used to receive the analog reference current, whose inverting input terminal is used to receive the first sampling current, and whose output terminal is used to provide a second error signal; and The loop compensation module is connected to the first error amplifier and the second error amplifier to receive the first error signal and the second error signal, and performs loop compensation on the first error signal and the second error signal to generate the first control signal.
28. The charging control circuit according to claim 26, characterized in that: The charging control circuit further includes: A second voltage sampling unit, used for sampling the second DC supply voltage to obtain a second sampled voltage; A first analog-to-digital converter, configured to convert an analog value of the second sampled voltage into a digital value; A second operational amplifier, used for sampling and amplifying the second DC supply current to obtain a second sampled current; A second analog-to-digital converter, used for converting the analog value of the second sampling current into a digital value; A third voltage sampling unit, used for sampling the battery voltage of the battery pack to obtain a third sampled voltage; A third analog-to-digital converter, configured to convert the analog value of the third sampled voltage into a digital value; and a second power controller connected to the first analog-to-digital converter, the second analog-to-digital converter and the third analog-to-digital converter to obtain a digital value of the second sampling voltage, a digital value of the second sampling current and a digital value of the third sampling voltage, and compares the digital value of the second sampling voltage, the digital value of the second sampling current and the digital value of the third sampling voltage with the digital reference voltage and the digital reference current to generate a second control signal, The second power converter adjusts the second DC supply voltage according to the second control signal.
29. The charging control circuit according to claim 28, characterized in that: The charging control circuit further includes: a fourth analog-to-digital converter, configured to convert the analog value of the first sampling current into a digital value; and a fifth analog-to-digital converter, configured to convert the analog value of the first sampled voltage into a digital value, Among them, the power distribution operation controller receives the digital value of the first sampling voltage, the digital value of the second sampling voltage, the digital value of the third sampling voltage, the digital value of the first sampling current, the digital value of the second sampling current, the digital reference voltage and the digital reference current, and generates a switch control signal for controlling the first switch and the second switch and a third logic signal provided to the second power controller.
30. The charging control circuit according to claim 29, characterized in that: The second power controller comprises: a first comparator, comparing the digital value of the second sampled voltage, the digital value of the third sampled voltage, and the digital reference voltage to generate a first logic signal; a second comparator, comparing the digital value of the second sampling current with the digital reference current to generate a second logic signal; a pulse width modulation module, connected to the first comparator and the second comparator respectively to obtain a first logic signal and a second logic signal, and to generate a first intermediate signal according to the first logic signal, the second logic signal and the third logic signal; and A PWM driving module is connected to the pulse width modulation module to obtain the first intermediate signal, and generates the second control signal according to the first intermediate signal.