Power supply control circuit and electronic device

CN224817884UActive Publication Date: 2026-09-29SHENZHEN POWEROAK NEWENER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202522115953.9
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-09-30
Publication Date
2026-09-29
Estimated Expiration
2035-09-30

AI Technical Summary

Technical Problem

[0003]本申请实施方式主要解决相关技术中直流电源的供电开关控制方式复杂且成本高的技术问题

Benefits of technology

[0014]区别于相关技术的情况,本申请实施例提供一种供电控制电路及电子设备。该电路通过设置有蓄能模块和充放电控制模块,且充放电控制模块的输出端和蓄能模块并联于基准电压和接地端,因此充放电控制模块导通和断开状态控制着蓄能模块的充电和放电通道,当充放电控制模块导通时,充放电控制模块形成蓄能模块的放电冲到,当充放电控制模块断开时,蓄能模块通过基准电压充电。当供电单元断开给外部负载供电时按下按键,按下按键的瞬间,蓄能模块还未充电,此刻蓄能模块的电量为零,电量为零的蓄能模块拉低充放电控制模块的控制端的电压,从而控制充放电控制模块断开,此时蓄能模块通过基准电压充电至第一电量,进而通过该第一电量控制第一控制模块导通以进一步控制第二控制模块导通,因第二控制模块的输出端形成供电通道,因而第二控制模块导通即表示供电通道导通。而且,在供电通道导通时,导通的第一控制模块用于控制所述充放电控制模块保持断开状态,使得蓄能模块维持充电状态,即可维持第一电量,从而可以使得第一控制模块维持住导通状态,继而使得第二控制模块保持导通以维持供电通道的导通。在供电通道导通的情况上再次按下按键,则能够实现充放电模块的控制端的电平翻转,基于第一电量瞬时拉高充放电控制模块的控制端电压使其导通以形成蓄能模块的放电回路,同时导通的充放电控制模块瞬间拉低第一控制模块的控制端电压,由此控制第一控制模块断开,断开的第一控制模块无法继续控制第二控制模块导通,因而第二控制模块断开,也即供电通道断开。在供电通道断开的情况下又能通过按下按键重复实现上述流程以完成对供电通道的通断控制,由此使得按键每次被按下都能改变供电通道的通断状态。基于此,由于第二控制模块及供电通道的通断均由第一控制模块的工作状态决定,结合上述对第一控制模块的控制方式,本申请实施例提供的供电控制电路不需要使用至少2个IO口配合检测按键的按下动作来控制供电通道的通断,基于其硬件结构,该电路能够通过按下按键实现对供电通道的通断控制,由此使得按键每次被按下都能改变供电通道的通断状态,因此,本方案简化了软件控制的复杂度以及节省了系统的IO口资源,同时硬件控制逻辑相较于软件程序的控制相对更稳定,故障率更低。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224817884U_ABST
    Figure CN224817884U_ABST
Patent Text Reader

Abstract

The application relates to the technical field of charge and discharge control, in particular to a power supply control circuit and electronic equipment. The circuit is provided with a charge and discharge module and an energy storage module. When the power supply unit is disconnected from the external load, the key is pressed, the energy storage module is charged to a first electric quantity, the charge and discharge control module is controlled to be disconnected, and then the first electric quantity is used to control the power supply channel to be turned on. The disconnected state of the charge and discharge control module is maintained based on the first electric quantity, so that the power supply channel can be maintained in the turned-on state after the key is bounced back. On the basis of the power supply channel being turned on, the key is pressed again, the level of the control end of the charge and discharge module is flipped, the charge and discharge module is controlled to be turned on based on the first electric quantity, and then the power supply channel is controlled to be disconnected. In the case that the power supply channel is disconnected, the above process can be repeatedly realized by pressing the key to complete the on-off control of the power supply channel, so that the on-off state of the power supply channel can be changed every time the key is pressed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of charge and discharge control technology, specifically to a power supply control circuit and electronic equipment. Background Technology

[0002] In power electronic devices such as inverters, DC power supply switching control is a fundamental function to ensure the safe operation of the equipment. To achieve button status recognition and power enable functions, related DC power-on button control schemes typically require at least two I / O ports: one to detect the button press and the other to output an enable signal to control the power supply. This results in a waste of I / O port resources. Furthermore, relying on real-time software logic to continuously monitor the button status and output corresponding control commands further increases the system complexity and requires additional code development and debugging costs. Utility Model Content

[0003] The embodiments of this application mainly address the technical problem that the power supply switch control method of DC power supply is complex and costly in related technologies.

[0004] To solve the above-mentioned technical problems, one technical solution adopted in this application is: providing a power supply control circuit for turning on or off the power supply channel of the power supply unit to the external load. The circuit includes: an energy storage module and a charge / discharge control module, the output terminal of the charge / discharge control module and the energy storage module being connected in parallel to a reference voltage and a ground terminal; a first control module, the control terminal of which is connected to the energy storage module and the reference voltage, and the output terminal of the first control module being connected to the control terminal of the charge / discharge control module; a button, the two ends of which are respectively connected to the control terminal of the charge / discharge control module and the energy storage module; a second control module, the control terminal of which is connected to the first control module, and the output terminal of the second control module forming the power supply channel; when the button is pressed while the power supply unit is disconnected from supplying power to the external load, the energy storage module is used for control... The charging and discharging control module is disconnected to charge the energy storage module to a first charge level based on the reference voltage. The first charge level is used to control the first control module to turn on, so that the first control module controls the second control module to turn on, thereby turning on the power supply channel. When the power supply channel is on, releasing the button causes the first control module to remain disconnected, maintaining the first charge level of the energy storage module. When the button is pressed while the power supply channel is on, the first charge level is used to control the charging and discharging control module to turn on. The on charge and discharging control module forms a discharge circuit for the energy storage module and controls the first control module to turn off. The disconnected first control module controls the second control module to turn off, thus disconnecting the power supply channel.

[0005] In some embodiments, the charge / discharge control module includes a switch Q1, and the energy storage module includes a resistor R6 and a capacitor C1; the first terminal of the switch Q1 is connected to the reference voltage, the second terminal of the switch Q1 is grounded, the control terminal of the switch Q1 is connected to the first terminal of the button, the control terminal of the switch Q1 is connected to the first control module, the second terminal of the button is connected to the first terminal of the capacitor C1, the first terminal of the capacitor C1 is connected to the first terminal of the resistor R6, the second terminal of the resistor R6 is connected to the first terminal of the switch Q1 and the control terminal of the first control module, and the second terminal of the capacitor C1 is grounded.

[0006] In some embodiments, the first control module includes a switch Q2, a resistor R2, and a resistor R5; the first terminal of the switch Q2 is connected to the control terminal of the switch Q1 through the resistor R2, the second terminal of the switch Q2 is grounded, the control terminal of the switch Q2 is connected to the first terminal of the switch Q1 and the second terminal of the resistor R6 through the resistor R5, and the first terminal of the switch Q2 is connected to the control terminal of the second control module.

[0007] In some embodiments, the second control module includes a first switch unit, a second switch unit, and a third switch unit. A first terminal of the first switch unit is connected to the reference voltage, a control terminal of the first switch unit is connected to the first control module, a second terminal of the first switch unit is connected to the control terminal of the second switch unit, a first terminal of the second switch unit is connected to the control terminal of the third switch unit, a second terminal of the second switch unit is grounded, a first terminal of the third switch unit is connected to the power supply unit, and a second terminal of the third switch unit is connected to an external load. The third switch unit is used to form the power supply channel. The first switch unit is used to turn on when the first control module is turned on and control the second switch unit to turn on, and to turn off when the first control module is turned off and control the second switch unit to turn off. The second switch unit is used to control the third switch unit to turn on when it is turned on, so that the power supply channel is turned on, and to control the third switch unit to turn off when it is turned off, so that the power supply channel is turned off.

[0008] In some embodiments, the first switching unit includes a switching transistor Q3, a resistor R3, and a resistor R7; the first terminal of the switching transistor Q3 is connected to the reference voltage, the first terminal of the switching transistor Q3 is connected to the first terminal of the switching transistor Q2 through the resistor R3, the second terminal of the switching transistor Q3 is connected to the control terminal of the second switching unit, and the control terminal of the switching transistor Q3 is connected to the first terminal of the switching transistor Q2 through the resistor R7.

[0009] In some embodiments, the second switching unit includes a switching transistor Q4, a resistor R8, and a resistor R9. The first end of the switching transistor Q4 is connected to the control terminal of the third switching unit, the second end of the switching transistor Q4 is grounded, the control terminal of the switching transistor Q4 is connected to the second end of the switching transistor Q3 through the resistor R8, and the control terminal of the switching transistor Q4 is connected to the second end of the switching transistor Q4 through the resistor R9.

[0010] In some embodiments, the third switching unit includes a switching transistor Q5, a resistor R10, and a resistor R11; the first end of the switching transistor Q5 is connected to a power supply unit, the second end of the switching transistor Q5 is connected to an external load, the control end of the switching transistor Q5 is connected to the first end of the switching transistor Q4 through the resistor R10, and the control end of the switching transistor Q5 is connected to the first end of the switching transistor Q5 through the resistor R11.

[0011] In some embodiments, the circuit further includes: an indicator light unit, the first end of which is connected to the second end of the switching transistor Q3, and the second end of which is grounded; the indicator light unit is used to conduct and emit light when the switching transistor Q3 is turned on.

[0012] In some embodiments, the indicator unit includes a resistor R4 and a light-emitting diode LED1, wherein the anode of the light-emitting diode LED1 is connected to the second terminal of the switching transistor Q3 through the resistor R4, and the cathode of the light-emitting diode LED1 is grounded.

[0013] To solve the above-mentioned technical problems, another technical solution adopted in the embodiments of this application is to provide an electronic device, including the power supply control circuit as described above.

[0014] Unlike related technologies, this application provides a power supply control circuit and electronic device. The circuit includes an energy storage module and a charge / discharge control module. The output terminal of the charge / discharge control module and the energy storage module are connected in parallel to a reference voltage and a ground terminal. Therefore, the on / off state of the charge / discharge control module controls the charging and discharging channels of the energy storage module. When the charge / discharge control module is on, it forms a discharge path for the energy storage module. When the charge / discharge control module is off, the energy storage module is charged by the reference voltage. When the power supply unit disconnects from supplying power to an external load and a button is pressed, the energy storage module is not yet charged at the moment the button is pressed; its charge is zero. The zero-charge energy storage module lowers the voltage at the control terminal of the charge / discharge control module, thereby controlling the charge / discharge control module to disconnect. At this time, the energy storage module is charged to a first charge level by the reference voltage. This first charge level then controls the first control module to turn on, which in turn controls the second control module to turn on. Since the output terminal of the second control module forms a power supply channel, the turning on of the second control module indicates that the power supply channel is on. Furthermore, when the power supply channel is on, the first control module, which is on, controls the charging and discharging control module to remain off, thus maintaining the energy storage module in a charging state and maintaining the first charge level. This allows the first control module to remain on, which in turn keeps the second control module on to maintain the power supply channel. Pressing the button again while the power supply channel is on causes a level flip at the control terminal of the charging and discharging module. Based on the first charge level, the voltage at the control terminal of the charging and discharging control module is instantly raised, enabling it to conduct and form a discharge circuit for the energy storage module. Simultaneously, the ongoing charging and discharging control module instantly lowers the voltage at the control terminal of the first control module, thereby disengaging the first control module. The disengaged first control module cannot continue to control the second control module to conduct, thus disengaging the second control module, and consequently, the power supply channel is disconnected. When the power supply channel is off, pressing the button again repeats the above process to control the power supply channel's on / off state, thus changing the on / off state of the power supply channel each time the button is pressed. Based on this, since the on / off state of the second control module and the power supply channel is determined by the working state of the first control module, and combined with the above-mentioned control method for the first control module, the power supply control circuit provided in this embodiment does not need to use at least two I / O ports to detect the pressing action of the button to control the on / off state of the power supply channel. Based on its hardware structure, the circuit can control the on / off state of the power supply channel by pressing the button, so that the on / off state of the power supply channel can be changed every time the button is pressed. Therefore, this solution simplifies the complexity of software control and saves the I / O port resources of the system. At the same time, the hardware control logic is more stable and has a lower failure rate than the software program control. Attached Figure Description

[0015] Figure 1 This is a block diagram of a power supply control circuit provided in an embodiment of this application; Figure 2 This is a schematic diagram of the circuit structure of a power supply control circuit provided in an embodiment of this application. Detailed Implementation

[0016] To facilitate understanding of this application, a more detailed description is provided below with reference to the accompanying drawings and specific embodiments. It should be noted that when an element is described as "connected" to another element, it can be directly connected to the other element, or there may be one or more intervening elements. The terms "first," "second," etc., used in this specification are for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0017] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items.

[0018] This application provides a power supply control circuit for turning on or off the power supply channel of the power supply unit for external loads. Based on the hardware structure of this circuit, automatic level switching can be achieved by controlling the power supply channel by simply using the buttons in the circuit. There is no need to use IO ports to identify the button status and then control the power supply through software logic, thereby saving IO port resources and software maintenance costs.

[0019] Please see Figure 1 In this embodiment, the power supply control circuit includes: an energy storage module 12 and a charge / discharge control module 11, wherein the output terminal of the charge / discharge control module 11 and the energy storage module 12 are connected in parallel to the reference voltage VCC and the ground terminal GND; a first control module 13, whose control terminal is connected to the energy storage module 12 and the reference voltage VCC, and whose output terminal is connected to the control terminal of the charge / discharge control module 11; a button 15, whose two ends are respectively connected to the control terminal of the charge / discharge control module 11 and the energy storage module 12; and a second control module 14, whose control terminal is connected to the first control module 13, and whose output terminal forms a power supply channel. Figure 1 The example in the diagram illustrates a scenario where the battery supplies power to the load. In this scenario, the power supply channel is the power supply unit BAT+ in the example diagram, which supplies power to the external load VIN.

[0020] Based on this, when button 15 is pressed while the power supply unit BAT+ is disconnected from supplying power to the external load VIN, the energy storage module 12 controls the charge / discharge control module 11 to disconnect, charging the energy storage module 12 to a first charge level based on the reference voltage VCC. That is, the voltage at the control terminal of the first control module 13 is increased to the first charge level. The first charge level is used to control the first control module 13 to conduct, so that the first control module controls the second control module 14 to conduct, thereby connecting the power supply channel. That is, the power supply unit BAT+ and the external load VIN are connected through the second control module 14. When the power supply channel is connected, button 15 is released. At this time, the already connected first control module 14 can control the charge / discharge control module 11 to remain disconnected, so as to maintain the first charge level of the energy storage module 12. When button 15 is pressed while the power supply channel is connected, the first charge level is used to control the charge / discharge control module 11 to conduct. The connected charge / discharge control module 11 is used to form the discharge circuit of the energy storage module 12 and to control the first control module 13 to disconnect. The disconnected first control module 13 is used to control the second control module 14 to disconnect, thereby disconnecting the power supply channel. Therefore, if applied to a power switch scenario controlled by buttons, users can achieve automatic voltage level switching by simply pressing the button. It is understood that the scenario where the power supply unit BAT+ is the external load VIN is merely an example of a power supply channel provided in this application embodiment, and the circuit is not limited to this scenario in actual use. The power supply unit can be, but is not limited to, a battery.

[0021] In the power supply control circuit provided in this application embodiment, since an energy storage module and a charge / discharge control module are provided, and the output terminal of the charge / discharge control module and the energy storage module are connected in parallel to the reference voltage and the ground terminal, the on and off states of the charge / discharge control module control the charging and discharging channels of the energy storage module. When the charge / discharge control module is on, the charge / discharge control module forms the discharge circuit of the energy storage module. When the charge / discharge control module is off, the energy storage module is charged by the reference voltage.

[0022] When the power supply unit disconnects from the external load and the button is pressed, the energy storage module is not yet charging at the moment the button is pressed; its charge is zero. This zero charge lowers the voltage at the control terminal of the charge / discharge control module, causing it to disconnect. The energy storage module then charges to a first charge level using a reference voltage. This first charge level then controls the first control module to turn on, which in turn controls the second control module to turn on. Since the output of the second control module forms a power supply channel, its activation signifies that the power supply channel is active. Furthermore, when the power supply channel is active, the activated first control module keeps the charge / discharge control module disconnected, maintaining the energy storage module's charging state and thus the first charge level. This allows the first control module to remain active, which in turn keeps the second control module active, maintaining the power supply channel's activity.

[0023] Pressing the button again while the power supply channel is active will cause the control terminal of the charging / discharging module to flip. Based on the initial charge level, the control terminal voltage of the charging / discharging control module is instantly raised, enabling it to conduct and form a discharge circuit for the energy storage module. Simultaneously, the activated charging / discharging control module instantly lowers the control terminal voltage of the first control module, thus disengaging it. The disengaged first control module cannot control the second control module to conduct, therefore the second control module is also disengaged, meaning the power supply channel is disconnected. When the power supply channel is disconnected, pressing the button again will repeat the above process to control the power supply channel's on / off state, thus changing the power supply channel's on / off state each time the button is pressed.

[0024] In some embodiments, please combine Figure 2 The charging and discharging control module 11 of the power supply control circuit 100 includes a switching transistor Q1, and the energy storage module 12 includes a resistor R6 and a capacitor C1. The first terminal of the switching transistor Q1 is connected to the reference voltage VCC. Specifically, the first terminal of the switching transistor Q1 is connected to the reference voltage VCC through the resistor R1. The second terminal of the switching transistor Q1 is grounded to GND. The control terminal of the switching transistor Q1 is connected to the first terminal of the button BOT_DC, and the control terminal of the switching transistor Q1 is also connected to the first control module 13. The second terminal of the button BOT_DC is connected to the first terminal of the capacitor C1. The first terminal of the capacitor C1 is connected to the first terminal of the resistor R6. The second terminal of the resistor R6 is connected to the first terminal of the switching transistor Q1 and the control terminal of the first control module 13. The second terminal of the capacitor C1 is grounded to GND.

[0025] Based on this, such as Figure 2As shown, the first control module 13 includes a switch Q2, resistors R2, R3, and R5; the first terminal of switch Q2 is connected to the control terminal of switch Q1 through resistor R2, the first terminal of switch Q2 is connected to the reference voltage VCC through resistor R3, the second terminal of switch Q2 is grounded to GND_BAT, the control terminal of switch Q2 is connected to the first terminal of switch Q1 and the second terminal of resistor R6 through resistor R5, and the first terminal of switch Q2 is connected to the control terminal of the second control module 14.

[0026] In one specific embodiment, both switch Q1 and switch Q2 are NPN transistors, wherein the first terminal, the second terminal, and the control terminal of switch Q1 are the collector, emitter, and base of the transistor, respectively; and the first terminal, the second terminal, and the control terminal of switch Q2 are the collector, emitter, and base of the transistor, respectively.

[0027] In the above embodiment, when the power supply channel is not supplying power to the load, and before the button BOT_DC is pressed, the reference voltage VCC provides voltage to turn on the switch Q1 through resistors R1, R2, and R3, causing the switch Q1 to conduct. At this time, capacitor C1 is not yet charged, and the voltage of capacitor C1 is 0. Therefore, the voltage at the control terminal of the switch diode Q2 is 0, and the switch Q2 is in the off state. The off switch Q2 controls the second control module 14 to disconnect. When the power supply unit disconnects from supplying power to the external load and the button BOT_DC is pressed, since the voltage of capacitor C1 is 0 at this time, the button BOT_DC conducts instantly and pulls the base of the switch Q1 low, causing the switch Q1 to immediately disconnect. The reference voltage VCC charges capacitor C1 through resistors R1 and R6. When the voltage at the second end of resistor R6 (the end connected to resistor R5) rises to a first charge level to meet the conduction condition of switch Q2, for example, the first charge level is 0.7V, switch Q2 conducts, thereby controlling the second control module 14 to conduct, so as to turn on the power supply channel. During the process of the power supply unit supplying power to the external load, even if the button BOT_DC is released and bounced off, since the switch Q2 is in the conducting state, the voltage at the first terminal of the switch Q2 is pulled down, and the voltage at the control terminal of the switch Q1 connected to the first terminal of the switch Q2 is also pulled down. Therefore, the switch Q1 will remain in the off state, and the capacitor C1 cannot form a discharge channel, thereby maintaining the first charge of the capacitor C1, which in turn keeps the switch Q2 in the conducting state, so that the second control module 14 maintains the conducting state of the power supply channel.

[0028] In the above embodiment, when the power supply channel is on, pressing the button BOT_DC again will cause the first charge of capacitor C1 to be sufficient to control the switching transistor Q1 to turn on. Once Q1 is on, it will pull down the control terminal voltage of switching transistor Q2, causing Q2 to turn off, which in turn controls the second control module 14 to disconnect, thus disconnecting the power supply channel. When the power supply channel is off, pressing the button BOT_DC again will repeat the above process to control the power supply channel's on / off state. Therefore, each time the button BOT_DC is pressed, the on / off state of the power supply channel can be changed.

[0029] In some embodiments, please combine Figure 1 and Figure 2 The second control module 14 includes a first switch unit 141, a second switch unit 142, and a third switch unit 143. The first terminal of the first switch unit 141 is connected to the reference voltage VCC. The control terminal of the first switch unit 141 is connected to the first control module 13. The second terminal of the first switch unit 141 is connected to the control terminal of the second switch unit 142. The first terminal of the second switch unit 142 is connected to the control terminal of the third switch unit 143. The second terminal of the second switch unit 142 is grounded. The first terminal of the third switch unit 143 is connected to the power supply unit BAT+. The second terminal of the third switch unit 143 is connected to the external load VIN. The third switch unit 143 is used to form a power supply channel.

[0030] Based on this, the first switch unit 141 is turned on when the first control module 13 is turned on, and controls the second switch unit 142 to be turned on, and is also used to be turned off when the first control module 13 is turned off, and controls the second switch unit 142 to be turned off; the second switch unit 142 is used to control the third switch unit 143 to be turned on when it is turned on, so as to make the power supply channel open, and is used to control the third switch unit 143 to be turned off when it is turned off, so as to make the power supply channel closed.

[0031] In some embodiments, the first switching unit 141 includes a switching transistor Q3 and a resistor R7; the second switching unit 142 includes a switching transistor Q4, a resistor R8, and a resistor R9; and the third switching unit 143 includes a switching transistor Q5, a resistor R10, and a resistor R11. (Please refer to...) Figure 2 ,like Figure 2 In the circuit structure example shown, the first terminal of switch Q3 is connected to the reference voltage VCC, the first terminal of switch Q3 is connected to the first terminal of switch Q2 through resistor R3, and the second terminal of switch Q3 is connected to the control terminal of the second switching unit 142. Figure 2 In the example, the control terminal of switch Q4 is connected via resistor R8, and the control terminal of switch Q3 is connected to the first terminal of switch Q2 via resistor R7; the first terminal of switch Q4 is connected to the control terminal of the third switching unit 143, i.e. Figure 2In the example, the control terminal of switch Q5 is connected via resistor R10. The second terminal of switch Q4 is grounded to GND_BAT. The control terminal of switch Q4 is connected to the second terminal of switch Q3 via resistor R8. The control terminal of switch Q4 is connected to the second terminal of switch Q4 via resistor R9. The first terminal of switch Q5 is connected to the power supply unit BAT+. The second terminal of switch Q5 is connected to the external load VIN. The control terminal of switch Q5 is connected to the first terminal of switch Q4 via resistor R10. The control terminal of switch Q5 is connected to the first terminal of switch Q5 via resistor R11.

[0032] In one specific embodiment, switch Q3 is a PMOS transistor, and its first terminal, second terminal, and control terminal are the source, drain, and gate of the PMOS transistor, respectively. Switch Q4 is an NPN transistor, and its first terminal, second terminal, and control terminal are the collector, emitter, and base, respectively. Switch Q5 is a PMOS transistor, and its first terminal, second terminal, and control terminal are the source, drain, and gate of the PMOS transistor, respectively.

[0033] In this embodiment, as described above, when the button is pressed while the power supply unit BAT+ is disconnecting from the external load VIN, or when the button is released while the power supply unit BAT+ is supplying power to the external load VIN, the switching transistor Q2 of the first control module is in the on state. When the switching transistor Q2 is on, it pulls down the control terminal voltage of the switching transistor Q3, causing the switching transistor Q3 to turn on. Then, combined with the reference voltage VCC, it pulls up the control terminal voltage of the switching transistor Q4, causing the switching transistor Q4 to turn on, which in turn causes the switching transistor Q5 to turn on. Thus, the power supply channel between the power supply unit BAT+ and the external load VIN remains on. As shown above, when the power supply unit supplies power to the external load, the button is pressed again. At this time, the switch Q2 of the first control module 13 is in the off state. When the switch Q2 is off, the control terminal voltage of the switch Q3 is raised, causing the switch Q3 to be off. After the switch Q3 is off, the reference voltage VCC cannot provide a high level to the control terminal of the switch Q4, so the switch Q4 is off, which in turn causes the switch Q5 to be off. Thus, the power supply channel between the power supply unit BAT+ and the external load VIN is disconnected. Therefore, the on / off state of the second control module 14 and the power supply channel is determined by the on / off state of the switching transistor Q2 in the first control module 13. Combined with the above-mentioned control method of the first control module 13, the power supply control circuit provided in this application embodiment does not need to use at least two IO ports to detect the pressing action of the button to control the on / off state of the power supply channel. Based on its hardware structure, the on / off state of the power supply channel can be controlled by pressing the button. Thus, the on / off state of the power supply channel can be changed every time the button is pressed. Therefore, this solution simplifies the complexity of software control and saves the IO port resources of the system. At the same time, the hardware control logic is more stable and has a lower failure rate than the software program control.

[0034] In some embodiments, please combine Figure 2 The power supply control circuit 100 further includes: an indicator light unit 151, whose first terminal is connected to the second terminal of the switching transistor Q3, and whose second terminal is grounded; the indicator light unit 151 is used to turn on and emit light when the switching transistor Q3 is turned on. Figure 2 As shown, the indicator unit includes a resistor R4 and a light-emitting diode LED1. The anode of the light-emitting diode LED1 is connected to the second terminal of the switching transistor Q3 through the resistor R4, and the cathode of the light-emitting diode LED1 is grounded.

[0035] Based on this, the lighting status of LED1 is consistent with the on / off status of the second control module. When the switch Q3 is turned on, the reference voltage VCC controls LED1 to turn on and emit light through the switch Q3 and resistor R4. When the switch Q3 is turned off, the reference voltage VCC cannot supply power to LED1, so LED1 is turned off and goes out.

[0036] Specifically, when the reference voltage VCC is initially powered on, that is, when the power supply unit is disconnected from the external load (i.e., switching transistors Q5, Q3, and Q4 are disconnected), before the button BOT_DC is pressed, the reference voltage VCC controls switching transistor Q1 to be in the conducting state through resistors R3 and R2, controls switching transistor Q2 to be in the off state, and switches Q3, Q4, and Q5 are all in the off state. That is, the power supply channel is disconnected at this time. Because switching transistor Q3 is in the off state, LED1 does not light up. Pressing button BOT_DC at this point causes the voltage across capacitor C1 to be zero. The button conducts instantly, pulling down the base of transistor Q1, causing Q1 to immediately turn off. The reference voltage VCC charges capacitor C1 to its initial charge through resistors R1 and R6, turning on transistor Q2. This, in turn, controls transistors Q3, Q4, and Q5 to conduct, thus establishing the power supply path. Simultaneously, transistor Q3 is on, and LED1 illuminates. Even if button BOT_DC is released and the circuit breaks, the on-state of transistor Q2 pulls down the control terminal voltage of transistor Q1, keeping Q1 off. This maintains the initial charge on capacitor C1, thus ensuring the continued conduction of transistors Q2, Q3, and Q5. Both switch Q5 and LED1 remain on, and the power supply channel remains on. When button BOT_DC is pressed again, the initial charge in capacitor C1 is sufficient to turn on switch Q1 at the instant BOT_DC is turned on. Once Q1 is on, it lowers the control voltage of switch Q2, causing Q2 to turn off. This, in turn, controls switches Q3, Q4, Q5, and LED1, thus disconnecting the power supply channel and turning off LED1. Therefore, each press of button BOT_DC changes the on / off state of the power supply channel, and the indicator light unit visually displays the on / off status, allowing users to intuitively determine whether the power supply channel is on based on the presence or absence of an indicator light, thus optimizing the user experience.

[0037] This application provides an electronic device including the power supply control circuit described above. The electronic device provided in this application possesses the functional modules and beneficial effects of the power supply control circuit described above. Technical details not described in detail in the electronic device embodiments can be found in the power supply control circuit provided in the embodiments of this application.

[0038] It should be noted that while preferred embodiments of this application are provided in the specification and accompanying drawings, this application can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are not intended to impose additional limitations on the content of this application; their purpose is to provide a more thorough and comprehensive understanding of the disclosure of this application. Furthermore, the above-described technical features can be combined with each other to form various embodiments not listed above, all of which are considered to be within the scope of this application's specification. Moreover, those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.

Claims

1. A power supply control circuit for switching on or off the power supply channel of a power supply unit for an external load, characterized in that, include: An energy storage module and a charge / discharge control module, wherein the output terminal of the charge / discharge control module and the energy storage module are connected in parallel to a reference voltage and a ground terminal; The first control module has its control terminal connected to the energy storage module and the reference voltage, and its output terminal is connected to the control terminal of the charge and discharge control module. A button, the two ends of which are respectively connected to the control terminal of the charging and discharging control module and the energy storage module; The second control module has its control terminal connected to the first control module, and the output terminal of the second control module forms the power supply channel. When the power supply unit disconnects from supplying power to the external load, pressing the button causes the energy storage module to control the charge / discharge control module to disconnect, charging the energy storage module to a first charge level based on the reference voltage. The first charge level is used to control the first control module to turn on, so that the first control module controls the second control module to turn on, thereby turning on the power supply channel. When the power supply channel is turned on, releasing the button causes the turned-on first control module to control the charge / discharge control module to remain disconnected, maintaining the first charge level of the energy storage module. When the button is pressed while the power supply channel is open, the first amount of electricity is used to control the charging and discharging control module to be open. The open charging and discharging control module is used to form the discharge circuit of the energy storage module and to control the first control module to be closed. The closed first control module is used to control the second control module to be closed to disconnect the power supply channel.

2. The power supply control circuit according to claim 1, characterized in that, The charging and discharging control module includes a switching transistor Q1, and the energy storage module includes a resistor R6 and a capacitor C1. The first terminal of the switching transistor Q1 is connected to the reference voltage, the second terminal of the switching transistor Q1 is grounded, the control terminal of the switching transistor Q1 is connected to the first terminal of the button, the control terminal of the switching transistor Q1 is also connected to the first control module, the second terminal of the button is connected to the first terminal of the capacitor C1; the first terminal of the capacitor C1 is connected to the first terminal of the resistor R6, the second terminal of the resistor R6 is connected to the first terminal of the switching transistor Q1 and the control terminal of the first control module, and the second terminal of the capacitor C1 is grounded.

3. The power supply control circuit according to claim 2, characterized in that, The first control module includes a switch Q2, resistors R2, R3, and R5; The first terminal of the switch Q2 is connected to the control terminal of the switch Q1 through the resistor R2. The first terminal of the switch Q2 is also connected to the reference voltage through the resistor R3. The second terminal of the switch Q2 is grounded. The control terminal of the switch Q2 is connected to the first terminal of the switch Q1 and the second terminal of the resistor R6 through the resistor R5. The first terminal of the switch Q2 is connected to the control terminal of the second control module.

4. The power supply control circuit according to claim 3, characterized in that, The second control module includes a first switch unit, a second switch unit, and a third switch unit. The first terminal of the first switch unit is connected to the reference voltage, the control terminal of the first switch unit is connected to the first control module, the second terminal of the first switch unit is connected to the control terminal of the second switch unit, the first terminal of the second switch unit is connected to the control terminal of the third switch unit, the second terminal of the second switch unit is grounded, the first terminal of the third switch unit is connected to the power supply unit, and the second terminal of the third switch unit is connected to an external load. The third switching unit is used to form the power supply channel; The first switching unit is configured to turn on when the first control module is turned on and control the second switching unit to turn on, and to turn off when the first control module is turned off and control the second switching unit to turn off; The second switching unit is configured to control the third switching unit to conduct when it is on, so as to enable the power supply channel to conduct, and to control the third switching unit to disconnect when it is off, so as to disconnect the power supply channel.

5. The power supply control circuit according to claim 4, characterized in that, The first switching unit includes a switching transistor Q3 and a resistor R7; the first end of the switching transistor Q3 is connected to the reference voltage, the first end of the switching transistor Q3 is connected to the first end of the switching transistor Q2 through the resistor R3, the second end of the switching transistor Q3 is connected to the control terminal of the second switching unit, and the control terminal of the switching transistor Q3 is connected to the first end of the switching transistor Q2 through the resistor R7.

6. The power supply control circuit according to claim 5, characterized in that, The second switching unit includes a switching transistor Q4, a resistor R8, and a resistor R9. The first end of the switching transistor Q4 is connected to the control terminal of the third switching unit, the second end of the switching transistor Q4 is grounded, the control terminal of the switching transistor Q4 is connected to the second end of the switching transistor Q3 through the resistor R8, and the control terminal of the switching transistor Q4 is connected to the second end of the switching transistor Q4 through the resistor R9.

7. The power supply control circuit according to claim 6, characterized in that, The third switching unit includes a switching transistor Q5, a resistor R10, and a resistor R11; the first end of the switching transistor Q5 is connected to the power supply unit, the second end of the switching transistor Q5 is connected to an external load, the control end of the switching transistor Q5 is connected to the first end of the switching transistor Q4 through the resistor R10, and the control end of the switching transistor Q5 is connected to the first end of the switching transistor Q5 through the resistor R11.

8. The power supply control circuit according to claim 5, characterized in that, The circuit also includes an indicator light unit, the first end of which is connected to the second end of the switching transistor Q3, and the second end of which is grounded. The indicator light unit is used to turn on and emit light when the switching transistor Q3 is turned on.

9. The power supply control circuit according to claim 8, characterized in that, The indicator unit includes a resistor R4 and a light-emitting diode LED1. The anode of the light-emitting diode LED1 is connected to the second terminal of the switching transistor Q3 through the resistor R4, and the cathode of the light-emitting diode LED1 is grounded.

10. An electronic device, characterized in that, Includes the power supply control circuit as described in any one of claims 1-9.