Fault self-protection method and device of charge pump and medium
Through the control of the current limit mode and the pull-down current limit mode during power-on period of charge pump, the problem of safety guarantee of the charge pump system is solved, ensuring the safe operation and normal operation of the charge pump in the event of a fault.
Patent Information
- Application Number
- CN202411287249.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-27
AI Technical Summary
During the charge pump power-up, the prior art is difficult to effectively ensure the safety of the system, especially when the capacitor is short-circuited, which can easily lead to the problem of burning out the device with a large current.
By controlling the charge pump to enter the current limit mode, detect the voltage value of the flyover capacitor, determine its working condition, and alternately conduct the first power tube and the fourth power tube during normal operation, limit the current value, and enter the second current limit mode. ; When a fault is detected, enter the pull-down current limit mode to protect the system.
During the power-on period of the charge pump, the control of the current limit mode and the pull-down current limit mode effectively ensures the safety of the system, avoids damage to the charge pump caused by the fault, and attempts to restart to ensure normal operation.
Smart Images

Figure CN119210113A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power electronics, and in particular to a fault self-protection method of a charge pump, an electronic device and a computer-readable storage medium. Background Art
[0002] A charge pump is a switched capacitor voltage converter that uses capacitors as energy storage elements. The internal MOSFET switch tube is periodically turned on and off under the control of a clock signal, so that the flying capacitor is constantly switching between charging and discharging states, and ultimately outputs a fixed output voltage value.
[0003] In practical applications, in order to ensure the safety of power circuit operation, the open-short circuit state of the capacitor is generally eliminated before the charge pump operates. However, when a capacitor short-circuit fault occurs, the circuit is prone to generate a large current at the moment the power tube is turned on, burning out the device.
[0004] Therefore, how to ensure system safety during the charge pump power-up period has become a technical problem that the industry urgently needs to solve. Summary of the invention
[0005] The present invention provides a fault self-protection method for a charge pump, an electronic device and a computer-readable storage medium, which solve the technical problem of how to ensure system safety during the power-on period of the charge pump.
[0006] According to a first aspect of the present invention, an embodiment of the present invention provides a fault self-protection method for a charge pump, wherein the charge pump comprises a first power tube, a second power tube, a third power tube, a fourth power tube and a flying capacitor;
[0007] The first power tube is coupled between the first input voltage terminal and the first end of the flying capacitor, the second power tube is coupled between the second input voltage terminal and the second end of the flying capacitor, the third power tube is coupled between the second end of the flying capacitor and the output terminal, the fourth power tube is coupled between the first end of the flying capacitor and the ground terminal, and the first input voltage terminal and the second input voltage terminal are both used to receive an input voltage;
[0008] The method includes:
[0009] When the charge pump is powered on, the following steps are performed:
[0010] Controlling the charge pump to enter a first current limiting mode, and detecting the voltage value of the first end of the flying capacitor to determine the working condition of the flying capacitor, wherein the first current limiting mode includes a pull-down current limiting mode and a pull-up current limiting mode, including:
[0011] The method of controlling a charge pump to enter a first current limiting mode and determining a working condition of the flying capacitor based on a voltage value of a first end of the flying capacitor comprises:
[0012] Controlling the fourth power tube to be turned on, and limiting the current value flowing through the fourth power tube to be less than a second set current value, so that the charge pump enters a pull-down current limiting mode;
[0013] After a second set time, detecting whether the voltage value of the first end of the flying capacitor is lower than a second set voltage value, if not, determining that the working condition of the flying capacitor is short-circuited to the input voltage, and controlling the charge pump to enter a pull-down current limiting mode;
[0014] If yes, perform the following steps:
[0015] Controlling the first power tube to be turned on, and limiting the current value flowing through the first power tube to be less than a third set current value, so that the charge pump enters a pull-up current limiting mode;
[0016] After a third set time, detecting whether the voltage value of the first end of the flying capacitor is higher than a third set voltage value, if not, determining that the working condition of the flying capacitor is short-circuited to ground, and controlling the charge pump to enter a pull-down current limiting mode;
[0017] If yes, it is determined that the working condition of the flying capacitor is normal;
[0018] Only when the working condition of the flying capacitor is characterized as normal operation, the first power tube and the fourth power tube are controlled to be alternately turned on, and the current values flowing through the first power tube and the fourth power tube are limited to be less than a first set current value, so that the charge pump enters a second current limiting mode;
[0019] After a first set time, detecting whether a difference between a voltage value at the output terminal and a voltage value of the input voltage is greater than a first set voltage value;
[0020] If yes, controlling the charge pump to enter a normal working mode;
[0021] If not, it is determined that the output terminal is short-circuited to the first input voltage terminal and / or the second input terminal, and the charge pump is controlled to maintain the first current limiting mode.
[0023] Optionally, after the charge pump enters a normal operating mode, the control method further includes:
[0024] The first power tube, the second power tube, the third power tube and the fourth power tube are controlled to be fully turned on alternately.
[0025] Optionally, after controlling the first power tube, the second power tube, the third power tube, and the fourth power tube to be alternately fully turned on, the control method further includes:
[0026] When the first power tube is turned on, first information is obtained, where the first information includes a voltage value of the first end of the flying capacitor of the first power tube in the current conduction cycle and the previous N conduction cycles, where N is an integer greater than or equal to 1; and / or
[0027] When the fourth power tube is turned on, second information is obtained, where the second information includes a voltage value of the first end of the flying capacitor of the fourth power tube in the current conduction cycle and the previous M conduction cycles, where M is an integer greater than or equal to 1;
[0028] Based on the first information and / or the second information, the working state of the charge pump is determined, wherein:
[0029] The charge pump is controlled to enter the normal working mode only when the first information indicates that the voltage value of the first end of the flying capacitor of the first power tube in the current conduction cycle and the previous N conduction cycles is higher than the fourth set voltage value, and / or the second information indicates that the voltage value of the first end of the flying capacitor of the first power tube in the current conduction cycle and the previous N conduction cycles is lower than the fifth set voltage value;
[0030] Otherwise, it is determined that the output terminal is short-circuited to the first input voltage terminal and / or the second input terminal, and the charge pump is controlled to enter the pull-down current limiting mode.
[0031] Optionally, the fifth set voltage value is less than a target output voltage value of the charge pump, and a difference between the fifth set voltage value and the target output voltage value of the charge pump is a fixed value.
[0032] Optionally, after controlling the first power tube, the second power tube, the third power tube, and the fourth power tube to be alternately fully turned on, the control method further includes:
[0033] Detecting whether a difference between a voltage value at the output terminal and a voltage value of a sixth set voltage is greater than a seventh set voltage value;
[0034] If yes, controlling the charge pump to maintain a normal working mode;
[0035] If not, it is determined that the output terminal is short-circuited to the first input voltage terminal and / or the second input terminal, and the charge pump is controlled to enter the pull-down current limiting mode.
[0036] Optionally, controlling the charge pump to enter a pull-down current limiting mode includes:
[0037] After waiting for a fourth set time, the charge pump is controlled to enter the pull-down current limiting mode.
[0038] Optionally, after waiting for a fourth set time, controlling the charge pump to enter the pull-down current limiting mode includes:
[0039] Controlling the first power tube, the second power tube, the third power tube and the fourth power tube to stop working;
[0040] After waiting for a fourth set time, the charge pump is controlled to enter the pull-down current limiting mode.
[0041] Optionally, the first power tube and the third power tube are both PMOS tubes, and the second power tube and the fourth power tube are both NMOS tubes.
[0042] Optionally, the charge pump further includes a voltage modulation device, and the voltage modulation device includes a comparator, a fifth power tube and a decoupling capacitor;
[0043] The first end of the fifth power tube is coupled to the first input voltage end, the second end thereof is respectively coupled to the first end of the decoupling capacitor, the non-inverting input end of the comparator and the first power tube, the second end of the decoupling capacitor is grounded, the inverting input end of the comparator receives the first reference voltage, and the output end thereof is coupled to the control end of the fifth power tube;
[0044] The method further comprises:
[0045] The voltage value of the first reference voltage is adjusted to control the voltage value of the output voltage output by the charge pump.
[0046] Optionally, the first power tube, the second power tube and the fourth power tube are all NMOS tubes, and the third power tube is a PMOS tube.
[0047] Optionally, the charge pump further includes a driving circuit, wherein the driving circuit is coupled between the output terminal and the first terminal of the flying capacitor;
[0048] The driving circuit includes a high-end source follower NMOS transistor, a low-end source follower NMOS transistor and a pull-down NMOS transistor electrically connected in sequence, wherein:
[0049] The gate of the high-end source follower NMOS tube receives an adjustable reference voltage, the gate of the low-end source follower NMOS tube is coupled to the gate of the pull-down NMOS tube, the gate of the pull-down NMOS tube also receives a first power tube control signal through a driver, and the drain of the pull-down NMOS tube is also coupled to the gate of the first power tube.
[0050] The method further comprises:
[0051] The first power tube control signal is output to the driving circuit to control the on and off of the first power tube.
[0052] According to the second aspect of the present invention, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the first aspect of the present invention when executing the program.
[0053] According to a third aspect of the present invention, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any one of the methods described in the first aspect of the invention.
[0054] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects:
[0055] In the fault self-protection method, device and medium of the charge pump of the technical solution of the present invention, the method controls the charge pump to enter the first current limiting mode and detects the voltage value of the first end of the flying capacitor to determine the working condition of the flying capacitor; only when the working condition of the flying capacitor is normal, the first power tube and the fourth power tube are controlled to be alternately turned on, and the current value flowing through the first power tube and the fourth power tube is limited to be less than the first set current value, so that the charge pump enters the second current limiting mode; after the first set time, detect whether the difference between the voltage value of the output end and the voltage value of the input voltage is greater than the first set voltage value; if so, control the charge pump to enter the normal working mode; if not, determine that the output end is short-circuited to the first input voltage end and / or the second input end, and control the charge pump to maintain the first current limiting mode. Thus, in the case where the charge pump cannot be powered off, the present invention ensures the system safety during the power-on period of the charge pump through the first current limiting mode.
[0056] Furthermore, the first current limiting mode of the technical solution of the present invention includes a pull-down current limiting mode and a pull-up current limiting mode. The present invention further ensures system safety during power-on of the charge pump by controlling the charge pump to the pull-down current limiting mode when a charge pump failure occurs.
[0057] Furthermore, the technical solution of the present invention controls the charge pump to enter the pull-down current limiting mode, including: controlling the first power tube, the second power tube, the third power tube, and the fourth power tube to stop being fully turned on alternately; after waiting for a fourth set time, controlling the charge pump to enter the pull-down current limiting mode. Thus, the present invention ensures the normal operation of the charge pump as much as possible by attempting to restart the charge pump after detecting a fault. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 is a schematic diagram of the structure of a charge pump in one embodiment of the present invention;
[0060] Figure 2 FIG. 1 is a flow chart of a charge pump fault self-protection method according to an embodiment of the present invention. Figure 1 ;
[0061] Figure 3 FIG. 1 is a flow chart of a charge pump fault self-protection method according to an embodiment of the present invention. Figure 2 ;
[0062] Figure 4 FIG. 1 is a flow chart of a charge pump fault self-protection method according to an embodiment of the present invention. Figure 3 ;
[0063] Figure 5 is a waveform diagram showing the effect of a fault self-protection method for a charge pump in one embodiment of the present invention;
[0064] Figure 6 is a schematic diagram of the structure of a charge pump in another embodiment of the present invention;
[0065] Figure 7 is a schematic structural diagram of a charge pump in another embodiment of the present invention;
[0066] Figure 8 is a schematic structural diagram of an electronic device in which a charge pump is provided according to an exemplary embodiment of the present invention;
[0067] Description of reference numerals:
[0068] Q1-first power tube;
[0069] Q2-second power tube;
[0070] Q3-the third power tube;
[0071] Q4-the fourth power tube;
[0072] C_FLY-flying capacitor;
[0073] 10- voltage modulation device;
[0074] 101- Comparator;
[0075] MLDO-fifth power tube;
[0076] DECAP_C1 - decoupling capacitor;
[0077] CNH_REFSFH-high-end source follower NMOS tube;
[0078] CNH_REFSFL-low-side source follower NMOS tube;
[0079] CNH_REFPD-pull-down NMOS tube;
[0080] 20-Driver;
[0081] 31-processor;
[0082] 32-internal bus;
[0083] 33- Network interface;
[0084] 34-Memory;
[0085] 35- Non-volatile memory. DETAILED DESCRIPTION
[0086] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0087] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0088] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0089] As described in the background art, it is difficult to ensure system safety during the power-on period of the charge pump in the prior art.
[0090] In order to solve the above problems, the embodiment of the present invention provides a fault self-protection method, device and medium of a charge pump, wherein the method controls the charge pump to enter a first current limiting mode, and detects the voltage value of the first end of the flying capacitor to determine the working condition of the flying capacitor; only when the working condition of the flying capacitor is normal, the first power tube and the fourth power tube are controlled to be alternately turned on, and the current value flowing through the first power tube and the fourth power tube is limited to be less than the first set current value, so that the charge pump enters a second current limiting mode; after the first set time, detect whether the difference between the voltage value of the output end and the voltage value of the input voltage is greater than the first set voltage value; if so, control the charge pump to enter a normal working mode; if not, determine that the output end is short-circuited to the first input voltage end and / or the second input end, and control the charge pump to maintain the first current limiting mode. Thus, in the case where the charge pump cannot be powered off, the present invention ensures the system safety during the power-on period of the charge pump through the first current limiting mode.
[0091] In order to make the above-mentioned objects, features and beneficial effects of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0092] Figure 1 is a schematic diagram of the structure of a charge pump in an embodiment of the present invention, wherein the charge pump includes a first power tube Q1, a second power tube Q2, a third power tube Q3, a fourth power tube Q4 and a flying capacitor C_FLY;
[0093] The first power tube Q1 is coupled between the first input voltage terminal VIN1 and the first end CNFLY of the flying capacitor C_FLY, the second power tube Q2 is coupled between the second input voltage terminal VIN2 and the second end CPFLY of the flying capacitor C_FLY, the third power tube Q3 is coupled between the second end of the flying capacitor C_FLY and the output terminal VCP, the fourth power tube Q4 is coupled between the first end of the flying capacitor C_FLY and the ground terminal GND, and the first input voltage terminal VIN1 and the second input voltage terminal VIN2 are both used to receive input voltage.
[0094] On this basis, the present invention provides a fault self-protection method for a charge pump, the method comprising:
[0095] When the charge pump is powered on, the following steps are performed:
[0096] Controlling the charge pump to enter a first current limiting mode, and detecting the voltage value of the first end of the flying capacitor to determine the working condition of the flying capacitor, wherein the first current limiting mode includes a pull-down current limiting mode and a pull-up current limiting mode; comprising:
[0097] Controlling the fourth power tube to be turned on, and limiting the current value flowing through the fourth power tube to be less than a second set current value, so that the charge pump enters a pull-down current limiting mode;
[0098] After a second set time, detecting whether the voltage value of the first end of the flying capacitor is lower than a second set voltage value, if not, determining that the working condition of the flying capacitor is short-circuited to the input voltage, and controlling the charge pump to enter a pull-down current limiting mode;
[0099] If yes, perform the following steps:
[0100] Controlling the first power tube to be turned on, and limiting the current value flowing through the first power tube to be less than a third set current value, so that the charge pump enters a pull-up current limiting mode;
[0101] After a third set time, detecting whether the voltage value of the first end of the flying capacitor is higher than a third set voltage value, if not, determining that the working condition of the flying capacitor is short-circuited to ground, and controlling the charge pump to enter a pull-down current limiting mode;
[0102] If so, it is determined that the working condition of the flying capacitor is normal operation. Only when the working condition of the flying capacitor is characterized as normal operation, the first power tube and the fourth power tube are controlled to be alternately turned on, and the current value flowing through the first power tube and the fourth power tube is limited to be less than the first set current value, so that the charge pump enters the second current limiting mode;
[0103] After a first set time, detecting whether a difference between a voltage value at the output terminal and a voltage value of the input voltage is greater than a first set voltage value;
[0104] If yes, controlling the charge pump to enter a normal working mode;
[0105] If not, it is determined that the output terminal is short-circuited to the first input voltage terminal and / or the second input terminal, and the charge pump is controlled to maintain the first current limiting mode.
[0106] As a specific implementation method, please refer to Figure 2 In practical applications, the charge pump fault self-protection method provided by the present invention includes:
[0107] S1: Power on;
[0108] Specifically, there are voltage signals at both the first input voltage terminal VIN1 and the second input voltage terminal VIN2.
[0109] S21: controlling the fourth power tube to be turned on, and limiting the current value flowing through the fourth power tube to be less than a second set current value, so that the charge pump enters a pull-down current limiting mode;
[0110] Specifically, it can be understood that the first end CNFLY of the flying capacitor C_FLY is pulled down. For example, the pull-down current may be 100 mA.
[0111] S22: After the second set time, detect whether the voltage value of the first end of the flying capacitor is lower than the second set voltage value, if not, return to S21; if yes, enter S23;
[0112] Specifically, it can be understood that the first end of the flying capacitor C_FLY is continuously pulled down for a second set time. For example, the pull-down time may be 500us.
[0113] Wherein, after the second set time, if the voltage value of the first end CNFLY of the flying capacitor C_FLY is higher than or equal to the second set voltage value, it is determined that the working condition of the flying capacitor C_FLY is short-circuited to the input voltage, and the process returns to S21 to control the charge pump to enter the pull-down current limiting mode;
[0114] S23: controlling the first power tube to be turned on, and limiting the current value flowing through the first power tube to be less than a third set current value, so that the charge pump enters a pull-up current limiting mode;
[0115] Specifically, it can be understood that the first end CNFLY of the flying capacitor C_FLY is pulled up, and as an example, the pull-up current can be 100 mA. It should be understood that the present invention does not limit the pull-up or pull-down current value, and those skilled in the art can select a suitable current as needed.
[0116] S24: after a third set time, detecting whether the voltage value of the first end of the flying capacitor is higher than a third set voltage value, if not, returning to S21; if yes, entering S25;
[0117] Specifically, it can be understood that the first end CNFLY of the flying capacitor C_FLY is continuously pulled up for a third set time. For example, the pull-up time may also be 500 us.
[0118] It should be understood that the present invention does not limit the current value and duration of the pull-up or pull-down operation, and those skilled in the art can select appropriate current value and duration as needed.
[0119] Regarding the third set voltage value, it can be set to be related to the reference voltage of the charge pump, and the reference voltage is used to ensure that the output voltage of the charge pump remains at a specific preset value. For example, the third set voltage value is less than the reference voltage.
[0120] In a specific implementation manner, in step S24, after the third set time, if the voltage value of the first end of the flying capacitor is detected to be lower than or equal to the second set voltage value, it is determined that the working condition of the flying capacitor is short-circuited to ground, the charge pump is controlled to enter the pull-down current limiting mode, and the process returns to S21;
[0121] S25: Determine whether the flying capacitor is operating normally, and proceed to step S3.
[0122] It can be seen that the present invention further ensures the system safety during the power-on period of the charge pump by controlling the charge pump to be in the pull-down current limiting mode when a fault occurs in the charge pump.
[0123] S3: After a first set time, detect whether the difference between the voltage value of the output terminal and the voltage value of the input voltage is greater than a first set voltage value, if so, enter S4; if not, return to S21;
[0124] If, after a first set time, the difference between the voltage value of the first end CNFLY of the flying capacitor C_FLY and the voltage value of the input voltage is less than or equal to a first set voltage value, it is determined that the output end is short-circuited to the first input voltage end and / or the second input end, and the charge pump is controlled to maintain the first current limiting mode;
[0125] S4: Control the charge pump to enter a normal operating mode.
[0126] To facilitate the description of the following embodiments, the above steps S21 to S25 are summarized as step S2: controlling the charge pump to enter the first current limiting mode, and judging the working condition of the flying capacitor, if the working condition of the flying capacitor is characterized as normal working, then entering S3, otherwise, returning to S2;
[0127] Specifically, the charge pump is controlled to enter the first current limiting mode, and the first voltage value of the first end CNFLY of the flying capacitor C_FLY is detected. According to the first voltage value of the first end CNFLY of the flying capacitor C_FLY, the working condition of the flying capacitor C_FLY is judged. If the working condition of the flying capacitor C_FLY is characterized as normal operation, enter S3, otherwise, return to S2.
[0128] In one implementation, please refer to Figure 3 , after step S4, the control method further includes:
[0129] S5: Control the first power tube, the second power tube, the third power tube and the fourth power tube to be fully turned on alternately.
[0130] In one implementation, please refer to Figure 3After controlling the first power tube, the second power tube, the third power tube and the fourth power tube to be alternately fully turned on, the control method further includes:
[0131] S6: Detect whether the difference between the voltage value of the output terminal and the voltage value of the sixth set voltage is greater than the seventh set voltage value; if so, return to S5, if not, return to S2;
[0132] In a specific implementation, the sixth set voltage may be a power supply voltage PVDD of the charge pump.
[0133] Among them, if the difference between the voltage value of the output terminal and the voltage value of the sixth set voltage is less than or equal to the seventh set voltage value, it is judged that during the charge pump switching process, the output terminal is short-circuited to the first input voltage terminal and / or the second input terminal, then it returns to S2 and controls the charge pump to enter the first current limiting mode.
[0134] In a preferred embodiment, if the difference between the voltage value of the output terminal and the voltage value of the sixth set voltage is less than or equal to the seventh set voltage value, it is determined that the output terminal is short-circuited to the first input voltage terminal and / or the second input terminal, then S21 is returned to control the charge pump to enter the pull-down current limiting mode.
[0135] The present invention also protects the charge pump during normal operation. Figure 3 After step S5, the control method further includes:
[0136] S7: when the first power tube is turned on, obtaining first information, the first information including the voltage value of the first end of the flying capacitor of the first power tube in the current conduction cycle and the previous N conduction cycles, where N is an integer greater than or equal to 1; and / or
[0137] When the fourth power tube is turned on, second information is obtained, where the second information includes a voltage value of the first end of the flying capacitor of the fourth power tube in the current conduction cycle and the previous M conduction cycles, where M is an integer greater than or equal to 1;
[0138] S8: Based on the first information and / or the second information, determine the working state of the charge pump, and return to S5 only when the first information and / or the second information indicates that the working state is normal; otherwise, return to S2.
[0139] Among them, only when the first information indicates that the voltage value of the first end CNFLY of the flying capacitor C_FLY of the first power tube Q1 in the current conduction cycle and the previous N conduction cycles is higher than the fourth set voltage value, and / or the second information indicates that the voltage value of the first end CNFLY of the flying capacitor C_FLY of the first power tube Q1 in the current conduction cycle and the previous N conduction cycles is lower than the fifth set voltage value, it is judged that the first information and / or the second information are normal, the charge pump is controlled to enter the normal working mode, and the process returns to S5;
[0140] When the first information and / or the second information is characterized as abnormal, it is determined that the output terminal is short-circuited to the first input voltage terminal and / or the second input terminal, and the process returns to S2.
[0141] Step S7 and step S8 should be understood as that the present invention can determine the working state of the charge pump after obtaining the first information and the second information;
[0142] Alternatively, when either the first information or the second information is characterized as abnormal, it is directly determined that the output terminal is short-circuited to the input voltage, and the process returns to S2; otherwise, the charge pump is controlled to enter a normal working mode, and the process returns to S5.
[0143] In one implementation, the fifth set voltage value is less than a target output voltage value of the charge pump, and a difference between the fifth set voltage value and the target output voltage value of the charge pump is a fixed value.
[0144] In another embodiment, the fifth set voltage value can be set to be related to the reference voltage of the charge pump, and the difference between the fifth set voltage value and the reference voltage is a fixed value. In a specific embodiment, the fifth set voltage value is less than the reference voltage.
[0145] In a preferred embodiment, when the first information and / or the second information is characterized as abnormal, it is determined that the output end is short-circuited to the first input voltage end and / or the second input end, and the process returns to S21 to control the charge pump to enter the pull-down current limiting mode.
[0146] In order to ensure the normal operation of the charge pump as much as possible, the charge pump needs to detect whether the fault has been resolved while ensuring that it is not affected by the short circuit. Therefore, in a preferred embodiment, the above-mentioned control of the charge pump to enter the pull-down current limiting mode includes:
[0147] After waiting for a fourth set time, the charge pump is controlled to enter the pull-down current limiting mode.
[0148] Specifically, please refer to Figure 4 ,exist Figure 4In the example, the above control of the charge pump to enter the pull-down current limiting mode includes the following steps:
[0149] S9: Wait for the fourth set time, and return to S2.
[0150] In a preferred implementation, after waiting for the fourth set time, the process returns to S21 to control the charge pump to enter the pull-down current limiting mode.
[0151] The waiting for the fourth set time may be understood as attempting to restart the charge pump after the fourth set time. Figure 4 , the above-mentioned control of the charge pump to enter the pull-down current limiting mode includes:
[0152] S10: Control the first power tube, the second power tube, the third power tube and the fourth power tube to stop working, and enter S9.
[0153] It should be understood that the above-mentioned controlling the charge pump to enter the pull-down current limiting mode should be understood as controlling the charge pump to enter the pull-down current limiting mode after a fault occurs in the charge pump.
[0154] It can be seen that the present invention ensures the normal operation of the charge pump as much as possible by attempting to restart the charge pump after detecting a fault.
[0155] Now combined Figure 5 The waveform diagram shown illustrates the effect of the method provided by the present invention, wherein:
[0156] CNFLY, which can be understood as the voltage of the first terminal CNFLY of the flying capacitor C_FLY;
[0157] CPFLY, which can be understood as the voltage of the second terminal CPFLY of the flying capacitor C_FLY;
[0158] VIN can be understood as the voltage value of the input voltage;
[0159] VCP-VIN can be understood as the difference between the voltage value of the output terminal and the voltage value of the input voltage.
[0160] The difference between the voltage value of the output terminal and the voltage value of the input voltage is replaced by the first voltage difference in the following description.
[0161] It can be seen that at the first moment (label 1), the charge pump is powered on and enters the pull-down current limiting mode to determine whether the flying capacitor C_FLY is short-circuited to the input voltage;
[0162] At the second moment (label 2), it is detected that the voltage value of the first end CNFLY of the flying capacitor C_FLY is lower than the second set voltage value, and the charge pump is controlled to enter the pull-up current limiting mode to determine whether the flying capacitor C_FLY is short-circuited to the ground;
[0163] At the third moment (label 3), it is detected that the voltage value of the first end CNFLY of the flying capacitor C_FLY is higher than the third set voltage value, so that the working condition of the flying capacitor C_FLY is judged to be normal, the first power tube Q1 and the fourth power tube Q4 are controlled to be alternately turned on, and the current value flowing through the first power tube Q1 and the fourth power tube Q4 is limited to be less than the first set current value, so that the charge pump enters the second current limiting mode;
[0164] After the first set time, at a fourth moment (labeled 4), it is detected that the first voltage difference is greater than the first set voltage value, and the charge pump is controlled to enter a normal working mode;
[0165] At the fifth moment (labeled 5), the output end is short-circuited with the output end, and at this time, the first power tube Q1, the second power tube Q2, the third power tube Q3 and the fourth power tube Q4 are controlled to stop working;
[0166] Waiting for a fourth set time, at a sixth moment (labeled 6), trying to restart the charge pump, and detecting that the voltage value of the first end CNFLY of the flying capacitor C_FLY is higher than the second set voltage value, and the output end and the output end are still in a short-circuit state, then continuing to try to restart the charge pump until the fault is eliminated;
[0167] At the seventh moment (labeled 7), the short-circuit fault between the output terminal and the output terminal disappears.
[0168] At the eighth moment (labeled 8), the charge pump is controlled to enter the first current limiting mode.
[0169] It can be seen that the present invention ensures system safety during the power-on period of the charge pump.
[0170] It should be understood that the method provided by the present invention can be applied to the control of any charge pump.
[0171] For example, in one implementation, the first power tube Q1 and the third power tube Q3 are both PMOS tubes, and the second power tube Q2 and the fourth power tube Q4 are both NMOS tubes.
[0172] As a specific implementation method, please refer to Figure 6The charge pump further includes a voltage modulation device 10, wherein the voltage modulation device 10 includes a comparator 101, a fifth power tube MLDO and a decoupling capacitor DECAP_C1;
[0173] The first end of the fifth power transistor MLDO is coupled to the first input voltage terminal VIN1, and the second end thereof is respectively coupled to the first end of the decoupling capacitor DECAP_C1, the non-inverting input terminal of the comparator 101, and the first power transistor Q1. The second end of the decoupling capacitor DECAP_C1 is grounded. The inverting input terminal of the comparator 101 receives the first reference voltage VREF1, and the output terminal VCP thereof is coupled to the control terminal of the fifth power transistor MLDO.
[0174] In this case, the method provided by the present invention further comprises:
[0175] The voltage value of the first reference voltage VREF1 is adjusted to control the voltage value of the output voltage output by the charge pump.
[0176] In another embodiment, the first power tube Q1, the second power tube Q2 and the fourth power tube Q4 are all NMOS tubes, and the third power tube Q3 is a PMOS tube.
[0177] As a specific implementation method, please refer to Figure 7 , the charge pump further includes a driving circuit, wherein the driving circuit is coupled between the output terminal VCP and the first end of the flying capacitor C_FLY;
[0178] The driving circuit includes a high-side source follower NMOS transistor CNH_REFSFH, a low-side source follower NMOS transistor CNH_REFSFL and a pull-down NMOS transistor CNH_REFPD which are electrically connected in sequence, wherein:
[0179] The gate of the high-end source follower NMOS tube CNH_REFSFH receives the adjustable reference voltage VREF, the gate of the low-end source follower NMOS tube CNH_REFSFL is coupled to the gate of the pull-down NMOS tube CNH_REFPD, the gate of the pull-down NMOS tube CNH_REFPD also receives the first power tube control signal CONTROL1 through the driver 20, and the drain of the pull-down NMOS tube CNH_REFPD is also coupled to the gate of the first power tube Q1.
[0180] In this case, the method provided by the present invention further comprises:
[0181] The first power tube control signal CONTROL1 is output to the driving circuit to control the on and off of the first power tube Q1.
[0182] In addition, the present invention also provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the program. As an example, the electronic device may be an audio device, etc. It should be understood that the present invention does not limit this, and any device that needs to perform fault self-protection is within the protection scope of the present invention.
[0183] Please refer to Figure 8 , Figure 8 The figure shows a schematic diagram of the structure of an electronic device in which a charge pump is provided according to an exemplary embodiment of the present invention. At the hardware level, the electronic device includes a processor 31, an internal bus 32, a network interface 33, a memory 34, and a non-volatile memory 35, and may also include hardware required for other services. One or more embodiments of the present invention may be implemented based on software, such as the processor 31 reading the corresponding computer program from the non-volatile memory 35 into the memory 34 and then running it. Of course, in addition to the software implementation, one or more embodiments of the present invention do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but may also be hardware or logic devices.
[0184] In addition, the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in any of the above methods are implemented.
[0185] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0186] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0187] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0188] In summary, the present invention controls the charge pump to enter the first current limiting mode, and detects the voltage value of the first end of the flying capacitor to determine the working condition of the flying capacitor; only when the working condition of the flying capacitor is normal, the first power tube and the fourth power tube are controlled to be alternately turned on, and the current value flowing through the first power tube and the fourth power tube is limited to be less than the first set current value, so that the charge pump enters the second current limiting mode; after the first set time, detect whether the difference between the voltage value of the output end and the voltage value of the input voltage is greater than the first set voltage value; if so, control the charge pump to enter the normal working mode; if not, determine that the output end is short-circuited to the first input voltage end and / or the second input end, and control the charge pump to maintain the first current limiting mode. Thus, in the case where the charge pump cannot be powered off, the present invention ensures the system safety during the power-on period of the charge pump through the first current limiting mode.
[0189] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
[0190] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A charge pump fault self-protection method, characterized in that: The charge pump comprises a first power tube, a second power tube, a third power tube, a fourth power tube and a flying capacitor; The first power tube is coupled between the first input voltage terminal and the first end of the flying capacitor, the second power tube is coupled between the second input voltage terminal and the second end of the flying capacitor, the third power tube is coupled between the second end of the flying capacitor and the output terminal, the fourth power tube is coupled between the first end of the flying capacitor and the ground terminal, and the first input voltage terminal and the second input voltage terminal are both used to receive an input voltage; The method includes: When the charge pump is powered on, the following steps are performed: Controlling the charge pump to enter a first current limiting mode, and detecting the voltage value of the first end of the flying capacitor to determine the working condition of the flying capacitor, wherein the first current limiting mode includes a pull-down current limiting mode and a pull-up current limiting mode, including: Controlling the fourth power tube to be turned on, and limiting the current value flowing through the fourth power tube to be less than a second set current value, so that the charge pump enters a pull-down current limiting mode; After a second set time, detecting whether the voltage value of the first end of the flying capacitor is lower than a second set voltage value, if not, determining that the working condition of the flying capacitor is short-circuited to the input voltage, and controlling the charge pump to enter a pull-down current limiting mode; If yes, perform the following steps: Controlling the first power tube to be turned on, and limiting the current value flowing through the first power tube to be less than a third set current value, so that the charge pump enters a pull-up current limiting mode; After a third set time, detecting whether the voltage value of the first end of the flying capacitor is higher than a third set voltage value, if not, determining that the working condition of the flying capacitor is short-circuited to ground, and controlling the charge pump to enter a pull-down current limiting mode; If yes, it is determined that the working condition of the flying capacitor is normal; only when the working condition of the flying capacitor is characterized as normal, the first power tube and the fourth power tube are controlled to be alternately turned on, and the current value flowing through the first power tube and the fourth power tube is limited to be less than the first set current value, so that the charge pump enters the second current limiting mode; After a first set time, detecting whether a difference between a voltage value at the output terminal and a voltage value of the input voltage is greater than a first set voltage value; If yes, controlling the charge pump to enter a normal working mode; If not, it is determined that the output terminal is short-circuited to the first input voltage terminal and / or the second input terminal, and the charge pump is controlled to maintain the first current limiting mode.
2. The charge pump fault self-protection method according to claim 1, characterized in that: After the charge pump enters the normal working mode, the control method further includes: The first power tube, the second power tube, the third power tube and the fourth power tube are controlled to be fully turned on alternately.
3. The charge pump fault self-protection method according to claim 2, characterized in that: After controlling the first power tube, the second power tube, the third power tube, and the fourth power tube to be alternately fully turned on, the control method further includes: When the first power tube is turned on, first information is obtained, where the first information includes a voltage value of the first end of the flying capacitor of the first power tube in the current conduction cycle and the previous N conduction cycles, where N is an integer greater than or equal to 1; and / or When the fourth power tube is turned on, second information is obtained, where the second information includes a voltage value of the first end of the flying capacitor of the fourth power tube in the current conduction cycle and the previous M conduction cycles, where M is an integer greater than or equal to 1; Based on the first information and / or the second information, the working state of the charge pump is determined, wherein: The charge pump is controlled to enter the normal working mode only when the first information indicates that the voltage value of the first end of the flying capacitor of the first power tube in the current conduction cycle and the previous N conduction cycles is higher than the fourth set voltage value, and / or the second information indicates that the voltage value of the first end of the flying capacitor of the first power tube in the current conduction cycle and the previous N conduction cycles is lower than the fifth set voltage value; Otherwise, it is determined that the output terminal is short-circuited to the first input voltage terminal and / or the second input terminal, and the charge pump is controlled to enter the pull-down current limiting mode.
4. The charge pump fault self-protection method according to claim 3, characterized in that: The fifth set voltage value is smaller than the target output voltage value of the charge pump, and the difference between the fifth set voltage value and the target output voltage value of the charge pump is a fixed value.
5. The charge pump fault self-protection method according to claim 2, characterized in that: After controlling the first power tube, the second power tube, the third power tube, and the fourth power tube to be alternately fully turned on, the control method further includes: Detecting whether a difference between a voltage value at the output terminal and a voltage value of a sixth set voltage is greater than a seventh set voltage value; If yes, controlling the charge pump to maintain a normal working mode; If not, it is determined that the output terminal is short-circuited to the first input voltage terminal and / or the second input terminal, and the charge pump is controlled to enter the pull-down current limiting mode.
6. The charge pump fault self-protection method according to any one of claims 1 to 6, characterized in that: Controlling the charge pump to enter a pull-down current limiting mode, comprising: After waiting for a fourth set time, the charge pump is controlled to enter the pull-down current limiting mode.
7. The charge pump fault self-protection method according to claim 6, characterized in that: After waiting for a fourth set time, controlling the charge pump to enter the pull-down current limiting mode includes: Controlling the first power tube, the second power tube, the third power tube and the fourth power tube to stop working; After waiting for a fourth set time, the charge pump is controlled to enter the pull-down current limiting mode.
8. The charge pump fault self-protection method according to claim 1, characterized in that: The first power tube and the third power tube are both PMOS tubes, and the second power tube and the fourth power tube are both NMOS tubes.
9. The charge pump fault self-protection method according to claim 8, characterized in that: The charge pump further includes a voltage modulation device, and the voltage modulation device includes a comparator, a fifth power tube and a decoupling capacitor; The first end of the fifth power tube is coupled to the first input voltage end, the second end thereof is respectively coupled to the first end of the decoupling capacitor, the non-inverting input end of the comparator and the first power tube, the second end of the decoupling capacitor is grounded, the inverting input end of the comparator receives the first reference voltage, and the output end thereof is coupled to the control end of the fifth power tube; The method further comprises: The voltage value of the first reference voltage is adjusted to control the voltage value of the output voltage output by the charge pump.
10. The charge pump fault self-protection method according to claim 1, characterized in that: The first power tube, the second power tube and the fourth power tube are all NMOS tubes, and the third power tube is a PMOS tube.
11. The charge pump fault self-protection method according to claim 10, characterized in that: The charge pump further includes a driving circuit coupled between the output terminal and the first terminal of the flying capacitor; The driving circuit includes a high-end source follower NMOS transistor, a low-end source follower NMOS transistor and a pull-down NMOS transistor electrically connected in sequence, wherein: The gate of the high-end source follower NMOS tube receives an adjustable reference voltage, the gate of the low-end source follower NMOS tube is coupled to the gate of the pull-down NMOS tube, the gate of the pull-down NMOS tube also receives a first power tube control signal through a driver, and the drain of the pull-down NMOS tube is also coupled to the gate of the first power tube. The method further comprises: The first power tube control signal is output to the driving circuit to control the on and off of the first power tube.
12. An electronic device, characterized in that: The method comprises a memory, a processor and a program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 11 when executing the program.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 11 are implemented.
