Discharge circuit control method and device, discharge device and electronic equipment
By setting up a first and second paths in parallel in the discharge circuit, and controlling the power leakage process by using the voltage edge detection module, the problem of slow power leakage in the chip power supply circuit is solved, and rapid power leakage and system stability are achieved.
Patent Information
- Application Number
- CN202111187401.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-12
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2041-10-12
AI Technical Summary
In the prior art, the power leakage process of chip power supply circuits is slow, resulting in abnormal chip status. Powering up again during the power leakage may lead to system crash and affect system stability.
By setting the first path and the second path in the discharge circuit, in parallel, the voltage edge detection module detects the falling edge of the input voltage, and controlling the conduction and disconnection of the first path, thereby achieving rapid power leakage.
The power leakage process of the power supply circuit is accelerated, the chip state is abnormal, and the system stability and real-time performance are improved.
Smart Images

Figure CN114123114B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of circuit control, and in particular to a method and apparatus for controlling a discharge circuit, a discharge device, and electronic equipment. Background Art
[0002] Currently, the logic complexity of chips is extremely high, and the power consumption of chips in the Active state is relatively high. To address this problem, dynamic voltage and frequency scaling (DVFS) technology can be used in related technologies to solve it. In addition, the chip power supply is discharged when the chip is not needed to ensure that the chip is in a completely power-off state.
[0003] However, due to the presence of various capacitors in the chip's power supply circuit, the discharge process is slow. If the chip is powered on again during the discharge process, the chip's internal reset circuit may not generate a valid reset signal, resulting in an abnormal chip state. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a control method and device for a discharge circuit, a discharge device and an electronic device, which can solve the problem of a slow discharge process of the circuit and accelerate the discharge process of the circuit.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a control method for a discharge circuit, which is applied to the discharge circuit, wherein the discharge circuit includes: a first path and a second path; the first path and the second path are connected in parallel; the control method includes: if it is detected that the input voltage of the discharge circuit decreases, controlling the first path to be turned on; otherwise, controlling the first path to be turned off; wherein, when the first path is in the on state, the discharge circuit is in a fast discharge state; when the first path is in the off state, the discharge circuit is in a normal working state.
[0007] In the second aspect, an embodiment of the present application also provides a discharge device, which includes: a voltage edge detection module, a control module, a current discharge module and a first capacitor, and the current discharge module is connected in parallel with the first capacitor; the voltage edge detection module is used to detect the falling edge of the input voltage of the discharge device; the control module is used to control the current discharge module to be turned on when the voltage edge detection module detects the falling edge of the input voltage of the discharge device; the control module is also used to control the current discharge module to be turned off when the voltage edge detection module does not detect the falling edge of the input voltage of the discharge device; wherein, when the current discharge module is in the on state, the discharge circuit is in a fast discharge state; when the current discharge module is in the off state, the first capacitor is in a normal working state.
[0008] In a third aspect, an embodiment of the present application provides a control device for a discharge circuit, which is applied to the discharge circuit, wherein the discharge circuit includes: a first path and a second path; the first path and the second path are connected in parallel; the control device includes: a detection module, which is used to detect the input voltage of the discharge circuit; a control module, which is used to control the first path to be turned on when the detection module detects that the input voltage of the discharge circuit is reduced; otherwise, the first path is controlled to be turned off; wherein, when the first path is in the on state, the discharge circuit is in a fast discharge state; when the first path is in the off state, the discharge circuit is in a normal working state.
[0009] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for controlling the discharge circuit as described in the first aspect.
[0010] In a fifth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0011] In a sixth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0012] In an embodiment of the present application, when the power supply circuit is in a normal working state, the first path is controlled to be disconnected. At this time, the discharge circuit is in a normal working state, and plays a role in stabilizing the voltage and eliminating interference signals in the circuit; when the power supply circuit is in a discharge state, the control module controls the first path to be turned on. At this time, the equivalent circuit of the discharge circuit is a low-resistance circuit, which accelerates the discharge process of the power supply circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is a flow chart of a control method for a discharge circuit provided in an embodiment of the present application;
[0014] Figure 2 is a schematic diagram of a discharge circuit provided in an embodiment of the present application;
[0015] Figure 3 is a schematic diagram of a discharge device provided in an embodiment of the present application;
[0016] Figure 4 This is a schematic diagram of a voltage edge detection circuit provided by an embodiment of the present application;
[0017] Figure 5This is a schematic diagram of a comparator circuit provided by an embodiment of the present application;
[0018] Figure 6 1 is a schematic structural diagram of a control device for a discharge circuit provided in an embodiment of the present application;
[0019] Figure 7 This is one of the structural diagrams of an electronic device provided in an embodiment of the present application;
[0020] Figure 8 This is the second structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0022] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0023] The control method of the discharge circuit provided in the embodiment of the present application can be applied to the power supply circuit discharge scenario.
[0024] For example, in the power supply circuit leakage scenario, in related technologies, due to the presence of a large number of capacitors in the chip's power supply circuit, the chip's power supply circuit leakage process takes a long time. Furthermore, due to the uncertainty of software operating the chip, there is a possibility that the chip will be powered on again during the leakage process. In this case, since the chip is not completely powered off, powering on again prevents the reset circuit inside the chip from generating an effective reset signal, which in turn causes the chip to be in an abnormal state. In severe cases, it may cause the entire system to crash, significantly affecting the stability of the entire system.
[0025] In related technologies, this problem can be avoided by adding a delay operation to increase the time interval between software operations. However, this method reduces the overall performance of the entire device and is not suitable for work scenarios with high real-time requirements.
[0026] To address this problem, the technical solution provided in the embodiments of the present application provides a discharge circuit and a discharge circuit control method. When the power supply circuit is in a normal working state, the control module controls the current discharge module to disconnect. At this time, the equivalent circuit of the discharge circuit is a capacitor, which plays a role in stabilizing the voltage and eliminating interference signals in the circuit; when the power supply circuit is in a discharge state, the control module controls the current discharge module to turn on. At this time, the first capacitor is in a short-circuit state, and the equivalent circuit of the discharge circuit is a low-resistance circuit, which accelerates the discharge process of the power supply circuit.
[0027] The control method of the discharge circuit provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.
[0028] like Figure 1 As shown, an embodiment of the present application provides a control method for a discharge circuit, which is applied to the discharge circuit. The discharge circuit includes: a first path and a second path; the first path and the second path are connected in parallel.
[0029] The control method of the discharge circuit may include the following steps 101 and 102:
[0030] Step 101: If it is detected that the input voltage of the discharge circuit is reduced, the first path is controlled to be turned on.
[0031] For example, the control module for controlling the opening and closing of the first path may be a control module of the discharge circuit, which may be a control circuit comprising a variety of electronic components, or a control module or chip with logic processing functions, such as a CPU.
[0032] It should be noted that the circuit or module that controls the first path to be turned on or off may also be another circuit or module with a control function. In this embodiment, for ease of understanding, the control module that controls the first path to be turned on or off is taken as an example for description.
[0033] For example, when the control module is the aforementioned control circuit, the control circuit may output a high-level signal to the first path upon detecting a decrease in the input voltage of the bleeder circuit; otherwise, the control circuit may output a low-level signal to the first path. The high-level signal and the low-level signal are used to control the first path to be conductive and to control the first path to be disconnected, respectively.
[0034] For example, the first path can be an adjustable resistor circuit capable of controlling the switching of the circuit path. The resistance range of this resistor circuit is programmable, supporting resistances from 10 to 1 k ohm. The resistance range is locked by modulating a corresponding signal sequence with an external power supply. Upon receiving a high-level signal from the control module, the first path switches on the resistor circuit, connecting it in parallel with the second circuit and accelerating the discharge rate. Furthermore, when the first path receives the signal from the control module, the discharge circuit enters a dormant state, resulting in extremely low power consumption.
[0035] Step 102: Otherwise, control the first path to be disconnected.
[0036] When the first path is in the on state, the discharge circuit is in a fast discharge state; when the first path is in the off state, the discharge circuit is in a normal working state.
[0037] Exemplarily, the second circuit may be a circuit including a first capacitor. When the power supply circuit in which the discharge circuit is located needs to discharge power, the capacitor in the second circuit may slow down the discharge speed, thereby affecting the normal operation of the entire circuit.
[0038] It can be understood that the functions of capacitors in circuits include coupling, filtering, high-frequency vibration elimination, decoupling, energy storage, etc. Taking the filter capacitor that plays a filtering role in the circuit as an example, due to the characteristics of capacitors passing high frequencies and blocking low frequencies, the filter capacitor can filter out signals within a certain frequency band and remove them from the total signal.
[0039] The aforementioned functions of capacitors rely primarily on their charge and discharge processes. When a voltage is applied across a capacitor, it begins to charge. When the voltage decreases or disappears, it begins to discharge. Because both the charging and discharging processes take time, when a circuit discharges, the voltage across the capacitor decreases, and the capacitor begins to supply power to the circuit until the stored energy is fully released. This results in a lengthy discharge process.
[0040] Based on the above principles, an embodiment of the present application provides a control method for a discharge circuit, the principles of which include: when the power supply circuit is in a normal working state, the control module controls the first path to be disconnected. At this time, the equivalent circuit of the discharge circuit is a capacitor circuit, which plays a role in stabilizing the voltage and eliminating interference signals in the circuit; when the power supply circuit is in a discharge state, the control module controls the first path to be turned on. At this time, the first circuit and the second circuit are in a parallel state, and the equivalent circuit of the discharge circuit is a low-resistance circuit, which accelerates the discharge process of the power supply circuit.
[0041] For example, Figure 2 In the discharge circuit shown, the first path 22 and the second path 23 are connected in parallel to the power supply circuit. Figure 2For ease of understanding, the circuit including capacitor C1 is described as second circuit 23. When the circuit in which the discharge circuit is located is operating normally, first path 22 is disconnected, and the discharge circuit is equivalent to a capacitor circuit. When the control module 21 detects that the input voltage of the discharge circuit has decreased, the control module 21 controls first path 22 to be conductive, and first path 22 is equivalent to a low-resistance circuit. When first path 22 is conductive, the discharge circuit is equivalent to a low-resistance circuit, and the capacitor is short-circuited to accelerate the discharge process.
[0042] In this way, when the circuit discharges electricity, the first circuit with low resistance can be connected in parallel with the second circuit containing capacitors to reduce the impact of the capacitors in the second circuit on the circuit during discharge, thereby accelerating the discharge process.
[0043] Optionally, in an embodiment of the present application, in order to accurately determine whether the power supply of the discharge circuit is leaking, the falling edge of the input voltage of the discharge circuit can be detected. When the falling edge of the input voltage is detected, it indicates that the power supply is leaking.
[0044] Exemplarily, the above step 101 may include the following steps 101a1 and 101a2:
[0045] Step 101a1: If a falling edge of the input voltage of the discharge circuit is detected, a first control signal is sent to the first circuit.
[0046] Step 201a2: Otherwise, send a second control signal to the first circuit.
[0047] The first control signal is used to control the first path to be turned on, and the second control signal is used to control the first path to be turned off.
[0048] Exemplarily, in order to accurately detect the power-off process of the power supply of the discharge circuit, the discharge circuit may further include a voltage edge detection module, which may detect the falling edge of the input voltage input to the discharge circuit. When the voltage edge detection module detects the falling edge of the input voltage, it indicates that the power supply is discharging. At this time, the control module may send a first control signal to the first path.
[0049] In one possible implementation, if the voltage input to the discharge circuit no longer changes, or the voltage input to the discharge circuit is less than a second preset voltage, it indicates that the power supply has completed the discharge process, and the control module sends a second control signal to the first path.
[0050] Illustratively, after receiving the second control signal, the first path disconnects the current first path, so that only the second circuit in the discharge circuit is in a conducting state. At this time, the discharge circuit is in a normal working state.
[0051] In this way, whether the power supply of the discharge circuit is in a discharge state can be accurately determined by detecting the falling edge of the input voltage of the discharge circuit.
[0052] Optionally, in the embodiment of the present application, since the first path needs to consume a certain amount of electric energy during operation, in order to ensure the normal operation of the first path, the first path needs to be powered.
[0053] For example, since the input voltage of the discharge circuit gradually decreases as the power supply discharge process continues, the input voltage may be insufficient to power the first path. At this time, in order to ensure that the discharge circuit can continue to discharge power quickly, other power supply methods need to be used to power the first path.
[0054] Exemplarily, the discharge circuit may further include a power supply module, which is configured to supply power to the current discharge circuit when the input voltage of the discharge circuit is too low.
[0055] For example, after step 102, the control method provided in the embodiment of the present application may further include the following step 103 or step 104:
[0056] Step 103 : When the input voltage of the discharge circuit is greater than or equal to the first preset voltage, the power supply mode of the first path is switched to the first power supply mode.
[0057] Step 104 : When the input voltage of the discharge circuit is less than the first preset voltage, the power supply mode of the first path is switched to the second power supply mode.
[0058] Illustratively, the first power supply mode may be to use a power supply line of a discharge circuit for power supply, and the second power supply mode may be to use a power supply in the discharge circuit for power supply.
[0059] For example, when the power supply of the discharge circuit is in normal operation, the power supply module can be charged by the power supply. When the power supply is in a discharge state and the input voltage of the discharge circuit is less than a first preset voltage, the power supply module can release the stored electrical energy to power the first path.
[0060] In this way, the dual power supply mode is used to supply power to the first path, thereby ensuring the continuity of the rapid power discharge process.
[0061] Further optionally, in the embodiment of the present application, an energy storage capacitor can be provided in the discharge circuit to store and release electrical energy to ensure normal power supply of the first path.
[0062] Exemplarily, in order to detect in real time whether the input voltage of the discharge circuit is less than the first preset voltage, the discharge circuit may further include a voltage detection module, which is configured to detect the input voltage of the discharge circuit.
[0063] For example, in order to store electrical energy and switch power supply, the power supply module may include a switching module for switching the power supply mode of the power supply module and a second capacitor for storing electrical energy and supplying power to the current discharge circuit.
[0064] Exemplarily, the above steps 103 and 104 may include the following steps 103a and 104a:
[0065] Step 103a: When the voltage detection module detects that the input voltage of the discharge circuit is greater than or equal to the first preset voltage, the switching module switches the power supply mode of the power supply module for the first path to the first power supply mode.
[0066] Step 104a: When the voltage detection module detects that the input voltage of the discharge circuit is less than the first preset voltage, the switching module switches the power supply mode of the power supply module for the first path to the second power supply mode.
[0067] In the first power supply mode, the power supply module uses the input voltage of the discharge circuit to supply power to the current discharge circuit; in the second power supply mode, the power supply module uses the electric energy stored in the second capacitor to supply power to the current discharge circuit.
[0068] Exemplarily, when the power supply of the discharge circuit is in a normal working state, the second capacitor can be charged. When the power supply of the discharge circuit causes the input voltage to the discharge circuit to be less than the first preset voltage due to power leakage, the electric energy stored in the second capacitor can be released to power the first path.
[0069] In this way, by providing a capacitor in the control module, the capacitor can be charged in a normal working state, and the electric energy stored in the capacitor can be used to ensure the continuity of rapid discharge in a discharge state.
[0070] The control method of the discharge circuit provided in the embodiment of the present application controls the first path to be disconnected when the power supply circuit is in a normal working state. At this time, the discharge circuit is in a normal working state and plays a role in stabilizing the voltage and eliminating interference signals in the circuit. When the power supply circuit is in a discharge state, the control module controls the first path to be connected. At this time, the equivalent circuit of the discharge circuit is a low-resistance circuit, which accelerates the discharge process of the power supply circuit.
[0071] It should be noted that the control method for the bleeder circuit provided in the embodiments of the present application can be executed by the bleeder circuit or a control module in the bleeder circuit for executing the control method for the bleeder circuit. In the embodiments of the present application, the bleeder circuit provided in the embodiments of the present application is described by taking the bleeder circuit executing the control method for the bleeder circuit as an example.
[0072] It should be noted that in the embodiments of the present application, the control methods of the bleeder circuit shown in the above-mentioned figures are all described by way of example in conjunction with one figure in the embodiments of the present application. In specific implementation, the control methods of the bleeder circuit shown in the above-mentioned figures can also be implemented in conjunction with any other combinable figures shown in the above-mentioned embodiments, and will not be further described here.
[0073] Combine Figure 2 ,like Figure 3 As shown in FIG. , a possible structural diagram of a discharge device provided in an embodiment of the present application is provided, as shown in FIG. Figure 3 As shown, the discharge device includes: a voltage edge detection module 301, a control module 302, a current discharge module 303 and a first capacitor 304; the current discharge module 303 is connected in parallel with the first capacitor 304; the voltage edge detection module 301 is used to detect the falling edge of the input voltage of the discharge device; the control module 302 is used to control the current discharge module 303 to be turned on when the voltage edge detection module 301 detects the falling edge of the input voltage of the discharge device; the control module 302 is also used to control the current discharge module 303 to be turned off when the voltage edge detection module 301 does not detect the falling edge of the input voltage of the discharge device; wherein, when the current discharge module 303 is in the on state, the discharge circuit is in a fast discharge state; when the current discharge module 303 is in the off state, the first capacitor 304 is in a normal working state.
[0074] For example, the discharge device provided in the embodiment of the present application can be a circuit packaged in the same size as the package size of a chip capacitor, that is, the discharge device can be packaged into a space the size of a capacitor. The package size of the chip capacitor may include package sizes such as 0402, 0603, and 0201. The discharge device packaged in this package size can directly replace the capacitor in the circuit, and the capacitance of the first capacitor in the discharge device is the same as the capacitance of the replaced capacitor, without affecting the power distribution network (PDN) specifications of the original circuit.
[0075] For example, the discharge device provided in the embodiment of the present application can refer to Figure 2 The structure shown is designed to include a control circuit for controlling the on and off of the current discharge module, and a first capacitor connected in parallel with the current discharge module.
[0076] Optionally, the discharge device also includes: a power supply module, the power supply module 305 is used to supply power to the current discharge circuit; the power supply module 305 is used to use the input voltage of the discharge circuit to supply power to the current discharge circuit when the input voltage of the discharge device is greater than or equal to the first preset voltage; or, the power supply module 305 is also used to use the electric energy stored in the power supply module 305 to supply power to the current discharge circuit when the input voltage of the discharge device is less than the first preset voltage; wherein the electric energy stored in the power supply module 305 is: when the power supply module 305 uses the input voltage of the discharge circuit to supply power to the current discharge circuit, the power supply module 305 stores the electric energy through the input voltage of the discharge circuit.
[0077] For example, Figure 3 As shown, the discharge device further includes a power supply module 23 , which is used to supply power to the current discharge module 22 .
[0078] Optionally, the above-mentioned voltage edge detection module 301 includes: a first comparator and a second comparator, an XOR circuit, a voltage follower, a clock circuit, an AND gate circuit and a latch; the output end of the first comparator and the output end of the second comparator are respectively connected to the input end of the XOR circuit; the output end of the XOR circuit and the output end of the voltage follower are respectively connected to the input end of the AND gate circuit; the output end of the XOR circuit is also connected to the input end of the clock circuit; the output end of the AND gate circuit and the output end of the clock circuit are respectively connected to the input end of the latch.
[0079] The first comparator and the second comparator are respectively used to compare the input voltage of the discharge circuit with different reference voltages and output a first comparison signal and a second comparison signal; the exclusive OR circuit is used to output a first signal when the first comparison signal output by the first comparator and the second comparison signal output by the second comparator are different, and the first signal is used to indicate whether the input voltage of the discharge device increases or decreases; the AND gate circuit is used to generate a third signal based on the first signal and the second signal output by the voltage follower; the clock circuit is used to generate a clock signal based on the first signal; and the latch is used to determine the falling edge of the input voltage of the discharge device based on the third signal and the clock signal.
[0080] For example, the voltage edge detection module 301 provided in the embodiment of the present application can refer to the following Figure 4 The voltage edge detection circuit shown in the figure is designed. Figure 4As shown, the input signal generates VP and VN signals through comparators U1 and U2. The VP and VN signals are then XORed by the XOR1 circuit to generate the Vedge signal. The Vedge signal is used to generate Vclock, which is then ANDed with the voltage detection and hold circuit. The resulting signal is then passed through latch Q1 to detect the falling edge of the voltage. That is, when the input voltage drops, latch Q1 outputs a high-level voltage signal.
[0081] The discharge device provided in the embodiment of the present application can achieve Figures 1 to 2 In order to avoid repetition, the various processes implemented by the discharge circuit in the method embodiment will not be described here.
[0082] For example, the voltage detection module can detect the comparison result between the input voltage of the discharge device and the first preset voltage through the voltage detection circuit, such as Figure 5 The figure shows a typical comparator used in a voltage detection circuit. The voltage detection function of the voltage detection module in the embodiment of the present application can be implemented by this comparator.
[0083] In the discharge device provided in the embodiments of the present application, when the discharge device is in normal operation, the current discharge module is disconnected. At this point, the discharge circuit is in normal operation, stabilizing the voltage and eliminating interference signals in the circuit. When the voltage edge detection module detects the falling edge of the discharge device's input voltage, indicating that the discharge device is in a discharge state, the control module controls the current discharge module to conduct. At this point, the current discharge module is connected in parallel with the first capacitor, and the equivalent circuit of the discharge circuit is a low-resistance circuit, accelerating the discharge process of the power supply circuit. This allows the discharge device to quickly discharge power when the circuit is in the discharge state.
[0084] Figure 6 A possible structural diagram of a control device for a discharge circuit provided in an embodiment of the present application is provided. The control device is used to control the discharge circuit, and the discharge circuit includes: a first path and a second path.
[0085] like Figure 6 As shown, the control device 600 includes: a detection module 601, which is used to detect the input voltage of the discharge circuit; a control module 602, which is used to control the first path to be turned on when the detection module 601 detects that the input voltage of the discharge circuit is reduced; otherwise, the control module 602 controls the first path to be turned off; wherein, when the first path is in the on state, the discharge circuit is in a fast discharge state; when the first path is in the off state, the discharge circuit is in a normal working state.
[0086] Optionally, the control module 602 is specifically configured to send a first control signal to the first path when a falling edge of the input voltage of the discharge circuit is detected; otherwise, send a second control signal to the first path; wherein the first control signal is used to control the first path to be turned on; and the second control signal is used to control the first path to be turned off.
[0087] Optionally, the control device also includes: a switching module 603; the switching module 603 is used to switch the power supply mode of the first path to the first power supply mode when the detection module 601 detects that the input voltage of the discharge circuit is greater than or equal to the first preset voltage; or, the switching module 603 is used to switch the power supply mode of the first path to the second power supply mode when the detection module 601 detects that the input voltage of the discharge circuit is less than the first preset voltage; wherein, in the first power supply mode, the input voltage of the discharge circuit is used to power the first path; the discharge circuit stores energy in the first power supply mode, and uses the stored electric energy to power the first path in the second power supply mode.
[0088] The control device in the embodiments of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM, or an kiosks, etc., which are not specifically limited in the embodiments of the present application.
[0089] The control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0090] The control device provided in the embodiment of the present application can achieve Figures 1 to 2 In order to avoid repetition, the various processes implemented by the discharge circuit in the method embodiment will not be described here.
[0091] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described here.
[0092] The control device for the discharge circuit provided in the embodiment of the present application controls the first path to be disconnected when the power supply circuit is in a normal working state. At this time, the discharge circuit is in a normal working state and plays a role in stabilizing the voltage and eliminating interference signals in the circuit; when the power supply circuit is in a discharge state, the control module controls the first path to be connected. At this time, the equivalent circuit of the discharge circuit is a low-resistance circuit, which accelerates the discharge process of the power supply circuit.
[0093] Alternatively, as Figure 7 As shown, an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, and a program or instruction stored in the memory 702 and executable on the processor 701. When the program or instruction is executed by the processor 701, each process of the embodiment of the control method of the above-mentioned discharge circuit is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0094] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0095] Figure 8 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present application.
[0096] The electronic device 800 includes but is not limited to components such as a radio frequency unit 801 , a network module 802 , an audio output unit 803 , an input unit 804 , a sensor 805 , a display unit 806 , a user input unit 807 , an interface unit 808 , a memory 809 , and a processor 810 .
[0097] Those skilled in the art will understand that the electronic device 800 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0098] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042. The graphics processor 8041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here. The memory 809 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 810.
[0099] An embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the control method for the discharge circuit is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0100] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.
[0101] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is configured to run programs or instructions to implement the various processes of the above-mentioned embodiment of the control method for the discharge circuit, and can achieve the same technical effects. To avoid repetition, they are not described here.
[0102] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0103] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling an electronic device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0105] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A method for controlling a discharge circuit, characterized in that: Applicable to a discharge circuit, the discharge circuit includes: a first path and a second path; the first path and the second path are connected in parallel; The control method includes: If it is detected that the input voltage of the discharge circuit decreases, controlling the first path to be turned on; Otherwise, controlling the first path to be disconnected; When the first path is in the on state, the discharge circuit is in the fast discharge state; when the first path is in the off state, the discharge circuit is in the normal working state; If it is detected that the input voltage of the discharge circuit decreases, controlling the first path to be turned on includes: If a falling edge of the input voltage of the discharge circuit is detected, a first control signal is sent to the first path; otherwise, a second control signal is sent to the first path; The first control signal is used to control the first path to be turned on; the second control signal is used to control the first path to be turned off.
2. The method for controlling a discharge circuit according to claim 1, after controlling the first path to be turned on, the method further comprises: When it is detected that the input voltage of the discharge circuit is greater than or equal to a first preset voltage, switching the power supply mode of the first path to a first power supply mode; or, When it is detected that the input voltage of the discharge circuit is less than a first preset voltage, switching the power supply mode of the first path to a second power supply mode; Wherein, in the first power supply mode, the first path is powered by the input voltage of the discharge circuit; The discharge circuit stores energy in the first power supply mode, and uses the stored energy to supply power to the first path in the second power supply mode.
3. A discharge device, characterized in that: include: A voltage edge detection module, a control module, a current discharge module and a first capacitor, wherein the current discharge module is connected in parallel with the first capacitor; The voltage edge detection module is used to detect the falling edge of the input voltage of the discharge device; The control module is configured to control the current discharge module to be turned on when the voltage edge detection module detects a falling edge of the input voltage of the discharge device; The control module is further configured to control the current discharge module to be disconnected when the voltage edge detection module fails to detect a falling edge of the input voltage of the discharge device; Wherein, when the current discharge module is in the on state, the discharge circuit is in a fast discharge state; when the current discharge module is in the off state, the first capacitor is in a normal working state; The voltage edge detection module includes: a first comparator and a second comparator, an XOR circuit, a voltage follower, a clock circuit, an AND gate circuit, and a latch; the output end of the first comparator and the output end of the second comparator are respectively connected to the input end of the XOR circuit; the output end of the XOR circuit and the output end of the voltage follower are respectively connected to the input end of the AND gate circuit; the output end of the XOR circuit is also connected to the input end of the clock circuit; the output end of the AND gate circuit and the output end of the clock circuit are respectively connected to the input end of the latch; The first comparator and the second comparator are respectively used to compare the input voltage of the discharge circuit with different reference voltages, and output a first comparison signal and a second comparison signal; the XOR circuit is configured to output a first signal when the first comparison signal output by the first comparator and the second comparison signal output by the second comparator are different, wherein the first signal is configured to indicate that the input voltage of the discharge device increases or decreases; The AND gate circuit is configured to generate a third signal according to the first signal and the second signal output by the voltage follower; The clock circuit is configured to generate a clock signal according to the first signal; The latch is configured to determine a falling edge of the input voltage of the discharge device according to the third signal and the clock signal.
4. The discharge device according to claim 3, characterized in that: The discharge device further includes: a power supply module, the power supply module being configured to supply power to the discharge circuit; The power supply module is configured to supply power to the discharge circuit using the input voltage of the discharge circuit when the input voltage of the discharge device is greater than or equal to a first preset voltage; or, The power supply module is further configured to supply power to the discharge circuit using the electric energy stored in the power supply module when the input voltage of the discharge device is less than the first preset voltage; The electric energy stored in the power supply module is: when the power supply module uses the input voltage of the discharge circuit to supply power to the discharge circuit, the electric energy stored in the power supply module through the input voltage of the discharge circuit.
5. A control device for a discharge circuit, characterized in that: Used to control a discharge circuit, the discharge circuit comprising: a first path and a second path; the first path and the second path are connected in parallel; The control device comprises: A detection module, configured to detect an input voltage of the discharge circuit; a control module, configured to control the first path to be turned on if the detection module detects that the input voltage of the discharge circuit is reduced; otherwise, control the first path to be turned off; When the first path is in the on state, the discharge circuit is in the fast discharge state; when the first path is in the off state, the discharge circuit is in the normal working state; The control module is specifically configured to send a first control signal to the first path when a falling edge of the input voltage of the discharge circuit is detected; otherwise, send a second control signal to the first path; The first control signal is used to control the first path to be turned on; the second control signal is used to control the first path to be turned off.
6. The device according to claim 5, characterized in that The control device further includes: a switching module; The switching module is configured to switch the power supply mode of the first path to the first power supply mode when the detection module detects that the input voltage of the discharge circuit is greater than or equal to the first preset voltage; or, The switching module is configured to switch the power supply mode of the first path to a second power supply mode when the detection module detects that the input voltage of the discharge circuit is less than a first preset voltage; In which, in the first power supply mode, the input voltage of the discharge circuit is used to power the first path; the discharge circuit stores energy in the first power supply mode, and in the second power supply mode, uses the stored energy to power the first path.
7. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for controlling a discharge circuit according to any one of claims 1 to 2.
Citation Information
Patent Citations
High-voltage discharge control circuit of new energy automobile
CN111934528A
Discharge circuit, energy storage circuit, semiconductor test system and discharge method
CN112234812A