Automatic power supply voltage detection device, method and electronic equipment
By combining a reference voltage divider circuit, a voltage adjustment circuit, and a voltage comparison circuit, multi-byte quantization processing of the supply voltage is achieved, solving the problems of limited detection range and software configuration errors in existing technologies, and improving the reliability and accuracy of detection.
Patent Information
- Application Number
- CN202410832474.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Existing power supply voltage detection methods are difficult to support a wide voltage detection range, and software configuration errors can easily lead to damage to the withstand voltage of devices, increasing the risk of circuit failure.
By employing a reference voltage divider circuit, a voltage adjustment circuit, and a voltage comparison circuit, and through multi-byte quantization processing, various power supply voltage states can be identified, thereby improving detection accuracy.
It achieves multi-byte quantization processing of power supply voltage, improves detection reliability and accuracy, ensures that the power supply voltage of the SOC chip matches devices with multiple power modes, and reduces the risk of circuit failure.
Smart Images

Figure CN118837605B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of voltage detection technology, and in particular to an automatic power supply voltage detection device, method, and electronic equipment. Background Technology
[0002] With the continuous development of SOC (System on Chip) integrated circuit technology, the power supply modes of SOC chip interfaces are becoming increasingly diverse. The same interface often needs to be compatible with different power supply levels, such as 1.8V, 2.5V, and 3.3V. To ensure that the power supply voltage of the SOC chip can match devices with various power supply modes, detecting the power supply voltage of the SOC chip is an important technical measure.
[0003] Currently, there are two common methods for power supply voltage detection: limited voltage identification or software-based voltage identification. However, practical experience has shown that the former can only detect specific voltages and cannot support a wider voltage detection range; while the latter requires software to configure the operating mode of the power supply voltage to adapt to the input power supply voltage. This process, due to software involvement, not only affects the execution efficiency of the SOC but also easily leads to device withstand voltage damage caused by software configuration errors, increasing the risk of circuit failure. Therefore, providing a technical solution that can improve the accuracy of power supply voltage detection for SOC chips is particularly important. Summary of the Invention
[0004] This invention provides an automatic power supply voltage detection device, method, and electronic device, which can perform multi-byte quantization processing on the power supply voltage, thereby identifying various power supply voltage states and improving the reliability and accuracy of power supply voltage detection.
[0005] To address the aforementioned technical problems, the first aspect of this invention discloses an automatic power supply voltage detection device, the device comprising a reference voltage divider circuit, a voltage adjustment circuit, and a voltage comparison circuit, wherein:
[0006] The reference voltage receiving terminal of the reference voltage divider circuit is used to electrically connect to the reference voltage generating circuit, and the voltage output terminal of the reference voltage divider circuit is electrically connected to the reference voltage input terminal of the voltage comparator circuit.
[0007] The voltage terminal of the voltage adjustment circuit is used to electrically connect to the power supply circuit, the voltage output terminal of the voltage adjustment circuit is electrically connected to the power supply voltage input terminal of the voltage comparison circuit, and the voltage status output terminal of the voltage comparison circuit is electrically connected to the feedback receiving terminal of the voltage adjustment circuit and is used to electrically connect to the voltage status receiving device.
[0008] The reference voltage divider circuit is used to divide the reference voltage when it receives the reference voltage sent by the reference voltage generation circuit, to obtain at least one divided reference voltage, and to output all the divided reference voltages to the voltage comparison circuit.
[0009] The voltage adjustment circuit is used to adjust the power supply voltage according to preset voltage adjustment parameters when it receives the power supply voltage output by the power supply circuit, to obtain the voltage to be detected, and to output the voltage to be detected to the voltage comparison circuit.
[0010] The voltage comparison circuit is used to perform a voltage comparison operation between the voltage to be detected and each of the voltage-divided reference voltages when all the voltage-divided reference voltages and the voltage to be detected are received, to obtain multiple voltage comparison results corresponding to the voltage to be detected, and to output all the voltage comparison results to the voltage status receiving device, so that the voltage status receiving device determines the voltage detection result of the supply voltage based on all the voltage comparison results.
[0011] As an optional implementation, in the first aspect of the present invention, the voltage comparison circuit is further configured to output all the voltage comparison results to the voltage adjustment circuit;
[0012] The voltage adjustment circuit is further configured to determine the change in the supply voltage based on all the voltage comparison results, and to adjust the voltage adjustment parameters according to the change in the supply voltage.
[0013] As an optional implementation, in the first aspect of the present invention, the reference voltage divider circuit includes a linear regulator and a voltage divider module, wherein the voltage divider module includes a voltage divider register or a load divider, wherein:
[0014] The reference voltage receiving terminal of the linear regulator is used to electrically connect to the reference voltage generating circuit. The first voltage output terminal of the linear regulator is electrically connected to the voltage receiving terminal of the voltage divider module. The voltage output terminal of the voltage divider module is electrically connected to the reference voltage input terminal of the voltage comparator circuit. The voltage divider feedback terminal of the voltage divider module is electrically connected to the feedback receiving terminal of the linear regulator. The ground terminal of the voltage divider module is used for grounding.
[0015] The voltage terminal of the linear regulator is used to electrically connect to the power supply circuit, the second voltage output terminal of the linear regulator is electrically connected to the voltage terminal of the voltage comparator circuit, and the ground terminal of the linear regulator is used for grounding.
[0016] The linear regulator is used to convert the reference voltage when it receives the reference voltage sent by the reference voltage generation circuit, obtain the converted voltage, and output the converted voltage to the voltage divider module.
[0017] The voltage divider module is used to divide the converted voltage to obtain at least one divided reference voltage, and outputs all the divided reference voltages to the voltage comparison circuit.
[0018] As an optional implementation, in a first aspect of the invention, the voltage adjustment circuit includes a voltage adjustment register, wherein:
[0019] The voltage terminal of the voltage adjustment register is used to electrically connect to the power supply circuit, the voltage output terminal of the voltage adjustment register is electrically connected to the power supply voltage input terminal of the voltage comparison circuit, the feedback receiving terminal of the voltage adjustment register is electrically connected to the voltage status output terminal of the voltage comparison circuit, and the ground terminal of the voltage adjustment register is used for grounding.
[0020] As an optional implementation, in a first aspect of the invention, the voltage comparison circuit includes a voltage comparison module, which includes a single voltage comparator or multiple voltage comparators connected in parallel, wherein:
[0021] The reference voltage input terminal of the voltage comparison module is electrically connected to the voltage output terminal of the voltage divider module, the power supply voltage input terminal of the voltage comparison module is electrically connected to the voltage output terminal of the voltage adjustment register, and the voltage status output terminal of the voltage comparison module is electrically connected to the feedback receiving terminal of the voltage adjustment register and to the voltage status receiving device.
[0022] The voltage terminal of the voltage comparison module is electrically connected to the second voltage output terminal of the linear regulator, and the ground terminal of the voltage comparison module is used for grounding.
[0023] As an optional implementation, in the first aspect of the present invention, the reference voltage receiving terminal of the linear regulator is positive, and the feedback receiving terminal of the linear regulator is negative.
[0024] Furthermore, the reference voltage input terminal of the voltage comparison module is the negative terminal, and the power supply voltage input terminal of the voltage comparison module is the positive terminal.
[0025] A second aspect of this invention discloses an automatic power supply voltage detection method, which is applied in an automatic power supply voltage detection device. The device includes a reference voltage divider circuit, a voltage adjustment circuit, and a voltage comparison circuit, wherein:
[0026] The reference voltage receiving terminal of the reference voltage divider circuit is used to electrically connect to the reference voltage generating circuit, and the voltage output terminal of the reference voltage divider circuit is electrically connected to the reference voltage input terminal of the voltage comparator circuit.
[0027] The voltage terminal of the voltage adjustment circuit is used to electrically connect to the power supply circuit, the voltage output terminal of the voltage adjustment circuit is electrically connected to the power supply voltage input terminal of the voltage comparison circuit, and the voltage status output terminal of the voltage comparison circuit is electrically connected to the feedback receiving terminal of the voltage adjustment circuit and is used to electrically connect to the voltage status receiving device.
[0028] The method includes:
[0029] When the reference voltage divider circuit receives the reference voltage sent by the reference voltage generation circuit, it performs a voltage divider operation on the reference voltage to obtain at least one voltage divider reference voltage, and outputs all the voltage divider reference voltages to the voltage comparison circuit.
[0030] When the voltage adjustment circuit receives the power supply voltage output by the power supply circuit, it adjusts the power supply voltage according to the preset voltage adjustment parameters to obtain the voltage to be detected, and outputs the voltage to be detected to the voltage comparison circuit.
[0031] When the voltage comparison circuit receives all the voltage divider reference voltages and the voltage to be detected, it performs a voltage comparison operation between the voltage to be detected and each of the voltage divider reference voltages to obtain multiple voltage comparison results corresponding to the voltage to be detected, and outputs all the voltage comparison results to the voltage status receiving device so that the voltage status receiving device determines the voltage detection result of the power supply voltage based on all the voltage comparison results.
[0032] As an optional implementation, in a second aspect of the invention, the method further includes:
[0033] The voltage comparison circuit outputs all the voltage comparison results to the voltage adjustment circuit;
[0034] The voltage adjustment circuit determines the change in the supply voltage based on all the voltage comparison results, and adjusts the voltage adjustment parameters according to the change in the supply voltage.
[0035] As an optional implementation, in a second aspect of the invention, the reference voltage divider circuit includes a linear regulator and a voltage divider module, wherein the voltage divider module includes a voltage divider register or a load divider, wherein:
[0036] The reference voltage receiving terminal of the linear regulator is used to electrically connect to the reference voltage generating circuit. The first voltage output terminal of the linear regulator is electrically connected to the voltage receiving terminal of the voltage divider module. The voltage output terminal of the voltage divider module is electrically connected to the reference voltage input terminal of the voltage comparator circuit. The voltage divider feedback terminal of the voltage divider module is electrically connected to the feedback receiving terminal of the linear regulator. The ground terminal of the voltage divider module is used for grounding.
[0037] The voltage terminal of the linear regulator is used to electrically connect to the power supply circuit, the second voltage output terminal of the linear regulator is electrically connected to the voltage terminal of the voltage comparator circuit, and the ground terminal of the linear regulator is used for grounding.
[0038] Wherein, when the reference voltage divider circuit receives the reference voltage sent by the reference voltage generation circuit, it performs a voltage divider operation on the reference voltage to obtain at least one divided reference voltage, and outputs all the divided reference voltages to the voltage comparison circuit, including:
[0039] When the linear regulator receives the reference voltage sent by the reference voltage generation circuit, it performs a conversion operation on the reference voltage to obtain the converted voltage, and outputs the converted voltage to the voltage divider module.
[0040] The voltage divider module performs a voltage divider operation on the converted voltage to obtain at least one voltage divider reference voltage, and outputs all the voltage divider reference voltages to the voltage comparison circuit.
[0041] A third aspect of the present invention discloses an electronic device comprising an automatic power supply voltage detection device as described in any one of the first aspects of the present invention.
[0042] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0043] This invention discloses an automatic power supply voltage detection device, method, and electronic device. The device includes a reference voltage divider circuit, a voltage adjustment circuit, and a voltage comparison circuit. The reference voltage divider circuit divides a reference voltage and outputs all divided reference voltages to the voltage comparison circuit. The voltage adjustment circuit adjusts the power supply voltage and outputs the resulting voltage to be detected to the voltage comparison circuit. The voltage comparison circuit compares the voltage to be detected with each divided reference voltage and outputs all comparison results to a voltage status receiving device, enabling the voltage status receiving device to determine the voltage detection result of the power supply voltage. Therefore, implementing this invention allows for multi-byte quantization of the power supply voltage, thereby identifying various power supply voltage states and improving the reliability and accuracy of power supply voltage detection. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a schematic diagram of the structure of an automatic power supply voltage detection device disclosed in an embodiment of the present invention;
[0046] Figure 2 This is a schematic diagram of another automatic power supply voltage detection device disclosed in an embodiment of the present invention;
[0047] Figure 3 This is a schematic diagram of the structure of another automatic power supply voltage detection device disclosed in an embodiment of the present invention;
[0048] Figure 4 This is a flowchart illustrating an automatic power supply voltage detection method disclosed in an embodiment of the present invention;
[0049] Figure 5 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. Detailed Implementation
[0050] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0051] It should be noted that, unless otherwise explicitly specified and limited, the term "electrical connection" in the specification, claims and accompanying drawings of this invention should be interpreted broadly. For example, it can be a fixed electrical connection, a detachable electrical connection, or an integral electrical connection; it can be a mechanical electrical connection, an electrical connection, or a connection that allows communication between the two; it can be a direct connection or an indirect connection through an intermediate medium; it can be a connection within two elements or an interaction between two elements.
[0052] Furthermore, the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Additionally, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0053] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0054] This invention discloses an automatic power supply voltage detection device, method, and electronic device, which can perform multi-byte quantization processing on the power supply voltage, thereby identifying various power supply voltage states and improving the reliability and accuracy of power supply voltage detection.
[0055] Example 1
[0056] Please see Figure 1 , Figure 1 This is a schematic diagram of an automatic power supply voltage detection device disclosed in an embodiment of the present invention. This device can be applied to power supply voltage detection and management of devices with various power modes, such as computers (PDAs, tablets, laptops, etc.), smartphones (Android phones, iOS phones, etc.), smart lights, etc. Figure 1 As shown, the automatic power supply voltage detection device includes a reference voltage divider circuit 101, a voltage adjustment circuit 102, and a voltage comparison circuit 103, wherein:
[0057] The reference voltage receiving terminal of the reference voltage divider circuit 101 is used to electrically connect to the reference voltage generating circuit 104, and the voltage output terminal of the reference voltage divider circuit 101 is electrically connected to the reference voltage input terminal of the voltage comparison circuit 103.
[0058] The voltage terminal of the voltage adjustment circuit 102 is used to electrically connect to the power supply circuit 105, the voltage output terminal of the voltage adjustment circuit 102 is electrically connected to the power supply voltage input terminal of the voltage comparison circuit 103, and the voltage status output terminal of the voltage comparison circuit 103 is electrically connected to the feedback receiving terminal of the voltage adjustment circuit 102 and is used to electrically connect to the voltage status receiving device 106.
[0059] The reference voltage divider circuit 101 is used to divide the reference voltage when it receives the reference voltage sent by the reference voltage generation circuit 104, to obtain at least one divided reference voltage, and to output all the divided reference voltages to the voltage comparison circuit 103.
[0060] The voltage adjustment circuit 102 is used to adjust the supply voltage according to the preset voltage adjustment parameters when it receives the supply voltage output by the power supply circuit, so as to obtain the voltage to be detected, and output the voltage to be detected to the voltage comparison circuit 103.
[0061] The voltage comparison circuit 103 is used to perform a voltage comparison operation between the voltage to be detected and each voltage comparison reference voltage when all the voltage dividers and the voltage to be detected are received, to obtain multiple voltage comparison results corresponding to the voltage to be detected, and to output all voltage comparison results to the voltage status receiving device 106, so that the voltage status receiving device 106 can determine the voltage detection result of the power supply voltage based on all voltage comparison results.
[0062] In this embodiment of the invention, the voltage status receiving device 106 may optionally be a voltage monitor or a computer for monitoring voltage, etc.
[0063] For example, such as Figure 2 as well as Figure 3 As shown, the reference voltage divider circuit 101 may include a linear regulator and a voltage divider module (such as a voltage divider register or a load divider), the voltage adjustment circuit 102 may include a voltage adjustment register, and the voltage comparison circuit 103 may include a voltage comparison module. When the reference voltage divider circuit 101 receives the reference voltage Vref_from_ext, after the reference voltage Vref_from_ext is processed by the linear regulator and the voltage divider module, at least one divided reference voltage Vref / Vref will be obtained. <n:1>(where Vref) <n:1>All voltages are proportional to Vref_from_ext) and are transmitted to the voltage comparison circuit 103. Simultaneously, when the voltage adjustment circuit 102 receives the supply voltage, it also performs a proportional voltage division on the supply voltage to obtain the detection voltage Vsense, which is proportional to the supply voltage, and transmits it to the voltage comparison circuit 103. Then, the voltage comparison circuit 103, after receiving all the divided voltages, references the voltage Vref / Vref. <n:1>After the voltage to be detected, Vsense, it will be compared with the reference voltage Vref / Vref after each voltage division. <n:1>Perform a step-by-step comparison and output to obtain N bytes of voltage comparison result Dout. <n:1>And compare the voltage results of these N bytes, Dout <n:1>The output is sent to the voltage status receiving device 106, so that the voltage status receiving device 106 can use the voltage comparison result Dout from these N bytes. <n:1>The specific voltage value or voltage range of the supply voltage is determined. For example, if the voltage comparison result is 00, the supply voltage is 1.5V, and if the voltage comparison result is 01, the supply voltage is 1.8V, etc., so as to achieve the precise quantification of the supply voltage.
[0064] In this embodiment of the invention, the voltage comparison circuit 103 is further configured to output all voltage comparison results to the voltage adjustment circuit 102.
[0065] The voltage adjustment circuit 102 is also used to determine the changes in the supply voltage based on all voltage comparison results, and to adjust the voltage adjustment parameters according to the changes in the supply voltage.
[0066] Optionally, the changes in the supply voltage can include either increasing or decreasing variations, such as changes in the magnitude of the increase or the rate of decrease. For example, such as... Figure 2 As shown, the voltage comparison circuit 103 can compare the voltage comparison result Dout of N bytes. <n:1>The data is transmitted to voltage adjustment circuit 102, which then adjusts the voltage based on the N bytes of voltage comparison result Dout. <n:1>Real-time adjustment of the proportional voltage divider parameters (i.e., voltage adjustment parameters Reg_hyst) <n:1>This allows for adjustment of the hysteresis effect, preventing frequent switching of circuit states when the supply voltage fluctuates near the critical value.
[0067] As can be seen, the embodiments of the present invention can divide the reference voltage through a reference voltage divider circuit, adjust the supply voltage through a voltage adjustment circuit, and compare the obtained divided reference voltage with the voltage to be detected through a voltage comparison circuit. Based on the multiple voltage comparison results of the supply voltage, the voltage detection result of the supply voltage is determined. In this way, a multi-byte quantization process of the power supply voltage is realized, which can identify a more refined power supply voltage state, thereby improving the reliability and accuracy of the supply voltage detection, so that the supply voltage output by the SOC chip can be adapted to the power requirements of peripheral devices with various power modes. At the same time, by adjusting the voltage adjustment parameters by the quantized value of the supply voltage fed back, a hysteresis detection effect can be achieved at different levels, thereby improving the output accuracy and stability of the voltage comparison result.
[0068] In an optional embodiment, the reference voltage divider circuit 101 includes a linear regulator and a voltage divider module, wherein:
[0069] The reference voltage receiving terminal of the linear regulator is used to electrically connect to the reference voltage generating circuit 104. The first voltage output terminal of the linear regulator is electrically connected to the voltage receiving terminal of the voltage divider module. The voltage output terminal of the voltage divider module is electrically connected to the reference voltage input terminal of the voltage comparison circuit 103. The voltage divider feedback terminal of the voltage divider module is electrically connected to the feedback receiving terminal of the linear regulator. The grounding terminal of the voltage divider module is used for grounding.
[0070] The voltage terminal of the linear regulator is used to electrically connect to the power supply circuit, the second voltage output terminal of the linear regulator is electrically connected to the voltage terminal of the voltage comparator circuit 103, and the ground terminal of the linear regulator is used for grounding.
[0071] A linear regulator is used to convert the reference voltage when it receives the reference voltage sent by the reference voltage generation circuit 104, obtain the converted voltage, and output the converted voltage to the voltage divider module.
[0072] The voltage divider module is used to divide the converted voltage to obtain at least one divided reference voltage, and outputs all the divided reference voltages to the voltage comparator circuit 103.
[0073] In this optional embodiment, the reference voltage receiver of the linear regulator is positive, and the feedback receiver of the linear regulator is negative. Optionally, the conversion operation can be a buck conversion operation or a boost conversion operation. Further optionally, the voltage divider module includes a load divider (such as...) Figure 2 (as shown) or voltage divider register (such as) Figure 3 As shown), when the voltage divider module includes a voltage divider register, its voltage division ratio parameter reg<N:1> The voltage regulator can also be adjusted based on the voltage comparison result Dout output by the voltage comparison circuit 103, so that the Vref generated by the voltage divider register can achieve a hysteresis detection effect similar to that generated by the voltage adjustment circuit 102. Alternatively, the linear regulator can be replaced with other components capable of achieving the aforementioned equivalent voltage conversion, stable output, and feedback reception functions.
[0074] In this optional embodiment, the linear regulator is further configured to perform a target conversion operation on the supply voltage to obtain a converted operating voltage, and output the converted operating voltage to the voltage comparison circuit 103 so that the voltage comparison circuit 103 is in an operating state based on the converted operating voltage.
[0075] For example, if the supply voltage is first input to a linear regulator with voltage withstand capability, the linear regulator then performs a target conversion operation on the supply voltage based on the pre-set ratio between the reference voltage Vref_from_ext and the converted operating voltage VCC_Safe. This results in a converted operating voltage VCC_Safe that is proportional to the reference voltage Vref_from_ext, lower than the supply voltage, and does not change with the supply voltage. This allows the voltage comparator circuit 103 to operate within a relatively safe voltage range, solving the voltage withstand problem under high voltage input.
[0076] As can be seen, this optional embodiment can convert the reference voltage through a linear regulator and output it to a voltage divider module. The voltage divider module then divides the converted voltage to obtain a divided reference voltage, which is then output to a voltage comparison circuit. This improves the reliability and accuracy of the reference voltage processing, which in turn facilitates precise comparison of the voltage to be detected with each divided reference voltage, resulting in a refined voltage comparison result. This, in turn, improves the reliability and accuracy of the voltage detection result of the supply voltage. At the same time, directly stepping down the supply voltage through a linear regulator and outputting the converted operating voltage to the voltage comparison circuit not only simplifies the overall voltage withstand structure of the device but also ensures that each circuit in the device operates within a relatively safe voltage range, thus improving the overall voltage detection safety of the device.
[0077] In another alternative embodiment, the voltage adjustment circuit 102 includes a voltage adjustment register, wherein:
[0078] The voltage terminal of the voltage adjustment register is used to electrically connect to the power supply circuit 105, the voltage output terminal of the voltage adjustment register is electrically connected to the power supply voltage input terminal of the voltage comparison circuit 103, the feedback receiving terminal of the voltage adjustment register is electrically connected to the voltage status output terminal of the voltage comparison circuit 103, and the ground terminal of the voltage adjustment register is used for grounding.
[0079] In this optional embodiment, the voltage adjustment register included in the voltage adjustment circuit 102 can obtain one or more voltages to be detected after adjusting the supply voltage (e.g., voltage divider adjustment). When multiple voltages to be detected are obtained, the voltage comparison circuit 103 compares each voltage to be detected with the corresponding voltage divider reference voltage, thereby obtaining the voltage comparison results (e.g., ...) for all voltages to be detected. Figure 2 (as shown); when a voltage to be detected is obtained, the voltage comparison circuit 103 compares the voltage to be detected with the corresponding voltage divider reference voltage, and then obtains the voltage comparison result corresponding to the voltage to be detected (e.g., Figure 3 (As shown). Further optionally, the voltage adjustment register can also be replaced with other components capable of performing the aforementioned equivalent voltage adjustment and feedback receiving adjustment functions.
[0080] As can be seen, this optional embodiment can flexibly adjust the supply voltage by voltage division through the voltage adjustment register, so that the voltage comparison circuit can compare the voltage to be detected and the reference voltage after voltage division. This can improve the reliability and accuracy of the supply voltage adjustment, and thus improve the reliability, accuracy and efficiency of the voltage comparison operation. This enables multi-byte quantization of the supply voltage and automatic detection of various different supply voltage values.
[0081] In yet another alternative embodiment, the voltage comparison circuit 103 includes a voltage comparison module, wherein:
[0082] The reference voltage input terminal of the voltage comparison module is electrically connected to the voltage output terminal of the voltage divider module, the power supply voltage input terminal of the voltage comparison module is electrically connected to the voltage output terminal of the voltage adjustment register, the voltage status output terminal of the voltage comparison module is electrically connected to the feedback receiving terminal of the voltage adjustment register, and is used to electrically connect to the voltage status receiving device 106.
[0083] The voltage terminal of the voltage comparator module is electrically connected to the second voltage output terminal of the linear regulator, and the ground terminal of the voltage comparator module is used for grounding.
[0084] In this optional embodiment, the reference voltage input terminal of the voltage comparison module is negative, and the supply voltage input terminal of the voltage comparison module is positive. Optionally, the voltage comparison module includes a single voltage comparator (e.g., Figure 3 (as shown) or multiple voltage comparators connected in parallel (such as...) Figure 2 (As shown).
[0085] As can be seen, this optional embodiment can output multiple voltage comparison results through the voltage comparison operation of the voltage comparison module. Then, the voltage status receiving device can determine a refined supply voltage value based on all voltage comparison results. In this way, compared with the traditional supply voltage detection method, it is beneficial to increase the number of supply voltage values detected, thereby improving the reliability, accuracy and efficiency of supply voltage detection. This is beneficial to improving the compatibility and safety of use between the supply voltage and the power mode device.
[0086] Example 2
[0087] Please see Figure 4 , Figure 4 This is a flowchart illustrating an automatic power supply voltage detection method disclosed in an embodiment of the present invention. The method is applied to an automatic power supply voltage detection device, which includes a reference voltage divider circuit, a voltage adjustment circuit, and a voltage comparison circuit.
[0088] The reference voltage receiving terminal of the reference voltage divider circuit is used to electrically connect to the reference voltage generating circuit, and the voltage output terminal of the reference voltage divider circuit is electrically connected to the reference voltage input terminal of the voltage comparator circuit.
[0089] The voltage terminal of the voltage adjustment circuit is electrically connected to the power supply circuit; the voltage output terminal of the voltage adjustment circuit is electrically connected to the power supply voltage input terminal of the voltage comparator circuit; the voltage status output terminal of the voltage comparator circuit is electrically connected to the feedback receiving terminal of the voltage adjustment circuit and is also used for electrically connecting to a voltage status receiving device; such as Figure 4 As shown, the method may include the following steps:
[0090] 401. When the reference voltage divider circuit receives the reference voltage sent by the reference voltage generation circuit, it performs a voltage divider operation on the reference voltage to obtain at least one divided reference voltage, and outputs all the divided reference voltages to the voltage comparison circuit.
[0091] 402. When the voltage adjustment circuit receives the power supply voltage output by the power supply circuit, it adjusts the power supply voltage according to the preset voltage adjustment parameters to obtain the voltage to be detected, and outputs the voltage to be detected to the voltage comparison circuit.
[0092] 403. When the voltage comparison circuit receives all the reference voltages after voltage division and the voltage to be detected, it performs a voltage comparison operation between the voltage to be detected and each reference voltage after voltage division to obtain multiple voltage comparison results corresponding to the voltage to be detected, and outputs all voltage comparison results to the voltage status receiving device so that the voltage status receiving device can determine the voltage detection result of the power supply voltage based on all voltage comparison results.
[0093] In this embodiment of the invention, the method further includes:
[0094] The voltage comparison circuit outputs all voltage comparison results to the voltage adjustment circuit;
[0095] The voltage adjustment circuit determines the changes in the supply voltage based on all voltage comparison results, and adjusts the voltage adjustment parameters accordingly.
[0096] As can be seen, implementing the embodiments of the present invention enables the reference voltage to be divided by a reference voltage divider circuit, the supply voltage to be divided and adjusted by a voltage adjustment circuit, and the obtained divided reference voltage and the voltage to be detected to be compared by a voltage comparison circuit. Based on multiple voltage comparison results of the supply voltage, the voltage detection result of the supply voltage is determined. In this way, a multi-byte quantization process of the power supply voltage is realized, which can identify a more refined power supply voltage state, thereby improving the reliability and accuracy of the supply voltage detection, so that the supply voltage output by the SOC chip can be adapted to the power requirements of peripheral devices with various power modes. At the same time, by adjusting the voltage adjustment parameters by the quantized value of the supply voltage fed back, a hysteresis detection effect can be achieved at different levels, thereby improving the output accuracy and stability of the voltage comparison result.
[0097] In another optional embodiment, the reference voltage divider circuit includes a linear regulator and a voltage divider module, wherein the voltage divider module includes a voltage divider register or a load divider, wherein:
[0098] The reference voltage receiving terminal of the linear regulator is used to electrically connect to the reference voltage generating circuit. The first voltage output terminal of the linear regulator is electrically connected to the voltage receiving terminal of the voltage divider module. The voltage output terminal of the voltage divider module is electrically connected to the reference voltage input terminal of the voltage comparator circuit. The voltage divider feedback terminal of the voltage divider module is electrically connected to the feedback receiving terminal of the linear regulator. The grounding terminal of the voltage divider module is used for grounding.
[0099] The voltage terminal of the linear regulator is used to electrically connect to the power supply circuit, the second voltage output terminal of the linear regulator is electrically connected to the voltage terminal of the voltage comparator circuit, and the ground terminal of the linear regulator is used for grounding.
[0100] In step 401 above, when the reference voltage divider circuit receives the reference voltage sent by the reference voltage generation circuit, it performs a voltage divider operation on the reference voltage to obtain at least one divided reference voltage, and outputs all the divided reference voltages to the voltage comparison circuit, including:
[0101] When the linear regulator receives the reference voltage sent by the reference voltage generation circuit, it performs a conversion operation on the reference voltage to obtain the converted voltage, and outputs the converted voltage to the voltage divider module.
[0102] The voltage divider module divides the converted voltage to obtain at least one divided reference voltage, and outputs all the divided reference voltages to the voltage comparator circuit.
[0103] As can be seen, this optional embodiment can convert the reference voltage through a linear regulator and output it to a voltage divider module. The voltage divider module then divides the converted voltage to obtain a divided reference voltage, which is then output to a voltage comparison circuit. This improves the reliability and accuracy of the reference voltage processing, which in turn facilitates precise comparison of the voltage to be detected with each divided reference voltage, resulting in a refined voltage comparison result. This, in turn, improves the reliability and accuracy of the voltage detection result of the supply voltage. At the same time, directly stepping down the supply voltage through a linear regulator and outputting the converted operating voltage to the voltage comparison circuit not only simplifies the overall voltage withstand structure of the device but also ensures that each circuit in the device operates within a relatively safe voltage range, thus improving the overall voltage detection safety of the device.
[0104] Example 3
[0105] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. The electronic device includes any of the automatic power supply voltage detection devices as described in Embodiment 1, and can be applied to perform power supply voltage detection and management for devices with various power modes, such as computers (PDAs, tablets, laptops, etc.), smartphones (Android phones, iOS phones, etc.), smart lights, etc. It should be noted that for a detailed description of the automatic power supply voltage detection device, please refer to the specific description in Embodiment 1; it will not be repeated in this embodiment.
[0106] It is evident that implementation Figure 5 The described electronic device enables multi-byte quantization of the power supply voltage, thereby identifying more refined power supply voltage states. This improves the reliability and accuracy of power supply voltage detection, allowing the SOC chip's output voltage to adapt to the power requirements of various peripheral devices with different power modes. Simultaneously, by adjusting voltage adjustment parameters based on the quantized power supply voltage feedback, hysteresis detection can be achieved at different voltage levels, improving the accuracy and stability of voltage comparison results. Furthermore, it simplifies the overall voltage withstand structure of the electronic device and ensures that all circuits operate within a relatively safe voltage range, enhancing the overall voltage detection safety of the electronic device.
[0107] The above provides a detailed description of an automatic power supply voltage detection device, method, and electronic device disclosed in the embodiments of the present invention. Specific embodiments have been used to illustrate the principles and implementation of the present invention. However, the above preferred embodiments are not intended to limit the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention is defined by the scope of the claims.
Claims
1. An automatic power supply voltage detection device, characterized in that, The device includes a reference voltage divider circuit, a voltage adjustment circuit, and a voltage comparison circuit, wherein: The reference voltage receiving terminal of the reference voltage divider circuit is used to electrically connect to the reference voltage generating circuit, and the voltage output terminal of the reference voltage divider circuit is electrically connected to the reference voltage input terminal of the voltage comparator circuit. The voltage terminal of the voltage adjustment circuit is used to electrically connect to the power supply circuit, the voltage output terminal of the voltage adjustment circuit is electrically connected to the power supply voltage input terminal of the voltage comparison circuit, and the voltage status output terminal of the voltage comparison circuit is electrically connected to the feedback receiving terminal of the voltage adjustment circuit and is used to electrically connect to the voltage status receiving device. The reference voltage divider circuit is used to divide the reference voltage when it receives the reference voltage sent by the reference voltage generation circuit, to obtain at least one divided reference voltage, and to output all the divided reference voltages to the voltage comparison circuit. The voltage adjustment circuit is used to adjust the power supply voltage according to preset voltage adjustment parameters when it receives the power supply voltage output by the power supply circuit, to obtain the voltage to be detected, and to output the voltage to be detected to the voltage comparison circuit. The voltage comparison circuit is used to perform a voltage comparison operation between the voltage to be detected and each of the voltage-divided reference voltages when all the voltage-divided reference voltages and the voltage to be detected are received, to obtain multiple voltage comparison results corresponding to the voltage to be detected, and to output all the voltage comparison results to the voltage status receiving device, so that the voltage status receiving device determines the voltage detection result of the power supply voltage based on all the voltage comparison results; The reference voltage divider circuit includes a linear regulator and a voltage divider module. The voltage divider module includes a voltage divider register or a load divider, wherein: The reference voltage receiving terminal of the linear regulator is used to electrically connect to the reference voltage generating circuit. The first voltage output terminal of the linear regulator is electrically connected to the voltage receiving terminal of the voltage divider module. The voltage output terminal of the voltage divider module is electrically connected to the reference voltage input terminal of the voltage comparator circuit. The voltage divider feedback terminal of the voltage divider module is electrically connected to the feedback receiving terminal of the linear regulator. The ground terminal of the voltage divider module is used for grounding. The voltage terminal of the linear regulator is used to electrically connect to the power supply circuit, the second voltage output terminal of the linear regulator is electrically connected to the voltage terminal of the voltage comparator circuit, and the ground terminal of the linear regulator is used for grounding. The voltage adjustment circuit includes a voltage adjustment register, wherein: The voltage terminal of the voltage adjustment register is used to electrically connect to the power supply circuit, the voltage output terminal of the voltage adjustment register is electrically connected to the power supply voltage input terminal of the voltage comparison circuit, the feedback receiving terminal of the voltage adjustment register is electrically connected to the voltage status output terminal of the voltage comparison circuit, and the ground terminal of the voltage adjustment register is used for grounding.
2. The automatic power supply voltage detection device according to claim 1, characterized in that, The voltage comparison circuit is also used to output all the voltage comparison results to the voltage adjustment circuit; The voltage adjustment circuit is further configured to determine the change in the supply voltage based on all the voltage comparison results, and to adjust the voltage adjustment parameters according to the change in the supply voltage.
3. The automatic power supply voltage detection device according to claim 1 or 2, characterized in that, The linear regulator is used to convert the reference voltage when it receives the reference voltage sent by the reference voltage generation circuit, obtain the converted voltage, and output the converted voltage to the voltage divider module. The voltage divider module is used to divide the converted voltage to obtain at least one divided reference voltage, and outputs all the divided reference voltages to the voltage comparison circuit.
4. The automatic power supply voltage detection device according to claim 3, characterized in that, The voltage comparison circuit includes a voltage comparison module, which comprises a single voltage comparator or multiple voltage comparators connected in parallel, wherein: The reference voltage input terminal of the voltage comparison module is electrically connected to the voltage output terminal of the voltage divider module, the power supply voltage input terminal of the voltage comparison module is electrically connected to the voltage output terminal of the voltage adjustment register, and the voltage status output terminal of the voltage comparison module is electrically connected to the feedback receiving terminal of the voltage adjustment register and to the voltage status receiving device. The voltage terminal of the voltage comparison module is electrically connected to the second voltage output terminal of the linear regulator, and the ground terminal of the voltage comparison module is used for grounding.
5. The automatic power supply voltage detection device according to claim 4, characterized in that, The reference voltage receiving terminal of the linear regulator is positive, and the feedback receiving terminal of the linear regulator is negative; Furthermore, the reference voltage input terminal of the voltage comparison module is the negative terminal, and the power supply voltage input terminal of the voltage comparison module is the positive terminal.
6. An automatic power supply voltage detection method, characterized in that, The method is applied to an automatic power supply voltage detection device, which includes a reference voltage divider circuit, a voltage adjustment circuit, and a voltage comparison circuit, wherein: The reference voltage receiving terminal of the reference voltage divider circuit is used to electrically connect to the reference voltage generating circuit, and the voltage output terminal of the reference voltage divider circuit is electrically connected to the reference voltage input terminal of the voltage comparator circuit. The voltage terminal of the voltage adjustment circuit is used to electrically connect to the power supply circuit, the voltage output terminal of the voltage adjustment circuit is electrically connected to the power supply voltage input terminal of the voltage comparison circuit, and the voltage status output terminal of the voltage comparison circuit is electrically connected to the feedback receiving terminal of the voltage adjustment circuit and is used to electrically connect to the voltage status receiving device. The method includes: When the reference voltage divider circuit receives the reference voltage sent by the reference voltage generation circuit, it performs a voltage divider operation on the reference voltage to obtain at least one voltage divider reference voltage, and outputs all the voltage divider reference voltages to the voltage comparison circuit. When the voltage adjustment circuit receives the power supply voltage output by the power supply circuit, it adjusts the power supply voltage according to the preset voltage adjustment parameters to obtain the voltage to be detected, and outputs the voltage to be detected to the voltage comparison circuit. When the voltage comparison circuit receives all the voltage-divided reference voltages and the voltage to be detected, it performs a voltage comparison operation between the voltage to be detected and each of the voltage-divided reference voltages to obtain multiple voltage comparison results corresponding to the voltage to be detected, and outputs all the voltage comparison results to the voltage status receiving device so that the voltage status receiving device determines the voltage detection result of the power supply voltage based on all the voltage comparison results. The reference voltage divider circuit includes a linear regulator and a voltage divider module. The voltage divider module includes a voltage divider register or a load divider, wherein: The reference voltage receiving terminal of the linear regulator is used to electrically connect to the reference voltage generating circuit. The first voltage output terminal of the linear regulator is electrically connected to the voltage receiving terminal of the voltage divider module. The voltage output terminal of the voltage divider module is electrically connected to the reference voltage input terminal of the voltage comparator circuit. The voltage divider feedback terminal of the voltage divider module is electrically connected to the feedback receiving terminal of the linear regulator. The ground terminal of the voltage divider module is used for grounding. The voltage terminal of the linear regulator is used to electrically connect to the power supply circuit, the second voltage output terminal of the linear regulator is electrically connected to the voltage terminal of the voltage comparator circuit, and the ground terminal of the linear regulator is used for grounding. The voltage adjustment circuit includes a voltage adjustment register, wherein: The voltage terminal of the voltage adjustment register is used to electrically connect to the power supply circuit, the voltage output terminal of the voltage adjustment register is electrically connected to the power supply voltage input terminal of the voltage comparison circuit, the feedback receiving terminal of the voltage adjustment register is electrically connected to the voltage status output terminal of the voltage comparison circuit, and the ground terminal of the voltage adjustment register is used for grounding.
7. The automatic power supply voltage detection method according to claim 6, characterized in that, The method further includes: The voltage comparison circuit outputs all the voltage comparison results to the voltage adjustment circuit; The voltage adjustment circuit determines the change in the supply voltage based on all the voltage comparison results, and adjusts the voltage adjustment parameters according to the change in the supply voltage.
8. The automatic power supply voltage detection method according to claim 6 or 7, characterized in that, When the reference voltage divider circuit receives the reference voltage sent by the reference voltage generation circuit, it performs a voltage divider operation on the reference voltage to obtain at least one divided reference voltage, and outputs all the divided reference voltages to the voltage comparison circuit, including: When the linear regulator receives the reference voltage sent by the reference voltage generation circuit, it performs a conversion operation on the reference voltage to obtain the converted voltage, and outputs the converted voltage to the voltage divider module. The voltage divider module performs a voltage divider operation on the converted voltage to obtain at least one voltage divider reference voltage, and outputs all the voltage divider reference voltages to the voltage comparison circuit.
9. An electronic device, characterized in that, The electronic device includes the power supply voltage automatic detection device as described in any one of claims 1-5.
Citation Information
Patent Citations
Voltage detection circuit, controller and electronic equipment
CN111537773A
Power supply level detector
CN1996025A