Detection method and device of voltage monitor, electronic equipment and chip

The voltage threshold verification of the voltage monitor through the digital control module and comparison module inside the chip is solved, and the problem of complex and cost of voltage monitor calibration in the prior art is improved, achieving stability and accuracy.

CN119125991APending Publication Date: 2024-12-13BEIJING SEMIDRIVE TECHNOLOGY LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411346252.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In the prior art, the calibration and verification process of voltage monitors is complex, and is affected by process and environmental factors, and the cost is high, and it is difficult to ensure monitoring accuracy and stability.

Method used

Using the digital control module, the first power supply and the comparison module inside the chip, the setting voltage threshold value and the calibration voltage are compared to determine whether the voltage threshold value of the voltage monitor is the same as the set value, and compensation is performed to ensure the voltage monitor's Normal working condition.

Benefits of technology

The verification process of the voltage monitor is simplified, the cost is reduced, the influence of process and environmental factors is reduced, and the stability of the voltage monitor and the operation within the expected range of the monitoring system is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119125991A_ABST
    Figure CN119125991A_ABST
Patent Text Reader

Abstract

The invention discloses a detection method and device of a voltage monitor, electronic equipment and a chip. The method comprises the steps that a first voltage threshold value is sent to the voltage monitor and a first power source through a digital control module; a first voltage corresponding to the first voltage threshold value and a first calibration voltage associated with the first voltage are determined through the first power supply, and the first calibration voltage is used for detecting the voltage threshold value corresponding to the voltage monitor; sending the first voltage and the first calibration voltage to a comparison module, sending the first calibration voltage to a voltage monitor, and comparing the first voltage with the first calibration voltage through the comparison module to obtain a first comparison result; obtaining a corresponding second voltage through a voltage monitor according to the first voltage threshold value, and comparing the second voltage with the first calibration voltage to obtain a second comparison result; and according to the first comparison result and the second comparison result, determining whether a voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of voltage monitor detection, and in particular to a voltage monitor detection method, device, electronic device and chip. Background Art

[0002] A voltage monitor is usually set inside the chip. The voltage monitor is used to monitor the input voltage of the chip to ensure the stability of the chip's operating voltage. The voltage monitor is generally composed of a reference voltage source, a feedback network, a comparator, and an op amp circuit. It is usually used to monitor the voltage within a certain threshold range. The monitoring threshold range set by the voltage monitor will be affected by factors such as the stability of the voltage source, the process, and the environment. The monitoring range and accuracy will fluctuate. For example, temperature changes will cause the threshold of the monitoring voltage to drift, resulting in reduced monitoring accuracy. Only by calibrating and verifying the voltage monitor can the reliability of the voltage monitor be ensured and effective power management and fault detection capabilities be provided. In the prior art, the calibration and verification of the voltage monitor is verified by external test instruments and standard voltage sources. The process is relatively complicated and will be affected by process and environmental factors, and the cost is relatively high. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a detection method, device, electronic device and chip of a voltage monitor. The method is applied to a chip, wherein the chip comprises a digital control module, a first power supply, a comparison module and a voltage monitor. The digital control module is respectively connected to the first power supply and the voltage monitor, the first power supply is respectively connected to the comparison module and the voltage monitor, and the comparison module is connected to the digital control module. The method comprises:

[0004] Sending a first voltage threshold to the voltage monitor and the first power supply respectively through the digital control module, wherein the first voltage threshold is a voltage threshold corresponding to the chip operating voltage used by the voltage monitor;

[0005] determining, by the first power supply, a first voltage corresponding to the first voltage threshold, and a first calibration voltage associated with the first voltage, wherein the first calibration voltage is used to detect a voltage threshold corresponding to the voltage monitor;

[0006] Sending the first voltage and the first calibration voltage to the comparison module, and sending the first calibration voltage to the voltage monitor, and comparing the first voltage and the first calibration voltage through the comparison module to obtain a first comparison result;

[0007] obtaining a corresponding second voltage according to the first voltage threshold by the voltage monitor, and comparing the second voltage with the first calibration voltage to obtain a second comparison result;

[0008] According to the first comparison result and the second comparison result, it is determined whether the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold.

[0009] Optionally, the digital control module is provided with a logic operation unit, and the method further comprises:

[0010] Sending a first control signal to the voltage monitor through the digital control module to obtain voltage configuration information of the voltage monitor;

[0011] The first voltage threshold is calculated by the logic operation unit based on the voltage configuration information of the voltage monitor.

[0012] Optionally, comparing the first voltage with the first calibration voltage by the comparison module to obtain a first comparison result includes:

[0013] The comparison module compares the first voltage with the first calibration voltage to obtain a first voltage difference between the first voltage and the first calibration voltage, wherein the first voltage difference indicates whether the first calibration voltage is higher or lower than the first voltage.

[0014] Optionally, obtaining a corresponding second voltage according to the first voltage threshold by the voltage monitor, and comparing the second voltage with the first calibration voltage to obtain a second comparison result includes:

[0015] The voltage monitor compares the second voltage with the first calibration voltage to obtain a second voltage difference between the second voltage and the first calibration voltage, wherein the second voltage difference indicates whether the first calibration voltage is higher or lower than the second voltage.

[0016] Optionally, determining whether the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold according to the first comparison result and the second comparison result includes:

[0017] When a first voltage difference represented by the first comparison result and a second voltage difference represented by the second comparison result are the same, determining that a voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold;

[0018] When a first voltage difference value represented by the first comparison result is different from a second voltage difference value represented by the second comparison result, it is determined that the voltage threshold corresponding to the voltage monitor is different from the first voltage threshold.

[0019] Optionally, the method further comprises:

[0020] When the voltage threshold corresponding to the voltage monitor is different from the first voltage threshold, a first compensation signal is sent to the voltage monitor through the digital control module to adjust the voltage threshold corresponding to the voltage monitor so that the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold.

[0021] Optionally, the method further comprises:

[0022] When the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold, the input voltage of the chip is sent to the voltage monitor, and the input voltage of the chip is monitored based on the voltage threshold corresponding to the voltage monitor.

[0023] The embodiment of the present application further provides a detection device of a voltage monitor, which is applied to a chip, and includes:

[0024] A digital control module, a first power supply, a comparison module and a voltage monitor, wherein the digital control module is connected to the first power supply and the voltage monitor respectively, the first power supply is connected to the comparison module and the voltage monitor respectively, and the comparison module is connected to the digital control module;

[0025] The digital control module is used to send a first voltage threshold to the voltage monitor and the first power supply respectively, wherein the first voltage threshold is a voltage threshold corresponding to the chip operating voltage monitored by the voltage monitor;

[0026] The first power supply is used to determine a first voltage corresponding to the first voltage threshold, and a first calibration voltage associated with the first voltage, wherein the first calibration voltage is used to detect the voltage threshold corresponding to the voltage monitor;

[0027] The first power supply is further used to send the first voltage and the first calibration voltage to the comparison module, and send the first calibration voltage to the voltage monitor;

[0028] The comparison module is used for comparing the first voltage with the first calibration voltage to obtain a first comparison result;

[0029] The voltage monitor is used to obtain a corresponding second voltage according to the first voltage threshold, and compare the second voltage with the first calibration voltage to obtain a second comparison result;

[0030] The digital control module is further configured to determine whether a voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold according to the first comparison result and the second comparison result.

[0031] An embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory stores an executable program, and the memory executes the executable program to perform the steps of the method described above.

[0032] An embodiment of the present application further provides a chip, comprising the detection device of the voltage monitor as described above, wherein the detection device of the voltage monitor is used to detect a voltage threshold corresponding to the voltage monitor.

[0033] The detection method of the voltage monitor of the embodiment of the present application uses the digital control module inside the chip to set a first voltage threshold for the voltage monitor, and verifies the voltage monitor according to the voltage output by the first power supply and the voltage output by the voltage monitor to determine whether the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold, and then determine whether the voltage monitor is in a normal working state. The present application uses the module inside the chip to verify the voltage threshold corresponding to the voltage monitor, and does not need to use an external test instrument to verify the voltage monitor, which simplifies the verification process of the voltage monitor, reduces costs, reduces the impact of process and environmental factors on the voltage monitor, ensures that the voltage monitor works within the expected range, and ensures the stability of the monitoring system. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flow chart of a detection method of a voltage monitor according to an embodiment of the present application;

[0035] Figure 2 Another flow chart of the detection method of the voltage monitor according to the embodiment of the present application;

[0036] Figure 3 For the embodiments of this application Figure 1 A flowchart of an embodiment of step S500;

[0037] Figure 4 A schematic diagram of the structure of a detection device for a voltage monitor according to an embodiment of the present application;

[0038] Figure 5 A schematic diagram of the connection relationship between various parts of the chip in the embodiment of the present application;

[0039] Figure 6A schematic diagram of the structure of an electronic device according to an embodiment of the present application.

[0040] Reference numerals:

[0041] 10 - digital control module; 20 - first power supply; 30 - comparison module; 40 - voltage monitor; 50 - logic operation unit; 100 - chip. DETAILED DESCRIPTION

[0042] Various schemes and features of the present application are described herein with reference to the accompanying drawings. It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0043] A detection method for a voltage monitor according to an embodiment of the present application is applied to a chip 100, which may be an MCU (Microcontroller Unit). The chip 100 includes a digital control module 10, a first power supply 20, a comparison module 30, and a voltage monitor 40. The method sends a first voltage threshold to the voltage monitor 40 and the first power supply 20 respectively through the digital control module 10; determines a first voltage corresponding to the first voltage threshold and a first calibration voltage associated with the first voltage through the first power supply 20; sends the first voltage and the first calibration voltage to the comparison module 30, and sends the first calibration voltage to the voltage monitor 40, compares the first voltage with the first calibration voltage through the comparison module 30 to obtain a first comparison result; obtains a corresponding second voltage according to the first voltage threshold through the voltage monitor 40, and compares the second voltage with the first calibration voltage to obtain a second comparison result; determines whether the voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold according to the first comparison result and the second comparison result, and then determines whether the voltage monitor 40 needs to be calibrated according to the first comparison result and the second comparison result.

[0044] The detection method of the voltage monitor is described in detail below with reference to the accompanying drawings. Figure 1 Flow chart of the detection method of the voltage monitor of the embodiment of the present application, the method is applied to the chip 100, such as Figure 5As shown, the chip 100 includes a digital control module 10, a first power supply 20, a comparison module 30 and a voltage monitor 40. The digital control module 10 is used to set and adjust the voltage threshold of the voltage monitor 40. The first power supply 20 is used to output the working voltage. For example, the first power supply 20 can be a direct current-direct current converter (DC-DC converter) or a low dropout regulator (LDO). The comparison module 30 is used to compare different voltages of the first voltage output. For example, the comparison module 30 can be an analog voltage comparator (Analog Voltage Comparator , ACMP), the voltage monitor 40 is used to monitor the voltage state inside the chip; the digital control module 10 is connected to the first power supply 20 and the voltage monitor 40 respectively, the first power supply 20 is connected to the comparison module 30 and the voltage monitor 40 respectively, and the comparison module 30 is connected to the digital control module 10; Figure 1 As shown, the method comprises the following steps:

[0045] S100, sending a first voltage threshold to the voltage monitor and the first power supply respectively through the digital control module, wherein the first voltage threshold is a voltage threshold corresponding to the chip operating voltage monitored by the voltage monitor;

[0046] In this embodiment, the digital control module 10 first sets a first voltage threshold for the voltage monitor 40. The first voltage threshold is a voltage threshold corresponding to the chip operating voltage used by the voltage monitor 40 to monitor. That is, the voltage monitor 40 will monitor whether the fluctuation of the operating voltage output by the power supply is within a reasonable range according to the first voltage threshold under normal working conditions. For example, the voltage threshold expected by the voltage monitor 40 can be configured through a register. After setting the first voltage threshold, the digital control module 10 will send the first voltage threshold to the voltage monitor 40 and the first power supply 20 respectively, so that the first power supply 20 outputs a corresponding voltage according to the first voltage threshold, and the voltage monitor 40 outputs a corresponding voltage according to the first voltage threshold, and then the voltage monitor 40 is verified according to the voltage output by the first power supply 20 and the voltage output by the voltage monitor 40 to determine whether the voltage monitor 40 is in a normal working state.

[0047] S200, determining, by the first power supply, a first voltage corresponding to the first voltage threshold, and a first calibration voltage associated with the first voltage, wherein the first calibration voltage is used to detect a voltage threshold corresponding to the voltage monitor;

[0048] In this embodiment, after the digital control module 10 sets the first voltage threshold and sends the first voltage threshold to the first power supply 20, the first power supply 20 determines the first voltage corresponding to the first voltage threshold and the first calibration voltage associated with the first voltage, that is, the first power supply 20 sets the corresponding first voltage according to the first voltage threshold and the first calibration voltage associated with the first voltage. The first voltage may be the threshold voltage of the first power supply 20. The threshold voltage refers to the voltage value at which the device begins to respond or switch states when the voltage of the input signal reaches a certain threshold in a semiconductor device. The threshold voltage is usually the critical point from a non-responsive state to a responsive state. The first calibration voltage is used to detect the voltage threshold corresponding to the voltage monitor 40. The first calibration voltage can be set to be slightly lower or higher than the first voltage. The first calibration voltage can be compared with the first voltage to determine the difference between the first voltage and the first calibration voltage.

[0049] S300, sending the first voltage and the first calibration voltage to the comparison module, and sending the first calibration voltage to the voltage monitor, and comparing the first voltage and the first calibration voltage through the comparison module to obtain a first comparison result;

[0050] After determining the first voltage corresponding to the first voltage threshold and the first calibration voltage associated with the first voltage through the first power supply 20, the first voltage and the first calibration voltage are sent to the comparison module 30, and the first calibration voltage is sent to the voltage monitor 40, so as to detect the voltage threshold corresponding to the voltage monitor 40 according to the first calibration voltage. The first voltage and the first calibration voltage are compared by the comparison module 30 to obtain a first comparison result, and the difference between the first voltage and the first calibration voltage is determined according to the first comparison result. The difference between the first voltage and the first calibration voltage can be considered as the difference obtained when the first power supply 20 is in a normal working state.

[0051] S400, obtaining a corresponding second voltage according to the first voltage threshold through the voltage monitor, and comparing the second voltage with the first calibration voltage to obtain a second comparison result;

[0052] In this embodiment, after the digital control module 10 sets the first voltage threshold and sends the first voltage threshold to the voltage monitor 40, the voltage monitor 40 obtains the corresponding second voltage according to the first voltage threshold, that is, the voltage monitor 40 sets the corresponding second voltage according to the first voltage threshold, and the second voltage may be the threshold voltage of the voltage monitor 40. The voltage monitor 40 may compare the second voltage with the first calibration voltage to obtain a second comparison result, and determine the difference between the second voltage and the first calibration voltage according to the second comparison result, and the difference between the second voltage and the first calibration voltage may be used to determine whether the voltage monitor 40 is in a normal working state.

[0053] S500: Determine, according to the first comparison result and the second comparison result, whether a voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold.

[0054] In this embodiment, after the first voltage is compared with the first calibration voltage to obtain a first comparison result, and the second voltage is compared with the first calibration voltage to obtain a second comparison result, it is determined whether the voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold according to the first comparison result and the second comparison result. According to the first comparison result, the difference between the first voltage and the first calibration voltage, that is, the difference between the first voltage associated with the first power supply 20 set according to the first voltage threshold and the first calibration voltage, can be determined. The difference between the first voltage and the first calibration voltage represented by the first comparison result can be considered to be the difference obtained when the first power supply 20 is in a normal working state. If the second comparison result is the same as the first comparison result, that is, the difference between the second voltage and the first calibration voltage is equal to the difference between the first voltage and the first calibration voltage, it indicates that the second voltage set by the voltage monitor 40 according to the first voltage threshold has not changed, and it can be determined that the voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold, and then it is determined that the voltage monitor 40 is in a normal working state. If the second comparison result is different from the first comparison result, that is, the difference between the second voltage and the first calibration voltage cannot be equal to the difference between the first voltage and the first calibration voltage, it indicates that the second voltage set by the voltage monitor 40 according to the first voltage threshold has changed. It can be determined that the voltage threshold corresponding to the voltage monitor 40 is different from the first voltage threshold, and then it is determined that the voltage monitor 40 is not in a normal working state. It is necessary to calibrate the actual voltage threshold of the voltage monitor 40 so that the voltage monitor 40 is in a normal working state.

[0055] The detection method of the voltage monitor of the embodiment of the present application sets a first voltage threshold for the voltage monitor 40 through the digital control module 10, determines a first voltage corresponding to the first voltage threshold and a first calibration voltage associated with the first voltage through the first power supply 20; compares the first voltage with the first calibration voltage through the comparison module 30 to obtain a first comparison result; obtains a corresponding second voltage according to the first voltage threshold through the voltage monitor 40, and compares the second voltage with the first calibration voltage to obtain a second comparison result; determines whether the voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold according to the first comparison result and the second comparison result, and further determines whether the voltage monitor 40 is in a normal working state. The present application uses the digital control module 10 inside the chip to set a first voltage threshold for the voltage monitor 40, verifies the voltage monitor 40 according to the voltage output by the first power supply 20 and the voltage output by the voltage monitor 40, determines whether the voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold, and further determines whether the voltage monitor 40 is in a normal working state. The present application utilizes the module inside the chip to calibrate the voltage threshold corresponding to the voltage monitor 40. There is no need to use an external test instrument to calibrate the voltage monitor 40, which simplifies the calibration process of the voltage monitor 40, reduces costs, and reduces the impact of process and environmental factors on the voltage monitor 40, ensuring that the voltage monitor 40 operates within the expected range and ensuring the stability of the monitoring system.

[0056] In one embodiment of the present application, Figure 2 and Figure 5 As shown, the digital control module 10 is provided with a logic operation unit, and the method further includes:

[0057] S600, sending a first control signal to the voltage monitor through the digital control module to obtain voltage configuration information of the voltage monitor;

[0058] In this embodiment, in the process of setting the first voltage threshold for the voltage monitor 40, the digital control module 10 first sends a first control signal to the voltage monitor 40. Through the first control signal, the voltage configuration information of the voltage monitor 40 can be obtained, so that the digital control module 10 sets the first voltage threshold for the voltage monitor 40 according to the voltage configuration information of the voltage monitor 40. The voltage configuration information of the voltage monitor 40 may include information of the first voltage threshold of the voltage monitor 40. Based on the voltage configuration information of the voltage monitor 40, the voltage threshold corresponding to the chip operating voltage monitored by the voltage monitor 40 can be accurately set.

[0059] S700: Based on the voltage configuration information of the voltage monitor, calculate the first voltage threshold by the logic operation unit.

[0060] In this embodiment, after the voltage configuration information of the voltage monitor 40 is obtained, the voltage configuration information of the voltage monitor 40 can be calculated by the logic operation unit 50 based on the voltage configuration information of the voltage monitor 40 to obtain the first voltage threshold of the voltage monitor 40. The first voltage threshold can be configured as a voltage threshold corresponding to the chip operating voltage monitored by the voltage monitor 40. If the voltage monitor 40 is in a normal working state, the actual voltage threshold corresponding to the voltage monitor 40 is the first voltage threshold. The actual voltage threshold corresponding to the voltage monitor 40 can also be verified according to the first voltage threshold to determine whether the actual voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold, and then determine whether the voltage monitor 40 is in a normal working state.

[0061] In one embodiment of the present application, Figure 5 As shown, the first voltage and the first calibration voltage are compared by the comparison module to obtain a first comparison result, including:

[0062] The comparison module compares the first voltage with the first calibration voltage to obtain a first voltage difference between the first voltage and the first calibration voltage, wherein the first voltage difference indicates whether the first calibration voltage is higher or lower than the first voltage.

[0063] In this embodiment, when the first voltage and the first calibration voltage are compared by the comparison module 30, the first voltage value and the first calibration voltage value are compared by the comparison module 30 to obtain a first voltage difference between the first voltage and the first calibration voltage, and the first voltage difference represents the degree of fluctuation between the first voltage and the first calibration voltage. Specifically, the first voltage difference may represent that the first calibration voltage is higher or lower than the first voltage. The first voltage difference may be the difference between the first voltage and the first calibration voltage obtained when the first power supply 20 is in a normal working state.

[0064] For example, the digital control module 10 sets the first voltage threshold to 10.5V. After sending the first voltage threshold to the first power supply 20, the first power supply 20 sets the value of the first voltage to 10.5V according to the first voltage threshold, and sets the value of the first calibration voltage to a value slightly lower than the first voltage. The value of the first calibration voltage is set to 10.49V. The first voltage value 10.5V and the first calibration voltage value 10.49V are compared by the comparison module 30 to obtain a first voltage difference of 0.01V between the first voltage and the first calibration voltage. The first voltage difference indicates that the first calibration voltage is lower than the first voltage.

[0065] In one embodiment of the present application, Figure 5As shown, obtaining a corresponding second voltage according to the first voltage threshold by the voltage monitor, and comparing the second voltage with the first calibration voltage to obtain a second comparison result includes:

[0066] The voltage monitor compares the second voltage with the first calibration voltage to obtain a second voltage difference between the second voltage and the first calibration voltage, wherein the second voltage difference indicates whether the first calibration voltage is higher or lower than the second voltage.

[0067] In this embodiment, when the second voltage is compared with the first calibration voltage, the voltage monitor 40 compares the value of the second voltage with the value of the first calibration voltage to obtain a second voltage difference between the second voltage and the first calibration voltage, and the second voltage difference represents the degree of fluctuation between the second voltage and the first calibration voltage. Specifically, the second voltage difference can represent whether the first calibration voltage is higher or lower than the second voltage. The second voltage difference can be the difference between the second voltage and the first calibration voltage obtained when the voltage monitor 40 is in a normal working state, or it can be the difference between the second voltage and the first calibration voltage obtained when the voltage monitor 40 is in an abnormal working state.

[0068] For example, the digital control module 10 sets the first voltage threshold to 10.5V, and after sending the first voltage threshold to the voltage monitor 40, the voltage monitor 40 sets the value of the second voltage to 10.5V according to the first voltage threshold; the first power supply 20 sets the value of the first voltage to 10.5V according to the first voltage threshold, and sets the value of the first calibration voltage to a value slightly lower than the first voltage, and the value of the first calibration voltage is set to 10.49V; the first calibration voltage is sent to the voltage monitor 40, and the second voltage value 10.5V and the first calibration voltage value 10.49V are compared by the voltage monitor 40 to obtain a second voltage difference of 0.01V between the second voltage and the first calibration voltage, and the second voltage difference indicates that the first calibration voltage is lower than the second voltage.

[0069] For another example, the digital control module 10 sets the first voltage threshold to 10.5V. After sending the first voltage threshold to the voltage monitor 40, the voltage monitor 40 sets the value of the second voltage to 10.5V according to the first voltage threshold. However, the voltage monitor 40 is affected by external environmental factors, and the actual voltage threshold corresponding to the voltage monitor 40 changes relative to the first voltage threshold. The actual voltage threshold corresponding to the voltage monitor 40 is 10.4V, that is, the voltage monitor 40 sets the actual value of the second voltage to 10.4V according to the actual voltage threshold; the first power supply 20 sets the value of the first voltage to 10.5V according to the first voltage threshold, and sets the value of the first calibration voltage to a value slightly lower than the first voltage, and the value of the first calibration voltage is set to 10.49V; the first calibration voltage is sent to the voltage monitor 40, and the actual value of the second voltage 10.4V and the value of the first calibration voltage 10.49V are compared by the voltage monitor 40 to obtain a second voltage difference of -0.09V between the second voltage and the first calibration voltage, and the second voltage difference indicates that the first calibration voltage is higher than the second voltage.

[0070] In one embodiment of the present application, Figure 3 and Figure 5 As shown, determining whether the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold according to the first comparison result and the second comparison result includes:

[0071] S510, when a first voltage difference represented by the first comparison result and a second voltage difference represented by the second comparison result are the same, determining that a voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold;

[0072] In this embodiment, the first voltage and the first calibration voltage are numerically compared by the comparison module 30 to obtain a first voltage difference between the first voltage and the first calibration voltage, and the second voltage and the first calibration voltage are numerically compared by the voltage monitor 40 to obtain a second voltage difference between the second voltage and the first calibration voltage, and then the first voltage difference and the second voltage difference are compared to determine whether the actual voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold. When the first voltage difference and the second voltage difference are the same, it indicates that the second voltage set by the voltage monitor 40 according to the first voltage threshold has not changed, that is, the actual voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold, and it can be determined that the voltage monitor 40 is in a normal working state.

[0073] For example, the digital control module 10 sets the first voltage threshold to 10.5V, and sends the first voltage threshold to the first power supply 20 and the voltage monitor 40. The first power supply 20 sets the value of the first voltage to 10.5V according to the first voltage threshold, and sets the value of the first calibration voltage to a value slightly lower than the first voltage, the value of the first calibration voltage is set to 10.49V, and then sends the first calibration voltage to the voltage monitor 40; the first voltage value 10.5V is compared with the value 10.49V of the first calibration voltage through the comparison module 30, and a first voltage difference value of 0.01V between the first voltage and the first calibration voltage is obtained. The voltage monitor 40 sets the value of the second voltage to 10.5V according to the first voltage threshold, and then compares the value of the second voltage 10.5V with the value of the first calibration voltage 10.49V through the voltage monitor 40, and a second voltage difference value of 0.01V between the second voltage and the first calibration voltage is obtained. By comparing the first voltage difference and the second voltage difference, it can be determined that the first voltage difference and the second voltage difference are the same, indicating that the actual voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold, and the second voltage set by the voltage monitor 40 according to the first voltage threshold has not changed, and further it can be determined that the voltage monitor 40 is in normal working condition.

[0074] S520: When a first voltage difference represented by the first comparison result and a second voltage difference represented by the second comparison result are different, determine that a voltage threshold corresponding to the voltage monitor is different from the first voltage threshold.

[0075] In this embodiment, the first voltage and the first calibration voltage are numerically compared by the comparison module 30 to obtain a first voltage difference between the first voltage and the first calibration voltage, and the second voltage and the first calibration voltage are numerically compared by the voltage monitor 40 to obtain a second voltage difference between the second voltage and the first calibration voltage, and then the first voltage difference and the second voltage difference are compared to determine whether the actual voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold. When the first voltage difference and the second voltage difference are different, it indicates that the second voltage set by the voltage monitor 40 according to the first voltage threshold has changed, that is, the actual voltage threshold corresponding to the voltage monitor 40 is different from the first voltage threshold, and it can be determined that the voltage monitor 40 is in an abnormal working state.

[0076] For example, the digital control module 10 sets the first voltage threshold to 10.5V, and sends the first voltage threshold to the first power supply 20 and the voltage monitor 40; the first power supply 20 sets the value of the first voltage to 10.5V according to the first voltage threshold, and sets the value of the first calibration voltage to a value slightly lower than the first voltage, the value of the first calibration voltage is set to 10.49V, and then the first calibration voltage is sent to the voltage monitor 40; the first voltage value 10.5V and the first calibration voltage value 10.49V are compared through the comparison module 30 to obtain a first voltage difference of 0.01V between the first voltage and the first calibration voltage. The voltage monitor 40 sets the value of the second voltage to 10.5V according to the first voltage threshold. However, the voltage monitor 40 is affected by external environmental factors, and the actual voltage threshold corresponding to the voltage monitor 40 changes relative to the first voltage threshold. The actual voltage threshold corresponding to the voltage monitor 40 is 10.4V. The voltage monitor 40 sets the actual value of the second voltage to 10.4V according to the actual voltage threshold. Then, the voltage monitor 40 compares the value of the second voltage 10.4V with the value of the first calibration voltage 10.49V, and obtains a second voltage difference of -0.09V between the second voltage and the first calibration voltage. By comparing the first voltage difference with the second voltage difference, it can be determined that the first voltage difference and the second voltage difference are different, indicating that the actual voltage threshold corresponding to the voltage monitor 40 is different from the first voltage threshold, and the second voltage set by the voltage monitor 40 according to the first voltage threshold has changed, and it can be determined that the voltage monitor 40 is in an abnormal working state.

[0077] In one embodiment of the present application, the method further includes:

[0078] When the voltage threshold corresponding to the voltage monitor is different from the first voltage threshold, a first compensation signal is sent to the voltage monitor through the digital control module to adjust the voltage threshold corresponding to the voltage monitor so that the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold.

[0079] In this embodiment, after the actual voltage threshold of the voltage monitor 40 is verified, if the actual voltage threshold of the voltage monitor 40 is different from the first voltage threshold, it indicates that the voltage monitor 40 is affected by external environmental factors, and the actual voltage threshold set by the voltage monitor 40 has changed relative to the first voltage threshold, and the actual voltage threshold of the voltage monitor 40 needs to be adjusted. Specifically, Figure 5 As shown, a first compensation signal can be sent to the voltage monitor 40 through the digital control module 10. The actual voltage threshold of the voltage monitor 40 can be increased or decreased through the first compensation signal, so that the actual voltage threshold of the voltage monitor 40 is adjusted to be the same as the first voltage threshold.

[0080] In one embodiment of the present application, the method further includes:

[0081] When the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold, the input voltage of the chip is sent to the voltage monitor, and the input voltage of the chip is monitored based on the voltage threshold corresponding to the voltage monitor.

[0082] In this embodiment, after the actual voltage threshold of the voltage monitor 40 is checked or adjusted, if the actual voltage threshold of the voltage monitor 40 is the same as the first voltage threshold, it indicates that the voltage monitor 40 is not affected by external environmental factors, or the actual voltage threshold of the voltage monitor 40 is the same as the set first voltage threshold after adjustment, and the voltage monitor 40 can be used to monitor the working voltage of the chip 100. Specifically, the input voltage of the chip 100 can be sent to the voltage monitor 40, and the input voltage of the chip 100 is monitored based on the actual voltage threshold corresponding to the voltage monitor 40, that is, the first voltage threshold. If the value corresponding to the input voltage of the chip 100 is too high or too low compared with the first voltage threshold, it indicates that the chip 100 may be in an abnormal working state, and the working state of the chip 100 can be adjusted to ensure the stability of the working voltage of the chip 100.

[0083] Based on the same inventive concept, the present application embodiment also provides a detection device for a voltage monitor, which is applied to the chip 100. Figure 4 As shown, including:

[0084] A digital control module 10, a first power supply 20, a comparison module 30 and a voltage monitor 40, wherein the digital control module 10 is connected to the first power supply 20 and the voltage monitor 40 respectively, the first power supply 20 is connected to the comparison module 30 and the voltage monitor 40 respectively, and the comparison module 30 is connected to the digital control module 10;

[0085] The digital control module 10 is used to send a first voltage threshold to the voltage monitor 40 and the first power supply 20 respectively, wherein the first voltage threshold is a voltage threshold corresponding to the chip operating voltage monitored by the voltage monitor 40;

[0086] In this embodiment, the digital control module 10 first sets a first voltage threshold for the voltage monitor 40. The first voltage threshold is a voltage threshold corresponding to the chip operating voltage used by the voltage monitor 40 to monitor. That is, the voltage monitor 40 will monitor whether the fluctuation of the operating voltage output by the power supply is within a reasonable range according to the first voltage threshold under normal working conditions. For example, the voltage threshold expected by the voltage monitor 40 can be configured through a register. After setting the first voltage threshold, the digital control module 10 will send the first voltage threshold to the voltage monitor 40 and the first power supply 20 respectively, so that the first power supply 20 outputs a corresponding voltage according to the first voltage threshold, and the voltage monitor 40 outputs a corresponding voltage according to the first voltage threshold, and then the voltage monitor 40 is verified according to the voltage output by the first power supply 20 and the voltage output by the voltage monitor 40 to determine whether the voltage monitor 40 is in a normal working state.

[0087] The first power supply 20 is used to determine a first voltage corresponding to the first voltage threshold, and a first calibration voltage associated with the first voltage, wherein the first calibration voltage is used to detect the voltage threshold corresponding to the voltage monitor 40;

[0088] In this embodiment, after the digital control module 10 sets the first voltage threshold and sends the first voltage threshold to the first power supply 20, the first power supply 20 determines the first voltage corresponding to the first voltage threshold and the first calibration voltage associated with the first voltage, that is, the first power supply 20 sets the corresponding first voltage according to the first voltage threshold and the first calibration voltage associated with the first voltage. The first voltage may be the threshold voltage of the first power supply 20. The threshold voltage refers to the voltage value at which the device begins to respond or switch states when the voltage of the input signal reaches a certain threshold in a semiconductor device. The threshold voltage is usually the critical point from a non-responsive state to a responsive state. The first calibration voltage is used to detect the voltage threshold corresponding to the voltage monitor 40. The first calibration voltage can be set to be slightly lower or higher than the first voltage. The first calibration voltage can be compared with the first voltage to determine the difference between the first voltage and the first calibration voltage.

[0089] The first power supply 20 is further used to send the first voltage and the first calibration voltage to the comparison module 30, and send the first calibration voltage to the voltage monitor 40;

[0090] In this embodiment, after determining the first voltage corresponding to the first voltage threshold and the first calibration voltage associated with the first voltage through the first power supply 20, the first power supply 20 is also used to send the first voltage and the first calibration voltage to the comparison module 30, and send the first calibration voltage to the voltage monitor 40, so as to detect the voltage threshold corresponding to the voltage monitor 40 according to the first calibration voltage.

[0091] The comparison module 30 is used to compare the first voltage with the first calibration voltage to obtain a first comparison result;

[0092] In this embodiment, the first voltage and the first calibration voltage are compared by the comparison module 30 to obtain a first comparison result, and the difference between the first voltage and the first calibration voltage is determined based on the first comparison result. The difference between the first voltage and the first calibration voltage can be considered to be the difference obtained when the first power supply 20 is in normal working state.

[0093] The voltage monitor 40 is used to obtain a corresponding second voltage according to the first voltage threshold, and compare the second voltage with the first calibration voltage to obtain a second comparison result;

[0094] In this embodiment, after the digital control module 10 sets the first voltage threshold and sends the first voltage threshold to the voltage monitor 40, the voltage monitor 40 obtains the corresponding second voltage according to the first voltage threshold, that is, the voltage monitor 40 sets the corresponding second voltage according to the first voltage threshold, and the second voltage may be the threshold voltage of the voltage monitor 40. The voltage monitor 40 may compare the second voltage with the first calibration voltage to obtain a second comparison result, and determine the difference between the second voltage and the first calibration voltage according to the second comparison result, and the difference between the second voltage and the first calibration voltage may be used to determine whether the voltage monitor 40 is in a normal working state.

[0095] The digital control module 10 is further configured to determine whether a voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold according to the first comparison result and the second comparison result.

[0096] In this embodiment, after the first voltage is compared with the first calibration voltage to obtain the first comparison result, and the second voltage is compared with the first calibration voltage to obtain the second comparison result, the digital control module 10 is further used to determine whether the voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold according to the first comparison result and the second comparison result. According to the first comparison result, the difference between the first voltage and the first calibration voltage can be determined, that is, the difference between the first voltage associated with the first power supply 20 set according to the first voltage threshold and the first calibration voltage, and the difference between the first voltage and the first calibration voltage represented by the first comparison result can be considered as the difference obtained when the first power supply 20 is in a normal working state. If the second comparison result is the same as the first comparison result, that is, the difference between the second voltage and the first calibration voltage is equal to the difference between the first voltage and the first calibration voltage, it indicates that the second voltage set by the voltage monitor 40 according to the first voltage threshold has not changed, and it can be determined that the voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold, and then it is determined that the voltage monitor 40 is in a normal working state. If the second comparison result is different from the first comparison result, that is, the difference between the second voltage and the first calibration voltage cannot be equal to the difference between the first voltage and the first calibration voltage, it indicates that the second voltage set by the voltage monitor 40 according to the first voltage threshold has changed. It can be determined that the voltage threshold corresponding to the voltage monitor 40 is different from the first voltage threshold, and then it is determined that the voltage monitor 40 is not in a normal working state. It is necessary to calibrate the actual voltage threshold of the voltage monitor 40 so that the voltage monitor 40 is in a normal working state.

[0097] The detection device of the voltage monitor of the embodiment of the present application sets a first voltage threshold for the voltage monitor 40 through the digital control module 10, determines a first voltage corresponding to the first voltage threshold and a first calibration voltage associated with the first voltage through the first power supply 20; compares the first voltage with the first calibration voltage through the comparison module 30 to obtain a first comparison result; obtains a corresponding second voltage according to the first voltage threshold through the voltage monitor 40, and compares the second voltage with the first calibration voltage to obtain a second comparison result; determines whether the voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold according to the first comparison result and the second comparison result, and further determines whether the voltage monitor 40 is in a normal working state. The detection device of the voltage monitor of the present application sets a first voltage threshold for the voltage monitor 40 using the digital control module 10 inside the chip, verifies the voltage monitor 40 according to the voltage output by the first power supply 20 and the voltage output by the voltage monitor 40, determines whether the voltage threshold corresponding to the voltage monitor 40 is the same as the first voltage threshold, and further determines whether the voltage monitor 40 is in a normal working state. The detection device of the voltage monitor of the present application utilizes the module inside the chip to calibrate the voltage threshold corresponding to the voltage monitor 40. There is no need to use an external test instrument to calibrate the voltage monitor 40, which simplifies the calibration process of the voltage monitor 40, reduces costs, and reduces the impact of process and environmental factors on the voltage monitor 40, ensuring that the voltage monitor 40 operates within the expected range and ensuring the stability of the monitoring system.

[0098] Based on the same concept, the embodiment of the present application also provides an electronic device, such as Figure 6 As shown, it includes a processor and a memory, wherein an executable program is stored in the memory, and the memory executes the executable program to perform the steps of the method as described above.

[0099] An embodiment of the present application further provides a chip, comprising the detection device of the voltage monitor as described above, wherein the detection device of the voltage monitor is used to detect a voltage threshold corresponding to the voltage monitor.

[0100] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.

[0101] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM).

[0102] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) is integrated in the processor.

[0103] It should be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0104] It should also be understood that the first, second, third, fourth and various numerical numbers involved in this document are only distinctions made for convenience of description and are not intended to limit the scope of the present application.

[0105] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0106] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0107] In various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0108] Those skilled in the art will appreciate that the various illustrative logical blocks (ILBs) and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0109] In the several embodiments provided in the present application, it should be understood that the disclosed data detection methods, devices, electronic devices, storage media and chips can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units (or modules) is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0111] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0112] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0113] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A detection method for a voltage monitor, characterized in that: Applied in a chip, the chip comprises a digital control module, a first power supply, a comparison module and a voltage monitor, the digital control module is respectively connected to the first power supply and the voltage monitor, the first power supply is respectively connected to the comparison module and the voltage monitor, and the comparison module is connected to the digital control module; the method comprises: Sending a first voltage threshold to the voltage monitor and the first power supply respectively through the digital control module, wherein the first voltage threshold is a voltage threshold corresponding to the chip operating voltage used by the voltage monitor; determining, by the first power supply, a first voltage corresponding to the first voltage threshold, and a first calibration voltage associated with the first voltage, wherein the first calibration voltage is used to detect a voltage threshold corresponding to the voltage monitor; Sending the first voltage and the first calibration voltage to the comparison module, and sending the first calibration voltage to the voltage monitor, and comparing the first voltage and the first calibration voltage through the comparison module to obtain a first comparison result; obtaining a corresponding second voltage according to the first voltage threshold by the voltage monitor, and comparing the second voltage with the first calibration voltage to obtain a second comparison result; According to the first comparison result and the second comparison result, it is determined whether the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold.

2. The detection method of the voltage monitor according to claim 1, characterized in that: The digital control module is provided with a logic operation unit, and the method further comprises: Sending a first control signal to the voltage monitor through the digital control module to obtain voltage configuration information of the voltage monitor; The first voltage threshold is calculated by the logic operation unit based on the voltage configuration information of the voltage monitor.

3. The detection method of the voltage monitor according to claim 1, characterized in that: The comparing module compares the first voltage with the first calibration voltage to obtain a first comparison result, including: The comparison module compares the first voltage with the first calibration voltage to obtain a first voltage difference between the first voltage and the first calibration voltage, wherein the first voltage difference indicates whether the first calibration voltage is higher or lower than the first voltage.

4. The detection method of the voltage monitor according to claim 1, characterized in that: The step of obtaining a corresponding second voltage according to the first voltage threshold by the voltage monitor, and comparing the second voltage with the first calibration voltage to obtain a second comparison result includes: The voltage monitor compares the second voltage with the first calibration voltage to obtain a second voltage difference between the second voltage and the first calibration voltage, wherein the second voltage difference indicates whether the first calibration voltage is higher or lower than the second voltage.

5. The detection method of the voltage monitor according to claim 1, characterized in that: The determining, according to the first comparison result and the second comparison result, whether the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold includes: When a first voltage difference represented by the first comparison result and a second voltage difference represented by the second comparison result are the same, determining that a voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold; When a first voltage difference value represented by the first comparison result is different from a second voltage difference value represented by the second comparison result, it is determined that the voltage threshold corresponding to the voltage monitor is different from the first voltage threshold.

6. The detection method of the voltage monitor according to claim 1, characterized in that: The method further comprises: When the voltage threshold corresponding to the voltage monitor is different from the first voltage threshold, a first compensation signal is sent to the voltage monitor through the digital control module to adjust the voltage threshold corresponding to the voltage monitor so that the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold.

7. The detection method of the voltage monitor according to claim 1, characterized in that: The method further comprises: When the voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold, the input voltage of the chip is sent to the voltage monitor, and the input voltage of the chip is monitored based on the voltage threshold corresponding to the voltage monitor.

8. A detection device for a voltage monitor, characterized in that: Applied in chips, including: A digital control module, a first power supply, a comparison module and a voltage monitor, wherein the digital control module is connected to the first power supply and the voltage monitor respectively, the first power supply is connected to the comparison module and the voltage monitor respectively, and the comparison module is connected to the digital control module; The digital control module is used to send a first voltage threshold to the voltage monitor and the first power supply respectively, wherein the first voltage threshold is a voltage threshold corresponding to the chip operating voltage monitored by the voltage monitor; The first power supply is used to determine a first voltage corresponding to the first voltage threshold, and a first calibration voltage associated with the first voltage, wherein the first calibration voltage is used to detect the voltage threshold corresponding to the voltage monitor; The first power supply is further used to send the first voltage and the first calibration voltage to the comparison module, and send the first calibration voltage to the voltage monitor; The comparison module is used for comparing the first voltage with the first calibration voltage to obtain a first comparison result; The voltage monitor is used to obtain a corresponding second voltage according to the first voltage threshold, and compare the second voltage with the first calibration voltage to obtain a second comparison result; The digital control module is further configured to determine whether a voltage threshold corresponding to the voltage monitor is the same as the first voltage threshold according to the first comparison result and the second comparison result.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein an executable program is stored in the memory, and the memory executes the executable program to perform the steps of the method according to any one of claims 1 to 7.

10. A chip, characterized in that: It comprises the detection device of the voltage monitor as claimed in claim 8, wherein the detection device of the voltage monitor is used to detect the voltage threshold corresponding to the voltage monitor.