Chip low-power-consumption mode control method and device, equipment and medium
By comparing and adjusting the voltage value of the voltage regulator, the chip voltage drop caused by insufficient voltage of the regulator in low power mode is solved, ensuring the normal operation of the regulator in low power mode, and improving the stability and reliability of the chip.
Patent Information
- Application Number
- CN202411599682.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-03-18
AI Technical Summary
In some abnormal situations, after the voltage regulator voltage in low-power mode increases, its voltage value is still smaller than the voltage regulator voltage value in non-low-power mode, causing the regulator in low-power mode to fail to work properly, which in turn causes chip voltage drop and low-voltage detection reset problems.
By comparing the voltage values of the first voltage regulator and the second voltage regulator, if the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, the voltage of the second voltage regulator continues to be raised and the number of rises is recorded; when the number of rises reaches the preset value, the low power consumption mode is stopped, and the second voltage regulator is turned off, so that the first voltage regulator remains enabled.
Ensure that the second voltage regulator can work normally in low-power mode, avoid chip voltage drop caused by abnormal working, and improve the stability and reliability of the chip when entering low-power mode.
Smart Images

Figure CN119645181A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip control technology, and in particular to a chip low power consumption mode control method, device, equipment and medium. Background Art
[0002] In the current low-power chip design, the default values of the low-dropout linear regulator in non-low-power mode and the low-dropout linear regulator in low-power mode are the same, and the output voltage values are not much different in theory. In the enabling stage of the regulator in non-low-power mode and the regulator in low-power mode, the voltage value of the regulator in low-power mode needs to be greater than the voltage value of the regulator in non-low-power mode, and the regulator in low-power mode can work normally. However, in some abnormal cases, when the voltage of the regulator in low-power mode increases, the voltage value of the regulator in low-power mode is still lower than the voltage value of the regulator in non-low-power mode. At this time, the regulator in non-low-power mode works normally, while the regulator in low-power mode cannot work normally. When entering the next stage, after the regulator in non-low-power mode is turned off, the regulator in low-power mode cannot work normally, which will cause the chip voltage to drop and a low voltage detection reset to occur. Summary of the invention
[0003] In order to solve the above problems, the embodiments of the present invention disclose a chip low power consumption mode control method, device, equipment and medium.
[0004] In a first aspect, an embodiment of the present invention provides a chip low power consumption mode control method, wherein the chip includes a first voltage regulator and a second voltage regulator, wherein the first voltage regulator is a low voltage drop linear regulator in a non-low power consumption mode, and the second voltage regulator is a low voltage drop linear regulator in a low power consumption mode, and the method includes:
[0005] In case of receiving a voltage boost signal for the second regulator, increasing the voltage of the second regulator;
[0006] Determining whether the voltage value of the second voltage stabilizer is greater than the voltage value of the first voltage stabilizer;
[0007] If the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, continue to increase the voltage of the second voltage regulator;
[0008] When the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, the first voltage regulator is turned off to enter a low power consumption mode.
[0009] Optionally, if the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, continuing to increase the voltage of the second voltage regulator includes:
[0010] If the voltage value of the second regulator is less than the voltage value of the first regulator, continue to increase the voltage of the second regulator, and record the number of increases;
[0011] The method further comprises:
[0012] If the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator and the number of increases reaches a preset number of increases, the low power consumption mode is stopped and the second voltage regulator is turned off, so that the first voltage regulator remains enabled.
[0013] Optionally, when the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, turning off the first voltage regulator and entering a low power consumption mode includes:
[0014] If the voltage value of the second regulator is greater than the voltage value of the first regulator, continue to determine whether the voltage value of the second regulator is greater than the voltage value of the first regulator, and record the number of determinations;
[0015] When the number of determinations reaches a preset number of determinations, the first voltage regulator is turned off to enter a low power consumption mode.
[0016] Optionally, before shutting down the first voltage regulator and entering the low power consumption mode, the method further includes:
[0017] Acquiring a voltage difference between the first regulator and the second regulator;
[0018] According to the voltage difference and the preset difference, determining whether the voltage value of the second voltage stabilizer meets a preset condition;
[0019] When the voltage value of the second voltage regulator meets a preset condition, the first voltage regulator is turned off to enter a low power consumption mode.
[0020] Optionally, judging whether the voltage value of the second regulator meets a preset condition according to the voltage difference and a preset difference includes:
[0021] performing differential amplification on the voltage difference;
[0022] If the voltage difference after differential amplification is greater than the preset difference, it is determined that the voltage value of the second regulator does not meet the preset condition;
[0023] If the voltage difference after differential amplification is less than or equal to the preset difference, it is determined that the voltage value of the second regulator meets the preset condition.
[0024] Optionally, the voltage value of the second voltage regulator corresponds to a plurality of voltage levels, and the voltage difference between adjacent voltage levels is the preset difference; and the step of increasing the voltage of the second voltage regulator includes:
[0025] The voltage level of the second voltage regulator is increased.
[0026] Optionally, determining whether the voltage value of the second regulator is greater than the voltage value of the first regulator includes:
[0027] Obtaining a flag bit output by the chip;
[0028] If the flag bit output by the chip is an error flag bit, determining that the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator;
[0029] If the flag bit output by the chip is a correct flag bit, it is determined that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator.
[0030] In a second aspect, an embodiment of the present invention provides a chip low power mode control device, the chip comprising a first voltage regulator and a second voltage regulator, the first voltage regulator is a low voltage drop linear regulator in a non-low power mode, the second voltage regulator is a low voltage drop linear regulator in a low power mode, the device comprising:
[0031] A voltage regulator boosting module, configured to boost the voltage of the second regulator upon receiving a boosting signal for the second regulator;
[0032] A voltage regulator judging module, used for judging whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator;
[0033] The low power consumption mode control module is used to turn off the first voltage regulator and enter the low power consumption mode when the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator.
[0034] Optionally, the steps of the voltage regulator voltage boost module include:
[0035] A regulator repeated voltage boost module submodule, used for continuing to increase the voltage of the second regulator if the voltage value of the second regulator is less than the voltage value of the first regulator, and recording the number of increases;
[0036] The device also includes:
[0037] The low power consumption mode stopping module is used to stop entering the low power consumption mode and shut down the second voltage regulator when the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator and the number of increases reaches a preset number of increases, so as to keep the first voltage regulator enabled.
[0038] Optionally, the low power consumption mode control module includes:
[0039] A voltage regulator judging submodule, for, if the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, continuing to judge whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, and recording the number of judgments;
[0040] The low power consumption mode control submodule is used to turn off the first voltage regulator and enter the low power consumption mode when the number of judgment times reaches a preset number of judgment times.
[0041] Optionally, before the low power consumption mode control module, the device further includes:
[0042] A voltage difference acquisition module, used to acquire a voltage difference between the first voltage stabilizer and the second voltage stabilizer;
[0043] A working state judgment module, used for judging whether the voltage value of the second voltage regulator meets a preset condition according to the voltage difference and a preset difference;
[0044] The normal state judgment module is used to turn off the first voltage regulator and enter a low power consumption mode when the voltage value of the second voltage regulator meets a preset condition.
[0045] Optionally, the normal status judgment module includes:
[0046] A differential amplifier submodule, used for differentially amplifying the voltage difference;
[0047] a state abnormality judgment submodule, configured to determine that the voltage value of the second voltage regulator does not meet a preset condition if the voltage difference after differential amplification is greater than the preset difference;
[0048] The normal state judgment submodule is used to determine that the voltage value of the second regulator meets the preset condition if the voltage difference after differential amplification is less than or equal to the preset difference.
[0049] Optionally, the voltage value of the second voltage regulator corresponds to a plurality of voltage levels, and the voltage difference between adjacent voltage levels is the preset difference; the voltage regulator voltage boosting module includes:
[0050] The voltage regulator voltage boosting submodule is used to boost the voltage level of the second voltage regulator.
[0051] Optionally, the voltage regulator voltage determination module includes:
[0052] A flag bit acquisition submodule, used to acquire the flag bit output by the chip;
[0053] A voltage value less than judgment submodule, used for determining that the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator if the flag bit output by the chip is an error flag bit;
[0054] The voltage value is greater than judgment submodule is used to determine that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator if the flag bit output by the chip is a correct flag bit.
[0055] In a third aspect, the present invention shows an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned chip low power consumption mode control method when executing the computer program.
[0056] In a fourth aspect, the present invention shows a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned chip low power consumption mode control method are implemented.
[0057] The embodiments of the present invention include the following advantages:
[0058] The chip of the embodiment of the present invention includes a first voltage regulator and a second voltage regulator, the first voltage regulator is a low voltage difference linear voltage regulator in a non-low power consumption mode, and the second voltage regulator is a low voltage difference linear voltage regulator in a low power consumption mode; the embodiment of the present invention can increase the voltage of the second voltage regulator when receiving a boost signal for the second voltage regulator, so that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, so as to ensure that the second voltage regulator can work normally; judge whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, so as to detect whether the voltage value of the second voltage regulator is still less than the voltage value of the first voltage regulator after the voltage of the second voltage regulator is increased; if the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, continue to increase the voltage of the second voltage regulator to ensure that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator; when the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, turn off the first voltage regulator and enter the low power consumption mode, so as to avoid the problem of turning off the first voltage regulator when the second voltage regulator works abnormally and causing the chip voltage to drop, thereby improving the stability and reliability of the chip when entering the low power consumption mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.
[0060] Figure 1 is a circuit diagram of a chip low power consumption mode control method according to an embodiment of the present invention;
[0061] Figure 2 is a flowchart of a chip low power consumption mode control method according to an embodiment of the present invention;
[0062] Figure 3 is a flowchart of another chip low power consumption mode control method according to an embodiment of the present invention;
[0063] Figure 4 It is a logic diagram of a chip low power consumption mode control method according to an embodiment of the present invention;
[0064] Figure 5 It is a structural block diagram of a chip low power consumption mode control device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0065] The present invention proposes a chip low power consumption mode control method, the purpose of which is to avoid the problem of chip voltage drop caused by shutting down the first voltage stabilizer when the second voltage stabilizer works abnormally. In order to achieve this goal, the embodiment of the present invention compares the voltage values of the first voltage stabilizer and the second voltage stabilizer to determine whether the second voltage stabilizer can work normally under the current voltage. When the voltage value of the second voltage stabilizer is greater than the voltage value of the first voltage stabilizer, the first voltage stabilizer is shut down and the chip enters the low power consumption mode, thereby improving the stability and reliability of the chip when entering the low power consumption mode.
[0066] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0067] Reference Figure 1 , showing a circuit diagram of a chip low power mode control method according to an embodiment of the present invention. In the embodiment of the present invention, an analog comparator is inserted into the power management circuit, and the outputs of the first voltage regulator and the second voltage regulator are used as the inputs of the positive and negative terminals of the analog comparator respectively. In this way, the voltage values of the first voltage regulator and the second voltage regulator can be compared by the analog comparator to determine whether the second voltage regulator can work normally under the current voltage. Based on this, the chip with abnormal voltage of the second voltage regulator can be screened out, and the voltage of the second voltage regulator can be increased until it can work normally, thereby realizing the control of the second voltage regulator.
[0068] Reference Figure 2, shows a flowchart of a chip low power mode control method according to an embodiment of the present invention, the chip includes a first voltage regulator and a second voltage regulator, the first voltage regulator is a low voltage drop linear regulator in a non-low power mode, and the second voltage regulator is a low voltage drop linear regulator in a low power mode, the method may specifically include the following steps:
[0069] Step 101, upon receiving a voltage boost signal for the second regulator, increasing the voltage of the second regulator;
[0070] In an embodiment of the present invention, the low-power chip has two different low-dropout linear regulators: N_LDO (a low-dropout linear regulator in a non-low-power mode, the first regulator) and LP_LDO (a low-dropout linear regulator in a low-power mode, the second regulator), and the working states of the two low-dropout linear regulators can be adjusted by a controller, such as enabling, shutting down, and adjusting the voltage value. When the chip is running in a non-low-power mode, both the first regulator and the second regulator are enabled. When a boost signal for the second regulator is received, the chip can switch from a non-low-power mode to a low-power mode. During the switching process, the states of the two LDOs change as follows: the first regulator is enabled and the second regulator is shut down; the first regulator is enabled and the second regulator is enabled; the first regulator is shut down and the second regulator is enabled. When the first regulator and the second regulator are enabled, the controller can increase the voltage of the second regulator so that the voltage value of the second regulator is greater than the voltage value of the first regulator to ensure that the second regulator can work normally.
[0071] Step 102, determining whether the voltage value of the second regulator is greater than the voltage value of the first regulator;
[0072] In an embodiment of the present invention, the controller can determine whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator after increasing the voltage of the second voltage regulator, so as to detect whether the voltage value of the second voltage regulator is still less than the voltage value of the first voltage regulator after the voltage of the second voltage regulator is increased.
[0073] Step 103, if the voltage value of the second regulator is less than the voltage value of the first regulator, continue to increase the voltage of the second regulator;
[0074] In an embodiment of the present invention, if after increasing the voltage of the second regulator, the voltage value of the second regulator is still lower than the voltage value of the first regulator, the controller may continue to increase the voltage of the second regulator to ensure that the voltage value of the second regulator is higher than the voltage value of the first regulator.
[0075] Step 104: When the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, turn off the first voltage regulator and enter a low power consumption mode.
[0076] In an embodiment of the present invention, when it is determined that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, the controller can turn off the first voltage regulator and enter a low power consumption mode, thereby reducing power consumption and heat generation when the chip does not require high power output, thereby extending the life of the chip.
[0077] The chip of the embodiment of the present invention includes a first voltage regulator and a second voltage regulator, the first voltage regulator is a low voltage difference linear voltage regulator in a non-low power consumption mode, and the second voltage regulator is a low voltage difference linear voltage regulator in a low power consumption mode; the embodiment of the present invention can increase the voltage of the second voltage regulator when receiving a boost signal for the second voltage regulator, so that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, so as to ensure that the second voltage regulator can work normally; judge whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, so as to detect whether the voltage value of the second voltage regulator is still less than the voltage value of the first voltage regulator after the voltage of the second voltage regulator is increased; if the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, continue to increase the voltage of the second voltage regulator to ensure that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator; when the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, turn off the first voltage regulator and enter the low power consumption mode, so as to avoid the problem of turning off the first voltage regulator when the second voltage regulator works abnormally and causing the chip voltage to drop, thereby improving the stability and reliability of the chip when entering the low power consumption mode.
[0078] Reference Figure 3 , shows a flowchart of another chip low power mode control method according to an embodiment of the present invention, the chip includes a first voltage regulator and a second voltage regulator, the first voltage regulator is a low voltage drop linear regulator in a non-low power mode, and the second voltage regulator is a low voltage drop linear regulator in a low power mode, and the method may specifically include the following steps:
[0079] Step 201, upon receiving a voltage boost signal for the second regulator, increasing the voltage of the second regulator;
[0080] In one embodiment, the voltage value of the second voltage regulator corresponds to a plurality of voltage levels, and the voltage difference between adjacent voltage levels is a preset difference; the step of increasing the voltage of the second voltage regulator may further include: increasing the voltage level of the second voltage regulator.
[0081] In an embodiment of the present invention, when the chip needs to switch from a non-low power mode to a low power mode, the states of the first voltage regulator and the second voltage regulator should be adjusted from the first voltage regulator enabled and the second voltage regulator enabled to the first voltage regulator turned off and the second voltage regulator enabled, respectively. When the first voltage regulator and the second voltage regulator are enabled, the controller can increase the voltage of the second voltage regulator so that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, ensuring that the second voltage regulator can work normally in the low power mode. Specifically, the controller can increase the voltage of the second voltage regulator by raising the second voltage regulator by one gear, that is, by raising the voltage of the second voltage regulator by a preset difference.
[0082] Step 202, determining whether the voltage value of the second regulator is greater than the voltage value of the first regulator;
[0083] In one embodiment, the step of determining whether the voltage value of the second regulator is greater than the voltage value of the first regulator may further include the following sub-steps:
[0084] Sub-step S11, obtaining the flag bit output by the chip;
[0085] Sub-step S12, if the flag bit output by the chip is an error flag bit, determining that the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator;
[0086] Sub-step S13: if the flag bit output by the chip is a correct flag bit, determining that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator.
[0087] In an embodiment of the present invention, the controller can determine whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator after increasing the voltage of the second voltage regulator, so as to detect whether the voltage value of the second voltage regulator is still less than the voltage value of the first voltage regulator after the voltage of the second voltage regulator is increased. Specifically, the controller can obtain the flag bit output by the chip; if the flag bit output by the chip is an error flag bit, it is determined that the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator; if the flag bit output by the chip is a correct flag bit, it is determined that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator.
[0088] For example, an error flag can be set in the digital design of the chip, and the flag is set when the voltage value of the second regulator is less than the voltage value of the first regulator. In software design, the size of LP_LDO can be determined by reading the error flag or the analog comparator output value register bit, and a screening code can be written based on this to screen out chips with abnormal LP_LDO.
[0089] When the analog comparator output is 1, it indicates that after the second voltage regulator is fine-tuned to a higher level, the voltage value is still less than or equal to the voltage value of the first voltage regulator. It also indicates that there is an abnormality in the voltage value of the second voltage regulator, and the second voltage regulator cannot work normally.
[0090] When the analog comparator output is 0, it indicates that the voltage value of the second regulator is greater than the voltage value of the first regulator. At this time, the second regulator can work normally, and the first regulator is turned off, so that the status of the two LDOs in the chip is switched from N_LDO enabled and LP_LDO enabled to N_LDO disabled and LP_LDO enabled, and then it can enter the low power consumption mode normally.
[0091] Step 203, if the voltage value of the second regulator is less than the voltage value of the first regulator, continue to increase the voltage of the second regulator;
[0092] In one embodiment, if the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, the step of continuing to increase the voltage of the second voltage regulator may further include the following sub-steps:
[0093] Sub-step S21, if the voltage value of the second regulator is less than the voltage value of the first regulator, continue to increase the voltage of the second regulator, and record the number of increases;
[0094] In sub-step S22, if the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator and the number of increases reaches a preset number of increases, the low power consumption mode is stopped and the second voltage regulator is turned off, so that the first voltage regulator remains enabled.
[0095] In an embodiment of the present invention, if after increasing the voltage of the second voltage regulator, the voltage value of the second voltage regulator is still less than the voltage value of the first voltage regulator, the controller may increase the voltage of the second voltage regulator again to ensure that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator. The controller may record the number of increases in the process of repeatedly increasing the voltage of the second voltage regulator, and when the number of increases reaches a preset number of increases, a timeout mechanism is set as part of the exception handling. At this time, the controller may stop entering the low power consumption mode and turn off the second voltage regulator, so that the first voltage regulator remains enabled, so as to avoid the problem of chip voltage drop due to the failure of the second voltage regulator to work properly.
[0096] Step 204, if the voltage value of the second regulator is greater than the voltage value of the first regulator, continue to determine whether the voltage value of the second regulator is greater than the voltage value of the first regulator, and record the number of determinations;
[0097] In an embodiment of the present invention, when it is determined that the voltage value of the second voltage stabilizer is greater than the voltage value of the first voltage stabilizer, the controller can repeatedly determine whether the voltage value of the second voltage stabilizer is greater than the voltage value of the first voltage stabilizer to avoid the situation where the voltage value of the second voltage stabilizer is approximately equal to the voltage value of the first voltage stabilizer. If the comparison results within the set number of counts all indicate that the voltage value of the second voltage stabilizer is greater than the voltage value of the first voltage stabilizer, it is considered that the second voltage stabilizer can operate normally; if the voltage value of the second voltage stabilizer is less than the voltage value of the first voltage stabilizer within the set number of counts, it is considered that the second voltage stabilizer is abnormal, or the step of increasing the voltage of the second voltage stabilizer is returned. The embodiment of the present invention can reduce the influence of the critical value by multiple comparisons.
[0098] Step 205: When the number of determinations reaches a preset number of determinations, the first voltage regulator is turned off to enter a low power consumption mode.
[0099] In an embodiment of the present invention, if the comparison results within the set number of counts indicate that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, the controller can turn off the first voltage regulator and enter a low power consumption mode, thereby reducing power consumption and heat generation when the chip does not require high power output, thereby extending the life of the chip.
[0100] In one embodiment, before shutting down the first voltage regulator and entering the low power consumption mode, the method further includes: obtaining a voltage difference between the first voltage regulator and the second voltage regulator; judging whether the voltage value of the second voltage regulator meets a preset condition based on the voltage difference and a preset difference; and shutting down the first voltage regulator and entering the low power consumption mode when the voltage value of the second voltage regulator meets the preset condition.
[0101] In one embodiment, the step of judging whether the voltage value of the second regulator meets a preset condition according to the voltage difference and the preset difference may further include the following sub-steps:
[0102] Sub-step S31, differentially amplifying the voltage difference;
[0103] Sub-step S32, if the voltage difference after differential amplification is greater than the preset difference, determining that the voltage value of the second regulator does not meet the preset condition;
[0104] Sub-step S33: If the voltage difference after differential amplification is less than or equal to the preset difference, it is determined that the voltage value of the second regulator meets the preset condition.
[0105] In an embodiment of the present invention, when the voltage value of the second voltage stabilizer is greater than the voltage value of the first voltage stabilizer, the low power consumption mode can be entered. If the voltage value of the second voltage stabilizer is continuously increased, energy will be lost. Therefore, before turning off the first voltage stabilizer and entering the low power consumption mode, the controller can also determine whether the voltage value of the second voltage stabilizer meets the preset condition based on the voltage difference and the preset difference, that is, whether the voltage difference between the second voltage stabilizer and the first voltage stabilizer does not exceed the voltage difference between adjacent voltage gears (preset difference), so as to ensure that the voltage value of the second voltage stabilizer is the minimum voltage value in the low power consumption mode.
[0106] Specifically, the voltage difference is differentially amplified. If the voltage difference after differential amplification is greater than a preset difference, it is determined that the voltage level of the second voltage regulator has increased too much, and its voltage value is not the minimum voltage value in the low power consumption mode, and the preset condition is not met; if the voltage difference after differential amplification is less than or equal to the preset difference, it is determined that the voltage value of the second voltage regulator is the minimum voltage value in the low power consumption mode, and the preset condition is met.
[0107] For example, assuming that the voltages of N_LDO and LP_LDO are V_N and V_LP respectively, the output voltage V_out of the differential amplifier can be expressed as: Vout = A*(VN - VLP), where A is the gain of the differential amplifier. The output voltage V_out of the differential amplifier and the preset difference V_th can be compared by an analog comparator. The output V_comp of the comparator can include V_high (high level) and V_low (low level).
[0108] Through the output V_comp of the comparator, it can be determined whether the voltage value of the second regulator meets the preset condition. If V_comp is V_high, it means that V_out is greater than V_th, that is, the voltage difference between N_LDO and LP_LDO is greater than the preset difference, indicating that LP_LDO does not meet the preset condition. If V_comp is V_low, it means that V_out is less than or equal to V_th, that is, the voltage difference between N_LDO and LP_LDO is less than or equal to the preset difference, indicating that LP_LDO meets the preset condition.
[0109] In one embodiment, the controller may further sample the voltages of the N_LDO and LP_LDO respectively through an ADC (analog-to-digital converter), and determine whether the voltages of the N_LDO and LP_LDO meet the design requirements based on the analog-to-digital conversion values.
[0110] Specifically, assuming that the output voltages of N_LDO and LP_LDO are V_N and V_LP respectively, and the input voltage range of ADC is V_ADC_min to V_ADC_max. According to the ADC conversion value, it can be judged whether the voltages of N_LDO and LP_LDO meet the design requirements. Assume that the design voltage ranges of N_LDO and LP_LDO are V_N_min to V_N_max, and V_LP_min to V_LP_max respectively.
[0111] The ADC conversion value ADC_value can be expressed as:
[0112] ADC_value=(V input / V ref )×(2 N -1)
[0113] Where V_input is the ADC input voltage.
[0114] According to the designed voltage range and voltage divider circuit, calculate the range of ADC conversion value:
[0115] ADC_value_N_min=(V N_min / V ref )×(2 N -1);
[0116] ADC_value_N_max=(V N_max / V ref )×(2 N -1);
[0117] ADC_value_LP_min=(V LP_min / V ref )×(2 N -1);
[0118] ADC_value_LP_max=(V LP_max / V ref )×(2 N -1).
[0119] By comparing the ADC conversion value and the calculated ADC conversion value range, you can determine whether the voltage meets the design: If ADC_value_N is between ADC_value_N_min and ADC_value_N_max, the voltage of N_LDO meets the design. If ADC_value_LP is between ADC_value_LP_min and ADC_value_LP_max, the voltage of LP_LDO meets the design.
[0120] The chip of the embodiment of the present invention comprises a first voltage regulator and a second voltage regulator, wherein the first voltage regulator is a low voltage difference linear voltage regulator in a non-low power consumption mode, and the second voltage regulator is a low voltage difference linear voltage regulator in a low power consumption mode; the embodiment of the present invention can increase the voltage of the second voltage regulator when receiving a boost signal for the second voltage regulator, so that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, thereby ensuring that the second voltage regulator can work normally; it is judged whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, so as to detect whether the voltage value of the second voltage regulator is still less than the voltage value of the first voltage regulator after the voltage of the second voltage regulator is increased; if the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, the voltage of the second voltage regulator is continuously increased to ensure that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator; when the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, the first voltage regulator is turned off and the low power consumption mode is entered, thereby avoiding the problem of the chip voltage dropping caused by turning off the first voltage regulator when the second voltage regulator works abnormally, thereby improving the stability and reliability of the chip when entering the low power consumption mode.
[0121] Reference Figure 4 , shows a logic diagram of a chip low power mode control method provided by an embodiment of the present invention, in order to enable those skilled in the art to better understand the embodiment of the present invention, the following Figure 4 The embodiments of the present invention are described as follows:
[0122] 1) Before entering the low power mode, the first regulator is enabled and the second regulator is disabled;
[0123] 2) enabling the second voltage regulator, and raising the second voltage regulator by one gear;
[0124] 3) Compare the voltage values of the first voltage stabilizer and the second voltage stabilizer, and add 1 to the counter count value, where the preset number of increase times corresponding to the increase times and the preset number of judgment times corresponding to the judgment times are set to the same value (preset number of times);
[0125] 4) Determine whether the voltage value of the second voltage stabilizer is greater than the voltage value of the first voltage stabilizer;
[0126] 5) If the voltage value of the second voltage stabilizer is less than the voltage value of the first voltage stabilizer, determine whether to continue to increase the gear position of the second voltage stabilizer;
[0127] 6) If it is determined that the gear position of the second voltage regulator is not to be increased, the second voltage regulator is turned off, the first voltage regulator is kept enabled, and an abnormality is reported;
[0128] 7) When it is determined that the second voltage stabilizer gear position continues to be increased, determining whether the count value of the counter has reached a preset number of times to determine whether the number of times the second voltage stabilizer gear position is increased has exceeded;
[0129] 8) If the count value of the counter does not reach the preset number of times, continue to increase the voltage of the second regulator;
[0130] 9) If the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, determine whether the count value of the counter reaches a preset number of times to determine whether the number of times the voltage values of the first voltage regulator and the second voltage regulator are compared meets the comparison condition;
[0131] 10) If the count value of the counter does not reach the preset number of times, continue to determine whether the voltage value of the second regulator is greater than the voltage value of the first regulator;
[0132] 11) If the count value of the counter reaches a preset number of times, the first voltage regulator is turned off to prepare for entering a low power consumption mode.
[0133] The chip of the embodiment of the present invention comprises a first voltage regulator and a second voltage regulator, wherein the first voltage regulator is a low voltage difference linear voltage regulator in a non-low power consumption mode, and the second voltage regulator is a low voltage difference linear voltage regulator in a low power consumption mode; the embodiment of the present invention can increase the voltage of the second voltage regulator when receiving a boost signal for the second voltage regulator, so that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, thereby ensuring that the second voltage regulator can work normally; it is judged whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, so as to detect whether the voltage value of the second voltage regulator is still less than the voltage value of the first voltage regulator after the voltage of the second voltage regulator is increased; if the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, the voltage of the second voltage regulator is continuously increased to ensure that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator; when the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, the first voltage regulator is turned off and the low power consumption mode is entered, thereby avoiding the problem of the chip voltage dropping caused by turning off the first voltage regulator when the second voltage regulator works abnormally, thereby improving the stability and reliability of the chip when entering the low power consumption mode.
[0134] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0135] Reference Figure 5, shows a structural block diagram of a chip low power mode control device provided by an embodiment of the present invention, the chip includes a first voltage regulator and a second voltage regulator, the first voltage regulator is a low voltage drop linear regulator in a non-low power mode, and the second voltage regulator is a low voltage drop linear regulator in a low power mode, which may specifically include the following modules:
[0136] A voltage regulator boosting module 301, configured to boost the voltage of the second regulator upon receiving a boosting signal for the second regulator;
[0137] A voltage regulator determining module 302, configured to determine whether a voltage value of the second voltage regulator is greater than a voltage value of the first voltage regulator;
[0138] The low power consumption mode control module 303 is used to turn off the first voltage regulator and enter the low power consumption mode when the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator.
[0139] The embodiment of the present invention can avoid the problem of chip voltage drop caused by shutting down the first voltage regulator when the second voltage regulator works abnormally, thereby improving the stability and reliability of the chip when entering the low power consumption mode.
[0140] In the embodiment of the present invention, the steps of the voltage regulator voltage boosting module 301 include:
[0141] A regulator repeated voltage boost module submodule, used for continuing to increase the voltage of the second regulator if the voltage value of the second regulator is less than the voltage value of the first regulator, and recording the number of increases;
[0142] The device also includes:
[0143] The low power consumption mode stopping module is used to stop entering the low power consumption mode and shut down the second voltage regulator when the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator and the number of increases reaches a preset number of increases, so as to keep the first voltage regulator enabled.
[0144] The embodiment of the present invention can keep the first voltage regulator enabled by setting a timeout mechanism when the number of increase times reaches a preset number of increase times, so as to avoid the problem of chip voltage drop caused by the second voltage regulator failing to work normally.
[0145] In the embodiment of the present invention, the low power consumption mode control module 303 includes:
[0146] A voltage regulator judging submodule, for, if the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, continuing to judge whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, and recording the number of judgments;
[0147] The low power consumption mode control submodule is used to turn off the first voltage regulator and enter the low power consumption mode when the number of judgment times reaches a preset number of judgment times.
[0148] In the embodiment of the present invention, if the comparison results within the set count times all indicate that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, it is considered that the second voltage regulator can work normally, and the influence of the critical value can be reduced through multiple comparisons. If the comparison results within the set count times all indicate that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, a low power consumption mode can be entered, thereby reducing power consumption and heat generation when the chip does not need high power output, thereby extending the life of the chip.
[0149] In the embodiment of the present invention, before the low power consumption mode control module 303, the device further includes:
[0150] A voltage difference acquisition module, used to acquire a voltage difference between the first voltage stabilizer and the second voltage stabilizer;
[0151] A working state judgment module, used for judging whether the voltage value of the second voltage regulator meets a preset condition according to the voltage difference and a preset difference;
[0152] The normal state judgment module is used to turn off the first voltage regulator and enter a low power consumption mode when the voltage value of the second voltage regulator meets a preset condition.
[0153] The embodiment of the present invention can determine the working state of the second voltage stabilizer according to the voltage difference and the gear difference to ensure that the second voltage stabilizer can work normally.
[0154] In the embodiment of the present invention, the normal state judgment module includes:
[0155] A differential amplifier submodule, used for differentially amplifying the voltage difference;
[0156] a state abnormality judgment submodule, configured to determine that the voltage value of the second voltage regulator does not meet a preset condition if the voltage difference after differential amplification is greater than the preset difference;
[0157] The normal state judgment submodule is used to determine that the voltage value of the second regulator meets the preset condition if the voltage difference after differential amplification is less than or equal to the preset difference.
[0158] In an embodiment of the present invention, the voltage value of the second voltage regulator corresponds to a plurality of voltage levels, and the voltage difference between adjacent voltage levels is the preset difference; the voltage regulator voltage boosting module 301 includes:
[0159] The voltage regulator voltage boosting submodule is used to boost the voltage level of the second voltage regulator.
[0160] In the embodiment of the present invention, the voltage regulator voltage determination module 302 includes:
[0161] A flag bit acquisition submodule, used to acquire the flag bit output by the chip;
[0162] A voltage value less than judgment submodule, used for determining that the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator if the flag bit output by the chip is an error flag bit;
[0163] The voltage value is greater than judgment submodule is used to determine that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator if the flag bit output by the chip is a correct flag bit.
[0164] The chip of the embodiment of the present invention comprises a first voltage regulator and a second voltage regulator, wherein the first voltage regulator is a low voltage difference linear voltage regulator in a non-low power consumption mode, and the second voltage regulator is a low voltage difference linear voltage regulator in a low power consumption mode; the embodiment of the present invention can increase the voltage of the second voltage regulator when receiving a boost signal for the second voltage regulator, so that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, thereby ensuring that the second voltage regulator can work normally; it is judged whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, so as to detect whether the voltage value of the second voltage regulator is still less than the voltage value of the first voltage regulator after the voltage of the second voltage regulator is increased; if the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, the voltage of the second voltage regulator is continuously increased to ensure that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator; when the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, the first voltage regulator is turned off and the low power consumption mode is entered, thereby avoiding the problem of the chip voltage dropping caused by turning off the first voltage regulator when the second voltage regulator works abnormally, thereby improving the stability and reliability of the chip when entering the low power consumption mode.
[0165] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0166] An embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned chip low power consumption mode control method when executing the computer program.
[0167] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned chip low power consumption mode control method are implemented.
[0168] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0169] Those skilled in the art will appreciate that the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more machine-readable media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0170] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0171] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0172] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0173] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0174] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0175] The above is a detailed introduction to a chip low power mode control method, device, equipment and medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A chip low power consumption mode control method, characterized in that: The chip includes a first voltage regulator and a second voltage regulator, the first voltage regulator is a low voltage drop linear regulator in a non-low power consumption mode, and the second voltage regulator is a low voltage drop linear regulator in a low power consumption mode, and the method includes: In case of receiving a voltage boost signal for the second regulator, increasing the voltage of the second regulator; Determining whether the voltage value of the second voltage stabilizer is greater than the voltage value of the first voltage stabilizer; If the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, continue to increase the voltage of the second voltage regulator; When the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, the first voltage regulator is turned off to enter a low power consumption mode.
2. The method according to claim 1, characterized in that: If the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator, continuing to increase the voltage of the second voltage regulator includes: If the voltage value of the second regulator is less than the voltage value of the first regulator, continue to increase the voltage of the second regulator, and record the number of increases; The method further comprises: If the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator and the number of increases reaches a preset number of increases, the low power consumption mode is stopped and the second voltage regulator is turned off, so that the first voltage regulator remains enabled.
3. The method according to claim 1, characterized in that When the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator, turning off the first voltage regulator and entering a low power consumption mode comprises: If the voltage value of the second regulator is greater than the voltage value of the first regulator, continue to determine whether the voltage value of the second regulator is greater than the voltage value of the first regulator, and record the number of determinations; When the number of determinations reaches a preset number of determinations, the first voltage regulator is turned off to enter a low power consumption mode.
4. The method according to claim 1, characterized in that: Before shutting down the first voltage regulator and entering the low power consumption mode, the method further includes: Acquiring a voltage difference between the first regulator and the second regulator; According to the voltage difference and the preset difference, determining whether the voltage value of the second voltage stabilizer meets a preset condition; When the voltage value of the second voltage regulator meets a preset condition, the first voltage regulator is turned off to enter a low power consumption mode.
5. The method according to claim 4, characterized in that The determining, based on the voltage difference and the preset difference, whether the voltage value of the second regulator meets a preset condition includes: performing differential amplification on the voltage difference; If the voltage difference after differential amplification is greater than the preset difference, it is determined that the voltage value of the second regulator does not meet the preset condition; If the voltage difference after differential amplification is less than or equal to the preset difference, it is determined that the voltage value of the second regulator meets the preset condition.
6. The method according to claim 5, characterized in that The voltage value of the second voltage regulator corresponds to a plurality of voltage levels, and the voltage difference between adjacent voltage levels is the preset difference; and the step of increasing the voltage of the second voltage regulator includes: The voltage level of the second voltage regulator is increased.
7. The method according to claim 1, characterized in that The determining whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator includes: Obtaining a flag bit output by the chip; If the flag bit output by the chip is an error flag bit, determining that the voltage value of the second voltage regulator is less than the voltage value of the first voltage regulator; If the flag bit output by the chip is a correct flag bit, it is determined that the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator.
8. A chip low power consumption mode control device, characterized in that: The chip includes a first voltage regulator and a second voltage regulator, the first voltage regulator is a low voltage drop linear regulator in a non-low power consumption mode, and the second voltage regulator is a low voltage drop linear regulator in a low power consumption mode, and the device includes: A voltage regulator boosting module, configured to boost the voltage of the second regulator upon receiving a boosting signal for the second regulator; A voltage regulator judging module, used for judging whether the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator; The low power consumption mode control module is used to turn off the first voltage regulator and enter the low power consumption mode when the voltage value of the second voltage regulator is greater than the voltage value of the first voltage regulator.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of a chip low power consumption mode control method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a chip low power consumption mode control method as described in any one of claims 1 to 7 are implemented.