Electronic device
By designing charging switching circuits and control circuits in electronic equipment, automatic switching and priority management of multiple charging circuits are realized, which solves the problem that traditional charging circuits cannot meet the needs of multiple charging methods and improves the flexibility and safety of the equipment. .
Patent Information
- Application Number
- CN202323266210.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-01
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2033-12-01
AI Technical Summary
The charging circuits of traditional electronic devices cannot meet the needs of multiple charging methods in different application environments, causing users to have inconvenient charging when using them in different working conditions.
An electronic device is designed, including a charging switching circuit and a charging control circuit. Automatic switching is realized through multiple charging circuits and corresponding control circuits to ensure that the charging circuit corresponding to the used charging interface is turned on, and the corresponding charging interface to the unused charging interface is The charging circuit is disconnected and supports multiple types of charging interfaces and methods.
It realizes the user's needs for multiple types of charging methods in different application scenarios, improves the flexibility and ease of use of electronic equipment, and at the same time avoids the risk of leakage and improves safety through priority control and resistor design.
Smart Images

Figure CN221842340U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to an electronic device. Background Art
[0002] Nowadays, electronic devices have become an inseparable part of people's lives. Power outages in electronic devices will have a great impact on people's work and life. Due to changes in application environments, users may need to use different methods to charge electronic devices under different working conditions, and the charging circuits in traditional electronic devices cannot meet these requirements. Utility Model Content
[0003] In order to enable users to choose different ways to charge electronic devices according to working conditions, the present application provides an electronic device. The technical solution is as follows:
[0004] The present application provides an electronic device, the electronic device comprising a charging switching circuit, a charging control circuit and a battery, the charging switching circuit having a power supply end;
[0005] The charging switching circuit includes a plurality of charging circuits and control circuits corresponding to the plurality of charging circuits, respectively, and the plurality of charging circuits correspond to various types of charging interfaces;
[0006] The input ends of the multiple charging circuits are respectively connected to the corresponding charging interfaces, the output ends of the multiple charging circuits are all connected to the power supply end, the control ends of the multiple charging circuits are respectively connected to the output ends of the corresponding control circuits, the control circuit is used to control the corresponding charging circuit to be turned on or off, and when charging the battery, one of the multiple charging circuits is turned on;
[0007] The input end of the charging control circuit is connected to the power supply end, the output end of the charging control circuit is connected to the battery, and the charging control circuit is used to control the charging process of the battery.
[0008] Optionally, the charging switching circuit has a reference terminal, the multiple charging circuits include a first charging circuit, a second charging circuit and a third charging circuit, the first charging circuit corresponds to a first charging interface and a first control circuit, the second charging circuit corresponds to a second charging interface and a second control circuit, and the third charging circuit corresponds to a third charging interface and a third control circuit;
[0009] The first input terminal of the first control circuit is connected to the first charging interface, and the second input terminal of the first control circuit is connected to the reference terminal;
[0010] The first input end of the second control circuit is connected to the first charging interface, and the second input end of the second control circuit is connected to the detection end of the second charging circuit;
[0011] The first input terminal and the second input terminal of the third control circuit are both connected to the reference terminal, the third input terminal of the third control circuit is connected to the first charging interface, and the fourth input terminal of the third control circuit is connected to the detection terminal of the second charging circuit.
[0012] Optionally, the first charging circuit includes a first metal oxide semiconductor (MOS) tube;
[0013] The drain of the first MOS tube is connected to the first charging interface, the source of the first MOS tube is connected to the power supply end, and the gate of the first MOS tube is connected to the output end of the first control circuit.
[0014] Optionally, the first control circuit includes a second MOS tube and a first resistor;
[0015] The gate of the second MOS tube is connected to the first charging interface, the source of the second MOS tube is grounded, the drain of the second MOS tube and one end of the first resistor are both connected to the control end of the first charging circuit, and the other end of the first resistor is connected to the reference end.
[0016] Optionally, the second charging circuit includes a third MOS tube and a fourth MOS tube;
[0017] The drain of the third MOS tube is connected to the second charging interface, the source of the third MOS tube and the source of the fourth MOS tube are both connected to the detection end, the gate of the third MOS tube and the gate of the fourth MOS tube are both connected to the output end of the second control circuit, and the drain of the fourth MOS tube is connected to the power supply end.
[0018] Optionally, the second control circuit includes a fifth MOS transistor, a sixth MOS transistor, a second resistor and a third resistor;
[0019] The gate of the fifth MOS tube is connected to the first charging interface, the source of the fifth MOS tube is grounded, the drain of the fifth MOS tube and one end of the second resistor are both connected to the gate of the sixth MOS tube, the source of the sixth MOS tube is grounded, the drain of the sixth MOS tube is connected to one end of the third resistor, and the other end of the second resistor and the other end of the third resistor are respectively connected to the detection end.
[0020] Optionally, the third charging circuit includes a seventh MOS tube and an eighth MOS tube;
[0021] The drain of the seventh MOS tube is connected to the third charging interface, the source of the seventh MOS tube is connected to the source of the eighth MOS tube, the gate of the seventh MOS tube and the gate of the eighth MOS tube are both connected to the output end of the third control circuit, and the drain of the eighth MOS tube is connected to the power supply end.
[0022] Optionally, the third control circuit includes a comparator, a ninth MOS tube and a fourth resistor;
[0023] The non-inverting input terminal of the comparator and one end of the fourth resistor are both connected to the reference terminal, the inverting input terminal of the comparator is respectively connected to the detection terminal and the first charging interface, the output terminal of the comparator is connected to the gate of the ninth MOS tube, the source of the ninth MOS tube is grounded, and the drain of the ninth MOS tube and the other end of the fourth resistor are both connected to the control terminal of the third charging circuit.
[0024] Optionally, the electronic device has a plug-and-play terminal, and the charging switching circuit further includes a reverse control circuit;
[0025] The input end of the reverse control circuit is connected to the plug-and-play end, the output end of the reverse control circuit is connected to the control end of the first charging circuit, and the reverse control circuit is used to control the on or off of the first charging circuit to charge other devices through the battery.
[0026] Optionally, the first charging interface is a universal serial bus USB interface, the second charging interface is a dock charging interface, and the third charging interface is a magnetic suction interface.
[0027] The technical solution provided by this application can at least bring the following beneficial effects:
[0028] When one of the charging interfaces is in use and the other charging interfaces are not in use, the above-mentioned charging switching circuit can realize automatic switching of multiple charging circuits, so that the charging circuit corresponding to the one charging interface in use can be turned on, and the charging circuit corresponding to the unused charging interface is disconnected, thereby meeting the user's needs for various types of charging methods in different application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a structural schematic diagram of an electronic device adopted in an embodiment of the present application;
[0030] Figure 2 is a structural schematic diagram of a charging switching circuit provided in an embodiment of the present application;
[0031] Figure 3is a circuit connection diagram of a first charging circuit and a first control circuit provided in an embodiment of the present application;
[0032] Figure 4 is a schematic diagram of a P-channel enhancement mode MOS transistor provided in an embodiment of the present application;
[0033] Figure 5 is a circuit connection diagram of two other first control circuits provided in the embodiments of the present application;
[0034] Figure 6 is a circuit connection diagram of a second charging circuit and a second control circuit provided in an embodiment of the present application;
[0035] Figure 7 is a circuit connection diagram of two other second control circuits provided in the embodiments of the present application;
[0036] Figure 8 is a circuit connection diagram of a third charging circuit and a third control circuit provided in an embodiment of the present application;
[0037] Fig. 9 is a circuit connection diagram of another third control circuit provided in an embodiment of the present application;
[0038] Fig.10 It is a circuit connection diagram of a reverse control circuit provided in an embodiment of the present application;
[0039] Fig.11 It is a circuit connection diagram of a charging switching circuit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0041] Please refer to Figure 1 , Figure 1: is a structural schematic diagram of an electronic device provided by an embodiment of the present application, the electronic device includes a charging switching circuit 1, a charging control circuit 2 and a battery 3, and the charging switching circuit 1 has a power supply terminal VBUS. The charging switching circuit 1 includes a plurality of charging circuits 11 and control circuits 12 corresponding to the plurality of charging circuits 11, and the plurality of charging circuits 11 correspond to various types of charging interfaces C; the input terminals IN of the plurality of charging circuits 11 are respectively connected to the corresponding charging interfaces C, the output terminals OUT of the plurality of charging circuits 11 are all connected to the power supply terminal VBUS, the control terminals K of the plurality of charging circuits 11 are respectively connected to the output terminals KOUT of the corresponding control circuits 12, the control circuit 12 is used to control the corresponding charging circuit 11 to be turned on or off, and when charging the battery 3, one of the charging circuits 11 is turned on. The input terminal CKIN of the charging control circuit 2 is connected to the power supply terminal VBUS, the output terminal CKOUT of the charging control circuit 2 is connected to the battery 3, and the charging control circuit 2 is used to control the charging process of the battery 3.
[0042] When one of the charging interfaces is in use and the other charging interfaces are not in use, the above-mentioned charging switching circuit can realize automatic switching of multiple charging circuits, so that the charging circuit corresponding to the one charging interface in use can be turned on, and the charging circuit corresponding to the unused charging interface is disconnected, thereby meeting the user's needs for various types of charging methods in different application scenarios.
[0043] In some embodiments, please refer to Figure 2 , the above-mentioned multiple charging circuits 11 include a first charging circuit 111, a second charging circuit 112 and a third charging circuit 113. The first charging circuit 111 corresponds to the first charging interface C1 and the first control circuit 121, and the control terminal K1 of the first charging circuit 111 is connected to the output terminal KOUT1 of the first control circuit. The second charging circuit 112 corresponds to the second charging interface C2 and the second control circuit 122, and the control terminal K2 of the second charging circuit 112 is connected to the output terminal KOUT2 of the second control circuit. The third charging circuit 113 corresponds to the third charging interface C3 and the third control circuit 123, and the control terminal K3 of the third charging circuit 113 is connected to the output terminal KOUT3 of the third control circuit. Of course, the multiple charging circuits 11 can also include more or fewer charging circuits, which is not limited in the embodiments of the present application.
[0044] In some embodiments, please refer to Figure 2The charging switching circuit 1 has a reference terminal REF, a first input terminal KIN11 of the first control circuit 121 is connected to the first charging interface C1, and a second input terminal KIN2 of the first control circuit 121 is connected to the reference terminal REF; a first input terminal KIN21 of the second control circuit 122 is connected to the first charging interface C1, and a second input terminal KIN22 of the second control circuit 122 is connected to a detection terminal J of the second charging circuit 112; a first input terminal KIN31 and a second input terminal KIN32 of the third control circuit 123 are both connected to the reference terminal REF, a third input terminal KIN33 of the third control circuit 123 is connected to the first charging interface C1, and a fourth input terminal KIN34 of the third control circuit 123 is connected to a detection terminal J of the second charging circuit.
[0045] First of all, it should be noted that when a charging interface is not connected to an external power supply, the voltage on the charging interface is 0; when all charging interfaces are not connected to an external power supply, the voltages on the reference end and the power supply end are both 0; when the electronic device detects that an external power supply is connected to any charging interface, the electronic device automatically increases the voltage at the reference end, which is usually greater than 0 and less than the voltage of the external power supply; when any charging circuit is turned on, the voltage at the power supply end increases with the voltage of the external power supply.
[0046] Next, the first charging circuit 111 and the first control circuit 121 are described:
[0047] In some embodiments, please refer to Figure 3 The first charging circuit 111 includes a first MOS (Metal Oxide Semiconductor) tube Q1; the drain of the first MOS tube Q1 is connected to the first charging interface C1, the source of the first MOS tube Q1 is connected to the power supply end VBUS, and the gate of the first MOS tube Q1 is connected to the output end KOUT1 of the first control circuit 121.
[0048] It should be noted that the first MOS tube is a P-channel enhancement type MOS tube, and since the first MOS tube needs to withstand a large current, the first MOS tube is usually a power MOS tube. In addition, the first MOS tube has a body diode inside, and the PN junction direction of the body diode is from the drain to the source of the first MOS tube, the body diode has a certain turn-on voltage, and the body diode has a certain resistance after being turned on, and the resistance is greater than the resistance of the conductive channel after the MOS tube is turned on.
[0049] When the first charging interface is connected to an external power source, the drain voltage of the first MOS tube is greater than the source voltage. When the voltage difference between the drain and the source is greater than the turn-on voltage of the body diode of the first MOS tube, the body diode is turned on, and current flows from the first charging interface to the power supply end through the body diode, so that the voltage of the power supply end is increased.
[0050] In the above case, when the output end of the first control circuit outputs a low level, since the voltage of the power supply end has increased, that is, the voltage of the source of the first MOS tube has increased, the voltage difference between the source and the gate of the first MOS tube increases, and when the voltage difference is greater than the turn-on voltage of the first MOS tube, the first MOS tube is turned on. Since the resistance of the conductive channel is less than the resistance of the body diode after the first MOS tube is turned on, the charging current flows from the first charging interface through the conductive channel of the first MOS tube to the power supply end, and the external power supply can charge the electronic device through the first charging interface.
[0051] The above-mentioned turn-on voltage of the first MOS tube and the turn-on voltage of the internal body diode are both factory parameters of the first MOS tube. Usually, both turn-on voltages are lower than the power supply voltage in daily life.
[0052] In some embodiments, please refer to Figure 3 The first control circuit 121 includes a second MOS transistor Q2 and a first resistor R1; the gate of the second MOS transistor Q2 is connected to the first charging interface C1, the source of the second MOS transistor Q2 is grounded, the drain of the second MOS transistor and one end of the first resistor R1 are both connected to the control end K1 of the first charging circuit 111, and the other end of the first resistor R1 is connected to the reference end REF.
[0053] It should be noted that the second MOS tube is an N-channel enhancement type MOS tube, and since the second MOS tube is only used as a switch and does not need to withstand a large current, the second MOS tube is usually a non-power MOS tube. Of course, the second MOS tube can also be a power MOS tube, which is not limited in the embodiment of the present application. In addition, the resistance value of the first resistor is usually large, generally 1kΩ to 10kΩ, and the specific resistance value can be selected according to actual needs, which is not limited in the embodiment of the present application.
[0054] When the first charging interface is connected to an external power source, the voltage difference between the gate and the source of the second MOS tube increases. When the voltage difference is greater than the turn-on voltage of the second MOS tube, the second MOS tube is turned on. Since the source of the second MOS tube is grounded, and the drain is connected to the reference end via the first resistor, that is, at this time, the drain voltage of the second MOS tube is greater than the source voltage, so at this time, the current flows from the drain to the source of the second MOS tube. Since the internal resistance value of the MOS tube is very small after the MOS tube is turned on, the drain of the second MOS tube is at a low level, that is, the output end of the first control circuit outputs a low level, and the magnitude of the low level is close to 0.
[0055] The turn-on voltage of the second MOS tube is a factory parameter of the second MOS tube. Usually, the turn-on voltage is lower than the power supply voltage in daily life.
[0056] As can be seen from the above description, when the first charging interface is connected to an external power source, the voltage at the reference end increases. When the electronic device is charged through the first charging circuit, the current flows from the reference end through the first resistor and the drain of the second MOS tube to the source of the second MOS tube. At this time, since the resistance of the first resistor is very large compared to the second MOS tube that is turned on, the first resistor bears almost all the voltage to ensure that the drain of the second MOS tube remains at a low level. If there is no first resistor, that is, the position of the first resistor is changed to a wire, the second MOS tube will have the risk of short circuit, which will not only damage the circuit and cause the circuit to fail to work properly, but also may bring unpredictable harm to the user. In other words, the first resistor can avoid the risk of circuit short circuit and bring more safety to the user.
[0057] Please refer to Figure 5 (a), the first control circuit 121 may further include a fifth resistor R5, one end of the fifth resistor R5 is connected to the first charging interface C1, and the other end is connected to the gate of the second MOS transistor Q2. Figure 5 (b), the first control circuit 121 may further include a fifth resistor R5 and a sixth resistor R6, one end of the sixth resistor R6 is grounded, and the other end is connected to the gate of the second MOS transistor Q2. The fifth resistor R5 and the sixth resistor R6 can achieve voltage division, and their specific resistance values can be selected according to actual needs, which is not limited in the embodiment of the present application.
[0058] Next, the second charging circuit 112 and the second control circuit 122 are described:
[0059] In some embodiments, please refer to Figure 6The second charging circuit 112 includes a third MOS transistor Q3 and a fourth MOS transistor Q4; the drain of the third MOS transistor Q3 is connected to the second charging interface C2, the source of the third MOS transistor Q3 and the source of the fourth MOS transistor Q4 are both connected to the detection terminal J, the gate of the third MOS transistor Q3 and the gate of the fourth MOS transistor are both connected to the output terminal KOUT2 of the second control circuit 122, and the drain of the fourth MOS transistor Q4 is connected to the power supply terminal VBUS.
[0060] It should be noted that the third and fourth MOS tubes are both P-channel enhancement MOS tubes, and because the third and fourth MOS tubes need to withstand a large current, the third and fourth MOS tubes are usually power MOS tubes. At the same time, the third and fourth MOS tubes also contain body diodes, and the PN junction direction of the body diode is from the drain to the source of the third / fourth MOS tube, and the body diode has a certain turn-on voltage.
[0061] When the second charging interface is connected to the external power supply, the drain voltage of the third MOS tube is greater than the source voltage. When the voltage difference between the drain and the source is greater than the turn-on voltage of the body diode of the third MOS tube, the body diode of the third MOS tube is turned on, and the current flows from the second charging interface to the detection end through the body diode, so that the voltage of the detection end increases.
[0062] When the output end of the second control circuit outputs a low level, since the voltage of the detection end has increased, the voltage difference between the source and the gate of the third and fourth MOS tubes becomes higher, and when the voltage difference is greater than the turn-on voltage of the third and / or fourth MOS tubes, the third and / or fourth MOS tubes are turned on. When the third and fourth MOS tubes are both turned on, the charging current flows from the second charging interface to the power supply end through the conductive channels of the third and fourth MOS tubes in sequence, and the external power supply can charge the electronic device through the second charging interface.
[0063] When charging the electronic device through the first charging interface, it is inevitable that a very small amount of charging current will pass through the body diode of the first MOS tube from the first charging interface to the source of the first MOS tube, that is, to the drain of the fourth MOS tube. Since the electronic device is charged through the first charging interface at this time, the voltage at the detection end is 0, and the voltage at the power supply end is greater than the voltage at the detection end. When the voltage difference between the power supply end and the detection end is greater than the turn-on voltage of the body diode of the fourth MOS tube, the charging current will pass through the body diode of the fourth MOS tube from the drain of the fourth MOS tube to the detection end, and because the PN junction direction of the body diode of the third MOS tube is opposite to the direction of the charging current, and the third MOS tube is not turned on at this time, the charging current cannot pass through the third MOS tube to reach the second charging interface. In other words, the connection method of the third MOS tube and the fourth MOS tube can avoid the risk of leakage at the second charging interface when charging the electronic device through the first charging interface.
[0064] It should be noted that the turn-on voltages of the third and fourth MOS tubes, and the turn-on voltages of the body diodes inside the third and fourth MOS tubes are factory parameters of the third and fourth MOS tubes. Normally, the four turn-on voltages are all lower than the power supply voltage in daily life.
[0065] In some embodiments, please refer to Figure 6 The second control circuit 122 includes a fifth MOS transistor Q5, a sixth MOS transistor Q6, a second resistor R2 and a third resistor R3; wherein the gate of the fifth MOS transistor Q5 is connected to the first charging interface C1, the source of the fifth MOS transistor Q5 is grounded, the drain of the fifth MOS transistor Q5 and one end of the second resistor R2 are both connected to the gate of the sixth MOS transistor Q6, the source of the sixth MOS transistor Q6 is grounded, the drain of the sixth MOS transistor Q6 is connected to one end of the third resistor R3, and the other end of the second resistor R2 and the other end of the third resistor R3 are respectively connected to the detection end J.
[0066] It should be noted that the fifth and sixth MOS tubes are both N-channel enhancement MOS tubes, and since the fifth and sixth MOS tubes are only used as switches and do not need to withstand large currents, the fifth and sixth MOS tubes are usually non-power MOS tubes. Of course, the fifth and sixth MOS tubes can also be power MOS tubes, which is not limited in the embodiments of the present application. In addition, the resistance values of the second and third resistors are usually large, generally 1kΩ to 10kΩ, and the specific resistance values of the second and third resistors can be selected according to actual needs, which is not limited in the embodiments of the present application. Similar to the role of the first resistor in the first control circuit, the second and third resistors are to prevent the risk of short circuits in the fifth and sixth MOS tubes.
[0067] From the above description, it can be seen that when the second charging interface is connected to an external power supply, the body diode of the third MOS tube is turned on. At this time, the current passes through the body diode of the third MOS tube from the second charging interface to the detection end. That is to say, at this time, the voltage of the detection end increases with the voltage of the power supply.
[0068] In the above case, when the first charging interface is not connected to the external power supply, the fifth MOS tube cannot be turned on, the current cannot flow through the fifth MOS tube, and the detection end is at a high level, so the gate of the sixth MOS tube is at a high level, and the source of the sixth MOS tube is grounded, so the voltage difference between the gate and the source of the sixth MOS tube increases, and when the voltage difference is greater than the turn-on voltage of the sixth MOS tube, the sixth MOS tube is turned on. Similar to the first control circuit, at this time, the drain of the sixth MOS tube is at a low level, that is, at this time, the output end of the second control circuit outputs a low level, and the low level is close to 0.
[0069] The turn-on voltage of the sixth MOS tube is a factory parameter of the sixth MOS tube. Usually, the turn-on voltage is lower than the power supply voltage in daily life.
[0070] Similar to the first control circuit, please refer to Figure 7 (a), the second control circuit 121 may further include a seventh resistor R7, one end of the seventh resistor R7 is connected to the first charging interface C1, and the other end is connected to the gate of the fifth MOS transistor Q5. Figure 7 (b), the second control circuit 121 may further include a seventh resistor R7 and an eighth resistor R8, one end of the eighth resistor R8 is grounded, and the other end is connected to the gate of the fifth MOS transistor Q5. The seventh resistor R7 and the eighth resistor R8 can achieve voltage division, and their specific resistance values can be selected according to actual needs, which is not limited in the embodiment of the present application.
[0071] Next, the third charging circuit 113 and the third control circuit 123 are described:
[0072] In some embodiments, please refer to Figure 8 The third charging circuit 113 includes a seventh MOS transistor Q7 and an eighth MOS transistor Q8; the drain of the seventh MOS transistor Q7 is connected to the third charging interface C3, the source of the seventh MOS transistor Q7 is connected to the source of the eighth MOS transistor Q8, the gate of the seventh MOS transistor Q7 and the gate of the eighth MOS transistor Q8 are both connected to the output end KOUT3 of the third control circuit 123, and the drain of the eighth MOS transistor Q8 is connected to the power supply end VBUS.
[0073] It should be noted that the seventh and eighth MOS tubes are both P-channel enhancement MOS tubes, and because the seventh and eighth MOS tubes need to withstand a large current, the seventh and eighth MOS tubes are usually power MOS tubes. At the same time, the seventh and eighth MOS tubes also contain body diodes, and the PN junction direction of the body diode is from the drain to the source of the seventh / eighth MOS tube, and the body diode has a certain turn-on voltage.
[0074] When the third charging interface is connected to an external power source and the output end of the second control circuit outputs a low level, the voltage difference between the source and the gate of the seventh and eighth MOS tubes becomes higher, and when the voltage difference is greater than the turn-on voltage of the seventh and / or eighth MOS tubes, the seventh and / or eighth MOS tubes are turned on. When both the seventh and eighth MOS tubes are turned on, the external power source can charge the electronic device through the third charging interface, and the charging current flows from the third charging interface to the power supply end through the conductive channels of the seventh and eighth MOS tubes in sequence.
[0075] It should be noted that the forward conduction turn-on voltage of the seventh and eighth MOS tubes and the turn-on voltage of the body diodes of the seventh and eighth MOS tubes are factory parameters. Normally, the four turn-on voltages are lower than the power supply voltage in daily life.
[0076] Similar to the third and fourth MOS tubes in the above-mentioned second charging circuit, the connection method of the seventh and eighth MOS tubes can avoid the risk of leakage at the third charging interface when charging the electronic device through the first charging interface.
[0077] In some embodiments, please refer to Figure 8 The third control circuit 123 includes a comparator LM, a ninth MOS transistor Q9 and a fourth resistor R4; the non-inverting input terminal “+” of the comparator LM and one end of the fourth resistor R4 are both connected to the reference terminal REF, the inverting input terminal “-” of the comparator LM is respectively connected to the detection terminal J and the first charging interface C1, the output terminal of the comparator LM is connected to the gate of the ninth MOS transistor Q9, the source of the ninth MOS transistor Q9 is grounded, and the drain of the ninth MOS transistor Q9 and the other end of the fourth resistor R4 are both connected to the control terminal K3 of the third charging circuit 113.
[0078] It should be noted that the ninth MOS tube is an N-channel enhancement type MOS tube, and since the ninth MOS tube is only used as a switch and does not need to withstand a large current, the ninth MOS tube is usually a non-power MOS tube. Of course, the ninth MOS tube can also be a power MOS tube, which is not limited in the embodiment of the present application. In addition, the resistance of the fourth resistor is usually large, generally 1kΩ to 10kΩ, and the specific resistance of the fourth resistor can be selected according to actual needs, which is not limited in the embodiment of the present application. Similar to the role of the first resistor in the first control circuit, the fourth resistor is to prevent the risk of short circuit in the ninth MOS tube.
[0079] When the first and second charging interfaces are not connected to an external power supply, and the third charging interface is connected to an external power supply, the voltage at the reference terminal is higher than the voltage at the first / second charging interface, that is, the voltage at the comparator's in-phase input terminal is higher than the voltage at the inverting input terminal. At this time, the comparator outputs a high level, and the source of the ninth MOS tube is grounded, so the voltage difference between the gate and the source of the ninth MOS tube increases. When the voltage difference is greater than the turn-on voltage of the ninth MOS tube, the ninth MOS tube is turned on. Similar to the situation of the second MOS tube in the first control circuit, the drain of the ninth MOS tube is at a low level at this time, that is, the output terminal of the third control circuit outputs a low level at this time, and the low level is close to 0.
[0080] Please refer to Fig. 9 The third control circuit may further include one or more components of a ninth resistor R9, a tenth resistor R10, a first diode D1, and a second diode D2, wherein one end of the ninth resistor R9 and the tenth resistor R10 are both connected to the in-phase input terminal "+" of the comparator LM, the other end of the ninth resistor R9 is connected to the reference terminal REF, the other end of the tenth resistor R10 is grounded, the cathodes of the first diode D1 and the second diode D2 are both connected to the inverting input terminal "-" of the comparator LM, the anode of the first diode D1 is connected to the detection terminal J, and the anode of the second diode D2 is connected to the first charging interface C1.
[0081] The above describes the situation where the three control circuits control the corresponding charging circuits to be turned on. In some embodiments, the three charging circuits have priorities, and the order of priority from high to low is the first charging circuit, the second charging circuit, and the third charging circuit.
[0082] When the electronic device is charged by connecting to an external power source through the first charging interface, even if the second and / or third charging interfaces are also connected to an external power source, the second and / or third charging circuits will not be turned on, and the electronic device can still charge the battery normally through the first charging circuit; when the electronic device is charged by connecting to an external power source through the second / third charging interface, if the first charging interface is also connected to an external power source, the first charging circuit is turned on, the second / third charging circuit is disconnected, and the electronic device can no longer charge the battery through the second / third charging circuit.
[0083] This is because, when the first charging interface is connected to an external power supply, the fifth MOS tube in the second control circuit will be turned on. After being turned on, the drain of the fifth MOS tube is at a low level, which causes the sixth MOS tube to be unable to be turned on, thereby causing the drain of the sixth MOS tube to be at a high level, that is, the output end of the second control circuit outputs a high level, so the second control circuit cannot control the second charging circuit to be turned on; when the first charging interface is connected to an external power supply, in the third control circuit, the voltage at the inverting input end of the comparator is greater than the voltage at the non-inverting input end (the voltage at the reference end is less than the voltage of the charging interface), at this time the comparator outputs a low level, and the ninth MOS tube cannot be turned on, thereby causing the drain of the ninth MOS tube to be at a high level, that is, the output end of the third control circuit outputs a high level, so the third control circuit cannot control the third charging circuit to be turned on.
[0084] When the first charging interface is not connected to an external power supply, when the electronic device is charged by connecting to an external power supply through the second charging interface, if the third charging interface is also connected to an external power supply, the third charging circuit will not be turned on, and the electronic device can still charge the battery normally through the second charging circuit; when the first charging interface is not connected to an external power supply, when the electronic device is charged by connecting to an external power supply through the third charging interface, if the second charging interface is also connected to an external power supply, the second charging circuit will be turned on and the third charging circuit will be disconnected, and the electronic device will not be able to charge the battery through the third charging circuit.
[0085] This is because, when the first charging interface is not connected to the external power supply and the second charging interface is connected to the external power supply, the detection end is at a high level. At this time, in the third control circuit, the inverting input end of the comparator receives a high level from the detection end, and the high level is greater than the voltage of the comparator's non-inverting input end (the voltage of the reference end). At this time, the comparator outputs a high level, and the ninth MOS tube cannot be turned on, resulting in the drain of the ninth MOS tube being a high level, that is, the output end of the third control circuit outputs a high level, and the third control circuit cannot control the third charging circuit to be turned on.
[0086] As described above, by controlling the connection relationship between the various interfaces in the circuit and the circuit components, the three charging circuits have certain priorities. Under certain conditions, they can automatically switch from a low-priority charging mode to a high-priority charging mode.
[0087] Please refer to Fig.10 In some embodiments, the electronic device has a plug-and-play terminal OTG_EN, and the charging switching circuit 1 also includes a reverse control circuit 13; the input terminal FKIN of the reverse control circuit 13 is connected to the plug-and-play terminal OTG_EN, and the output terminal FKOUT of the reverse control circuit 13 is connected to the control terminal K1 of the first charging circuit 111. The reverse control circuit 13 is used to control the conduction or shutdown of the first charging circuit 111 to charge other devices through the battery.
[0088] Please refer to Fig.10 In some embodiments, the reverse control circuit 13 includes a tenth MOS transistor Q10 and a first resistor R1 shared with the first control circuit 121; the gate of the tenth MOS transistor Q10 is connected to the plug-and-play terminal OTG_EN, the source of the tenth MOS transistor Q10 is grounded, and the drain of the tenth MOS transistor is connected to the control terminal K1 of the first charging circuit.
[0089] When the electronic device detects that an OTG (On-The-Go, plug and play) line is connected, the electronic device will actively pull the plug and play end to a high level, at this time, the voltage difference between the gate and the source of the tenth MOS tube increases, when the voltage difference is greater than the turn-on voltage of the tenth MOS tube, the tenth MOS tube is turned on, and at this time, the drain of the tenth MOS tube outputs a low level, and in the analysis of the first charging circuit, it is known that at this time, the source voltage of the first MOS tube has increased, so the voltage difference between the source and the gate of the first MOS tube becomes higher, when the voltage difference is greater than the turn-on voltage of the first MOS tube, the first MOS tube is turned on. At this time, the charging current flows from the power supply end through the conductive channel of the first MOS tube to the first charging interface, and the electronic device can charge the external device through the first charging interface.
[0090] It should be noted that the main function of the OTG cable is to be used for data transmission. In addition, the electronic device is also connected via the OTG cable when charging external devices.
[0091] In some embodiments, the first charging interface is a USB (Universal Serial Bus) interface, the second charging interface is a docking station interface, and the third charging interface is a magnetic suction interface.
[0092] Normally, the USB interface is used most frequently, and reverse charging and data transmission are also often performed through the USB interface. Therefore, using the USB interface as the first charging interface gives it the highest priority, making the user experience more comfortable and convenient in actual applications.
[0093] Of course, the order of the above three types of charging interfaces can be changed according to actual application requirements. For example, if the cradle charging interface is the highest priority, the magnetic interface is the second priority, and the USB interface is the lowest priority, then the first charging interface is the cradle charging interface, the second charging interface is the magnetic interface, and the third charging interface is the USB interface.
[0094] Finally, it should be noted that the resistance values of the fifth, sixth, seventh, eighth, ninth and tenth resistors in the embodiment of the present application can be selected according to actual needs. In addition, all resistors in the embodiment of the present application can be a single resistor or multiple resistors connected in series or in parallel, which is not limited in the embodiment of the present application.
[0095] In summary, the charging switching circuit in the electronic device provided in the embodiment of the present application can be as follows: Fig.11 As shown, the charging switching circuit includes Figure 3 The first charging circuit in Figure 5 (b) the first control circuit shown, Figure 6 The second charging circuit in Figure 7 (b) the second control circuit shown, Figure 8 The third charging circuit in Fig. 9 The third control circuit shown and Fig.10 The reverse control circuit in.
[0096] The electronic device provided in the embodiment of the present application can realize automatic switching of three charging circuits without the help of software. When one of the charging interfaces is used and the other charging interfaces are not used, the charging circuit corresponding to the used charging interface can be turned on and the charging circuit corresponding to the unused charging interface is disconnected through the control of the control circuit, so as to meet the user's needs for various types of charging methods in different application scenarios. At the same time, through the connection relationship between each interface and circuit components in the control circuit, the three charging circuits have a certain priority, and under certain conditions, they can automatically switch from a low-priority charging method to a high-priority charging method. In addition, through the connection method of the third and fourth MOS tubes in the second charging circuit, and the connection method of the seventh and eighth MSO tubes in the third charging circuit, the risk of leakage of the second and third charging interfaces when charging the electronic device through the first charging interface can be avoided, thereby improving the safety of the electronic device.
[0097] It should be understood that the "at least one" mentioned herein refers to one or more, and "multiple" refers to two or more. In the description of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not limit them to be necessarily different.
[0098] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. An electronic device, characterized in that: The electronic device comprises a charging switching circuit, a charging control circuit and a battery, wherein the charging switching circuit has a power supply end; The charging switching circuit includes a plurality of charging circuits and control circuits corresponding to the plurality of charging circuits, respectively, and the plurality of charging circuits correspond to various types of charging interfaces; The input ends of the multiple charging circuits are respectively connected to the corresponding charging interfaces, the output ends of the multiple charging circuits are all connected to the power supply end, the control ends of the multiple charging circuits are respectively connected to the output ends of the corresponding control circuits, the control circuit is used to control the corresponding charging circuit to be turned on or off, and when charging the battery, one of the multiple charging circuits is turned on; The input end of the charging control circuit is connected to the power supply end, the output end of the charging control circuit is connected to the battery, and the charging control circuit is used to control the charging process of the battery.
2. The electronic device according to claim 1, wherein: The charging switching circuit has a reference terminal, the multiple charging circuits include a first charging circuit, a second charging circuit and a third charging circuit, the first charging circuit corresponds to a first charging interface and a first control circuit, the second charging circuit corresponds to a second charging interface and a second control circuit, and the third charging circuit corresponds to a third charging interface and a third control circuit; The first input terminal of the first control circuit is connected to the first charging interface, and the second input terminal of the first control circuit is connected to the reference terminal; The first input end of the second control circuit is connected to the first charging interface, and the second input end of the second control circuit is connected to the detection end of the second charging circuit; The first input terminal and the second input terminal of the third control circuit are both connected to the reference terminal, the third input terminal of the third control circuit is connected to the first charging interface, and the fourth input terminal of the third control circuit is connected to the detection terminal of the second charging circuit.
3. The electronic device according to claim 2, characterized in that: The first charging circuit includes a first MOS tube; The drain of the first MOS tube is connected to the first charging interface, the source of the first MOS tube is connected to the power supply end, and the gate of the first MOS tube is connected to the output end of the first control circuit.
4. The electronic device according to claim 2 or 3, characterized in that: The first control circuit includes a second MOS tube and a first resistor; The gate of the second MOS tube is connected to the first charging interface, the source of the second MOS tube is grounded, the drain of the second MOS tube and one end of the first resistor are both connected to the control end of the first charging circuit, and the other end of the first resistor is connected to the reference end.
5. The electronic device according to claim 2, characterized in that: The second charging circuit includes a third MOS tube and a fourth MOS tube; The drain of the third MOS tube is connected to the second charging interface, the source of the third MOS tube and the source of the fourth MOS tube are both connected to the detection end, the gate of the third MOS tube and the gate of the fourth MOS tube are both connected to the output end of the second control circuit, and the drain of the fourth MOS tube is connected to the power supply end.
6. The electronic device according to claim 2 or 5, characterized in that: The second control circuit includes a fifth MOS transistor, a sixth MOS transistor, a second resistor and a third resistor; The gate of the fifth MOS tube is connected to the first charging interface, the source of the fifth MOS tube is grounded, the drain of the fifth MOS tube and one end of the second resistor are both connected to the gate of the sixth MOS tube, the source of the sixth MOS tube is grounded, the drain of the sixth MOS tube is connected to one end of the third resistor, and the other end of the second resistor and the other end of the third resistor are respectively connected to the detection end.
7. The electronic device according to claim 2, characterized in that: The third charging circuit includes a seventh MOS tube and an eighth MOS tube; The drain of the seventh MOS tube is connected to the third charging interface, the source of the seventh MOS tube is connected to the source of the eighth MOS tube, the gate of the seventh MOS tube and the gate of the eighth MOS tube are both connected to the output end of the third control circuit, and the drain of the eighth MOS tube is connected to the power supply end.
8. The electronic device according to claim 2 or 7, characterized in that: The third control circuit includes a comparator, a ninth MOS tube and a fourth resistor; The non-inverting input terminal of the comparator and one end of the fourth resistor are both connected to the reference terminal, the inverting input terminal of the comparator is respectively connected to the detection terminal and the first charging interface, the output terminal of the comparator is connected to the gate of the ninth MOS tube, the source of the ninth MOS tube is grounded, and the drain of the ninth MOS tube and the other end of the fourth resistor are both connected to the control terminal of the third charging circuit.
9. The electronic device according to claim 2, characterized in that: The electronic device has a plug-and-play terminal, and the charging switching circuit further includes a reverse control circuit; The input end of the reverse control circuit is connected to the plug-and-play end, the output end of the reverse control circuit is connected to the control end of the first charging circuit, and the reverse control circuit is used to control the on or off of the first charging circuit to charge other devices through the battery.
10. The electronic device according to claim 2, characterized in that: The first charging interface is a universal serial bus USB interface, the second charging interface is a dock charging interface, and the third charging interface is a magnetic suction interface.
