Multi-path charging circuit and electronic equipment
By introducing charging units, driving units and on-off units into the multi-channel charging circuit, the problems of many devices and large PCB space caused by many signals in the prior art are solved, and the number and space of devices are reduced.
Patent Information
- Application Number
- CN202421893073.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2034-08-06
AI Technical Summary
There are many signals in existing multi-channel charging circuits, resulting in a large number of devices and occupying a large amount of PCB space.
A multi-channel charging circuit is adopted, including a charging unit, a driving unit and an on-off unit. The driving unit inputs a VBUS signal and/or a CC signal, outputs a charging signal to the charging unit, and outputs a driving signal to the on-off unit. The on-off unit turns on or off the path between the charging port and the USB port and the charging unit according to the signal, thereby reducing the number of units and signals.
By reducing the number of charging units and signals, the number of devices is reduced and the use of PCB space is reduced.
Smart Images

Figure CN223194426U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of communications, and particularly relates to a multi-channel charging circuit and an electronic device. Background Art
[0002] With the development and diversification of electronic devices, the functions of electronic devices such as mobile phones and tablets are becoming more and more complex, and the demand for multiple peripheral interfaces is also increasing. An electronic device with multiple peripheral interfaces usually adopts multi-port charging and uses one or more of the ports for communication. For example, the multiple peripheral interfaces include a docking charging interface and a USB interface. The electronic device can be charged through the docking charging interface or through the USB interface. In addition, the USB interface is also used for communication.
[0003] Currently, for an electronic device with multiple peripheral interfaces, it usually includes two charging paths, one as the main charging path and the other as the auxiliary charging path. For each charging path, a set of charging-related signals is included, and in addition, two flag signals are also included.
[0004] Since the charging circuit for multi-channel charging provided in the prior art involves more signals, it involves more additional components and occupies a larger PCB space. Summary of the Utility Model
[0005] The utility model provides a multi-channel charging circuit and an electronic device to solve the problems in the prior art that the charging circuit for multi-channel charging involves more signals, more additional components, and occupies a larger PCB space.
[0006] In a first aspect, an embodiment of the utility model provides a multi-channel charging circuit, which is applied to an electronic device. The electronic device includes a USB port, a charging port, and a battery unit. The multi-channel charging circuit includes: a charging unit, a driving unit, and a switching unit;
[0007] The first input end of the driving unit is electrically connected to the third end of the switching unit and the VBUS signal end of the charging unit. The second input end of the driving unit is electrically connected to the configuration channel CC end of the USB port. The first output end of the driving unit is electrically connected to the signal input end of the charging unit. The second output end of the driving unit is electrically connected to the driving end of the switching unit;
[0008] The output end of the charging unit is electrically connected to the input end of the battery unit;
[0009] The first end of the switching unit is electrically connected to the output end of the charging port. The second end of the switching unit is electrically connected to the output end of the USB port;
[0010] The driving unit is configured to input a VBUS signal and / or a CC signal, output a charging signal to the charging unit, and output a driving signal to the switching unit;
[0011] The switching unit is configured to receive the driving signal and conduct the path between the first end and the third end of the switching unit, or conduct the path between the second end and the third end of the switching unit.
[0012] In a possible implementation, the driving unit includes a first detection module and a first controller;
[0013] The first input end of the first detection module is electrically connected to the third end of the switching unit and the VBUS signal end of the charging unit, the second input end of the first detection module is electrically connected to the CC end of the USB port, and the output end of the first detection module is electrically connected to the input end of the first controller;
[0014] The first output end of the first controller is electrically connected to the signal input end of the charging unit, and the second output end of the first controller is electrically connected to the driving end of the switching unit.
[0015] In a possible implementation, the driving unit includes a second detection module and a second controller;
[0016] The input end of the second detection module is electrically connected to the CC end of the USB port, the first output end of the second detection module is electrically connected to the signal input end of the charging unit, and the second output end of the second detection module is electrically connected to the first input end of the second controller;
[0017] The second input end of the second controller is electrically connected to the third end of the switching unit and the VBUS signal end of the charging unit, and the output end of the second controller is electrically connected to the driving end of the switching unit.
[0018] In a possible implementation, the second output end of the driving unit includes a first sub-output end and a second sub-output end, and the switching unit includes a first switching unit and a second switching unit;
[0019] The first sub-output end of the driving unit is electrically connected to the driving end of the first switching unit, and the second sub-output end of the driving unit is electrically connected to the driving end of the second switching unit;
[0020] The first end of the first switching unit is electrically connected to the output end of the charging port, and the second end of the first switching unit is electrically connected to the second end of the second switching unit and serves as the third end of the switching unit;
[0021] The first end of the second on-off unit is electrically connected to the output end of the USB port.
[0022] In a possible implementation, the first on-off unit includes a first resistor, a first capacitor, and a first switching tube;
[0023] The first end of the first resistor is electrically connected to the power voltage terminal, and the second end of the first resistor is electrically connected to the first sub-output end of the driving unit and the control end of the first switching tube;
[0024] The first end of the first switching tube is electrically connected to the output end of the charging port, and the second end of the first switching tube is electrically connected to the first end of the first capacitor, the first input end of the driving unit, and the VBUS signal terminal of the charging unit;
[0025] The second end of the first capacitor is grounded.
[0026] In a possible implementation, the second on-off unit includes a second resistor, a second capacitor, and a second switching tube;
[0027] The first end of the second resistor is electrically connected to the power voltage terminal, and the second end of the second resistor is electrically connected to the second sub-output end of the driving unit and the control end of the second switching tube;
[0028] The first end of the second switching tube is electrically connected to the output end of the USB port, and the second end of the second switching tube is electrically connected to the first end of the second capacitor, the first input end of the driving unit, and the VBUS signal terminal of the charging unit;
[0029] The second end of the second capacitor is grounded.
[0030] In a possible implementation, both the first switching tube and the second switching tube are PMOS tubes.
[0031] In a possible implementation, both the first switching tube and the second switching tube are NMOS tubes.
[0032] In a second aspect, an embodiment of the present invention provides an electronic device, including a charging port, a USB port, a battery unit, and a multi-channel charging circuit as described in any one of the first aspects.
[0033] In a possible implementation, the USB port is a Type-C port.
[0034] The beneficial effects of the present invention are as follows:
[0035] An embodiment of the present utility model provides a multi-channel charging circuit and an electronic device. The multi-channel charging circuit includes a charging unit, a driving unit, and a switching unit. The driving unit is electrically connected to the charging unit and the switching unit. The driving unit inputs a VBUS signal and / or a CC signal, outputs a charging signal to the charging unit, and outputs a driving signal to the switching unit. After receiving the driving signal, the switching unit conducts the path between the output end of the charging port and the charging unit, or conducts the path between the output end of the USB port and the charging unit, so as to charge through the voltage output by the charging port or charge through the voltage output by the USB port. Since the multi-channel charging circuit only includes one charging unit and a set of charging signals, compared with the related technology that includes two charging units, two sets of charging signals, and two flag signals, the number of units and signals is reduced, so that the number of devices can be reduced and the occupied PCB space can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present utility model, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present utility model. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0037] Figure 1 Structural schematic diagram of a multi-channel power-on circuit provided by an embodiment of the present utility model;
[0038] Figure 2 Structural schematic diagram of another multi-channel power-on circuit provided by an embodiment of the present utility model;
[0039] Figure 3 Structural schematic diagram of another multi-channel power-on circuit provided by an embodiment of the present utility model;
[0040] Figure 4 Structural schematic diagram of another multi-channel power-on circuit provided by an embodiment of the present utility model;
[0041] Figure 5 Structural schematic diagram of another multi-channel power-on circuit provided by an embodiment of the present utility model;
[0042] Figure 6 Structural schematic diagram of another multi-channel power-on circuit provided by an embodiment of the present utility model;
[0043] Figure 7 Structural schematic diagram of another multi-channel power-on circuit provided by an embodiment of the present utility model;
[0044] Figure 8 Structural schematic diagram of another multi-channel power-on circuit provided by an embodiment of the present utility model;
[0045] Figure 9 This is a schematic structural diagram of another multi - power - on circuit provided by an embodiment of the present utility model;
[0046] Figure 10 This is a schematic structural diagram of an electronic device provided by an embodiment of the present utility model. Detailed implementation manners
[0047] In order to make the objectives, technical solutions and advantages of the present utility model clearer, the present utility model will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present utility model, rather than all of the embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present utility model.
[0048] For an electronic device with multiple charging methods, for example, it can be charged through a USB port or a desktop charger. The electronic device includes a multi - charging circuit. The multi - charging circuit involves more additional components, resulting in a larger occupied PCB space. Based on the above problems, the embodiments of the present utility model provide a multi - charging circuit and an electronic device. Among them, the multi - charging circuit includes a charging unit, a driving unit and a switching unit. The driving unit is electrically connected to the charging unit and the switching unit. The driving unit inputs a VBUS signal and / or a CC signal, outputs a charging signal to the charging unit, and outputs a driving signal to the switching unit. After receiving the driving signal, the switching unit conducts the path between the output end of the charging port and the charging unit, or conducts the path between the output end of the USB port and the charging unit, so as to realize charging through the voltage output by the charging port or charging through the voltage output by the USB port. Since this multi - charging circuit only includes one charging unit and a set of charging signals, compared with the related technology which includes two charging units, two sets of charging signals and two flag signals, the number of units and signals is reduced, thereby reducing the number of components and the occupied PCB space.
[0049] The multi - charging circuit and the electronic device provided by the present utility model will be described in detail below with reference to the accompanying drawings.
[0050] As Figure 1 shown, this is a schematic structural diagram of a multi - charging circuit provided by an embodiment of the present utility model. The multi - charging circuit 10 is applied to an electronic device. The electronic device further includes a USB port, a charging port and a battery unit. The multi - charging circuit 10 includes: a charging unit 101, a driving unit 102 and a switching unit 103;
[0051] The first input end of the driving unit 102 is electrically connected to the third end of the switching unit 103 and the VBUS signal end of the charging unit 101. The second input end of the driving unit 102 is electrically connected to the configuration channel CC end of the USB port. The first output end of the driving unit 102 is electrically connected to the signal input end of the charging unit 101. The second output end of the driving unit 102 is electrically connected to the driving end of the switching unit 103;
[0052] The output end of the charging unit 101 is electrically connected to the input end of the battery unit;
[0053] The first end of the switching unit 103 is electrically connected to the output end of the charging port. The second end of the switching unit 103 is electrically connected to the output end of the USB port;
[0054] The driving unit 103 is configured to input a VBUS signal and / or a CC signal, output a charging signal to the charging unit 101, and output a driving signal to the switching unit 103;
[0055] The switching unit 103 is configured to receive a driving signal and conduct the path between the first end and the third end of the switching unit 103, or conduct the path between the second end and the third end of the switching unit 103.
[0056] In the embodiment of the present invention, the multi-channel charging circuit only includes one charging unit and one set of charging signals, compared with the related technology that includes two charging units, two sets of charging signals and two flag signals, reducing the number of units and signals, thus reducing the number of devices and the occupied PCB space.
[0057] In the embodiment of the present invention, when the charging port inputs a voltage or the USB port inputs a voltage, the third end of the switching unit 103 outputs a VBUS voltage, and the first input end of the driving unit 102 is electrically connected to the first input end of the switching unit 103. Therefore, the first input end of the driving unit 102 inputs a VBUS voltage.
[0058] In a specific implementation, as Figure 2 shown, the driving unit 102 includes a first detection module 1021 and a first controller 1022;
[0059] The first input end of the first detection module 1021 serves as the first input end of the driving unit 102 and is electrically connected to the third end of the switching unit 103 and the VBUS signal end of the charging unit 101. The second input end of the first detection module 1021 serves as the second input end of the driving unit 102 and is electrically connected to the CC end of the USB port. The output end of the first detection module is electrically connected to the input end of the first controller 1022;
[0060] The first output terminal of the first controller 1022 serves as the first output terminal of the driving unit 102 and is electrically connected to the signal input terminal of the charging unit 101. The second output terminal of the first controller 1022 serves as the second output terminal of the driving unit 102 and is electrically connected to the driving terminal of the switching unit 103.
[0061] In a specific implementation, the first detection module 1021 can be a power management chip or a detection chip. The first controller 1022 can be an MCU. The first detection module 1021 and the first controller 1022 can be connected through a communication port, such as an I2C port. The first detection module 1021 sends information conforming to the port protocol to the first controller 1022.
[0062] For example, if the first detection module 1021 only inputs the VBUS signal, the first detection module 1021 outputs the first information conforming to the interface protocol. At this time, it indicates that the electronic device is charging through the charging port. After receiving the first information output by the first detection module 1021, the first controller 1022 outputs a charging signal representing the first charging parameter of the charging port charging to the charging unit 101, and outputs a first driving signal to the switching unit 103. After receiving the first driving signal, the switching unit 103 conducts the path between the output terminal of the charging port and the third terminal of the switching unit 103, and disconnects the path between the output terminal of the USB port and the third terminal of the switching unit 103. Since the third terminal of the switching unit 103 is electrically connected to the VBUS signal terminal of the charging unit 101, the charging unit 101 inputs the voltage VBUS_ZC output by the charging port, and the charging unit 101 charges the battery unit based on the charging signal representing the first charging parameter of the charging port charging received and the voltage VBUS_ZC output by the charging port;
[0063] If the first detection module 1021 inputs the VBUS signal and the CC signal, the first detection module 1021 outputs the second information conforming to the interface protocol. At this time, it indicates that the electronic device is charging through the USB port. After receiving the second information output by the first detection module 1021, the first controller 1022 outputs a charging signal representing the second charging parameter of the USB port charging to the charging unit 101, and outputs a second driving signal to the switching unit 103. After receiving the second driving signal, the switching unit 103 conducts the path between the USB port and the third terminal of the switching unit 103, and disconnects the path between the charging port and the third terminal of the switching unit 103. Since the third terminal of the switching unit 103 is electrically connected to the VBUS signal terminal of the charging unit 101, the charging unit 101 inputs the voltage VBUS_USB output by the USB port, and the charging unit 101 charges the battery unit based on the charging signal representing the second charging parameter of the USB port charging received and the voltage VBUS_USB output by the USB port.
[0064] In another embodiment, as Figure 3 shown, the driving unit 102 includes a second detection module 1023 and a second controller 1024;
[0065] The input end of the second detection module 1023 serves as the second input end of the driving unit 102 and is electrically connected to the CC end of the USB port. The first output end of the second detection module 1023 serves as the first output end of the driving unit 102 and is electrically connected to the signal input end of the charging unit 101. The second output end of the second detection module 1023 is electrically connected to the first input end of the second controller 1024;
[0066] The second input end of the second controller 1024 serves as the first input end of the driving unit 102 and is electrically connected to the third end of the switching unit 103 and the VBUS signal end of the charging unit 101. The output end of the second controller 1024 serves as the second output end of the driving unit 102 and is electrically connected to the driving end of the switching unit 103.
[0067] In a specific implementation, the second detection module 1023 can be an MCU, and the second controller 1024 can also be an MCU. The second detection module 1023 and the second controller 1024 are connected through a bidirectional communication port, such as an I2C port. The second detection module 1023 and the second controller 102 communicate with each other by transmitting information that conforms to the port protocol through the bidirectional communication port to inform each other that a new event has occurred.
[0068] For example, if the second detection module 1023 does not receive the CC signal, it does not send information to the second controller 1024. The second controller 1024 does not receive the information sent by the second detection module 1023 and only receives the VBUS signal, indicating that the electronic device is charging through the charging port. The first controller 1022 sends a driving signal to the switching unit and outputs a charging signal representing the first charging parameter of the charging port charging to the charging unit 101. After receiving the driving signal, the switching unit 103 conducts the path between the output end of the charging port and the third end of the switching unit 103 and disconnects the path between the output end of the USB port and the third end of the switching unit 103. Since the third end of the switching unit 103 is electrically connected to the VBUS signal end of the charging unit 101, the voltage VBUS_ZC output by the charging port is input to the VBUS signal end of the charging unit 101. The charging unit 101 charges the battery unit based on the received charging signal representing the first charging parameter of the charging port charging and the voltage VBUS_ZC output by the charging port.
[0069] If the second detection module 1023 receives a CC signal, it sends third information conforming to the interface protocol to the second controller 1024. After receiving the third information sent by the second detection module 1023, the second controller 1024 determines whether it has received a VBUS signal. If it determines that it has received a VBUS signal, it means that the electronic device is charging through the USB port. The second controller 1024 sends a drive signal to the on-off unit 103 and sends fourth information conforming to the port protocol to the second detection module 1023. After receiving the fourth information, the second detection module 1023 sends a charging signal representing the second charging parameter of USB port charging to the charging unit 101. After receiving the drive signal, the on-off unit 103 conducts the path between the output end of the USB port and the third end of the on-off unit 103, and disconnects the path between the output end of the charging port and the third end of the on-off unit 103. The VBUS signal terminal of the charging unit 101 inputs the voltage VBUS_USB output by the USB port. The charging unit 101 charges the battery unit based on the input voltage VBUS_USB and the charging signal representing the second charging parameter of USB charging.
[0070] In a specific implementation, as Figure 4 shown, the second output terminal of the driving unit 102 includes a first sub-output terminal and a second sub-output terminal. The on-off unit 103 includes a first on-off unit 1031 and a second on-off unit 1032;
[0071] The first sub-output terminal of the driving unit 102 is electrically connected to the driving terminal of the first on-off unit 1031, and the second sub-output terminal of the driving unit 102 is electrically connected to the driving terminal of the second on-off unit 1032;
[0072] The first terminal of the first on-off unit 1031 is electrically connected to the output end of the charging port. The second terminal of the first on-off unit 1031 is electrically connected to the second terminal of the second on-off unit 1032 and serves as the third terminal of the on-off unit 103;
[0073] The first terminal of the second on-off unit 1032 is electrically connected to the output end of the USB port;
[0074] The third terminals of both the first on-off unit 1031 and the second on-off unit 1032 are electrically connected to the power voltage terminal.
[0075] In the embodiment of the present application, the first sub-output terminal of the driving unit 102 outputs a first sub-driving signal, and the second sub-output terminal of the driving unit 102 outputs a second sub-driving signal. When the electronic device is charged through the charging port, the first switching unit 1031 receives the first sub-driving signal output by the first sub-output terminal of the driving unit 102, and conducts the path between the output terminal of the charging port and the second terminal of the first switching unit 1031. The second switching unit 1032 receives the second sub-driving signal output by the second sub-output terminal of the driving unit 102, and disconnects the path between the output terminal of the USB port and the second terminal of the second switching unit 1032;
[0076] When the electronic device is charged through the USB port, the first sub-output terminal of the driving unit 102 outputs a first sub-driving signal, disconnects the path between the output terminal of the charging port and the second terminal of the first switching unit 1031, the second sub-output terminal of the driving unit 102 outputs a second sub-driving signal, and conducts the path between the output terminal of the USB port and the second terminal of the second switching unit 1032.
[0077] As Figure 5 shown, when the driving unit 102 includes a first detection module 1021 and a first controller 1022, the second output terminal of the first controller 1022 includes a third sub-output terminal and a fourth sub-output terminal. The third sub-output terminal of the first controller 1022 is electrically connected to the driving terminal of the first switching unit 1031, and the fourth sub-output terminal of the first controller 1022 is electrically connected to the driving terminal of the second switching unit 1032.
[0078] As Figure 6 shown, when the driving unit 102 includes a second detection module 1023 and a second controller 1024, the output terminal of the second controller 1024 includes a fifth sub-output terminal and a sixth sub-output terminal. The fifth sub-output terminal of the second controller 1024 is electrically connected to the driving terminal of the first switching unit 1031, and the sixth sub-output terminal of the second controller 1024 is electrically connected to the driving terminal of the second switching unit 1032.
[0079] Specifically, as Figure 7 、 Figure 8 、 Figure 9 shown, the first switching unit 1031 includes a first resistor R1, a first capacitor C1, and a first switching transistor Q1;
[0080] The first end of the first resistor R1 is electrically connected to the power supply voltage terminal VDD, and the second end of the first resistor R1 is electrically connected to the first sub-output terminal of the driving unit 102 and the control terminal of the first switching transistor Q1;
[0081] The first end of the first switching transistor Q1 is electrically connected to the output end of the charging port, and the second end of the first switching transistor Q1 is electrically connected to the first end of the first capacitor C1, the first input end of the driving unit 102, and the VBUS signal end of the charging unit 101;
[0082] The second end of the first capacitor C1 is grounded.
[0083] The second switching unit 1032 includes a second resistor R2, a second capacitor C2, and a second switching transistor Q2;
[0084] The first end of the second resistor R2 is electrically connected to the power supply voltage terminal VDD, and the second end of the second resistor R2 is electrically connected to the second sub-output end of the driving unit 102 and the control end of the second switching transistor Q2;
[0085] The first end of the second switching transistor Q2 is electrically connected to the output end of the USB port, and the second end of the second switching transistor Q2 is electrically connected to the first end of the second capacitor C2, the first input end of the driving unit 102, and the VBUS signal end of the charging unit 101;
[0086] The second end of the second capacitor C2 is grounded.
[0087] In a specific implementation, the first switching transistor Q1 and the second switching transistor Q2 can both be PMOS transistors, or the first switching transistor Q1 and the second switching transistor Q2 can both be NMOS transistors. According to different MOS transistor types, the control voltage magnitude of the MOS transistor by the driving unit 102 and the magnitude of the system VDD pull-up power supply voltage need to be set with different voltage values.
[0088] In the following, an example will be given with the first switching transistor Q1 and the second switching transistor Q2 both being PMOS transistors.
[0089] Refer to Figure 8 , when a power supply is inserted into the charging port, due to the existence of the body diode of the first switching transistor Q1, the VBUS voltage is output at the second end of the first switching unit 1031, the first detection module 1021 inputs the VBUS voltage and does not input a CC signal. The first detection module1021 outputs a first piece of information to the first controller 1022. After receiving the first piece of information, the third sub-output end of the first controller 1022 outputs a low-level signal, the first switching transistor Q1 is turned on, the path between the output end of the charging port and the second end of the first switching unit 1031 is turned on, the fourth sub-output end of the first controller 1022 outputs a high-level signal, the second switching transistor Q2 is turned off, and the path between the output end of the USB port and the second end of the second switching unit 1032 is in an off state;
[0090] When the USB port is plugged into a power source, due to the existence of the body diode of the second switching transistor Q2, the VBUS voltage is output at the second end of the second on-off unit 1032. At this time, when the CC signal is input, the first detection module 1021 outputs a second piece of information to the first controller 1022. After receiving the second piece of information, the first controller 1022 outputs a low-level signal at its fourth sub-output terminal, and the second switching transistor Q2 conducts, conducting the path between the output terminal of the USB port and the second end of the second on-off unit 1032. The third sub-output terminal of the first controller 1022 outputs a high-level signal, and the first switching transistor Q1 is turned off, and the path between the output terminal of the charging port and the second end of the first on-off unit 1031 is in an open state.
[0091] Based on the same concept, an embodiment of the present invention further provides an electronic device. The principle of the electronic device for solving technical problems is similar to the principle of the multi-channel charging circuit provided above, and the repeated parts will not be described again.
[0092] As Figure 10 shown, it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The electronic device includes a charging port 20, a USB port 30, a battery unit 40, and the multi-channel charging circuit 10 as described in any one of the above;
[0093] The multi-channel charging path 10 is electrically connected to the battery unit 103, the charging port 20, and the USB port 30.
[0094] The USB port in the embodiment of the present invention is a Type-C port.
[0095] For the sake of easy understanding, the embodiments of the present invention will be described below in conjunction with specific embodiments.
[0096] Referring to Figure 8 , after the system starts running, the first detection module 1021 receives the VBUS voltage (VBUS signal) and the CC signal of the USB interface. If the VBUS voltage is received, the system starts the charging process and detects whether there is a CC signal at this time. There are two cases at this time:
[0097] Case 1: The first detection module 1021 receives the CC signal:
[0098] The system is in a state where both the VBUS voltage and the CC signal exist. The system will consider that the USB port path triggers the charging function. The first controller 1022 enables the charging unit 101, that is, sends a high-level signal to the charging unit 101 to enable the charging unit 101, and configures corresponding charging parameters through the I2C signal.
[0099] During USB port charging, the system no longer responds to the signals of the charging port. At this time, the first controller 1022 pulls down the USB_EN signal, turns off the second switching transistor Q2, and conducts the path between VBUS_USB and VBUS; pulls up the ZC_EN signal, turns off the first switching transistor Q1, and disconnects the path between VBUS_ZC and VBUS, realizing the function of charging through the USB port instead of the non-USB port (charging port) not being able to charge.
[0100] During the charging process, the system still continuously detects the VBUS voltage and the CC signal. If it detects that the CC signal is unplugged, that is, there is no CC signal, the system will continue to monitor the VBUS signal. If there is also no VBUS signal, it is considered that charging has stopped. The first controller 1022 stops sending the enable signal to the charging unit 101 and turns off the charging. At the same time, the first controller 1022 pulls up the USB_EN signal and the ZC_EN signal, turns off the first switching transistor Q1 and the second switching transistor Q2. At this time, both charging paths are in the disconnected state; if the VBUS voltage still exists, the system is in a state of having VBUS but no CC signal, which is judged as charging through the charging port. The first controller sends an enable signal to the charging unit 101 and configures relevant parameters through I2C to continue charging. At this time, the first controller 1022 pulls up the USB_EN signal, turns off the second switching transistor Q2, disconnects the path between VBUS_USB and VBUS, pulls down the ZC_EN signal, conducts the first switching transistor Q1, and conducts the path between VBUS_ZC and VBUS, realizing the function of charging through the non-USB port (charging port) instead of the USB port not being able to charge.
[0101] Case 2: The first detection module 1021 does not receive the CC signal:
[0102] If the CC signal is not received, the system is in a state of having VBUS voltage but no CC signal. The system judges that it is charging through the charging stand (charging port). The first controller 1022 sends an enable signal to the charging unit 101 and sets the corresponding charging parameters through the I2C signal. At this time, the first controller 1022 pulls up the USB_EN signal, turns off the second switching transistor Q2, disconnects the path between VBUS_USB and VBUS, pulls down the ZC_EN signal, conducts the first switching transistor Q1, and conducts the path between VBUS_ZC and VBUS, realizing the function of charging through the non-USB port (charging port) instead of the USB port not being able to charge.
[0103] During the charging process, the system still continuously detects the VBUS voltage and the CC signal. If the VBUS voltage does not exist, it is considered that the charging is turned off. The first controller 1022 pulls up both the USB_EN signal and the ZC_EN signal, and turns off the first switching transistor Q1 and the second switching transistor Q2;
[0104] If a CC signal insertion is detected and the VBUS is in the pull-up state, it is considered that there is a charging intervention at the USB interface. The first controller 1022 enables the charging unit 101, sends corresponding charging parameters to the charging unit 101 through the I2C signal. At the same time, the first controller 1022 pulls down the USB_EN signal, turns off the second switch tube Q2, conducts the path between VBUS_USB and VBUS, pulls up the ZC_EN signal, turns off the first switch tube Q1, and disconnects the path between VBUS_ZC and VBUS, so as to implement the function that the USB port can be charged while the non-USB port (charging port) cannot be charged.
[0105] In addition, the embodiment of the present invention also includes the detection of peripherals such as OTG and the charging port.
[0106] After the system starts running, it will continuously detect the CC signal and the VBUS voltage, which are also divided into two cases:
[0107] Case 1: If there is a VBUS voltage input but no CC signal input, the system determines that the current is charging through the charging port (seat charging). The first controller 1022 sends an enabling signal to the charging unit and sends corresponding charging parameters through the I2C signal. At the same time, the first controller 1022 pulls up the USB_EN signal, turns off the second switch tube Q2, disconnects the path between VBUS_USB and VBUS, pulls down the ZC_EN signal, conducts the first switch tube Q1, and conducts the path between VBUS_ZC and VBUS, so as to implement the function that the non-USB port can be charged while the USB port cannot be charged.
[0108] During the charging process, the system still continuously detects the VBUS voltage and the CC signal. If the VBUS is detected to be pulled out, it is considered that the charging is closed; if a CC signal is received and the CC signal is in the pull-down state, the system considers that there is an external device connected at this time. The system judges whether the connected external device is an OTG or a device such as an analog earphone by detecting the resistance value that causes the CC signal to be pulled down. If an analog earphone is connected, it will not conflict with the seat charging, and the two are controlled in parallel; if an external OTG device is connected, the system will close the seat charging, conduct the USB port path, and supply power to the OTG device in reverse. The first controller 1022 pulls up the ZC_EN, turns off the first switch tube Q1, and disconnects the path between VBUS and VBUS_ZC; pulls down the USB_EN, conducts the second switch tube Q2, and conducts the path between VBUS and VBUS_USB. In this way, the 5V power supply for external power supply to the OTG can be delivered to the external device through the second switch tube Q2, and at the same time, it will no longer respond to the change of the seat charging path signal during the recognition of the OTG presence.
[0109] If the VBUS voltage is not received, but the CC signal is received and the CC signal is pulled down to ground, the system determines whether the external device connected is an OTG or a device such as an analog headset by detecting the resistance value that causes the CC to be pulled down. If an analog headset is connected, it will not conflict with the charging of the base charger, and the two are controlled in parallel; if an external OTG device is connected, the system will conduct the USB port path and supply power to the OTG device in reverse, and will no longer respond to the base charger path signal.
[0110] During the charging of the OTG device, the system will still continuously detect the CC signal and the VBUS signal. If the CC signal is detected to be unplugged at this time, it is considered that the OTG device is unplugged. If there is still VBUS voltage at this time, the system determines that it is in the base charger charging state, completes the switching of the base charger charging path, and the system controls the charging type detection and parameter setting, as well as the control of charging and other operations.
[0111] A multi-channel charging circuit and an electronic device disclosed in an embodiment of the present invention. The multi-channel charging circuit includes a charging unit, a driving unit, and a switching unit. The driving unit is electrically connected to the charging unit and the switching unit. The driving unit inputs a VBUS signal and / or a CC signal, outputs a charging signal to the charging unit, and outputs a driving signal to the switching unit. After receiving the driving signal, the switching unit conducts the path between the output end of the charging port and the charging unit, or conducts the path between the output end of the USB port and the charging unit, to achieve charging through the voltage output by the charging port, or to achieve charging through the voltage output by the USB port. Since this multi-channel charging circuit only includes one charging unit and a set of charging signals, compared with the related technology that includes two charging units, two sets of charging signals, and two flag signals, it reduces the number of units and signals, thereby reducing the number of devices and the occupied PCB space.
[0112] Those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims
1. A multi-channel charging circuit, characterized in that: Applicable to electronic equipment, the electronic equipment includes a USB port, a charging port and a battery unit, the multi-channel charging circuit includes: a charging unit, a driving unit and a switching unit; The first input terminal of the driving unit is electrically connected to the third terminal of the on-off unit and the VBUS signal terminal of the charging unit, the second input terminal of the driving unit is electrically connected to the configuration channel CC terminal of the USB port, the first output terminal of the driving unit is electrically connected to the signal input terminal of the charging unit, and the second output terminal of the driving unit is electrically connected to the driving terminal of the on-off unit; The output end of the charging unit is electrically connected to the input end of the battery unit; The first end of the on-off unit is electrically connected to the output end of the charging port, and the second end of the on-off unit is electrically connected to the output end of the USB port; The driving unit is configured to input a VBUS signal and / or a CC signal, output a charging signal to the charging unit, and output a driving signal to the switching unit; The on-off unit is configured to receive the driving signal and conduct a path between the first end of the on-off unit and the third end of the on-off unit, or conduct a path between the second end of the on-off unit and the third end of the on-off unit.
2. The circuit according to claim 1, wherein The driving unit includes a first detection module and a first controller; The first input end of the first detection module is electrically connected to the third end of the on-off unit and the VBUS signal end of the charging unit, the second input end of the first detection module is electrically connected to the CC end of the USB port, and the output end of the first detection module is electrically connected to the input end of the first controller; The first output end of the first controller is electrically connected to the signal input end of the charging unit, and the second output end of the first controller is electrically connected to the driving end of the switching unit.
3. The circuit according to claim 1, wherein The driving unit includes a second detection module and a second controller; The input end of the second detection module is electrically connected to the CC end of the USB port, the first output end of the second detection module is electrically connected to the signal input end of the charging unit, and the second output end of the second detection module is electrically connected to the first input end of the second controller; The second input end of the second controller is electrically connected to the third end of the switching unit and the VBUS signal end of the charging unit, and the output end of the second controller is electrically connected to the driving end of the switching unit.
4. The circuit according to claim 1, wherein The second output end of the driving unit includes a first sub-output end and a second sub-output end, and the switching unit includes a first switching unit and a second switching unit; The first sub-output end of the driving unit is electrically connected to the driving end of the first switching unit, and the second sub-output end of the driving unit is electrically connected to the driving end of the second switching unit; The first end of the first on-off unit is electrically connected to the output end of the charging port, and the second end of the first on-off unit is electrically connected to the second end of the second on-off unit and serves as the third end of the on-off unit; The first end of the second switching unit is electrically connected to the output end of the USB port.
5. The circuit according to claim 4, wherein The first on-off unit includes a first resistor, a first capacitor and a first switch tube; A first end of the first resistor is electrically connected to the power supply voltage terminal, and a second end of the first resistor is electrically connected to the first sub-output terminal of the driving unit and the control terminal of the first switching tube; The first end of the first switch tube is electrically connected to the output end of the charging port, and the second end of the first switch tube is electrically connected to the first end of the first capacitor, the first input end of the driving unit, and the VBUS signal end of the charging unit; The second terminal of the first capacitor is grounded.
6. The circuit according to claim 5, wherein: The second on-off unit includes a second resistor, a second capacitor and a second switch tube; A first end of the second resistor is electrically connected to the power supply voltage end, and a second end of the second resistor is electrically connected to the second sub-output end of the driving unit and the control end of the second switch tube; A first end of the second switch tube is electrically connected to the output end of the USB port, and a second end of the second switch tube is electrically connected to the first end of the second capacitor, the first input end of the driving unit, and the VBUS signal end of the charging unit; The second terminal of the second capacitor is grounded.
7. The circuit according to claim 6, wherein: The first switch tube and the second switch tube are both PMOS tubes.
8. The circuit according to claim 6, wherein: The first switch tube and the second switch tube are both NMOS tubes.
9. An electronic device, characterized in that: The device comprises a charging port, a USB port, a battery unit and a multi-channel charging circuit as claimed in any one of claims 1 to 8.
10. The electronic device according to claim 9, wherein The USB port is a Type-C port.