Voltage stabilization detection method of low dropout linear regulator and electronic device
By acquiring and comparing the output voltage of the low-dropout linear regulator over multiple detection cycles, an error judgment signal is generated, which solves the problem of inaccurate output voltage stability detection in the prior art and achieves higher accuracy and reliability.
Patent Information
- Application Number
- CN202611640065.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-22
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the output voltage stability detection of low-dropout linear regulators is easily affected by noise and ripple, leading to inaccurate detection results and the risk of misjudgment.
The output voltage of the low-dropout linear regulator is acquired in multiple detection cycles and compared with a preset voltage threshold to generate an error judgment signal. If the error judgment signal of multiple detection cycles meets the preset stability condition, the output voltage is determined to be stable.
It improves the accuracy and reliability of voltage stability detection, avoids the randomness caused by single-point sampling, and ensures continuous stability of output voltage.
Smart Images

Figure CN123136165A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a voltage stability detection method and electronic equipment for a low-dropout linear regulator. Background Technology
[0002] In the field of integrated circuits, low-dropout linear regulators (LDLs) provide operating voltages for various modules within the chip. After the chip is powered on, it is necessary to check whether its output voltage is stable. Existing technologies for detecting output voltage stability are relatively simple and susceptible to noise and ripple, leading to inaccurate results and a risk of misjudgment. Therefore, how to reliably detect the stability of the output voltage of a LDL is an urgent problem to be solved. Summary of the Invention
[0003] This disclosure provides a voltage stability detection method and electronic device for a low-dropout linear regulator, thereby at least partially solving the problems of inaccurate voltage stability detection results and easy misjudgment in the prior art.
[0004] According to a first aspect of this disclosure, a voltage stability detection method for a low-dropout linear regulator is provided, comprising: in response to a target chip entering a power-on state, acquiring the output voltage of the low-dropout linear regulator in multiple detection cycles; generating an error determination signal for each detection cycle based on a comparison result of the output voltage in each detection cycle with a preset voltage threshold; and determining that the output voltage of the low-dropout linear regulator is stable and generating a stability determination result if the error determination signals of the multiple detection cycles meet a preset stability condition.
[0005] According to a second aspect of this disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the voltage stability detection method of the low dropout linear regulator of the first aspect by executing the executable instructions.
[0006] The exemplary embodiments disclosed herein have the following beneficial effects: In response to the target chip entering the power-on state, the output voltage of the low-dropout linear regulator is acquired in multiple detection cycles. Based on the comparison between the output voltage in each detection cycle and a preset voltage threshold, an error judgment signal for each detection cycle is generated. If the error judgment signals of multiple detection cycles meet a preset stability condition, the output voltage of the low-dropout linear regulator is determined to be stable, and a stability judgment result is generated. On the one hand, by acquiring the output voltage of the low-dropout linear regulator in multiple detection cycles and comparing it with a preset voltage threshold to generate error judgment signals for each detection cycle, the randomness caused by single-point sampling can be avoided, improving the accuracy of voltage stability detection. On the other hand, by determining that the output voltage is stable only when the error judgment signals of multiple detection cycles meet the preset stability condition and generating a stability judgment result, continuous output voltage stability can be ensured, improving the reliability of stability detection. Attached Figure Description
[0007] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0008] Figure 1 A flowchart is shown for a voltage stability detection method for a low-dropout linear regulator; Figure 2 This diagram illustrates a system architecture of a voltage stability detection circuit for a low-dropout linear regulator. Figure 3 This diagram illustrates the state transitions of a state machine control module. Figure 4 A structural block diagram of a voltage stability detection device for a low-dropout linear regulator is shown. Figure 5 An electronic device for implementing the above method is shown. Detailed Implementation
[0009] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0010] The exemplary embodiments of this disclosure first provide a voltage stability detection method for a low-dropout linear regulator.
[0011] The following is in conjunction with the appendix Figure 1 The exemplary embodiments will be further described as follows: Figure 1 As shown, the voltage stability detection method for a low-dropout linear regulator may include the following steps S110~S130: In step S110, in response to the target chip entering the power supply state, the output voltage of the low dropout linear regulator is acquired in multiple detection cycles.
[0012] The target chip refers to the chip whose output voltage of the integrated low-dropout linear regulator needs to be stabilized. This could be a System-on-Chip (SoC), a Microcontroller Unit (MCU), a processor, or a Field Programmable Gate Array (FPGA). The power supply state refers to the state after the target chip is powered on, when the external power supply voltage is established and the internal modules begin to prepare for operation. For example, after the external power supply to the target chip rises from 0V to its rated voltage, the Power-On Reset (POR) circuit detects that the power supply voltage has reached a threshold and releases a reset signal, thus putting the target chip into the power supply state. The low-dropout linear regulator can be an LDO (Low-Dropout Regulator), which converts the input power supply into a stable output voltage. Examples include a low-dropout linear regulator providing 0.9V to the SoC core and a low-dropout linear regulator providing 1.8V to the input / output interfaces. The detection period refers to the time unit corresponding to one sampling and judgment of the output voltage of the low-dropout linear regulator, such as one system clock cycle, or a sampling window consisting of multiple system clock cycles. The output voltage can be digital voltage data obtained by converting the original analog voltage output by the low-dropout linear regulator. For example, if the low-dropout linear regulator outputs a continuous analog DC voltage, this analog DC voltage can be converted into digital voltage data by an ADC (Analog-to-Digital Converter). The converted digital voltage data is then used as the output voltage for subsequent comparison and judgment.
[0013] Acquiring the output voltage of a low-dropout linear regulator (LDL-LED) across multiple detection cycles means independently acquiring the output voltage once in each of the multiple detection cycles. For example, sampling the LDL-LED's output voltage once in each system clock cycle, and continuously sampling for multiple cycles to obtain multiple output voltage sample values. In one implementation, in response to the target chip entering a power-on state, acquiring the LDL-LED's output voltage across multiple detection cycles can be achieved by sampling the analog voltage output by the LDL-LED via an ADC after the detection circuit starts working, obtaining a digital value, and using this digital value as the output voltage. For example, an analog-to-digital converter (ADC) can convert the sampled analog voltage into a 12-bit digital value in each detection cycle for use by subsequent digital comparison logic.
[0014] By following the steps above, the output voltage of the low-dropout linear regulator can be obtained in multiple detection cycles after the target chip enters the power-on state, providing a data basis for subsequent cycle-by-cycle comparison and stability determination.
[0015] Step S120: Based on the comparison results between the output voltage and the preset voltage threshold in each detection cycle, an error judgment signal for each detection cycle is generated.
[0016] The preset voltage threshold refers to a pre-set voltage reference value or range used to determine whether the output voltage of the low-dropout linear regulator meets the standard. It can be customized based on actual conditions or experience. For example, if the target output voltage is 0.9V, the preset voltage threshold can be set to 0.9V ± 2%, i.e., the range from 0.882V to 0.918V. The comparison result refers to the conclusion obtained by comparing the output voltage within each detection cycle with the preset voltage threshold. For example, the output voltage falls within the range corresponding to the preset voltage threshold, or the output voltage exceeds the preset voltage threshold. The error judgment signal is the signal characterizing the comparison result. For example, the error pass signal ERR_OK (Error OK, error pass) indicates that the output voltage meets the accuracy requirements, while the error fail signal ERR_NG (Error Not Good, error fail) indicates that the output voltage does not meet the accuracy requirements. The error judgment signal can be a binary digital level signal; for example, a high level indicates pass, and a low level indicates fail.
[0017] Based on the comparison results between the output voltage and the preset voltage threshold in each detection cycle, an error judgment signal for each detection cycle is generated. This can be achieved by: sending the sampled output voltage to an on-chip high-precision comparator in each detection cycle and comparing it with the preset voltage threshold generated by an on-chip reference source; the comparator outputting a high or low level as the error judgment signal; or converting the sampled output voltage into a digital quantity via an analog-to-digital converter and then comparing it with the digital quantity of the preset voltage threshold using digital comparison logic to generate the error judgment signal; or subtracting the output voltage from the preset voltage threshold in each detection cycle to obtain the difference, and determining whether the absolute value of the difference is less than a preset accuracy range. If so, an error pass signal is generated; otherwise, an error fail signal is generated.
[0018] Through the above steps, the output voltage of each detection cycle can be converted into a corresponding error judgment signal, providing a cycle-by-cycle judgment basis for subsequent multi-cycle stability judgment.
[0019] Step S130: If the error judgment signals of multiple detection cycles meet the preset stability conditions, the output voltage of the low dropout linear regulator is determined to be stable, and a stability judgment result is generated.
[0020] The preset stability condition refers to the conditions used to determine whether the output voltage of the low-dropout linear regulator has reached a stable state. For example, the error judgment signal for multiple consecutive detection cycles is a qualified error signal, and the number of consecutive detection cycles reaches a preset number. The stability judgment result refers to the conclusion or signal generated after determining that the output voltage is stable, such as the CAL_DONE (Calibration Done) signal, which can be used to control the system reset release of the target chip.
[0021] If the error judgment signals of multiple detection cycles meet the preset stability conditions, the output voltage of the low-dropout linear regulator is determined to be stable, and a stability judgment result is generated. This can be achieved by the detection circuit counting consecutive detection cycles in which the error judgment signal is an error qualified signal, and determining that the output voltage is stable when the consecutive count reaches a preset number, thus generating a stability judgment result; or by the detection circuit determining whether the error judgment signal is an error qualified signal within a preset number of detection cycles, and if so, determining that it is stable; or by the detection circuit monitoring the error judgment signal through a state machine, and when multiple consecutive cycles are error qualified signals, the state machine jumps to the completion state and outputs a stability judgment result.
[0022] By following the steps above, the output voltage of the low-dropout linear regulator can be determined to be stable when the error judgment signals of multiple detection cycles all meet the stability conditions, thereby avoiding misjudgment by single-point sampling and improving the reliability of stability detection.
[0023] Based on the above description, in this exemplary embodiment, in response to the target chip entering a power-on state, the output voltage of the low-dropout linear regulator is acquired in multiple detection cycles. Based on the comparison results of the output voltage in each detection cycle with a preset voltage threshold, an error determination signal for each detection cycle is generated. If the error determination signals of multiple detection cycles meet a preset stability condition, the output voltage of the low-dropout linear regulator is determined to be stable, and a stability determination result is generated. On the one hand, by acquiring the output voltage of the low-dropout linear regulator in multiple detection cycles and comparing it with a preset voltage threshold to generate an error determination signal for each detection cycle, the randomness caused by single-point sampling can be avoided, improving the accuracy of voltage stability detection. On the other hand, by determining that the output voltage is stable only when the error determination signals of multiple detection cycles meet the preset stability condition and generating a stability determination result, the continuous stability of the output voltage can be ensured, improving the reliability of stability detection.
[0024] In one embodiment, generating an error determination signal for each detection cycle based on the comparison results between the output voltage and a preset voltage threshold within each detection cycle may include: If the difference between the output voltage and the preset voltage threshold within the detection period exceeds the preset accuracy range, the error judgment signal of the detection period is determined to be invalid. If the difference between the output voltage and the preset voltage threshold within the detection period does not exceed the preset accuracy range, then the error judgment signal of the detection period is determined to be valid.
[0025] The difference between the output voltage and the preset voltage threshold reflects the deviation of the output voltage from the preset voltage threshold within the detection cycle. For example, if the preset voltage threshold is 0.9V and the sampled output voltage within the detection cycle is 0.85V, the absolute value of the difference is 0.05V; or if the sampled output voltage is 0.93V, the absolute value of the difference is 0.03V. The preset accuracy range refers to the maximum tolerance range within which the output voltage deviates from the preset voltage threshold. For example, if the target output voltage is 0.9V, a preset accuracy range of ±2% means the allowed output voltage range is 0.882V to 0.918V; or a preset accuracy range of ±3% means the allowed output voltage range is 0.873V to 0.927V. The preset accuracy range can be configured according to the power supply accuracy requirements of the module powered by the low-dropout linear regulator. An invalid state refers to a state where the output voltage of the current detection cycle does not meet the preset accuracy requirements, indicated by the error judgment signal. For example, the error judgment signal is low-level or an error failure signal. The valid state refers to the state in which the output voltage of the current detection cycle meets the preset accuracy requirements, such as the error judgment signal being at a high level or the error judgment signal being an error qualified signal.
[0026] Determining whether the difference between the output voltage and the preset voltage threshold within the detection period exceeds the preset accuracy range can be achieved in several ways. For example, the sampled output voltage and the preset voltage threshold can be input to an on-chip comparator, which directly outputs the comparison result. When the output voltage is higher than the upper limit of the preset voltage threshold or lower than the lower limit, the comparator outputs an invalid state. Alternatively, the sampled output voltage can be converted into a digital quantity by an analog-to-digital converter, and a digital subtractor can calculate the difference between this digital quantity and the digital quantity corresponding to the preset voltage threshold. The absolute value of the difference is then compared with the digital quantity corresponding to the preset accuracy range. If the absolute value is greater than the digital quantity corresponding to the preset accuracy range, the error judgment signal is determined to be invalid; otherwise, the error judgment signal is determined to be valid. A window comparator can also be set, which has an upper and lower threshold. When the sampled voltage falls between the upper and lower thresholds, it outputs a valid state; when the sampled voltage is higher than the upper threshold or lower than the lower threshold, it outputs an invalid state.
[0027] Through the above implementation method, the comparison result of the output voltage of each detection cycle with the preset voltage threshold can be converted into an error judgment signal of effective state or invalid state, providing a clear cycle-by-cycle judgment basis for subsequent multi-cycle stability judgment.
[0028] In one implementation, the error determination signals of the above-mentioned multiple detection cycles satisfy a preset stability condition, which may include: The number of multiple detection cycles reaches the preset number, and the error judgment signal of each detection cycle is in a valid state.
[0029] The preset quantity refers to the minimum number of consecutive effective detection cycles required to determine output voltage stability, such as 16 or 32 detection cycles. The preset quantity can be configured according to the loop response characteristics, system clock frequency, and noise immunity requirements of the low dropout linear regulator. Reaching the preset quantity means that the cumulative number of effective detection cycles is equal to or greater than the preset quantity. For example, if the preset quantity is 16, and the error judgment signal is valid for 16 consecutive detection cycles, then the preset quantity has been reached.
[0030] To determine whether the number of multiple detection cycles has reached a preset number and whether the error judgment signal of each detection cycle is valid, the count value of the stable cycle counter can be checked at the end of each detection cycle. A stable cycle refers to the detection cycle in which the error judgment signal is valid. The stable cycle counter is used to count the number of consecutive detection cycles in which the error judgment signal is valid. When the count value reaches a preset number (e.g., 16), the preset stability condition is met. The stable cycle counter checks the error judgment signal at the end of each detection cycle; if it is valid, the count value is incremented. When the count value reaches 16, the preset stability condition is met. Alternatively, a shift register can be set for each detection cycle. The error determination signal is periodically shifted into a shift register. When the number of consecutive valid states stored in the shift register reaches a preset number, the preset stability condition is determined to be met. For example, if the shift register has a bit width of 16, the error determination signal is shifted into the least significant bit of the shift register in each detection cycle. When all bits in the shift register are valid states, the preset stability condition is determined to be met. Alternatively, after the state machine detects that the error determination signal is valid for a preset number of consecutive detection cycles, it jumps from the convergence determination state to the calibration completion state, determining that the preset stability condition is met. For example, after the state machine receives valid states for 16 consecutive detection cycles, it jumps from the convergence determination state to the calibration completion state and outputs the stability determination result.
[0031] The above implementation method requires that the error judgment signals of multiple consecutive detection cycles are all in a valid state and the number reaches a preset number in order to meet the preset stability conditions. This effectively suppresses accidental misjudgments caused by power supply noise, voltage ripple and comparator offset, and significantly improves the robustness of voltage stability judgment.
[0032] In one embodiment, the above method may further include: Count the detection cycles in which the error judgment signal is in a valid state; If the error determination signal for the current detection cycle is determined to be invalid, the count is cleared to zero, the output voltage of the low-dropout linear regulator in the next detection cycle is obtained, and the error determination signal for the next detection cycle is generated based on the comparison result between the output voltage of the next detection cycle and the preset voltage threshold.
[0033] Counting the detection cycles in which the error determination signal is valid means incrementing the count by one each time the error determination signal of a detection cycle is determined to be valid. For example, a stable cycle counter checks the error determination signal at the end of each detection cycle; if it is valid, the count is incremented. Resetting the count to zero means resetting the accumulated number of valid detection cycles to its initial value. For example, a stable cycle counter resets its count to zero. The next detection cycle refers to the detection cycle following the end of the current detection cycle. For example, if the current detection cycle is the 5th cycle, the next detection cycle is the 6th cycle.
[0034] Counting the detection cycles in which the error determination signal is valid can be implemented using a hardware binary counter. At the end of each detection cycle, the counter increments based on the level of the error determination signal. For example, a stable cycle counter increments when the error determination signal is detected as valid. If the error determination signal for the current detection cycle is determined to be invalid, the counter is reset to zero, and the output voltage for the next detection cycle is acquired. Alternatively, the detection circuit can immediately reset the stable cycle counter to zero upon detecting an invalid state, and the state machine returns to the calibration iteration state to restart sampling and comparison of the output voltage for the next detection cycle. For instance, if the stable cycle counter has a count of 10 and the error determination signal for the current detection cycle is invalid, the count is reset to zero. The system acquires the output voltage for the next detection cycle. Based on the comparison between the output voltage of the next detection cycle and a preset voltage threshold, it generates an error judgment signal for the next detection cycle. If the error judgment signal for the next detection cycle is valid, the count value is incremented from zero. Alternatively, a count value can be maintained in software and updated at the end of each detection cycle. If the error judgment signal for the current detection cycle is invalid, the count value is cleared and the output voltage for the next detection cycle is acquired. Another option is to set a shift register, which shifts the error judgment signal into the shift register each detection cycle. If the error judgment signal for the current detection cycle is invalid, the shift register is cleared and the output voltage for the next detection cycle is acquired.
[0035] Through the above implementation method, it can be ensured that the preset stability condition can only be met when the error judgment signal of multiple consecutive detection cycles is in a valid state. If an invalid state occurs in any detection cycle, the count is cleared and re-accumulated, thereby avoiding misjudgment caused by occasional valid states and further improving the reliability of voltage stability judgment.
[0036] In one embodiment, when the difference between the output voltage and a preset voltage threshold within a detection period exceeds a preset accuracy range, the above method may further include: The error judgment signal determines whether to send an adjustment signal to the low-dropout linear regulator, so as to drive the low-dropout linear regulator to adjust the output voltage according to the adjustment signal.
[0037] In this context, the adjustment signal refers to the control signal used to drive the low-dropout linear regulator to adjust its output voltage. For example, a trimming control signal instructs the low-dropout linear regulator to adjust the trimming position configuration of its internal trimming circuit, changing the output voltage in steps. Sending the adjustment signal refers to the action of the detection circuit outputting an adjustment signal to the low-dropout linear regulator. For instance, the state machine control module outputs a trimming control signal to the low-dropout linear regulator through the trimming control signal interface. Driving the low-dropout linear regulator to adjust its output voltage means that after receiving the adjustment signal, the low-dropout linear regulator changes the configuration of its internal trimming circuit according to the signal, thereby bringing its output voltage closer to the target value.
[0038] The state machine control module determines whether to send an adjustment signal to the low-dropout linear regulator (LDL-LED) based on the error judgment signal. This can be achieved by sending the adjustment signal when the error judgment signal is invalid, and not sending it when the error judgment signal is valid. For example, if the error judgment signal is invalid in a certain detection cycle, the state machine control module sends a trimming control signal to the LDL-LED. Upon receiving this signal, the LDL-LED adjusts the trimming position configuration of its internal trimming circuit to bring the output voltage closer to the target value. After adjustment, the detection circuit re-acquires the output voltage and continues the comparison and judgment steps. Alternatively, the state machine control module can... The control module determines the adjustment direction and amount based on the error judgment signal and sends an adjustment signal including a trimming control word to the low dropout linear regulator. The low dropout linear regulator adjusts its trimming circuit according to the trimming control word. For example, when the error judgment signal is invalid and the output voltage is lower than the preset voltage threshold, the state machine control module outputs a trimming control word that increases the output voltage of the trimming circuit. Alternatively, at the end of each detection cycle, the state machine control module determines whether to update the trimming control signal based on the level of the error judgment signal. If the error judgment signal is invalid, the trimming control signal is updated and sent to the low dropout linear regulator. If the error judgment signal is valid, the current trimming control signal remains unchanged.
[0039] Through the above implementation method, when the output voltage does not meet the accuracy requirements, the low dropout linear regulator can be driven to adjust its output voltage, so that the output voltage gradually converges to the target accuracy range, providing a basis for subsequent multi-cycle stability determination.
[0040] In one embodiment, after the target chip enters a powered state, the above method may further include: Start timing the cumulative voltage calibration duration for the low-dropout linear regulator; If the cumulative voltage calibration time exceeds the preset time threshold, a timeout signal will be triggered.
[0041] The cumulative voltage calibration time refers to the time elapsed from when the target chip enters the power-on state to the current moment. It can be used to reflect the length of time it takes for the low-dropout linear regulator to establish its output voltage from the beginning to the current moment, such as the accumulated time elapsed since the detection circuit started working after the target chip's power-on reset signal is released. The preset time threshold is the maximum allowable time used to determine whether the calibration has timed out. It can be configured according to the loop characteristics and load conditions of the low-dropout linear regulator, such as 500 microseconds or 1 millisecond. The timeout signal is a signal used to indicate that the cumulative voltage calibration time has exceeded the preset time threshold, such as a highly active timeout flag signal.
[0042] The timing for initiating the cumulative voltage calibration duration for a low-dropout linear regulator can be achieved in several ways. First, a hardware counter can be used to count the system clock cycles, incrementing the count by one for each clock cycle. The count value multiplied by the clock cycle gives the cumulative voltage calibration duration. For example, a timeout protection unit could have a built-in counter that starts counting the system clock cycles from the moment the target chip enters power-on mode. Second, an analog timing circuit, such as an RC delay circuit, can be used. This circuit determines the cumulative voltage calibration duration by measuring the capacitor charging time, indicating that the cumulative voltage calibration duration has reached the preset threshold when the capacitor voltage reaches that threshold. Finally, a watchdog timer can be used to time the calibration process. For instance, a watchdog timer can start counting after the target chip enters power-on mode, and output a timeout signal when the count value reaches the preset duration threshold.
[0043] If the cumulative voltage calibration time exceeds a preset time threshold, a timeout signal is triggered. This can be achieved by a hardware comparator comparing the timer's count value with the count value corresponding to the preset time threshold. When the count value exceeds the preset time threshold, a timeout signal is output. For example, if the preset time threshold is 500 microseconds, the timer starts counting system clock cycles from the moment the target chip enters the power-on state. When the cumulative voltage calibration time corresponding to the count value reaches 500 microseconds, the timeout protection unit triggers the timeout signal. Alternatively, the state machine can check whether the timer's count value exceeds the preset time threshold in each clock cycle. If it does, a timeout signal is triggered. For example, the state machine queries the output of the timeout protection unit in each clock cycle. When the timeout protection unit outputs a high level, the state machine determines to trigger the timeout signal.
[0044] In the specific implementation process, the timeout protection unit can keep track of the cumulative voltage calibration time in real time. If the cumulative voltage calibration time exceeds the preset time threshold but no calibration convergence signal is detected, it will immediately output a timeout signal to the state machine, and the state machine will then jump to the abnormal timeout state.
[0045] The above implementation provides hardware-level timeout protection for the calibration process of low dropout linear regulators. Regardless of the cause of the calibration anomaly, the current testing process can be effectively terminated, avoiding chip initialization failure and abnormal power consumption caused by continuous calibration loop.
[0046] In one implementation, after triggering the timeout signal, the above method may further include: Increment the retry count by one; Determine whether the retry count has reached the preset number of retries; If the retry count does not reach the preset number of retry attempts, the cumulative voltage calibration time is reset to zero, and the output voltage of the low-dropout linear regulator is reacquired in the next detection cycle. If the retry count reaches the preset number of retry attempts, the voltage stability detection is determined to have failed.
[0047] The retry count is a counter used to record the number of times the detection process is restarted after a timeout. For example, a retry counter can have an initial value of zero, incrementing by one after each timeout signal. The preset number of retries can be the maximum number of times the detection process is allowed to restart. This can be configured based on the reliability of the low-dropout linear regulator and the system startup time requirements, such as 3 or 5 times. Resetting the accumulated voltage calibration timer means resetting the timer count to zero and restarting the timing. Reacquiring the output voltage of the low-dropout linear regulator in the next detection cycle means restarting the detection process, re-executing the comparison, judgment, and adjustment steps from the point of acquiring the output voltage. Determining voltage stability detection failure means determining that the voltage stability detection was not successfully completed, for example, the state machine remains in an abnormal timeout state, and no more stability judgment results are generated.
[0048] The retry counter is incremented by one, and it is determined whether the retry count has reached the preset number of retries. This can be achieved by the state machine entering an abnormal timeout state, incrementing the retry counter, and then checking if the count equals the preset number of retries. For example, if the preset number of retries is 3, after the first timeout, the retry counter increments to 1, which is less than 3, and a retry is performed. If after the third timeout, the retry counter increments to 3, reaching the preset number of retries, then the voltage stability detection is considered to have failed. Alternatively, the state machine can compare the retry counter with the preset number of retries. If the retry counter is less than the preset number of retries, a retry is performed; if the retry counter equals the preset number of retries, the detection is considered to have failed. For example, the state machine can query the current value of the retry counter after each timeout signal is triggered and determine whether to perform a retry based on the current value.
[0049] If the retry count does not reach the preset number of retry attempts, the cumulative voltage calibration timer is reset and the output voltage of the low-dropout linear regulator in the next detection cycle is reacquired. This can be achieved by the state machine resetting the iteration counter, stabilization period counter, and timeout counter when the retry count does not reach the preset number of retry attempts, automatically jumping to the calibration idle state, and restarting the calibration process. For example, if the preset number of retry attempts is 3, and the retry count is 1 after the first timeout (not reaching 3), the cumulative voltage calibration timer is reset and the output voltage is reacquired. If it times out again, the retry count is incremented to 2. If it does not reach 3, it is reset again and retryed. Alternatively, the state machine can reset only the timeout counter and stabilization period counter, retaining the iteration counter, and reacquire the output voltage when the retry count does not reach the preset number of retry attempts. Finally, the state machine can reset all counters and wait a preset waiting time before reacquiring the output voltage when the retry count does not reach the preset number of retry attempts. Additionally, if a stability determination result is generated after re-performing the test, the timeout retry calibration success register is set. The timeout retry calibration success register can be used to record the status of a successful retry after a timeout.
[0050] If the retry count reaches the preset number of retries, the voltage stability detection is determined to have failed. The state machine may remain in an abnormal timeout state, and the calibration failure flag register may be set. At this time, the calibration completion hardware signal remains invalid, and the system is always in a reset protection state. For example, if the preset number of retries is 3, and the retry count reaches 3 after the third timeout, the voltage stability detection is determined to have failed, the calibration failure flag register is set and remains in a failed state for external debuggers to read.
[0051] The above implementation method can provide a limited number of automatic retry opportunities for occasional timeouts, avoiding calibration failures caused by occasional factors such as power supply jitter or electrostatic discharge. At the same time, if multiple retries still fail, it can be determined that the voltage stability detection has failed, preventing the system from starting when the output voltage of the low dropout linear regulator is unstable.
[0052] In one embodiment, the low-dropout linear regulator includes multiple output voltages, and the acquisition of the output voltages of the low-dropout linear regulator in multiple detection cycles may include: The output voltage of each of the multiple output voltages of the low dropout linear regulator is obtained in multiple detection cycles; If the error judgment signals of multiple detection cycles meet the preset stability conditions, then the output voltage of the low-dropout linear regulator is determined to be stable, which may include: When the error judgment signal of each channel is in an effective state in multiple detection cycles, the output voltage of the low dropout linear regulator is determined to be stable.
[0053] In this context, "multiple output voltages" refers to the simultaneous output of multiple independent voltages by a low-dropout linear regulator. For example, a first output voltage might provide 0.9V to the SoC core, a second output voltage might provide 1.8V to the input / output interface, and a third output voltage might provide 1.2V to the analog module. "Each output voltage's error judgment signal is valid across multiple detection cycles" means that for each of the multiple output voltages, the error judgment signal generated in each of the multiple detection cycles is valid. For example, the first output voltage's error judgment signal might be valid for 16 consecutive detection cycles, the second output voltage's error judgment signal might be valid for 16 consecutive detection cycles, and the third output voltage's error judgment signal might be valid for 16 consecutive detection cycles.
[0054] Acquiring the output voltage of each of the multiple output voltages of a low-dropout linear regulator within multiple detection cycles can be achieved in various ways. For example, the error detection module can be configured with multiple independent comparison channels, each channel monitoring one output of the low-dropout linear regulator. Within each detection cycle, each channel samples its corresponding output voltage. For instance, if the low-dropout linear regulator outputs 0.9V and 1.8V, the error detection module can be configured with two independent comparison channels: the first channel samples the 0.9V output voltage within each detection cycle, and the second channel samples the 1.8V output voltage within each detection cycle. Alternatively, a multiplexer can be used to sequentially select each output voltage, sampling multiple output voltages in a time-division multiplexing manner within a detection cycle. For example, the multiplexer sequentially selects the first and second output voltages according to a preset order and sends them to the same comparator for comparison. Another example is that each output voltage can be configured with an independent error detection module, with each error detection module operating in parallel to generate an error judgment signal for each output voltage.
[0055] When the error judgment signal for each channel is valid across multiple detection cycles, the output voltage of the low-dropout linear regulator can be determined to be stable. For example, the error detection module can perform an AND operation on each error judgment signal. Only when all monitored low-dropout linear regulator output voltages simultaneously meet the accuracy requirements will the error detection module output a valid error pass signal. For instance, if the low-dropout linear regulator outputs two voltages, 0.9V and 1.8V, and the corresponding error judgment signals are input to an AND logic gate, the gate outputs a high level only when both error judgment signals are valid, thus determining that the output voltage of the low-dropout linear regulator is stable. For example, the state machine can determine whether the error judgment signals of multiple detection cycles corresponding to each output voltage are all valid. A stable judgment result is generated only when all of them are satisfied. For example, the state machine sequentially checks the error judgment signals of the first and second channels for 16 consecutive detection cycles. When both channels are satisfied, it jumps to the calibration completion state. For example, each output voltage can be configured with an independent stable cycle counter. The output voltage is determined to be stable only when all stable cycle counters reach a preset number. For example, the first channel is configured with a first stable cycle counter, and the second channel is configured with a second stable cycle counter. The output voltage is determined to be stable when both counters reach 16.
[0056] Through the above implementation method, the output voltage of each output of the multi-output low-dropout linear regulator can be detected separately, and a stability judgment result is generated only when all output voltages are stable, thereby ensuring that all modules in the target chip that rely on the low-dropout linear regulator for power supply can operate under a stable power supply voltage.
[0057] In one embodiment, the above method may further include: Record at least one of the following status information in the status register group: Information indicating whether the system is currently in a busy state during the detection process; The error determination signal indicates whether it is in a valid or invalid state. Information on the actual number of detection cycles performed in the comparison; Timeout status information indicating whether a timeout signal has been triggered; Whether a completion flag indicating whether a stable determination result has been generated has been generated.
[0058] The status register group refers to a set of hardware registers composed of multiple registers used to record the status information of the detection process. Examples include a calibration busy status register, a calibration error status register, an iteration count register, a timeout status register, a calibration completion flag register, a timeout recalibration completion register, and a calibration failure flag register. The busy status information indicates whether the detection process is currently underway; for example, a high level in the calibration busy status register indicates that detection is in progress, while a low level indicates that detection is complete. The judgment result information records whether the error judgment signal is valid or invalid; for example, the calibration error status register records the judgment result of the current error detection module and the voltage deviation direction information of each low-dropout linear regulator. The detection cycle count information records the actual number of detection cycles performed; for example, the iteration count register records the actual number of comparisons performed in this detection process. The timeout status information records whether a timeout signal has been triggered; for example, the timeout status register records whether a timeout exception has occurred. The completion flag information records whether a stable judgment result has been generated; for example, the calibration completion flag register records whether the detection has been finally completed.
[0059] The state information is recorded in the state register group. For example, the state machine can write the corresponding state information into the corresponding register at each stage of the detection process. For example, the calibration busy state register is set in the calibration iteration state, the stable cycle count value is written into the register in the convergence determination state, and the calibration completion flag register is set in the calibration completion state. For example, the state register group can be automatically updated by hardware logic. For example, the error determination signal is directly connected to the input of the calibration error state register and is automatically latched at the end of each detection cycle. For example, the state machine can update the state register group when the state transitions. For example, when transitioning from the calibration iteration state to the convergence determination state, the error determination result is written into the calibration error state register.
[0060] Through the above implementation methods, the real-time latching and recording of the entire process of low-dropout linear regulator detection can be achieved, making the detection process traceable and providing data support for chip mass production testing and on-site fault diagnosis.
[0061] In one implementation, the aforementioned status register group employs a dual-bus access architecture: The above methods may also include: After generating the stability determination result, the digital core of the target chip accesses the status register group through the system bus to obtain status information and monitor the system operation status based on the status information. If a stable determination result cannot be generated, the debugger accesses the status register group through the independent debug bus to obtain status information for fault analysis.
[0062] The status register set refers to a collection of hardware registers used to record the status information of the detection process. Examples include a calibration busy status register, a calibration error status register, an iteration count register, a timeout status register, a calibration completion flag register, a timeout recalibration completion register, and a calibration failure flag register. A dual-bus access architecture refers to an architecture where the status register set supports access from two independent buses simultaneously, such as a system bus and a dedicated debug bus. The system bus refers to the bus used by the target chip's internal digital core to access peripherals and memory, such as the Advanced High Performance Bus (AHS). The dedicated debug bus refers to a bus independent of the system bus used by the debugger to access the chip's internal registers, such as the JTAG (Joint Test Action Group) bus. The digital core refers to the processor core in the target chip that executes program code. The debugger refers to an external device used for debugging and fault analysis of the target chip. The status information includes at least one of the following recorded in the status register set: busy status information, judgment result information, number of detection cycles information, timeout status information, and completion flag information. Fault analysis refers to determining the cause of detection failure and abnormal situations in the detection process based on status information. For example, it can determine whether the detection failure was caused by a timeout based on the timeout status register and calibration failure flag register.
[0063] After generating a stability determination result, the digital kernel can access the status register group through the system bus to obtain status information. For example, after the system reset is released, the digital kernel can read the status information in the status register group through the system bus. For instance, when the low-dropout linear regulator is successfully detected and the system is reset, the digital kernel can read the calibration completion flag register and the iteration count register through the system bus to obtain the completion status of this detection and the actual number of comparisons performed, so as to monitor the convergence of this detection. For example, the digital kernel can periodically read the status register group through the system bus during the execution of the business program. For instance, the digital kernel can read the calibration error status register once every preset time to monitor the current determination result of the low-dropout linear regulator output voltage, so as to continuously monitor the output voltage status of the low-dropout linear regulator. For example, the digital kernel can read the status register group through the system bus when an anomaly occurs. For instance, when a power anomaly occurs during the execution of the business program, the digital kernel can read the timeout status register and the calibration completion flag register to obtain the historical status of the detection process, so as to trace and analyze the detection process before the power anomaly occurred.
[0064] If a stability determination result cannot be generated, such as a voltage stability detection failure, the debugger can access the status register group through an independent debug bus to obtain status information for fault analysis. For example, the debugger can read the status register group through the independent debug bus when the detection fails and the system remains in a reset state. For example, when a low-dropout linear regulator fails to detect and the system remains in a reset state, the debugger can read the timeout status register and calibration failure flag register through the independent debug bus to analyze whether the detection failure was caused by a timeout. For example, the debugger can read the iteration count register and calibration error status register through the independent debug bus. For example, the debugger can read the iteration count register to obtain the actual number of comparisons performed in this detection, and read the calibration error status register to obtain the voltage deviation direction information of each low-dropout linear regulator, and analyze the voltage deviation trend during the detection process. For example, the debugger can read the status register group through the independent debug bus during the chip mass production testing phase. For example, in chip mass production testing, the automatic test equipment reads the status information in the status register group through the independent debug bus to statistically analyze the anomaly type and distribution of the chips that failed the detection.
[0065] Through the above implementation method, the status register group adopts a dual-bus access architecture. After successful detection and system reset, the digital kernel can query the status information through the system bus. When the detection fails and the system remains in the reset state, the debugger can query the status information through an independent debug bus for fault analysis, thereby realizing full traceability of the detection process and fault analysis.
[0066] In one implementation, after generating the stability determination result, the above method may further include: Generate calibration completion hardware signal; The calibration completion hardware signal is used to control the reset and release of the target chip.
[0067] The calibration complete hardware signal refers to the hardware signal used to indicate that the output voltage of the low-dropout linear regulator has stabilized, such as the CAL_DONE signal, which can be either a high or low active signal. Reset release refers to the target chip's system reset switching from an active state to an inactive state, allowing the digital kernel to begin executing program code. For example, the system reset signal switches from low to high, and the digital kernel fetches instructions from the reset vector address. Controlling the target chip's reset release means that the calibration complete hardware signal directly or indirectly controls the reset control unit, ensuring that the system reset is released only after the low-dropout linear regulator's output voltage has stabilized.
[0068] In this embodiment, after generating a stability determination result, a calibration completion hardware signal can be generated. For example, after generating the stability determination result, the state machine enters the calibration completion state and sets the calibration completion hardware signal in this state. This signal is directly output to the reset control unit via a hardwired connection. For instance, after the error determination signal is valid for 16 consecutive detection cycles, the state machine generates a stability determination result, jumps from the convergence determination state to the calibration completion state, and sets the calibration completion hardware signal to a high level. This high-level signal is transmitted to the release terminal of the reset control unit via a dedicated hardwired connection. Alternatively, after generating the stability determination result, the state machine generates the calibration completion hardware signal by writing to a register. For example, the state machine sets the calibration completion flag register, and the output of this register is output to the reset control unit as the calibration completion hardware signal. Or, after generating the stability determination result, the state machine generates the calibration completion hardware signal via a pulse signal. For example, the state machine outputs a pulse signal of a preset width as the calibration completion hardware signal, and the reset control unit executes a reset release upon detecting this pulse signal.
[0069] The calibration completion hardware signal can be used to control the reset release of the target chip. For example, the calibration completion hardware signal is directly connected to the release terminal of the reset control unit, forming a pure hardware AND logic. When the calibration completion hardware signal is valid and the power-on reset signal has been released, the reset control unit outputs a system reset release signal. For instance, the calibration completion hardware signal and the power-on reset signal are respectively connected to the two input terminals of an AND logic gate, and the output terminal of the AND logic gate is connected to the system reset release terminal. The AND logic gate outputs a high level only when both signals are high, thus releasing the system reset. For example, the calibration completion hardware signal notifies the processor core through the interrupt controller, and the processor core performs the reset release operation. For instance, the calibration completion hardware signal triggers the interrupt controller to generate an interrupt request, and the processor core, after responding to the interrupt, releases the system reset by writing to the reset control register. For instance, the calibration completion hardware signal controls the reset release through the reset control register. For instance, the calibration completion hardware signal serves as a set condition for a certain bit in the reset control register; when that bit is set, the reset control unit releases the system reset.
[0070] Through the above implementation method, a calibration completion hardware signal can be generated after the output voltage of the low dropout linear regulator is truly stable. This signal can then be used to control the reset and release of the target chip, achieving hardware-level synchronization between detection completion and system reset and release, thus ensuring that the system starts working under a stable power supply voltage.
[0071] In one implementation, the aforementioned calibration completion hardware signal and the power-on reset signal of the target chip jointly control the reset release, and the reset remains valid until the calibration completion hardware signal takes effect.
[0072] The power-on reset signal refers to the reset signal generated by the power-on reset circuit after the target chip is powered on, used to initialize the chip's internal logic. For example, the POR (Power-On Reset) signal is released after the power supply voltage reaches a threshold. Joint control of reset release means that the calibration completion hardware signal and the power-on reset signal jointly determine whether the system reset is released through logical operations, such as through an AND logic gate. The system reset is released only if both signals are valid. Before the calibration completion hardware signal takes effect refers to the stage before the calibration completion hardware signal is set to an active state. For example, the calibration completion hardware signal remains in an inactive state when the output voltage of a low-dropout linear regulator has not yet stabilized. Reset remains active means that the system reset is always active, and the digital core is forced to remain in the reset state without executing program code.
[0073] The calibration completion hardware signal and the power-on reset signal can jointly control the reset release. For example, both signals are input to an AND gate, and the output of the AND gate is connected to the system reset release terminal. The AND gate outputs a high level to release the system reset if and only if both signals are high. For instance, the calibration completion hardware signal and the power-on reset signal are respectively connected to the two inputs of the AND gate, and the output of the AND gate is connected to the system reset release terminal. When the power-on reset signal has been released but the calibration completion hardware signal has not yet taken effect, the AND gate outputs a low level, the system reset remains active, and the digital kernel does not execute program code. When the calibration completion hardware signal takes effect, the AND gate outputs a high level, the system reset is released, and the digital kernel starts executing. The program code is executed. For example, the calibration completion hardware signal and the power-on reset signal are input to the reset control unit. The reset control unit determines whether to release the system reset based on the state of the two signals. For example, the reset control unit has a state machine inside. The state machine only outputs the reset release signal when it detects that the power-on reset signal has been released and the calibration completion hardware signal is valid. For example, the calibration completion hardware signal is used as the enable condition for the power-on reset signal. The release of the power-on reset signal can only be transmitted to the system reset terminal when the calibration completion hardware signal is valid. For example, the power-on reset signal passes through an AND gate controlled by the calibration completion hardware signal. The other input of the AND gate is connected to the power-on reset signal, and the output of the AND gate is connected to the system reset terminal.
[0074] The above implementation method ensures that the system is forced to remain in the reset state before the calibration completion hardware signal takes effect, regardless of whether the power-on reset is completed. This eliminates the risk of premature system startup when the output voltage of the low dropout linear regulator is unstable at the hardware level.
[0075] Figure 2A system architecture diagram of a voltage stability detection circuit for a low dropout linear regulator is shown. Specifically, it may include a low dropout linear regulator to be calibrated 210, an analog-to-digital converter 220, an error detection module 230, a state machine control module 240, a counting module 250, a timeout protection unit 260, and a status register unit 270.
[0076] During operation, after the chip is powered on, the state machine control module 240 enters the calibration iteration state from the calibration idle state, outputting a Trim control signal to the low-dropout linear regulator 210 to drive iterative adjustment of its output voltage. Simultaneously, the state machine control module 240 outputs a count start / reset signal to the counting module 250 to initiate iteration counting and stabilization cycle counting, and outputs a start / count reset signal to the timeout protection unit 260 to initiate timeout timing. The low-dropout linear regulator 210 outputs a real-time output voltage. The analog-to-digital converter 220 receives this real-time output voltage, converts it into digital voltage data, and outputs it to the error detection module 230. The error detection module 230 receives this digital voltage data, compares it with a preset voltage threshold, generates an error judgment signal, and outputs it to the state machine control module 240.
[0077] The state machine control module 240 determines whether to continue outputting a Trim control signal to the low-dropout linear regulator 210 to be calibrated based on the error judgment signal. When the error judgment signal indicates that the output voltage does not meet the preset accuracy requirement, the state machine control module 240 continues to output the Trim control signal, driving the low-dropout linear regulator 210 to adjust its output voltage. The iteration count in the counting module 250 continues to accumulate. When the iteration count reaches the preset iteration upper limit, the counting module 250 outputs an iteration overflow signal to the state machine control module 240, which then enters an abnormal timeout state or terminates the current detection process. When the error judgment signal indicates that the output voltage meets the preset accuracy requirement, the state machine control module 240 enters a convergence judgment state. The counting module 250 performs a stable period count for the continuous detection cycles in which the error judgment signal is valid, and the state machine control module 240 obtains the stable period from the counting module 250. If the error judgment signal for any detection cycle is invalid, the state machine control module 240 outputs a count start / reset signal to the counting module 250 to reset the stable cycle count and return to the calibration iteration state to continue adjustment. When the stable cycle count reaches a preset number and the timeout protection unit 260 does not output a timeout signal, the state machine control module 240 enters the calibration complete state, outputs the CAL_DONE signal, and simultaneously outputs a status write signal to the status register unit 270 to write the calibration complete flag to the status register unit 270 and resets the calibration busy status register.
[0078] During the testing process, the timeout protection unit 260 continuously times the cumulative voltage calibration duration. When the cumulative voltage calibration duration exceeds the preset duration threshold, it outputs a timeout signal to the state machine control module 240. Upon receiving the timeout signal, the state machine control module 240 enters an abnormal timeout state, outputs a status write signal to the status register unit 270, sets the timeout status register, and enters a limited automatic retry mechanism. If the retry count value has not reached the preset number of retry attempts, the state machine control module 240 outputs a count start / reset signal to the counting module 250 and the timeout protection unit 260, resetting the iteration count, stabilization period, and timeout timer, re-enters the calibration idle state, and starts the next round of testing. If the retry count value reaches the preset number of retry attempts, the state machine control module 240 maintains the abnormal timeout state, outputs a status write signal to the status register unit 270, sets the calibration failure flag register, and keeps the CAL_DONE signal invalid. The status register unit 270 also provides configuration parameters to the state machine control module 240, such as the preset number of cycles, preset duration threshold, preset voltage threshold, or other parameters.
[0079] Through the above circuit structure and working process, the stable detection of the output voltage of the low dropout linear regulator can be realized, and the CAL_DONE signal can be output after the output voltage is truly stable, providing a hardware-level synchronization basis for system reset and release.
[0080] Figure 3 A schematic diagram of the state transitions of a state machine control module is shown. The state machine control module can include five operating states: calibration idle state 310, calibration iteration state 320, convergence determination state 330, calibration completion state 340, and abnormal timeout state 350. After power-on reset, the state machine control module enters the calibration iteration state 320 from the calibration idle state 310. In the calibration iteration state 320, the state machine control module outputs a Trim control signal to drive the low-dropout linear regulator to be calibrated to adjust its output voltage, and simultaneously starts the counting module and the timeout protection unit. When the error detection module outputs ERR_NG, the state machine control module remains in the calibration iteration state 320 and continues iterating; when the error detection module outputs ERR_OK, the state machine control module enters the convergence determination state 330. In the convergence determination state 330, the state machine control module queries the stable period count in the counting module. If the stable period is insufficient, it returns to the calibration iteration state 320 to continue iterating; if the stable period reaches a preset number, it enters the calibration completion state 340. In calibration completion state 340, the state machine control module outputs the CAL_DONE signal, releases the system reset, and can return to calibration idle state 310.
[0081] In calibration iteration state 320 or convergence determination state 330, if the timeout protection unit outputs a timeout signal, the state machine control module enters abnormal timeout state 350. In abnormal timeout state 350, if the retry count has not reached the preset number of retry attempts, the iteration count, stabilization period, and timeout timer are cleared, and the system returns to calibration idle state 310 to restart calibration; if the retry count has reached the preset number of retry attempts, the abnormal timeout state 350 is maintained, and calibration failure is confirmed.
[0082] This disclosure also provides a voltage stability detection device for a low-dropout linear regulator. (Refer to...) Figure 4 The voltage stability detection device 400 for the low-dropout linear regulator may include: an output voltage acquisition module 410, used to acquire the output voltage of the low-dropout linear regulator in multiple detection cycles in response to the target chip entering the power supply state; a judgment signal generation module 420, used to generate an error judgment signal for each detection cycle based on the comparison result of the output voltage in each detection cycle with a preset voltage threshold; and a judgment result generation module 430, used to determine that the output voltage of the low-dropout linear regulator is stable if the error judgment signals of multiple detection cycles meet the preset stability conditions, and generate a stability judgment result.
[0083] In one embodiment, the determination signal generation module includes: an invalid state determination unit, configured to determine that the error determination signal of the detection period is invalid if the difference between the output voltage and the preset voltage threshold within the detection period exceeds a preset accuracy range; and an valid state determination unit, configured to determine that the error determination signal of the detection period is valid if the difference between the output voltage and the preset voltage threshold within the detection period does not exceed the preset accuracy range.
[0084] In one embodiment, the error determination signals of multiple detection cycles meet preset stability conditions, including: the number of multiple detection cycles reaches a preset number, and the error determination signals of each detection cycle are in a valid state.
[0085] In one embodiment, the device further includes: a counting module, used to count the detection cycles in which the error determination signal is valid; if it is determined that the error determination signal of the current detection cycle is invalid, the count is cleared to zero, and the output voltage of the low dropout linear regulator in the next detection cycle is obtained, and the error determination signal of the next detection cycle is generated based on the comparison result of the output voltage of the next detection cycle and the preset voltage threshold.
[0086] In one embodiment, the device further includes a voltage adjustment module, configured to determine whether to send an adjustment signal to the low-dropout linear regulator based on an error judgment signal when the difference between the output voltage and a preset voltage threshold within a certain detection period exceeds a preset accuracy range, so as to drive the low-dropout linear regulator to adjust the output voltage according to the adjustment signal.
[0087] In one embodiment, the device further includes a timing module, which is used to start timing the cumulative voltage calibration duration for the low dropout linear regulator after the target chip enters the power supply state; if the cumulative voltage calibration duration exceeds a preset duration threshold, a timeout signal is triggered.
[0088] In one embodiment, the device further includes: a retry count accumulation module, used to increment the retry count by one after triggering a timeout signal; determine whether the retry count has reached a preset number of retry attempts; if the retry count has not reached the preset number of retry attempts, reset the timing of the accumulated voltage calibration time to zero and reacquire the output voltage of the low-dropout linear regulator in the next detection cycle; if the retry count has reached the preset number of retry attempts, determine that the voltage stability detection has failed.
[0089] In one embodiment, the low-dropout linear regulator includes multiple output voltages, an output voltage acquisition module for acquiring the output voltage of each of the multiple output voltages of the low-dropout linear regulator in multiple detection cycles, and a judgment result generation module for determining that the output voltage of the low-dropout linear regulator is stable when the error judgment signal of each of the multiple detection cycles is in an effective state.
[0090] In one embodiment, the device further includes: a calibration completion signal generation module, used to generate a calibration completion hardware signal after generating a stability determination result; wherein the calibration completion hardware signal is used to control the reset release of the target chip.
[0091] The specific details of each part of the above-mentioned device have been described in detail in the method section of the embodiments. For any undisclosed details, please refer to the method section of the embodiments, and therefore will not be repeated here.
[0092] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to exemplary embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0093] Exemplary embodiments of this disclosure also provide an electronic device. The electronic device may include a processor and a memory. The memory stores executable instructions of the processor, such as program code. The processor executes the executable instructions to perform the voltage stability detection method for a low-dropout linear regulator in this exemplary embodiment. Furthermore, the electronic device may also include a display for displaying a graphical user interface.
[0094] The following is for reference. Figure 5The electronic device is illustrated by way of a general-purpose computing device. It should be understood that... Figure 5 The electronic device 500 shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.
[0095] like Figure 5 As shown, the electronic device 500 may include: a processor 510, a memory 520, a bus 530, an I / O (input / output) interface 540, a network adapter 550, and a display 560.
[0096] Memory 520 may include volatile memory, such as RAM 521 and cache unit 522, and may also include non-volatile memory, such as ROM 523. Memory 520 may also include one or more program modules 524, including but not limited to: operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. For example, program module 524 may include the modules in the above-described apparatus.
[0097] The processor 510 may include one or more processing units, such as an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor, and / or an NPU (Neural-Network Processing Unit).
[0098] The processor 510 can be used to execute executable instructions stored in the memory 520, such as the voltage stability detection method of the low dropout linear regulator described above.
[0099] Bus 530 is used to connect different components of electronic device 500 and may include a data bus, an address bus and a control bus.
[0100] Electronic device 500 can communicate with one or more external devices 600 (such as keyboard, mouse, external controller, etc.) through I / O interface 540.
[0101] Electronic device 500 can communicate with one or more networks via network adapter 550. For example, network adapter 550 can provide mobile communication solutions such as 3G / 4G / 5G, or wireless communication solutions such as wireless LAN, Bluetooth, and near-field communication. Network adapter 550 can communicate with other modules of electronic device 500 via bus 530.
[0102] Electronic device 500 can display a graphical user interface via display 560.
[0103] although Figure 5 As not shown in the diagram, other hardware and / or software modules may also be configured in the electronic device 500, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0104] As can be seen from the above, the technical solutions disclosed herein can be implemented as methods, apparatus, systems, computer program products, storage media, electronic devices, etc. Those skilled in the art will understand that various aspects of this disclosure can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be referred to as "circuit," "module," or "system," respectively.
[0105] It should be understood that this disclosure is not limited to the specific methods, steps, or structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. Those skilled in the art will readily conceive of other embodiments based on the specific implementations provided in this disclosure. Therefore, the specific implementations provided in this disclosure are merely exemplary, and the scope and spirit of this disclosure are indicated by the claims, and should cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary technical means in the art not disclosed in this disclosure.
[0106] Those skilled in the art will understand that various aspects of this disclosure can be implemented as systems, methods, or program products. Therefore, various aspects of this disclosure can be embodied in entirely hardware implementations, entirely software implementations (including firmware, microcode, etc.), or implementations combining hardware and software aspects, collectively referred to herein as “circuit,” “module,” or “system.” Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
[0107] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is defined only by the appended claims.
Claims
1. A method for detecting the voltage stability of a low-dropout linear regulator, characterized in that, include: In response to the target chip entering the power supply state, the output voltage of the low dropout linear regulator is acquired in multiple detection cycles; Based on the comparison results between the output voltage and the preset voltage threshold in each detection cycle, an error determination signal for each detection cycle is generated. If the error judgment signals of the multiple detection cycles meet the preset stability conditions, then the output voltage of the low dropout linear regulator is determined to be stable, and a stability judgment result is generated. The error determination signals of the multiple detection cycles satisfy preset stability conditions, including: The error judgment signals of the multiple detection cycles are all error qualified signals, and the number of the multiple detection cycles reaches a preset number.
2. The voltage stability detection method for a low-dropout linear regulator according to claim 1, characterized in that, The step of generating an error determination signal for each detection cycle based on the comparison results between the output voltage and a preset voltage threshold within each detection cycle includes: If the difference between the output voltage and the preset voltage threshold within the detection cycle exceeds the preset accuracy range, then the error judgment signal of the detection cycle is determined to be invalid. If the difference between the output voltage and the preset voltage threshold within the detection period does not exceed the preset accuracy range, then the error determination signal of the detection period is determined to be valid.
3. The voltage stability detection method for a low-dropout linear regulator according to claim 2, characterized in that, The error determination signals of the multiple detection cycles satisfy preset stability conditions, including: The number of the multiple detection cycles reaches a preset number, and the error judgment signal of each detection cycle is in a valid state.
4. The voltage stability detection method for a low-dropout linear regulator according to claim 2, characterized in that, The method further includes: The detection cycles in which the error determination signal is in a valid state are counted; If the error determination signal of the current detection cycle is determined to be invalid, the count is cleared to zero, and the output voltage of the low dropout linear regulator in the next detection cycle is obtained. Based on the comparison result between the output voltage of the next detection cycle and the preset voltage threshold, the error determination signal of the next detection cycle is generated.
5. The voltage stability detection method for a low-dropout linear regulator according to claim 2, characterized in that, When the difference between the output voltage and the preset voltage threshold within the detection period exceeds a preset accuracy range, the method further includes: Based on the error determination signal, determine whether to send an adjustment signal to the low-dropout linear regulator, so as to drive the low-dropout linear regulator to adjust the output voltage according to the adjustment signal.
6. The voltage stability detection method for a low-dropout linear regulator according to claim 1, characterized in that, After the target chip enters the power-on state, the method further includes: Start timing for the cumulative voltage calibration duration of the low-dropout linear regulator; If the cumulative voltage calibration time exceeds a preset time threshold, a timeout signal is triggered.
7. The voltage stability detection method for a low-dropout linear regulator according to claim 6, characterized in that, After the timeout signal is triggered, the method further includes: Increment the retry count by one; Determine whether the retry count has reached the preset number of retries; If the retry count value does not reach the preset number of retry attempts, the cumulative voltage calibration time is reset to zero, and the output voltage of the low dropout linear regulator in the next detection cycle is reacquired. If the retry count reaches the preset number of retry attempts, then the voltage stability detection is determined to have failed.
8. The voltage stability detection method for a low-dropout linear regulator according to claim 1, characterized in that, The low-dropout linear regulator includes multiple output voltages. The step of acquiring the output voltage of the low-dropout linear regulator during multiple detection cycles includes: The output voltage of each of the multiple output voltages of the low dropout linear regulator is obtained in multiple detection cycles. The step of determining that the output voltage of the low-dropout linear regulator is stable if the error judgment signals of the multiple detection cycles meet the preset stability conditions includes: When the error determination signal of each channel is in an effective state in multiple detection cycles, the output voltage of the low dropout linear regulator is determined to be stable.
9. The voltage stability detection method for a low-dropout linear regulator according to claim 1, characterized in that, After generating the stability determination result, the method further includes: Generate calibration completion hardware signal; The calibration completion hardware signal is used to control the reset and release of the target chip.
10. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the voltage stability detection method of the low dropout linear regulator according to any one of claims 1-9 by executing the executable instructions.
