Discharge circuit, control method and electronic device
By using processors and sensing modules in the discharge circuit to record and collect data and dynamically adjust the resistance value, the problem of insufficient safety of the power supply during discharge is solved, and the safety and stability of the power supply discharge is achieved.
Patent Information
- Application Number
- CN202110679209.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-18
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-06-18
AI Technical Summary
How to reasonably control the discharge circuit to ensure the safety of the power supply during discharge, especially when there is a large capacity capacitor on the power load circuit.
By introducing a processor, timing module and analog-to-digital conversion module into the discharge circuit, the discharge time and the discharge voltage are recorded, the voltage threshold range is determined based on the discharge time, and the resistance value of the discharge circuit is appropriately adjusted when the discharge voltage falls into or exceeds the range.
It realizes safe control when discharge circuit is discharged, ensures reasonable power discharge speed, avoids abnormal circuit or damage, and improves the reliability and stability of the power supply.
Smart Images

Figure CN113555859B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a discharge circuit, a control method and an electronic equipment. Background Art
[0002] For electronic devices that need to switch the power on and off quickly and repeatedly, when the power starts to discharge, if there is a large-capacity capacitor in the load circuit of the power supply, the power supply voltage will drop slowly. If the power supply is powered on again at this time, the circuit connected to the power supply may not be reset normally because the power supply is not completely powered off. This may cause the power supply to experience circuit abnormality, power-on freeze, and other phenomena.
[0003] To this end, it is necessary to configure a bleeder circuit (also called a discharge circuit) for the power supply of the electronic device. The bleeder circuit usually includes a bleeder resistor connected in parallel with the capacitor on the power load circuit. Through the bleeder circuit, the power supply that needs to be switched on and off quickly can be discharged to the ground quickly to achieve the purpose of protecting the power supply.
[0004] Therefore, how to reasonably control the discharge circuit to ensure the safety of the power source (ie, the discharge object) during discharge is a technical problem that needs to be solved urgently in this field. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a discharge circuit, a control method and an electronic device, which can solve the problem of how to ensure the safety of a discharge object during discharge.
[0006] In a first aspect, an embodiment of the present application provides a control method for a discharge circuit, wherein the discharge circuit includes a processor, and a timing module and an analog-to-digital conversion module respectively connected to the processor in communication, and the control method includes: when the discharge circuit is in a discharge state, the timing module records the discharge time of the discharge circuit; the analog-to-digital conversion module collects the discharge voltage of the discharge circuit during the discharge time; the processor obtains the discharge time and the discharge voltage, determines a voltage threshold range according to the discharge time, maintains the resistance value of the discharge circuit when the discharge voltage falls within the voltage threshold range, and changes the resistance value of the discharge circuit when the discharge voltage exceeds the voltage threshold range.
[0007] Second aspect, an embodiment of the present application provides a discharge circuit. The discharge circuit includes a processor, a timing module, and an analog-to-digital conversion module that are communicatively connected to the processor respectively. The timing module is configured to record the discharge time of the discharge circuit when the discharge circuit is in a discharge state. The analog-to-digital conversion module is configured to collect the discharge voltage of the discharge circuit at the discharge time. The processor is configured to obtain the discharge time and the discharge voltage, determine a voltage threshold range according to the discharge time, maintain the resistance value of the discharge circuit when the discharge voltage falls within the voltage threshold range, and change the resistance value of the discharge circuit when the discharge voltage exceeds the voltage threshold range.
[0008] Third aspect, an embodiment of the present application provides an electronic device. The electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the control method of the discharge circuit as described in the first aspect are implemented.
[0009] Fourth aspect, an embodiment of the present application provides a readable storage medium. A program or instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, the steps of the control method of the discharge circuit as described in the first aspect are implemented.
[0010] Fifth aspect, an embodiment of the present application provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run a program or instruction to implement the steps of the control method of the discharge circuit as described in the first aspect.
[0011] In the embodiment of the present application, the discharge circuit includes a processor, a timing module, and an analog-to-digital conversion module that are communicatively connected to the processor respectively. When the discharge circuit is in a discharge state, the timing module can record the discharge time of the discharge circuit. Correspondingly, the analog-to-digital conversion module can collect the discharge voltage of the discharge circuit at the discharge time. Thus, the processor can obtain the discharge time and the discharge voltage, and determine a voltage threshold range according to the discharge time. Further, the processor can maintain the resistance value of the discharge circuit when the discharge voltage falls within the voltage threshold range, and change the resistance value of the discharge circuit when the discharge voltage exceeds the voltage threshold range. Therefore, when the discharge circuit is in a discharge state, the resistance value of the discharge circuit can be reasonably controlled according to the discharge voltage to ensure the safety level when the discharge circuit discharges. Description of the Drawings
[0012] Figure 1 is a schematic structural diagram of the discharge circuit in the embodiment of the present application;
[0013] Figure 2 is a schematic flow diagram of the control method of the discharge circuit in the embodiment of the present application;
[0014] Figure 3 is the fitting function graph of the voltage threshold range in the embodiments of the present application;
[0015] Figure 4 is one of the schematic structural diagrams of the electronic device in the embodiments of the present application;
[0016] Figure 5 is the second schematic structural diagram of the electronic device in the embodiments of the present application. Detailed implementation manners
[0017] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope protected by the present application.
[0018] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0019] Next, in conjunction with the accompanying drawings, the discharge circuit, control method, and electronic device provided in the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.
[0020] For an electronic device that needs to quickly and repeatedly switch the power supply, its power supply is usually connected with a discharge circuit. The discharge circuit is provided with a discharge resistor, and the discharge resistor can be connected in parallel with the capacitor on the load circuit of the power supply (i.e., the discharge object) of the electronic device. When the discharge circuit is in the discharge state, the discharge circuit provided with the discharge resistor can quickly discharge the power supply to the ground to achieve the purpose of helping the power supply to discharge quickly.
[0021] In the related art, the resistance value of the discharge resistor needs to be manually set by the user, and once set, it cannot be actively changed. However, for an external capacitor connected to a power supply, there may be consistency differences when it leaves the factory, and problems such as aging and failure may occur during use. The above problems may cause the capacitance value of the external capacitor to change. In this case, the resistance value of the discharge resistor manually set by the user is difficult to match the capacitance value of the external capacitor, resulting in a reduced level of discharge safety of the power supply.
[0022] To solve the above technical problems, an embodiment of the present application provides a discharge circuit and its control method. The discharge circuit includes a processor, as well as a timing module and an analog-to-digital conversion module that are respectively communicatively connected to the processor. When the discharge circuit is in a discharge state, the timing module can record the discharge time of the discharge circuit. Correspondingly, the analog-to-digital conversion module can collect the discharge voltage of the discharge circuit at the discharge time. Thus, the processor can obtain the discharge time and the discharge voltage, and determine the voltage threshold range according to the discharge time. Furthermore, the processor can control the resistance value of the discharge circuit according to the relationship between the discharge voltage and the voltage threshold range, thereby ensuring the safety level during the discharge of the discharge circuit.
[0023] Taking each embodiment as an example below, the control method of the discharge circuit provided by the embodiment of the present application will be described in detail.
[0024] As Figure 1 shown, the discharge circuit 100 provided by the embodiment of the present application includes: a discharge resistor 110, a timing module 120, an analog-to-digital conversion module 130, and a processor 140. The timing module 120 is used to record the discharge time of the discharge circuit when the discharge circuit is in a discharge state. The analog-to-digital conversion module 130 is used to collect the discharge voltage of the discharge circuit at the discharge time. The processor 140 is communicatively connected to the timing module 120 and the analog-to-digital conversion module 130 respectively.
[0025] In the embodiment of the present application, the discharge circuit 100 is used to discharge a discharge object 200. The discharge object 200 is connected with an external capacitor and a load. The external capacitor and the load are in parallel. The external capacitor is grounded. The discharge resistor 110 is in parallel with the external capacitor and is grounded.
[0026] Optionally, the discharge resistor 110 includes a metal oxide semiconductor (MOS) transistor and a variable resistor connected in series. One end of the variable resistor is connected to the metal oxide semiconductor transistor, and the other end is grounded.
[0027] Optionally, the number of the discharge resistors 110 can be one or more.
[0028] It can be understood that when the number of the discharge resistors 110 is multiple, one metal-oxide semiconductor tube is connected in series with one adjustable resistor. Each metal-oxide semiconductor tube is connected in parallel with each other. Each adjustable resistor is connected in parallel with each other.
[0029] Optionally, in the embodiments of the present application, when the number of the discharge resistors 110 is multiple, the resistance values of different discharge resistors 110 may be different.
[0030] In the embodiments of the present application, the processor 140 may control the resistance value of the adjustable resistor (i.e., control the resistance value of the discharge resistor 110) by controlling the conduction degree of the metal-oxide semiconductor tube.
[0031] In the embodiments of the present application, the processor 140 controls the resistance value of the discharge resistor 110 according to the relationship between the discharge voltage and the voltage threshold range. In order to obtain the discharge voltage, the processor 140 may be respectively connected to the timing module 120 and the analog-to-digital conversion module 130.
[0032] Optionally, the processor 140 may be respectively wirelessly connected to the timing module 120 and the analog-to-digital conversion module 130 (such as Bluetooth connection).
[0033] Optionally, the processor 140 may be respectively wired-connected to the timing module 120 and the analog-to-digital conversion module 130 (such as power connection).
[0034] Exemplarily, as Figure 1 shown, the discharge object 200 is connected with an external capacitor C and a load RL. The external capacitor C and the load RL are connected in parallel. The discharge resistor 110 is connected in parallel with the external capacitor C. The discharge resistor 110 includes metal-oxide semiconductor tubes Q1, Q2, and Q3 connected in parallel, and also includes an adjustable resistor R1 connected in series with the metal-oxide semiconductor tube Q1, an adjustable resistor R2 connected in series with the metal-oxide semiconductor tube Q2, and an adjustable resistor R3 connected in series with the metal-oxide semiconductor tube Q3. The processor 140 controls the conduction degrees of the metal-oxide semiconductor tubes Q1, Q2, and Q3 according to the relationship between the discharge voltage and the voltage threshold range, so as to change the resistance values of the adjustable resistors R1, R2, and R3. Among them, since the number of the above metal-oxide semiconductor tubes is multiple, a specified resistance value can be obtained through the combination of different metal-oxide semiconductor tubes.
[0035] In an embodiment of the present application, when the processor 140 receives the discharge voltage from the analog-to-digital conversion module 130 and receives the discharge time from the timing module 120, it can determine the voltage threshold range according to the discharge time when the discharge circuit is in the discharge state, and determine the resistance value of the discharge circuit based on the relationship between the discharge voltage and the voltage threshold range.
[0036] As Figure 2 shown, the control method for the discharge circuit provided by the embodiment of the present application includes S101 to S103:
[0037] S101. When the discharge circuit is in the discharge state, the timing module records the discharge time of the discharge circuit.
[0038] In an embodiment of the present application, the discharge circuit is used to discharge the discharge object. The discharge object can be the power supply of the electronic device or the signal pin of the electronic device.
[0039] It can be understood that the discharge state can be the state between when the discharge object is turned off and its voltage drops to zero.
[0040] It can be understood that after turning off the discharge object, it is necessary to go through the above discharge state before the discharge object can be completely powered off.
[0041] In an embodiment of the present application, the function of the discharge circuit is to assist the discharge object to discharge to the ground more quickly. In other words, the function of the discharge circuit is to quickly reduce the voltage of the discharge object to zero.
[0042] To achieve the above purpose, the discharge circuit can be electrically connected to the discharge object and grounded.
[0043] Exemplarily, the discharge circuit can be connected in parallel with the external capacitor of the discharge object and grounded. Thus, the discharge circuit can discharge the discharge object to the ground when it is in the discharge state.
[0044] It can be understood that in the discharge state, the discharge voltage gradually decreases with time until it drops to zero.
[0045] S102. The analog-to-digital conversion module collects the discharge voltage of the discharge circuit at the discharge time.
[0046] In an embodiment of the present application, since the voltage of the discharge object gradually decreases with time, the discharge voltage is different in different time states.
[0047] The discharge voltage of the discharge circuit can be obtained by collecting through the analog-to-digital conversion module, and the discharge time can be measured through the timing module. Thus, based on the acquisition result of the analog-to-digital converter and the measurement result of the timing module, the discharge voltage of the discharge circuit at different time points (i.e., the continuous variation function of the discharge voltage with respect to time) can be obtained.
[0048] In one example, assume that the voltage at the beginning of the discharge of the discharge circuit (i.e., the initial voltage) is V0. Assume that the analog-to-digital converter is an N-bit analog-to-digital converter. Then it can be known that the digital value range of this analog-to-digital converter is [0, 2 N . Correspondingly, according to the digital value n returned by this analog-to-digital converter during operation and the initial voltage V0, the discharge voltage V can be converted according to the following formula:
[0049]
[0050] Thus, the discharge voltage of the discharge circuit at any time point can be obtained according to the digital value n returned by this analog-to-digital converter.
[0051] S103. The processor obtains the discharge time and the discharge voltage, determines the voltage threshold range according to the discharge time, maintains the resistance value of the discharge circuit when the discharge voltage falls within the voltage threshold range, and changes the resistance value of the discharge circuit when the discharge voltage exceeds the voltage threshold range.
[0052] It can be understood that the voltage threshold range is the range of voltage thresholds that can safely discharge at different time points.
[0053] It can be understood that the voltage threshold range changes with time, and the voltage threshold ranges at different times may be different. Therefore, the processor determines the voltage threshold range according to the discharge time. In other words, this voltage threshold range is the voltage threshold range corresponding to this discharge time. Optionally, in the embodiments of the present application, the voltage threshold range includes a lower threshold and an upper threshold.
[0054] It can be understood that the lower threshold is the lowest voltage that can safely and effectively discharge, and the upper threshold is the highest voltage that can safely and effectively discharge.
[0055] In the embodiments of the present application, when the discharge voltage is less than the lower threshold, it indicates that the reduction speed of the discharge voltage is too fast, and the resistance value of the discharge circuit needs to be increased.
[0056] In the embodiments of the present application, when the discharge voltage is greater than the upper threshold, it indicates that the reduction speed of the discharge voltage is too slow, and the resistance value of the discharge circuit needs to be decreased.
[0057] In an embodiment of the present application, when the discharge voltage is greater than or equal to the lower threshold and less than or equal to the upper threshold, it indicates that the lower threshold falls within the voltage threshold range, and the resistance value of the discharge circuit can be controlled to remain unchanged.
[0058] In an embodiment of the present application, the voltage threshold range can be set before leaving the factory or manually set or modified by the user. Specifically, it can be determined according to actual usage requirements, and the embodiments of the present invention do not make limitations.
[0059] Exemplarily, before the product leaves the factory, by performing a discharge test under extreme conditions, the discharge voltages corresponding to multiple time points during the discharge process can be recorded. Thus, a function of the discharge voltage changing with time can be obtained. By fitting this function, a relatively safe voltage threshold range for the discharge object can be obtained.
[0060] Example 1, as Figure 3 shown, fL and fH are safe discharge functions obtained through testing, with the discharge time as the independent variable and the discharge voltage as the dependent variable. Among them, fH is the upper limit function of safe discharge, and fL is the lower limit function of safe discharge. By fitting the function of fH, a fitting function FH of the upper limit discharge threshold voltage VFH and time T (i.e., the voltage upper limit threshold function) can be obtained. Similarly, by fitting the function of fL, a fitting function FL of the lower limit discharge threshold voltage VFL and time T (i.e., the voltage lower limit threshold function) can be obtained. Among them, VFH = FH(T) & FH(T) ≥ fH(T), VFL = FL(T) & FL(T) ≤ fL(T). Thus, the range less than or equal to the above voltage upper limit threshold and greater than or equal to the above voltage lower limit threshold constitutes the voltage threshold range. The above voltage threshold range is a function that changes with time. As Figure 3 shown, in a two-dimensional plane rectangular coordinate system with time T as the horizontal axis and voltage V as the vertical axis, the upper limit threshold function FH and the lower limit threshold function FL divide the first quadrant of the two-dimensional plane rectangular coordinate system into regions A, B, and C. Among them, when the value of the target voltage falls into region A or region C, it indicates that the discharge voltage exceeds the voltage threshold range. At this time, the resistance value of the discharge circuit needs to be changed to adjust the speed of discharging to the ground; when the value of the discharge voltage falls into region B, it indicates that the discharge voltage does not exceed the voltage threshold range. At this time, the resistance value of the discharge circuit does not need to be changed, and the speed of discharging to the ground is relatively reasonable. In this way, when the discharge voltage exceeds the voltage threshold range, the discharge speed of the discharge object can be dynamically adjusted by changing the resistance value of the discharge circuit to ensure that the speed of discharging to the ground is relatively reasonable, and when the discharge voltage falls into the voltage threshold range, the resistance value of the discharge circuit can be maintained to ensure that the discharge object can continue to discharge to the ground smoothly.
[0061] In an embodiment of the present application, the discharge circuit includes a processor, a timing module, and an analog-to-digital conversion module that are communicatively connected to the processor respectively. When the discharge circuit is in a discharge state, the timing module can record the discharge time of the discharge circuit. Accordingly, the analog-to-digital conversion module can collect the discharge voltage of the discharge circuit at the discharge time. Thus, the processor can obtain the discharge time and the discharge voltage, and determine the voltage threshold range according to the discharge time. Furthermore, the processor can maintain the resistance value of the discharge circuit when the discharge voltage falls within the voltage threshold range, and change the resistance value of the discharge circuit when the discharge voltage exceeds the voltage threshold range. Therefore, when the discharge circuit is in a discharge state, the resistance value of the discharge circuit can be reasonably controlled according to the discharge voltage to ensure the safety level during the discharge of the discharge circuit.
[0062] In addition, if the resistance value of the discharge resistor in the discharge circuit is not matched with the capacitance of the discharge object, it will lead to a reduction in the discharge safety level of the discharge object and cause circuit anomalies or damage. If the resistance value of the discharge resistor in the discharge circuit is matched with the capacitance of the discharge object, it can provide strong protection for the discharge safety of the discharge object. By performing the above closed-loop control on the discharge circuit. Therefore, the resistance value of the discharge circuit can be adapted to the discharge state of the discharge circuit to achieve dynamic adjustment of the discharge speed of the discharge object.
[0063] Optionally, in an embodiment of the present application, the resistance value of the discharge circuit can be controlled or adjusted according to the magnitude relationship between the discharge voltage and the voltage threshold range.
[0064] Exemplarily, the voltage threshold range includes a voltage lower threshold and a voltage upper threshold. In the case where the discharge voltage exceeds the voltage threshold range in S103, changing the resistance value of the discharge circuit includes:
[0065] S1031. When the discharge voltage is less than the voltage lower threshold and there is an upward adjustment space for the resistance value of the discharge circuit, the processor increases the resistance value of the discharge circuit.
[0066] It can be understood that the above upward adjustment space refers to the space for further upward adjustment (i.e., increasing) of the resistance value of the discharge circuit.
[0067] S1032. When the discharge voltage is greater than the voltage upper threshold and there is a downward adjustment space for the resistance value of the discharge circuit, the processor decreases the resistance value of the discharge circuit.
[0068] It can be understood that the above downward adjustment space refers to the space for further downward adjustment (i.e., decreasing) of the resistance value of the discharge circuit.
[0069] In this embodiment, the upper limit value and the lower limit value that the discharge circuit can adjust can be determined according to actual usage requirements, and the embodiments of the present invention do not make any limitations.
[0070] Exemplarily, the upper limit value and the lower limit value that the discharge circuit can adjust can be obtained according to the capacitance value range [C1, C2] of the external capacitance of the discharge object and the safe discharge time range [T1, T2].
[0071] Example 2, in view of the fact that the relationship between the time t required for the external capacitance to discharge, its capacitance C, and the resistance R satisfies the following formula: t = RC, so the adjustable range of the discharge resistance can be [T1 / C2, T2 / C1]. In other words, according to the capacitance value range [C1, C2] of the external capacitance of the discharge object and the safe discharge time range [T1, T2], the upper limit value that the discharge circuit can adjust can be determined as T2 / C1, and the lower limit value that the discharge circuit can adjust can be determined as T1 / C2.
[0072] In this embodiment, the discharge circuit can be adjusted by controlling the gear position of the metal oxide semiconductor tube.
[0073] Exemplarily, through the arrangement and combination of multiple metal oxide semiconductor tubes, the metal oxide semiconductor tube can have M gear positions. Then the user can manually select any integer value X between [0, M] as the gear position limit of the discharge resistance.
[0074] Example 3, combined with Example 2, when the gear position limit of the discharge resistance is limited between [0, M], the lower limit value of the discharge resistance corresponding to gear position 0 is T1 / C2, and the upper limit value of the discharge resistance corresponding to gear position M is T2 / C1. Assuming the current gear position is X, the resistance value RX of the discharge resistance corresponding to gear position X is:
[0075]
[0076] Correspondingly, when the resistance value of the discharge circuit rises to T2 / C1, it can be considered that there is no room for upward adjustment of the resistance value of the discharge circuit. When the resistance value of the discharge circuit drops to T1 / C2, it can be considered that there is no room for downward adjustment of the resistance value of the discharge circuit. When the resistance value of the discharge circuit is within the range of [T1 / C2, T2 / C1], it can be considered that there is room for upward and downward adjustment of the resistance value of the discharge circuit. When there is room for upward and downward adjustment of the resistance value of the discharge circuit, the gear position X of the discharge resistance can be adjusted within the range of [0, M] to increase or decrease the resistance value RX of the discharge resistance.
[0077] It can be understood that if the resistance value of the discharge resistor in the discharge circuit is too large, the discharge (i.e., power-off) of the discharge object will be too slow. If the discharge of the discharge object is too slow, it may cause the discharge object to fail to discharge in time, resulting in circuit abnormalities or damage. If the resistance value of the discharge resistor in the discharge circuit is too small, the discharge of the discharge object will be too fast. If the discharge of the discharge object is too fast, it may cause signal undershoot of the discharge object and may also cause circuit abnormalities or damage. Only when the resistance value of the discharge resistor in the discharge circuit is relatively reasonable can the discharge circuit safely discharge the discharge object.
[0078] For the above reasons, the resistance value of the discharge circuit can be controlled or adjusted through S1031 and S1032 above, so as to reasonably adjust the resistance value of the discharge circuit and ensure the purpose of safely discharging the discharge object by using the discharge circuit.
[0079] Exemplarily, in combination with the above Example 1, as Figure 3 shown, when the value of the discharge voltage falls within Region A, it indicates that the discharge voltage exceeds the voltage threshold range. At this time, the resistance value of the discharge circuit needs to be increased to reduce the speed of discharging to the ground; when the value of the discharge voltage falls within Region C, it indicates that the discharge voltage does not exceed the voltage threshold range. At this time, the resistance value of the discharge circuit needs to be reduced to accelerate the speed of discharging to the ground.
[0080] In this way, when the discharge voltage exceeds the voltage threshold range, the discharge speed of the discharge object can be dynamically adjusted by reasonably changing the resistance value of the discharge circuit, so as to ensure that the speed of discharging to the ground is relatively reasonable and take into account the discharge safety and discharge timeliness of the discharge object in the discharge state.
[0081] Optionally, in the embodiments of the present application, when the discharge voltage exceeds the voltage threshold range and the resistance value of the discharge circuit is changed, it further includes:
[0082] S1033. When the discharge voltage is less than the lower voltage threshold and there is no room for increasing the resistance value of the discharge circuit, record the first number.
[0083] In the embodiments of the present application, the first number is the number of times when the discharge voltage is less than the lower voltage threshold and there is no room for increasing the resistance value of the discharge circuit.
[0084] It can be understood that every time when the discharge voltage is less than the lower voltage threshold and there is no room for increasing the resistance value of the discharge circuit, the first number is recorded once.
[0085] In the embodiments of the present application, the first number can be accumulated.
[0086] S1034. When the first count accumulates to reach the first count threshold, reduce the resistance value of the discharge circuit until the discharge circuit becomes a conducting path.
[0087] In the embodiments of the present application, the specific value of the first count threshold can be determined according to actual usage requirements, and the embodiments of the present invention do not make any limitations.
[0088] In the embodiments of the present application, the resistance value of the discharge circuit can be reduced until the discharge circuit becomes a conducting path through the first emergency discharge channel.
[0089] Optionally, in the embodiments of the present application, the first emergency discharge channel is a circuit that is connected in parallel with the external capacitor of the discharge object and grounded. This first emergency discharge channel is part of the discharge circuit, and the resistance value of this first emergency discharge channel is close to zero (i.e., infinitesimal).
[0090] It can be understood that when the first count accumulates to reach the first count threshold, the resistance value of the discharge circuit can be reduced until the discharge circuit becomes a conducting path through the first emergency discharge channel.
[0091] Optionally, in the embodiments of the present application, after reducing the resistance value of the discharge circuit until the discharge circuit becomes a conducting path, the first count can be reset (i.e., the first count is cleared).
[0092] Optionally, in the embodiments of the present application, after the situation where the discharge voltage is less than the voltage lower limit threshold and there is no room for increasing the resistance value of the discharge circuit ends, and when the first count has not accumulated to reach the first count threshold, the first count can be cleared.
[0093] In this way, when the first count accumulates to reach the first count threshold, the discharge object can be emergently discharged by reducing the resistance value of the discharge circuit until the discharge circuit becomes a conducting path, so as to quickly reduce the voltage of the discharge object and avoid its damage.
[0094] Optionally, in the embodiments of the present application, when the discharge voltage exceeds the voltage threshold range, changing the resistance value of the discharge circuit further includes:
[0095] S1035. When the discharge voltage is greater than the voltage upper limit threshold and there is no room for reducing the resistance value of the discharge circuit, record the second count.
[0096] In the embodiments of the present application, the second count is the number of times that the discharge voltage is greater than the voltage upper limit threshold and there is no room for reducing the resistance value of the discharge circuit.
[0097] It can be understood that each time the situation where the discharge voltage is greater than the voltage upper limit threshold and there is no room for reducing the resistance value of the discharge circuit occurs, the second count is recorded once.
[0098] In the embodiments of the present application, the second count can be accumulated.
[0099] S1036. When the accumulated second count reaches the second count threshold, increase the resistance value of the discharge circuit until the discharge circuit becomes an open circuit.
[0100] In the embodiments of the present application, the specific value of the second count threshold can be determined according to actual usage requirements, and the embodiments of the present invention do not make any limitations.
[0101] In the embodiments of the present application, the resistance value of the discharge circuit can be increased until the discharge circuit becomes an open circuit through the second emergency discharge channel.
[0102] Optionally, in the embodiments of the present application, the second emergency discharge channel is a circuit connected in parallel with the external capacitor of the discharge object and grounded. This second emergency discharge channel is part of the discharge circuit, and the resistance value of this second emergency discharge channel is close to infinity.
[0103] It can be understood that when the accumulated second count reaches the second count threshold, the resistance value of the discharge circuit can be increased until the discharge circuit becomes an open circuit through the second emergency discharge channel.
[0104] Optionally, in the embodiments of the present application, after increasing the resistance value of the discharge circuit until the discharge circuit becomes an open circuit, the second count can be reset (i.e., the second count is cleared).
[0105] Optionally, in the embodiments of the present application, after the situation where the discharge voltage is greater than the voltage upper limit threshold and there is no room for downward adjustment of the resistance value of the discharge circuit ends, and when the accumulated second count does not reach the second count threshold, the second count can be cleared.
[0106] In this way, when the accumulated second count reaches the second count threshold, by increasing the resistance value of the discharge circuit until the discharge circuit becomes an open circuit, the purpose of avoiding too rapid voltage drop of the discharge object and preventing its damage can be achieved.
[0107] It should be noted that for the control method of the discharge circuit provided in the embodiments of the present application, the execution subject can be the control device of the discharge circuit, or the control module in the control device of the discharge circuit for executing the control method of the discharge circuit. In the embodiments of the present application, taking the control device of the discharge circuit executing the control method of the discharge circuit as an example, the control device of the discharge circuit provided in the embodiments of the present application is described.
[0108] The control device of the discharge circuit in the embodiments of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0109] The control device of the discharge circuit provided by the embodiments of the present application can implement Figure 2 each process implemented by the method embodiments. To avoid repetition, details are not described herein again.
[0110] As Figure 1 shown, the embodiments of the present application further provide a discharge circuit 100, which includes a processor 140, and a timing module 120 and an analog-to-digital conversion module 130 that are respectively communicatively connected to the processor 140.
[0111] The timing module 120 is configured to record the discharge time of the discharge circuit 100 when the discharge circuit 100 is in a discharge state.
[0112] The analog-to-digital conversion module 130 is configured to collect the discharge voltage of the discharge circuit 100 at the discharge time.
[0113] The processor 140 is configured to obtain the discharge time and the discharge voltage, determine a voltage threshold range according to the discharge time, maintain the resistance value of the discharge circuit 100 when the discharge voltage falls within the voltage threshold range, and change the resistance value of the discharge circuit 100 when the discharge voltage exceeds the voltage threshold range.
[0114] Optionally, in the embodiments of the present application, the voltage threshold range includes a voltage lower threshold and a voltage upper threshold. Specifically, the processor is configured to:
[0115] increase the resistance value of the discharge circuit when the discharge voltage is less than the voltage lower threshold and there is room for increasing the resistance value of the discharge circuit.
[0116] decrease the resistance value of the discharge circuit when the discharge voltage is greater than the voltage upper threshold and there is room for decreasing the resistance value of the discharge circuit.
[0117] Optionally, in the embodiments of the present application, the processor is specifically configured to:
[0118] When the discharge voltage is less than the lower voltage threshold and there is no room for increasing the resistance value of the discharge circuit, record the first number of times.
[0119] When the cumulative number of the first number of times reaches the first number of times threshold, reduce the resistance value of the discharge circuit until the discharge circuit is in a conducting state.
[0120] Optionally, in the embodiments of the present application, the processor is specifically configured to:
[0121] When the discharge voltage is greater than the upper voltage threshold and there is no room for decreasing the resistance value of the discharge circuit, record the second number of times.
[0122] When the cumulative number of the second number of times reaches the second number of times threshold, increase the resistance value of the discharge circuit until the discharge circuit is in an open state.
[0123] In the embodiments of the present application, the discharge circuit 100 includes a processor 140, and a timing module 120 and an analog-to-digital conversion module 130 that are respectively communicatively connected to the processor 140. When the discharge circuit 100 is in a discharge state, the timing module 120 can record the discharge time of the discharge circuit 100. Correspondingly, the analog-to-digital conversion module 130 can collect the discharge voltage of the discharge circuit 100 at the discharge time. Thus, the processor 140 can obtain the discharge time and the discharge voltage, and determine the voltage threshold range according to the discharge time. Furthermore, the processor 140 can maintain the resistance value of the discharge circuit 100 when the discharge voltage falls within the voltage threshold range, and change the resistance value of the discharge circuit 100 when the discharge voltage exceeds the voltage threshold range. Therefore, when the discharge circuit 100 is in a discharge state, the resistance value of the discharge circuit 100 can be reasonably controlled according to the discharge voltage to ensure the safety level during the discharge of the discharge circuit 100.
[0124] Optionally, in the embodiments of the present application, as Figure 4 shown, the embodiments of the present application further provide an electronic device 300, including a processor 310, a memory 309, a program or instruction stored on the memory 309 and executable on the processor 310. When the program or instruction is executed by the processor 310, it implements each process of the above method embodiments and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0125] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0126] Figure 5Schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.
[0127] The electronic device 300 includes, but is not limited to: a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, and a processor 310 and other components.
[0128] Those skilled in the art can understand that the electronic device 300 may further include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 310 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 5 The structure of the electronic device shown does not limit the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0129] It should be understood that in the embodiment of the present application, the input unit 304 may include a graphics processing unit (GPU) 3041 and a microphone 3042. The graphics processing unit 3041 processes image data of static pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 306 may include a display panel 3061, and the display panel 3061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071 is also called a touch screen. The touch panel 3071 may include two parts: a touch detection device and a touch controller. The other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, which will not be elaborated here. The memory 309 can be used to store software programs and various data, including but not limited to application programs and operating systems. The processor 310 may integrate an application processor and a modulation and demodulation processor. Among them, the application processor mainly processes the operating system, user interface, and application programs, and the modulation and demodulation processor mainly processes wireless communication. It can be understood that the above modulation and demodulation processor may not be integrated into the processor 310.
[0130] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the control method embodiment of the above discharge circuit and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0131] Among them, the processor is the processor in the electronic device described in the foregoing embodiment. The readable storage medium includes computer-readable storage media such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disc, etc.
[0132] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the foregoing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0133] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0134] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including that element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0135] Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
[0136] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. A control method for a discharge circuit, characterized in that, the discharge circuit includes a processor, a timing module and an analog-to-digital conversion module respectively communicatively connected to the processor, and the control method includes: when the discharge circuit is in a discharge state, the timing module records the discharge time of the discharge circuit; the analog-to-digital conversion module collects the discharge voltage of the discharge circuit at the discharge time; the processor obtains the discharge time and the discharge voltage, determines a voltage threshold range according to the discharge time, maintains the resistance value of the discharge circuit when the discharge voltage falls within the voltage threshold range, and changes the resistance value of the discharge circuit when the discharge voltage exceeds the voltage threshold range; the voltage threshold range includes a voltage lower threshold and a voltage upper threshold; when the discharge voltage is less than the voltage lower threshold and there is no room for increasing the resistance value of the discharge circuit, record the first number; when the first number accumulates to the first number threshold, reduce the resistance value of the discharge circuit until the discharge circuit is in a conducting state.
2. The control method for a discharge circuit according to claim 1, characterized in that, when the discharge voltage exceeds the voltage threshold range, changing the resistance value of the discharge circuit includes: when the discharge voltage is less than the voltage lower threshold and there is room for increasing the resistance value of the discharge circuit, increase the resistance value of the discharge circuit; when the discharge voltage is greater than the voltage upper threshold and there is room for decreasing the resistance value of the discharge circuit, decrease the resistance value of the discharge circuit.
3. The control method for a discharge circuit according to claim 2, characterized in that, when the discharge voltage exceeds the voltage threshold range, changing the resistance value of the discharge circuit further includes: when the discharge voltage is greater than the voltage upper threshold and there is no room for decreasing the resistance value of the discharge circuit, record the second number; when the second number accumulates to the second number threshold, increase the resistance value of the discharge circuit until the discharge circuit is in an open state.
4. A discharge circuit, characterized in that, the discharge circuit includes a processor, a timing module and an analog-to-digital conversion module respectively communicatively connected to the processor; the timing module is configured to record the discharge time of the discharge circuit when the discharge circuit is in a discharge state; the analog-to-digital conversion module is configured to collect the discharge voltage of the discharge circuit at the discharge time; the processor is configured to obtain the discharge time and the discharge voltage, determine a voltage threshold range according to the discharge time, maintain the resistance value of the discharge circuit when the discharge voltage falls within the voltage threshold range, and change the resistance value of the discharge circuit when the discharge voltage exceeds the voltage threshold range; the voltage threshold range includes a voltage lower threshold and a voltage upper threshold; the processor is specifically configured to: When the discharge voltage is less than the lower voltage threshold value and there is no room for increasing the resistance value of the discharge circuit, record the first count. When the first count accumulates to the first count threshold value, reduce the resistance value of the discharge circuit until the discharge circuit is in a conducting state.
5. The discharge circuit according to claim 4, wherein, the processor is specifically configured to: when the discharge voltage is less than the lower voltage threshold value and there is room for increasing the resistance value of the discharge circuit, increase the resistance value of the discharge circuit; when the discharge voltage is greater than the upper voltage threshold value and there is room for decreasing the resistance value of the discharge circuit, decrease the resistance value of the discharge circuit.
6. The discharge circuit according to claim 5, wherein, the processor is specifically configured to: when the discharge voltage is greater than the upper voltage threshold value and there is no room for decreasing the resistance value of the discharge circuit, record the second count; when the second count accumulates to the second count threshold value, increase the resistance value of the discharge circuit until the discharge circuit is in an open state.
7. An electronic device, wherein, it includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, it implements the steps of the control method of the discharge circuit according to any one of claims 1 to 3.
8. A readable storage medium, wherein, a program or instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, it implements the steps of the control method of the discharge circuit according to any one of claims 1 to 3.
Citation Information
Patent Citations
Discharge circuit, energy storage circuit, semiconductor test system and discharge method
CN112234812A
Capacitor energy discharge device
CN210431220U