Power supply control circuit for electronic device
By employing a hardware closed-loop control scheme using dual comparator chips and combinational logic gates in electronic devices, the problems of insufficient switching delay and reliability of dual batteries are solved, achieving zero-perception battery switching and power supply continuity.
Patent Information
- Application Number
- CN202522616256.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-10
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2035-12-10
Smart Images

Figure CN225020149U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of power supply circuit technology, and in particular to a power supply control circuit for electronic devices. Background Technology
[0002] In portable electronic devices (such as industrial handheld terminals, drone ground stations, and vehicle-mounted tablets), a dual-battery architecture of "main battery + auxiliary battery" is typically used to ensure uninterrupted critical missions. The main battery is responsible for powering under high daily loads, while the auxiliary battery serves as a redundant standby power source. When the system detects that the main battery voltage has dropped to a preset low voltage threshold, it must disconnect the main battery from the load path and seamlessly switch to the auxiliary battery to avoid irreversible damage to the main battery, such as copper foil dissolution and plate perforation caused by over-discharge. However, the switching of the dual batteries described above is detected and controlled by a software system. The response of a purely software control scheme has a certain delay, and it cannot operate under extreme conditions (such as CPU crashes), resulting in insufficient reliability. Utility Model Content
[0003] This invention provides a power supply control circuit for electronic devices to solve the defects of existing dual-battery switching schemes controlled by pure software, which have a certain delay in response and insufficient reliability.
[0004] This utility model provides a power supply control circuit for an electronic device, including: a main battery connection module, a secondary battery connection module, a charging power supply connection module, a CPU connection module, a logic circuit, a first switch, a second switch, and a load connection module;
[0005] The logic circuit is connected to the main battery connection module, the secondary battery connection module, the charging power supply connection module, the CPU connection module, the first switch, and the second switch, respectively. The charging power supply connection module is connected to the main battery connection module and the secondary battery connection module, respectively. The secondary battery connection module is connected to the load connection module through the first switch, and the main battery connection module is connected to the load connection module through the second switch.
[0006] According to the present invention, a power supply control circuit for an electronic device includes a logic circuit comprising: a first comparator chip, a second comparator chip, a first NAND gate, a second NAND gate, a first OR gate, and a second OR gate.
[0007] The auxiliary battery connection module is connected to the first NAND gate through the first comparator chip, the main battery connection module is connected to the first NAND gate through the second comparator chip, the first NAND gate and the charging power supply connection module are respectively connected to the first OR gate, the first OR gate and the CPU connection module are respectively connected to the second OR gate, the second OR gate is connected to the first switch through the second NAND gate, and the second OR gate is connected to the second switch.
[0008] According to the power supply control circuit of the electronic device provided by this utility model, the first comparator chip has 5 pins. Its VIN- pin is connected to the auxiliary battery connection module, its VIN+ pin and VS+ pin are respectively connected to the comparison voltage connection module, its VS- pin is grounded, its VOUT pin is connected to the base of the transistor, its emitter is grounded, and its collector is respectively connected to the comparison voltage connection module and the first NAND gate.
[0009] According to the power supply control circuit of the electronic device provided by this utility model, the first NAND gate has 5 pins, the B pin is connected to the collector of the transistor, the A pin is connected to the second comparator chip, the GND pin is grounded, the VCC pin is connected to the comparison voltage connection module, and the Y pin is connected to the first OR gate.
[0010] According to the power supply control circuit of an electronic device provided by this utility model, the second comparator chip has 6 pins, the first pin is connected to the A pin of the first NAND gate, the second pin is grounded, the third and fifth pins are respectively connected to the reference voltage connection module, the fourth pin is connected to the main battery connection module, and the sixth pin is connected to the comparison voltage connection module.
[0011] According to the present invention, a power supply control circuit for an electronic device is provided, wherein the first OR gate has 5 pins, the first pin is connected to the Y pin of the first NAND gate, the second pin is connected to the charging power supply connection module, the third pin is grounded, the fourth pin is connected to the second OR gate, and the fifth pin is connected to the comparison voltage connection module.
[0012] According to the present invention, a power supply control circuit for an electronic device is provided, wherein the second OR gate has 5 pins, the first pin is connected to the fourth pin of the first OR gate, the second pin is connected to the CPU connection module, the third pin is grounded, the fourth pin is connected to the second NAND gate and the second switch respectively, and the fifth pin is connected to the comparison voltage connection module.
[0013] According to the power supply control circuit of the electronic device provided by this utility model, the second NAND gate has 5 pins, its B pin and A pin are respectively connected to the fourth pin of the second OR gate, the GND pin is grounded, the VCC pin is connected to the comparison voltage connection module, and the Y pin is connected to the first switch.
[0014] The power supply control circuit for electronic devices provided by this utility model, by setting the logic circuit as a pure hardware closed-loop control scheme of "dual comparators + combinational logic gates", can realize automatic switching to secondary battery power supply when the main battery voltage drops to a preset threshold. The pure hardware control logic can achieve "zero-perception" switching with almost no response delay, completely eliminating the risk of power loss caused by task scheduling or CPU crashes in software solutions. The pure hardware logic realizes the full state machine flow of "main battery priority → main battery failure → secondary battery take over → charging power supply access → automatic switch back to main battery". Optional manual intervention can be performed through the CPU. No CPU control is involved in normal operation, and the power supply continuity can still be guaranteed in extreme downtime scenarios, further improving the reliability of the circuit. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in this utility model or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this utility model. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0016] Figure 1 This is a block diagram of the power supply control circuit of the electronic device provided by this utility model;
[0017] Figure 2 It is a block diagram of a logic circuit;
[0018] Figure 3 This is one of the partial circuit diagrams of the power supply control circuit of the electronic device provided by this utility model;
[0019] Figure 4 This is the second partial circuit diagram of the power supply control circuit of the electronic device provided by this utility model. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this utility model clearer, the technical solutions of this utility model will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this utility model, not all embodiments. Based on the embodiments of this utility model, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this utility model.
[0021] The following is combined with Figures 1-4 This invention describes a power supply control circuit for an electronic device, comprising: a main battery connection module, a secondary battery connection module, a charging power supply connection module, a CPU connection module, a logic circuit, a first switch, a second switch, and a load connection module.
[0022] The logic circuit is connected to the main battery connection module, the auxiliary battery connection module, the charging power supply connection module, the CPU connection module, the first switch, and the second switch, respectively. The charging power supply connection module is connected to the main battery connection module and the auxiliary battery connection module, respectively. The auxiliary battery connection module is connected to the load connection module through the first switch, and the main battery connection module is connected to the load connection module through the second switch.
[0023] As the name suggests, in this application, the main battery connection module is used to connect the main battery, the auxiliary battery connection module is used to connect the auxiliary battery, the charging power supply connection module is used to connect the charging power supply, the CPU connection module is used to connect the CPU, and the first switch and the second switch can be MOSFETs.
[0024] Specifically, the logic circuit includes: a first comparator chip U1, a second comparator chip U2, a first NAND gate U3, a second NAND gate U6, a first OR gate U4, and a second OR gate U5;
[0025] The auxiliary battery connection module is connected to the first NAND gate U3 through the first comparator chip U1, the main battery connection module is connected to the first NAND gate U3 through the second comparator chip U2, the first NAND gate U3 and the charging power supply connection module are respectively connected to the first OR gate U4, the first OR gate U4 and the CPU connection module are respectively connected to the second OR gate U5, the second OR gate U5 is connected to the first switch through the second NAND gate U6, and the second OR gate U5 is connected to the second switch.
[0026] Specifically, the first comparator chip U1 is model SGM8707YN5G / TR, which has 5 pins: VIN-, VIN+, VS+, VS-, and VOUT. The VIN- pin of the first comparator chip U1 is connected to the secondary battery connection module; the VIN+ and VS+ pins are connected to the comparison voltage connection module; the VS- pin is grounded; the VOUT pin is connected to the base of transistor Q1; the emitter of transistor Q1 is grounded; and the collector of transistor Q1 is connected to the comparison voltage connection module and the first NAND gate U3.
[0027] The comparison voltage connection module is used to connect the comparison voltage, which is jointly generated by the main battery and the auxiliary battery to ensure that the comparison voltage can exist regardless of which battery is powered. The comparison voltage can be set to a fixed preset value through hardware. This comparison voltage serves as a reference voltage when performing voltage comparison, and can also serve as the power supply voltage for other modules when connected.
[0028] Furthermore, the VIN+ pin of the first comparator chip U1 is connected to the comparison voltage connection module through the first resistor R1, the VIN+ pin of the first comparator chip U1 is grounded through the second resistor R2, and the VIN+ pin of the first comparator chip U1 is connected to the VOUT pin through the third resistor R3.
[0029] The auxiliary battery connection module is connected to the VIN- pin of the first comparator chip U1 in sequence through the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6 connected in series. The connection between the fifth resistor R5 and the sixth resistor R6 is also grounded through the seventh resistor R7.
[0030] The VS+ pin of the first comparator chip U1 is grounded through the first capacitor C1;
[0031] The collector of transistor Q1 is connected to the comparator voltage connection module through the eighth resistor R8.
[0032] When comparing voltages using a comparator chip, the voltage division by the resistors must be considered. Therefore, in the circuit design, the voltage ratio of the two comparison voltages must be kept consistent.
[0033] In this embodiment, the secondary battery voltage and the comparison voltage are compared by the first comparator chip U1. If the secondary battery voltage is greater than the comparison voltage, the VOUT pin outputs the voltage corresponding to the VS- pin (grounding represents a voltage of 0), the base of transistor Q1 is at a low level, the collector and emitter of transistor Q1 are disconnected, and the comparison voltage is directly connected to the B pin of the first NAND gate U3 (i.e., the level of the B pin of the first NAND gate U3 is high). If the secondary battery voltage is less than the comparison voltage, the VOUT pin outputs the voltage corresponding to the VS+ pin (connected to the comparison voltage represents the magnitude of the comparison voltage), the base of transistor Q1 is at a high level, the collector and emitter of transistor Q1 are connected, the comparison voltage is grounded, and cannot reach the B pin of the first NAND gate U3 (i.e., the level of the B pin of the first NAND gate U3 is low).
[0034] The first NAND gate U3, model number 74LVC1G00XC5G / TR, has five pins: B, A, GND, VCC, and Y. Pin B is connected to the collector of transistor Q1, pin A is connected to the second comparator chip U2, pin GND is grounded, pin VCC is connected to the comparison voltage connection module, and pin Y is connected to the first OR gate U4.
[0035] Furthermore, the VCC pin of the first NAND gate U3 is grounded through the third capacitor C3, and the A pin of the first NAND gate U3 is grounded through the sixteenth resistor R16.
[0036] The Y pin of the first NAND gate U3 is connected to the first OR gate U4 through the seventeenth resistor R17. The line connecting the seventeenth resistor R17 and the first OR gate U4 is also grounded through the twenty-ninth resistor R29.
[0037] The second comparator chip U2 is model SGM8706YN6G / TR, and it has 6 pins: pin 1 (VOUT pin), pin 2 (VS- pin), pin 3 (VIN+ pin), pin 4 (VIN- pin), pin 5 (VREF pin), and pin 6 (VS+ pin is on). Pin 1 of the second comparator chip U2 is connected to pin A of the first NAND gate U3, pin 2 is grounded, pins 3 and 5 are connected to the reference voltage connection module, pin 4 is connected to the main battery connection module, and pin 6 is connected to the comparison voltage connection module.
[0038] Furthermore, the third pin of the second comparator chip U2 is connected to the reference voltage connection module through the ninth resistor R9, the third pin of the second comparator chip U2 is connected to the first pin through the tenth resistor R10, and the third pin of the second comparator chip U2 is grounded through the eleventh resistor R11.
[0039] The main battery connection module is connected to the 4th pin of the second comparator chip U2 in sequence through the 12th resistor R12, the 13th resistor R13, and the 14th resistor R14 connected in series. The line connecting the 13th resistor R13 and the 14th resistor R14 is also grounded through the 15th resistor R15.
[0040] Pin 6 of the second comparator chip U2 is grounded via the second capacitor.
[0041] In this embodiment, the main battery is connected to pin 4 (VIN- pin) of the second comparator chip U2 to generate a reference voltage. At the same time, the reference voltage is connected to pin 3 (VIN+ pin) of the second comparator chip U2. The main battery voltage and the reference voltage are compared by the second comparator chip U2. If the main battery voltage is greater than the reference voltage, pin 1 (VOUT pin) outputs the voltage corresponding to pin 2 (VS- pin) (grounding represents a voltage of 0), and pin A of the first NAND gate U3 is low. If the main battery voltage is less than the reference voltage, pin 1 (VOUT pin) outputs the voltage corresponding to pin 6 (VS+ pin) (i.e., the magnitude of the comparison voltage), and pin A of the first NAND gate U3 is high.
[0042] In this application, the inputs of the logic gates are all 0 to represent low level and 1 to represent high level, and the outputs are determined according to the logic relationship, with output 0 representing low level and output 1 representing high level.
[0043] The first OR gate U4, model number 74LVC1G32XC5G / T, has five pins: pin 1 (B pin), pin 2 (A pin), pin 3 (GND pin), pin 4 (Y pin), and pin 5 (VCC pin). Pin 1 of the first OR gate U4 is connected to the Y pin of the first NAND gate U3, pin 2 is connected to the charging power supply connection module, pin 3 is grounded, pin 4 is connected to the second OR gate U5, and pin 5 is connected to the comparison voltage connection module.
[0044] Furthermore, the charging power connection module is connected to the second pin of the first OR gate U4 in sequence through the eighteenth resistor R18 and the nineteenth resistor R19 connected in series. The connection between the eighteenth resistor R18 and the nineteenth resistor R19 is also grounded through the twentieth resistor R20.
[0045] Pin 5 of the first OR gate U4 is grounded through the fourth capacitor C4;
[0046] Pin 4 of the first OR gate U4 is connected to the second OR gate U5 through the twenty-first resistor R21. The line connecting the twenty-first resistor R21 and the second OR gate U5 is also grounded through the twenty-second resistor R22.
[0047] Here, when the charging power supply is present (i.e., representing input 1), the first OR gate U4 outputs 1; when the charging power supply is absent, the output of the first OR gate U4 is processed logically according to the output signal of the first NAND gate U3.
[0048] The second OR gate U5 is also model 74LVC1G32XC5G / T, and it has 5 pins: pin 1 (B pin), pin 2 (A pin), pin 3 (GND pin), pin 4 (Y pin), and pin 5 (VCC pin). Pin 1 of the second OR gate U5 is connected to pin 4 of the first OR gate U4, pin 2 of the second OR gate U5 is connected to the CPU connection module, pin 3 is grounded, pin 4 is connected to the second NAND gate U6 and the second switch, and pin 5 is connected to the comparison voltage connection module.
[0049] Furthermore, pin 2 of the second OR gate U5 is connected to the CPU connection module through resistor R23 (twenty-third resistor), and pin 2 of the second OR gate U5 is also grounded through resistor R24 (twenty-fourth resistor).
[0050] Pin 5 of the second OR gate U5 is grounded through the fifth capacitor C5;
[0051] Pin 4 of the second OR gate U5 is connected to the second NAND gate U6 and the second switch via the twenty-fifth resistor R25; the end of the twenty-fifth resistor R25 away from pin 4 of the second OR gate U5 is grounded via the twenty-sixth resistor R26.
[0052] Here, the logic of the second OR gate U5 is controlled by the output of the first OR gate U4 and the active switching of the CPU. Under normal circumstances, the CPU does not participate in the logic control. The CPU only controls the switching when it needs to be manually intervened. When the CPU controls the switching, it means that the pin input is 1.
[0053] The second NAND gate U6, model number 74LVC1G00XC5G / TR, has five pins: B, A, GND, VCC, and Y. Pins B and A of the second NAND gate U6 are connected to pin 4 of the second OR gate U5, the GND pin of the second NAND gate U6 is grounded, the VCC pin is connected to the comparison voltage connection module, and the Y pin is connected to the first switch.
[0054] Furthermore, the VCC pin of the second NAND gate U6 is grounded through the sixth capacitor C6;
[0055] The Y pin of the second NAND gate U6 is connected to the first switch through the twenty-seventh resistor R27;
[0056] A 28th resistor R28 is connected in series between the second switch and the 25th resistor R25.
[0057] Using the first comparator chip U1 and the second comparator chip U2, it can be deduced that when the main battery voltage is lower than the reference voltage and the secondary battery voltage is higher than the comparison voltage, both inputs of the first NAND gate U3 are 1, so the output of the first NAND gate U3 is 0. Without considering the charging power supply, the first OR gate U4 outputs 0, and without active CPU control, the second OR gate U5 outputs 0. At this time, both inputs of the second NAND gate U6 are 0, so the second NAND gate U6 outputs 1, the first switch is turned on, and the second switch is turned off, thus forming a situation where the secondary battery supplies power to the load. In short, when the main battery voltage is lower than a preset threshold and the secondary battery voltage is higher than a preset threshold, the system switches to supply power to the load from the secondary battery.
[0058] In another scenario, when the main battery voltage is greater than the reference voltage, the secondary battery voltage is irrelevant, and the first NAND gate U3 outputs 1. Without considering the charging power supply, the first OR gate U4 outputs 1, and without active CPU control, the second OR gate U5 outputs 1. At this point, the two inputs of the second NAND gate U6 are 1, leading to its output of 0. The first switch is open, while the second switch is closed, allowing the main battery to power the load. In short, when the main battery voltage is higher than a preset threshold, the main battery powers the load regardless of the secondary battery voltage.
[0059] Of course, when the voltage of both the main and auxiliary batteries is lower than the preset threshold, neither battery can supply power to the load.
[0060] Once a charging power source is connected to the system, the first OR gate U4 outputs 1, the second OR gate U5 outputs 1, the second NAND gate U6 has two inputs of 1 and outputs 0. The first switch is open, and the second switch is closed, allowing the main battery to power the load. In short, when a charging power source is connected to the system, the charging power source charges both the main and auxiliary batteries, while the main battery powers the load.
[0061] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this utility model, and not to limit it. Although this utility model has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this utility model.
Claims
1. A power supply control circuit for an electronic device, characterized in that, include: Main battery connection module, auxiliary battery connection module, charging power supply connection module, CPU connection module, logic circuit, first switch, second switch and load connection module; The logic circuit is connected to the main battery connection module, the secondary battery connection module, the charging power supply connection module, the CPU connection module, the first switch, and the second switch, respectively. The charging power supply connection module is connected to the main battery connection module and the secondary battery connection module, respectively. The secondary battery connection module is connected to the load connection module through the first switch, and the main battery connection module is connected to the load connection module through the second switch.
2. The power supply control circuit for the electronic device according to claim 1, characterized in that, The logic circuit includes: a first comparator chip, a second comparator chip, a first NAND gate, a second NAND gate, a first OR gate, and a second OR gate; The auxiliary battery connection module is connected to the first NAND gate through the first comparator chip, the main battery connection module is connected to the first NAND gate through the second comparator chip, the first NAND gate and the charging power supply connection module are respectively connected to the first OR gate, the first OR gate and the CPU connection module are respectively connected to the second OR gate, the second OR gate is connected to the first switch through the second NAND gate, and the second OR gate is connected to the second switch.
3. The power supply control circuit for the electronic device according to claim 2, characterized in that, The first comparator chip has 5 pins. Its VIN- pin is connected to the secondary battery connection module, its VIN+ pin and VS+ pin are connected to the comparison voltage connection module, its VS- pin is grounded, its VOUT pin is connected to the base of the transistor, its emitter is grounded, and its collector is connected to the comparison voltage connection module and the first NAND gate.
4. The power supply control circuit for the electronic device according to claim 3, characterized in that, The first NAND gate has 5 pins: pin B is connected to the collector of the transistor, pin A is connected to the second comparator chip, pin GND is grounded, pin VCC is connected to the comparison voltage connection module, and pin Y is connected to the first OR gate.
5. The power supply control circuit for the electronic device according to claim 4, characterized in that, The second comparator chip has 6 pins. Its first pin is connected to the A pin of the first NAND gate, the second pin is grounded, the third and fifth pins are connected to the reference voltage connection module, the fourth pin is connected to the main battery connection module, and the sixth pin is connected to the comparison voltage connection module.
6. The power supply control circuit for the electronic device according to claim 4, characterized in that, The first OR gate has 5 pins: pin 1 is connected to the Y pin of the first NAND gate, pin 2 is connected to the charging power supply connection module, pin 3 is grounded, pin 4 is connected to the second OR gate, and pin 5 is connected to the comparison voltage connection module.
7. The power supply control circuit for the electronic device according to claim 6, characterized in that, The second OR gate has 5 pins. Its first pin is connected to the fourth pin of the first OR gate, its second pin is connected to the CPU connection module, its third pin is grounded, its fourth pin is connected to the second NAND gate and the second switch respectively, and its fifth pin is connected to the comparison voltage connection module.
8. The power supply control circuit for the electronic device according to claim 7, characterized in that, The second NAND gate has 5 pins. Its B pin and A pin are connected to the 4th pin of the second OR gate, respectively. The GND pin is grounded, the VCC pin is connected to the comparison voltage connection module, and the Y pin is connected to the first switch.
