Detection method, device, equipment and system of switching power supply chip and medium

By connecting the variable resistor device with the voltage control pin of the switching power supply chip in parallel to detect the resistance state of the switching power supply chip, the equipment operation problems caused by abnormal switching power supply chips are solved, and early warning and fault avoidance are achieved.

CN119414201APending Publication Date: 2025-02-11GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411403622.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

In electronic devices, abnormalities in the switching power supply chip will cause other circuits to fail to obtain the required operating voltage, affecting the operation of the equipment, so a technology that can detect the switching power supply chip is needed.

Method used

By connecting the variable resistance device in parallel with the voltage control pin of the switching power supply chip, obtain the resistance value of the variable resistance device and the reference resistance value of the voltage control pin, measure the voltage and current of the equivalent resistance, determine the current resistance value, and Detect the resistance state based on the current resistance value and the reference resistance value.

Benefits of technology

It realizes detection of the resistance status of the switching power supply chip voltage control pin, warning in advance and avoids equipment failures caused by abnormal resistance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119414201A_ABST
    Figure CN119414201A_ABST
Patent Text Reader

Abstract

The invention provides a method, a device, equipment and a system for detecting a switching power supply chip and a medium. The method comprises the following steps: acquiring a first resistance value of a variable resistance device and a reference resistance value of a voltage control pin; measuring equivalent resistance of the voltage control pin and the variable resistance device to obtain a first voltage value and a first current value of the equivalent resistance; determining a current resistance value of the voltage control pin according to the first resistance value, the first voltage value and the first current value; and detecting the resistance state of the voltage control pin according to the current resistance value and the reference resistance value. According to the invention, the resistance state of the voltage control pin of the switching power supply chip can be detected, so that early warning is realized in advance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of switching power supply chip detection, and in particular to a switching power supply chip detection method, a switching power supply chip detection device, an electronic device, a computer-readable storage medium and a switching power supply chip detection system. Background Art

[0002] In electronic devices, switching power supply chips play a vital role. They are responsible for stably providing the required operating voltage to other circuits.

[0003] In practical applications, when a switching power supply chip fails, other circuits may not be able to obtain the required operating voltage, thereby affecting the operation of the entire electronic device. Therefore, there is an urgent need for a technology that can detect switching power supply chips. Summary of the invention

[0004] In view of the above problems, a detection method for a switching power supply chip, a detection device for a switching power supply chip, an electronic device, a computer-readable storage medium and a detection system for a switching power supply chip are proposed to overcome the above problems or at least partially solve the above problems, including:

[0005] A detection method for a switching power supply chip, wherein a voltage control pin of the switching power supply chip is connected in parallel with a variable resistance device, the method comprising:

[0006] Acquiring a first resistance value of the variable resistor device and a reference resistance value of the voltage control pin;

[0007] Measuring the equivalent resistance of the voltage control pin and the variable resistance device to obtain a first voltage value and a first current value of the equivalent resistance;

[0008] determining a current resistance value of the voltage control pin according to the first resistance value, the first voltage value, and the first current value;

[0009] The resistance state of the voltage control pin is detected according to the current resistance value and the reference resistance value.

[0010] Optionally, the method further comprises:

[0011] When it is determined that the resistance state of the voltage control pin is an abnormal state according to the current resistance value and the reference resistance value, adjusting the resistance of the variable resistance device according to the current resistance value of the voltage control pin;

[0012] The adjusted variable resistance device and the voltage control pin are used as new voltage control pins, and the switching power supply chip operates based on the new voltage control pins.

[0013] Optionally, the first resistance value includes a plurality of values, the current resistance value includes a plurality of values, and one first resistance value corresponds to one current resistance value; and detecting the resistance state of the voltage control pin according to the current resistance value and the reference resistance value includes:

[0014] When the number of the current resistance values ​​exceeds a preset number, calculating an average value of a plurality of the current resistance values;

[0015] When the difference between the average value and the reference resistance value is within a first preset interval, determining that the resistance state of the voltage control pin is a normal state;

[0016] When the difference between the average value and the reference resistance value is not within the first preset interval, it is determined that the resistance state of the voltage control pin is an abnormal state.

[0017] Optionally, the variable resistor device is connected in parallel with the voltage control pin via a first switch unit; and the method further comprises:

[0018] When the current resistance value is not within the second preset interval, determining that the first switch unit is not closed; when the first switch unit is not closed, closing the first switch unit;

[0019] When the current resistance value is within a second preset interval, it is determined that the first switch unit is closed; when the first switch unit is closed, the step of detecting the resistance state of the voltage control pin according to the current resistance value and the reference resistance value is performed.

[0020] Optionally, the voltage control pin is selectively connected to the current sampling circuit and the voltage sampling circuit through a third switch unit; the equivalent resistance of the voltage control pin and the variable resistance device is measured to obtain a first voltage value and a first current value of the equivalent resistance, including:

[0021] Controlling the third switch unit to connect the voltage control pin and the current sampling circuit, and obtaining the first current value based on the current sampling circuit;

[0022] The third switch unit is controlled to connect the voltage control pin with the voltage sampling circuit, and the first voltage value is obtained based on the voltage sampling circuit.

[0023] Optionally, the voltage control pin is further grounded through a second switch unit; and controlling the third switch unit to connect the voltage control pin with the voltage sampling circuit, and obtaining the first voltage value based on the voltage sampling circuit, comprises:

[0024] Controlling the third switch unit to connect the voltage control pin and the voltage sampling circuit;

[0025] And, controlling the closing of the second switch unit;

[0026] Based on the voltage sampling circuit, the first voltage value is obtained.

[0027] Optionally, the method further comprises:

[0028] When it is determined that the resistance state of the voltage control pin is in an abnormal state, a prompt indicating the resistance abnormality of the voltage control pin is given.

[0029] An embodiment of the present invention further provides a detection system for a switching power supply chip, the system comprising:

[0030] A switching power supply chip including a voltage control pin;

[0031] a variable resistance device connected in parallel with the voltage control pin;

[0032] A digital signal processing unit is used to execute the method as described above.

[0033] The embodiment of the present invention further provides a detection device for a switching power supply chip, wherein a voltage control pin of the switching power supply chip is connected in parallel with a variable resistance device, and the device comprises:

[0034] An acquisition module, used for acquiring a first resistance value of the variable resistor device and a reference resistance value of the voltage control pin;

[0035] A measuring module, configured to measure an equivalent resistance of the voltage control pin and the variable resistance device to obtain a first voltage value and a first current value of the equivalent resistance;

[0036] a determination module, configured to determine a current resistance value of the voltage control pin according to the first resistance value, the first voltage value, and the first current value;

[0037] The detection module is used to detect the resistance state of the voltage control pin according to the current resistance value and the reference resistance value.

[0038] Optionally, the device further comprises:

[0039] The regulating module is used for, when it is determined that the resistance state of the voltage control pin is abnormal according to the current resistance value and the reference resistance value, regulating the resistance of the variable resistor device according to the current resistance value of the voltage control pin; using the adjusted variable resistor device and the voltage control pin as new voltage control pins, and the switching power supply chip operates based on the new voltage control pin.

[0040] Optionally, the first resistance value includes multiple, the current resistance value includes multiple, and one first resistance value corresponds to one current resistance value; the detection module is used to calculate the average value of the multiple current resistance values ​​when the number of the current resistance values ​​exceeds a preset number; when the difference between the average value and the reference resistance value is within a first preset interval, it is determined that the resistance state of the voltage control pin is a normal state; when the difference between the average value and the reference resistance value is not within the first preset interval, it is determined that the resistance state of the voltage control pin is an abnormal state.

[0041] Optionally, the variable resistor device is connected in parallel with the voltage control pin via a first switch unit; the device further comprises:

[0042] The first switch control module is used to determine that the first switch unit is not closed when the current resistance value is not within a second preset interval; close the first switch unit when the first switch unit is not closed; determine that the first switch unit is closed when the current resistance value is within the second preset interval; and execute the step of detecting the resistance state of the voltage control pin according to the current resistance value and the reference resistance value when the first switch unit is closed.

[0043] Optionally, the voltage control pin is selectively connected to the current sampling circuit and the voltage sampling circuit through a third switch unit; the measurement module is used to control the third switch unit to connect the voltage control pin with the current sampling circuit, and obtain the first current value based on the current sampling circuit; control the third switch unit to connect the voltage control pin with the voltage sampling circuit, and obtain the first voltage value based on the voltage sampling circuit.

[0044] Optionally, the voltage control pin is also grounded through a second switch unit; the measurement module is used to control the third switch unit to connect the voltage control pin with the voltage sampling circuit; and control the closing of the second switch unit; and obtain the first voltage value based on the voltage sampling circuit.

[0045] Optionally, the device further comprises:

[0046] The prompt module is used for prompting the voltage control pin of abnormal resistance when it is determined that the resistance state of the voltage control pin is abnormal.

[0047] An embodiment of the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above-mentioned detection method for a switching power supply chip when executed by the processor.

[0048] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned detection method for a switching power supply chip is implemented.

[0049] The embodiments of the present invention have the following advantages:

[0050] In the embodiment of the present invention, the first resistance value of the variable resistor device and the reference resistance value of the voltage control pin are obtained; the equivalent resistance of the voltage control pin and the variable resistor device is measured to obtain the first voltage value and the first current value of the equivalent resistance; the current resistance value of the voltage control pin is determined according to the first resistance value, the first voltage value and the first current value; the resistance state of the voltage control pin is detected according to the current resistance value and the reference resistance value. Through the embodiment of the present invention, the resistance state of the voltage control pin of the switching power supply chip can be detected, so as to realize early warning. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0052] Figure 1 It is a flow chart of the steps of a detection method of a switching power supply chip according to an embodiment of the present invention;

[0053] Figure 2 is a flow chart of steps of another method for detecting a switching power supply chip according to an embodiment of the present invention;

[0054] Figure 3 is a flow chart of steps of another method for detecting a switching power supply chip according to an embodiment of the present invention;

[0055] Figure 4 is a flow chart of steps of another method for detecting a switching power supply chip according to an embodiment of the present invention;

[0056] Figure 5It is a structural schematic diagram of a detection system for a switching power supply chip according to an embodiment of the present invention;

[0057] Figure 6a It is a structural schematic diagram of another detection system for a switching power supply chip according to an embodiment of the present invention;

[0058] Figure 6b It is for Figure 6a A flow chart of the steps of the detection process of the structure;

[0059] Figure 6c is a structural schematic diagram of a current sampling circuit according to an embodiment of the present invention;

[0060] Figure 6d is a schematic structural diagram of a voltage sampling circuit according to an embodiment of the present invention;

[0061] Figure 7 It is a structural schematic diagram of a detection device for a switching power supply chip according to an embodiment of the present invention. DETAILED DESCRIPTION

[0062] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] In order to detect the switching power supply chip, specifically, to detect the resistance state of the voltage control pin in the switching power supply chip, an embodiment of the present invention provides a detection method for the switching power supply chip; the method detects the current resistance value of the voltage control pin by setting a variable resistance device in parallel with the voltage control pin of the switching power supply chip, and then detects the resistance state of the voltage control pin based on the current resistance value, so as to realize the fault detection of the switching power supply chip, thereby avoiding in advance the failure of electronic equipment to operate normally due to the abnormal resistance of the voltage control pin in the switching power supply chip. Specifically, you can refer to Figure 1 , Figure 1 A flow chart showing the steps of a method for detecting a switching power supply chip according to an embodiment of the present invention is shown.

[0064] like Figure 1 As shown, the method may include the following steps:

[0065] Step 101: Obtain a first resistance value of a variable resistor device and a reference resistance value of a voltage control pin.

[0066] In practical applications, a DSP (Digital Signal Processing) unit may be set to execute the steps of the detection method of the switching power supply chip mentioned in the embodiment of the present invention. First, the digital signal processing unit may first obtain the first resistance value currently set by the variable resistance device from the variable resistance device, and the reference resistance value pre-set for the voltage control pin of the switching power supply chip, the reference resistance value may be the resistance value that the voltage control pin should have, under which the voltage control pin can ensure that the switching power supply chip performs voltage control normally.

[0067] Step 102: Measure the equivalent resistance of the voltage control pin and the variable resistance device to obtain a first voltage value and a first current value of the equivalent resistance.

[0068] In the embodiment of the present invention, in order to simplify the circuit structure, the voltage control pin and the variable resistance device connected in parallel may be used as an equivalent resistance; then, the equivalent resistance is measured to obtain a first voltage value and a first current value of the equivalent resistance.

[0069] Step 103: Determine the current resistance value of the voltage control pin according to the first resistance value, the first voltage value, and the first current value.

[0070] After the first voltage value and the second voltage value of the equivalent resistance are obtained, the current resistance value of the voltage control pin connected in parallel with the variable resistance device can be calculated according to the first resistance value, the first voltage value and the first current value.

[0071] Step 104: Detect the resistance state of the voltage control pin according to the current resistance value and the reference resistance value.

[0072] After obtaining the current resistance value of the voltage control pin, the resistance state of the voltage control pin can be detected according to the current resistance value and the reference resistance value pre-set for the voltage control pin of the switching power supply chip. Exemplarily, the reference resistance value can be used as a reference, and the resistance state of the voltage control pin can be detected based on the deviation between the current resistance value and the reference resistance value. When the deviation is large, it can be considered that the resistance state of the voltage control pin is abnormal, that is, it is in an abnormal state; when the deviation is small, it can be considered that the resistance state of the voltage control pin is not abnormal, that is, it is in a normal state.

[0073] In the embodiment of the present invention, the first resistance value of the variable resistor device and the reference resistance value of the voltage control pin are obtained; the equivalent resistance of the voltage control pin and the variable resistor device is measured to obtain the first voltage value and the first current value of the equivalent resistance; the current resistance value of the voltage control pin is determined according to the first resistance value, the first voltage value and the first current value; the resistance state of the voltage control pin is detected according to the current resistance value and the reference resistance value. Through the embodiment of the present invention, the resistance state of the voltage control pin of the switching power supply chip can be detected, so as to realize early warning.

[0074] Reference Figure 2 , shows a flow chart of another method for detecting a switching power supply chip according to an embodiment of the present invention, which may include the following steps:

[0075] Step 201: Obtain a first resistance value of a variable resistor device and a reference resistance value of a voltage control pin.

[0076] In some feasible embodiments, the digital signal processing unit can first obtain the first resistance value currently set by the variable resistance device from the variable resistance device, as well as a reference resistance value pre-set for the voltage control pin of the switching power supply chip. The reference resistance value can be the resistance value that the voltage control pin should have.

[0077] Exemplarily, the first resistance value and the reference resistance value may be stored in a register of the variable resistance device, and the digital signal processing unit may obtain the first resistance value and the reference resistance value by reading the register of the variable resistance device, which is not limited in this embodiment of the present invention.

[0078] Step 202: Measure the equivalent resistance of the voltage control pin and the variable resistance device to obtain a first voltage value and a first current value of the equivalent resistance.

[0079] In some feasible embodiments, the digital signal processing unit may first use the voltage control pin and the variable resistance device connected in parallel as an equivalent resistor; then, measure the voltage and current of the equivalent resistor to obtain a first voltage value and a first current value of the equivalent resistor.

[0080] Step 203: Determine the current resistance value of the voltage control pin according to the first resistance value, the first voltage value, and the first current value.

[0081] After the first voltage value and the second voltage value of the equivalent resistance are obtained, the current resistance value of the voltage control pin connected in parallel with the variable resistance device can be calculated according to the first resistance value, the first voltage value and the first current value.

[0082] Step 204: Detect the resistance state of the voltage control pin according to the current resistance value and the reference resistance value.

[0083] After obtaining the current resistance value of the voltage control pin, the resistance state of the voltage control pin can be detected according to the current resistance value and the reference resistance value pre-set for the voltage control pin of the switching power supply chip. Exemplarily, the reference resistance value can be used as a reference, and the resistance state of the voltage control pin can be detected based on the deviation between the current resistance value and the reference resistance value. When the deviation is large, it can be considered that the resistance state of the voltage control pin is abnormal, that is, it is in an abnormal state; when the deviation is small, it can be considered that the resistance state of the voltage control pin is not abnormal, that is, it is in a normal state.

[0084] Step 205 : when it is determined that the resistance state of the voltage control pin is abnormal according to the current resistance value and the reference resistance value, the resistance of the variable resistance device is adjusted according to the current resistance value of the voltage control pin.

[0085] In some feasible embodiments, if the resistance state of the voltage control pin is determined to be abnormal based on the current resistance value and the reference resistance value, in order to ensure that the switching power supply chip can continue to operate normally, the digital signal processing unit can connect the variable resistance device to the circuit to maintain the normal operation of the switching power supply chip.

[0086] Specifically, the digital signal processing unit can first adjust the resistance of the variable resistor device according to the current resistance value of the voltage control pin to ensure that the resistance value of the variable resistor device and the voltage control pin connected in parallel as the equivalent resistance matches the reference resistance value pre-set for the voltage control pin of the switching power supply chip.

[0087] Step 206: Use the adjusted variable resistance device and voltage control pin as a new voltage control pin, and the switching power supply chip operates based on the new voltage control pin.

[0088] Then, the digital signal processing unit can use the adjusted variable resistance device and the voltage control pin as a new voltage control pin so that the switching power supply chip operates based on the new voltage control pin.

[0089] In an embodiment of the present invention, the above method may further include the following steps:

[0090] The variable resistor device is connected in parallel with the voltage control pin through a first switch unit; when the current resistance value is not within a second preset interval, it is determined that the first switch unit is not closed; when the first switch unit is not closed, the first switch unit is closed; when the current resistance value is within the second preset interval, it is determined that the first switch unit is closed; when the first switch unit is closed, the step of detecting the resistance state of the voltage control pin according to the current resistance value and the reference resistance value is executed.

[0091] In some feasible embodiments, the variable resistance device can be connected in parallel with the voltage control pin through the first switch unit; by controlling the opening and closing state of the first switch unit, the parallel connection between the variable resistance device and the voltage control pin can be established.

[0092] Specifically, when the first switch unit is disconnected, the variable resistor device is not connected to the circuit of the switching power supply chip, is not connected in parallel with the voltage control pin, and does not perform any detection.

[0093] When it is necessary to detect the resistance state of the voltage control pin, the digital signal processing unit may first control the first switch to be closed, and then measure to obtain the current resistance value.

[0094] After obtaining the current resistance value, it is possible to first determine whether the current resistance value is within the second preset interval; specifically, by determining whether the current resistance value is within the second preset interval, it is possible to determine whether the first switch unit is normally closed and whether the variable resistance device is normally connected in parallel with the voltage control pin.

[0095] If the current resistance value is within the second preset interval, it can be determined that the first switch unit is in a closed state; at this time, a step of detecting the resistance state of the voltage control pin according to the current resistance value and the reference resistance value can be further performed.

[0096] On the contrary, if the current resistance value is not within the second preset interval, it can be determined that the first switch unit is not in a closed state; at this time, the first switch unit can be controlled to close first, and then the current resistance value can be measured again.

[0097] In an embodiment of the present invention, the above method may further include the following steps:

[0098] When it is determined that the resistance state of the voltage control pin is an abnormal state, a prompt indicating the resistance abnormality of the voltage control pin is given.

[0099] In some feasible embodiments, when it is determined that the resistance state of the voltage control pin is in a normal state, the resistance state of the voltage control pin may continue to be detected according to a preset monitoring strategy.

[0100] On the contrary, if the resistance state of the voltage control pin is determined to be abnormal, in order to remind the user to replace the resistor with abnormal resistance, a resistance abnormality prompt can be given for the voltage control pin; exemplarily, the prompt can be a display prompt or a sound prompt to prompt the user to replace the voltage control pin, and the embodiments of the present invention are not limited to this.

[0101] In an embodiment of the present invention, a first resistance value of a variable resistor device and a reference resistance value of a voltage control pin are obtained; the equivalent resistance of the voltage control pin and the variable resistor device is measured to obtain a first voltage value and a first current value of the equivalent resistance; the current resistance value of the voltage control pin is determined according to the first resistance value, the first voltage value and the first current value; the resistance state of the voltage control pin is detected according to the current resistance value and the reference resistance value; when the resistance state of the voltage control pin is determined to be an abnormal state according to the current resistance value and the reference resistance value, the resistance of the variable resistor device is adjusted according to the current resistance value of the voltage control pin; the adjusted variable resistor device and the voltage control pin are used as new voltage control pins, and the switching power supply chip operates based on the new voltage control pin. Through the embodiment of the present invention, the resistance state of the voltage control pin of the switching power supply chip can be detected, thereby realizing abnormal prompting.

[0102] In addition, when the resistance of the voltage control pin is abnormal, incorporating a variable resistor device into the circuit can temporarily maintain the normal operation of the circuit to prevent the switching power supply chip from operating in an abnormal voltage state for a long time, causing damage to the module.

[0103] Reference Figure 3 , shows a flow chart of steps of another method for detecting a switching power supply chip according to an embodiment of the present invention, which may include the following steps:

[0104] Step 301: Obtain a first resistance value of a variable resistor device and a reference resistance value of a voltage control pin.

[0105] In some feasible embodiments, the digital signal processing unit can first obtain the first resistance value currently set by the variable resistance device from the variable resistance device, as well as a reference resistance value pre-set for the voltage control pin of the switching power supply chip. The reference resistance value can be the resistance value that the voltage control pin should have.

[0106] Step 302: Measure the equivalent resistance of the voltage control pin and the variable resistance device to obtain a first voltage value and a first current value of the equivalent resistance.

[0107] In some feasible embodiments, the digital signal processing unit may first use the voltage control pin and the variable resistance device connected in parallel as an equivalent resistor; then, measure the voltage and current of the equivalent resistor to obtain a first voltage value and a first current value of the equivalent resistor.

[0108] Step 303: Determine the current resistance value of the voltage control pin according to the first resistance value, the first voltage value, and the first current value.

[0109] After the first voltage value and the second voltage value of the equivalent resistance are obtained, the current resistance value of the voltage control pin connected in parallel with the variable resistance device can be calculated according to the first resistance value, the first voltage value and the first current value.

[0110] Step 304: the first resistance value includes a plurality of values, the current resistance value includes a plurality of values, and one first resistance value corresponds to one current resistance value; when the number of current resistance values ​​exceeds a preset number, an average value of the plurality of current resistance values ​​is calculated.

[0111] In some feasible embodiments, due to fluctuations in current and voltage, the current resistance value obtained for the voltage control pin may fluctuate; in order to avoid misjudgment, the current resistance value of the voltage control pin at different times can be determined multiple times; and then judgment is made based on these multiple current resistance values.

[0112] Specifically, the first resistance value may include multiple first resistance values, and the values ​​of the multiple first resistance values ​​may be different; in actual applications, the digital signal processing unit may first adjust the variable resistance device to adjust the first resistance value of the variable resistance device to a value, and then obtain a current resistance value based on the first resistance value of the value.

[0113] Then at the next moment, the digital signal processing unit may adjust the variable resistance device again to adjust the first resistance value of the variable resistance device to another value, and then obtain another current resistance value based on the first resistance value of the value.

[0114] Based on the multiple current resistance values, an average value of the multiple current resistance values ​​may be calculated first.

[0115] Step 305: When the difference between the average value and the reference resistance value is within a first preset interval, it is determined that the resistance state of the voltage control pin is a normal state.

[0116] When the difference between the average value and the reference resistance value is within the first preset interval, it can be determined that the current resistance value of the voltage control pin is within the normal range; at this time, it can be determined that the resistance state of the voltage control pin is normal.

[0117] Step 306: When the difference between the average value and the reference resistance value is not within the first preset interval, determine that the resistance state of the voltage control pin is an abnormal state.

[0118] On the contrary, if the difference between the average value and the reference resistance value is not within the first preset interval, it can be determined that the current resistance value of the voltage control pin is not within the normal range; at this time, it can be determined that the resistance state of the voltage control pin is abnormal.

[0119] Step 307 : when it is determined that the resistance state of the voltage control pin is abnormal according to the current resistance value and the reference resistance value, the resistance of the variable resistance device is adjusted according to the current resistance value of the voltage control pin.

[0120] In some feasible embodiments, if the resistance state of the voltage control pin is determined to be abnormal based on the current resistance value and the reference resistance value, in order to ensure that the switching power supply chip can continue to operate normally, the digital signal processing unit can connect the variable resistance device to the circuit to maintain the normal operation of the switching power supply chip.

[0121] Specifically, the digital signal processing unit can first adjust the resistance of the variable resistor device according to the current resistance value of the voltage control pin to ensure that the resistance value of the variable resistor device and the voltage control pin connected in parallel as the equivalent resistance matches the reference resistance value pre-set for the voltage control pin of the switching power supply chip.

[0122] Step 308: Use the adjusted variable resistance device and voltage control pin as a new voltage control pin, and the switching power supply chip operates based on the new voltage control pin.

[0123] Then, the digital signal processing unit can use the adjusted variable resistance device and the voltage control pin as a new voltage control pin so that the switching power supply chip operates based on the new voltage control pin.

[0124] In an embodiment of the present invention, a first resistance value of a variable resistor device and a reference resistance value of a voltage control pin are obtained; the equivalent resistance of the voltage control pin and the variable resistor device are measured to obtain a first voltage value and a first current value of the equivalent resistance; the current resistance value of the voltage control pin is determined according to the first resistance value, the first voltage value and the first current value; the first resistance value includes a plurality of first resistance values, the current resistance value includes a plurality of current resistance values, and one first resistance value corresponds to one current resistance value; when the number of current resistance values ​​exceeds a preset number, an average value of the plurality of current resistance values ​​is calculated; when the difference between the average value and the reference resistance value is within a first preset interval, the resistance state of the voltage control pin is determined to be a normal state; when the difference between the average value and the reference resistance value is not within the first preset interval, the resistance state of the voltage control pin is determined to be an abnormal state; when the resistance state of the voltage control pin is determined to be an abnormal state according to the current resistance value and the reference resistance value, the resistance of the variable resistor device is adjusted according to the current resistance value of the voltage control pin; the adjusted variable resistor device and the voltage control pin are used as new voltage control pins, and the switching power supply chip operates based on the new voltage control pins. Through the embodiments of the present invention, the resistance state of the voltage control pin of the switching power supply chip can be detected, thereby realizing abnormal prompting.

[0125] Reference Figure 4, shows a flow chart of steps of another method for detecting a switching power supply chip according to an embodiment of the present invention, which may include the following steps:

[0126] Step 401: Obtain a first resistance value of a variable resistor device and a reference resistance value of a voltage control pin.

[0127] In some feasible embodiments, the digital signal processing unit can first obtain the first resistance value currently set by the variable resistance device from the variable resistance device, as well as a reference resistance value pre-set for the voltage control pin of the switching power supply chip. The reference resistance value can be the resistance value that the voltage control pin should have.

[0128] Step 402: The voltage control pin is selectively connected to the current sampling circuit and the voltage sampling circuit through the third switch unit; the third switch unit is controlled to connect the voltage control pin and the current sampling circuit, and a first current value is obtained based on the current sampling circuit.

[0129] In some feasible embodiments, the voltage control pin can be selectively connected to the current sampling circuit and the voltage sampling circuit through a third switch unit; specifically, the digital signal processing unit can selectively connect the voltage control pin to the current sampling circuit or the voltage sampling circuit by controlling the third switch unit to measure current or voltage.

[0130] Exemplarily, the digital signal processing unit may first control the third switch unit to connect the voltage control pin with the current sampling circuit; then, the first current value may be determined based on the current sampling circuit.

[0131] In some feasible embodiments, it can be determined whether the third switch unit is connected to the voltage control pin and the current sampling circuit based on the output signal of the current sampling circuit. Exemplarily, when the output signal of the current sampling circuit is continuously at a low level, it can be determined that the third switch unit is not connected to the voltage control pin and the current sampling circuit.

[0132] Step 403: Control the third switch unit to connect the voltage control pin to the voltage sampling circuit, and obtain a first voltage value based on the voltage sampling circuit.

[0133] In some other feasible embodiments, the digital signal processing unit may first control the third switch unit to connect the voltage control pin with the voltage sampling circuit; and then, the first voltage value may be determined based on the voltage sampling circuit.

[0134] In practical applications, it is possible to determine whether the third switch unit is connected to the voltage control pin and the voltage sampling circuit based on the output signal of the voltage sampling circuit. For example, when the output signal of the voltage sampling circuit is continuously at a low level, it can be determined that the third switch unit is not connected to the voltage control pin and the voltage sampling circuit.

[0135] In one embodiment of the present invention, the voltage control pin is also grounded through the second switch unit; step 403 can be implemented in the following manner:

[0136] The third switch unit is controlled to connect the voltage control pin with the voltage sampling circuit; and the second switch unit is controlled to close; and a first voltage value is obtained based on the voltage sampling circuit.

[0137] In some feasible embodiments, when measuring voltage, the digital signal processing unit may first control the third switch unit to connect the voltage control pin to the voltage sampling circuit; then, the digital signal processing unit may also control the closing of the second switch unit. Then, the digital signal processing unit may measure and obtain the first voltage value based on the voltage sampling circuit.

[0138] Step 404: Determine the current resistance value of the voltage control pin according to the first resistance value, the first voltage value, and the first current value.

[0139] After the first voltage value and the second voltage value of the equivalent resistance are obtained, the current resistance value of the voltage control pin connected in parallel with the variable resistance device can be calculated according to the first resistance value, the first voltage value and the first current value.

[0140] Step 405: When the number of current resistance values ​​exceeds a preset number, an average value of the multiple current resistance values ​​is calculated.

[0141] In some feasible embodiments, detection may be performed after a sufficient number of current resistance values ​​are accumulated; specifically, if the number of current resistance values ​​exceeds a preset number, an average value of multiple current resistance values ​​may be calculated.

[0142] Step 406: When the difference between the average value and the reference resistance value is within a first preset interval, determine that the resistance state of the voltage control pin is a normal state.

[0143] Then, when the difference between the average value and the reference resistance value is within the first preset interval, it can be determined that the current resistance value of the voltage control pin is within the normal range; at this time, it can be determined that the resistance state of the voltage control pin is normal.

[0144] Step 407: When the difference between the average value and the reference resistance value is not within the first preset interval, determine that the resistance state of the voltage control pin is an abnormal state.

[0145] On the contrary, if the difference between the average value and the reference resistance value is not within the first preset interval, it can be determined that the current resistance value of the voltage control pin is not within the normal range; at this time, it can be determined that the resistance state of the voltage control pin is abnormal.

[0146] Step 408: When it is determined that the resistance state of the voltage control pin is abnormal according to the current resistance value and the reference resistance value, the resistance of the variable resistance device is adjusted according to the current resistance value of the voltage control pin.

[0147] In some feasible embodiments, if the resistance state of the voltage control pin is determined to be abnormal based on the current resistance value and the reference resistance value, in order to ensure that the switching power supply chip can continue to operate normally, the digital signal processing unit can connect the variable resistance device to the circuit to maintain the normal operation of the switching power supply chip.

[0148] Specifically, the digital signal processing unit can first adjust the resistance of the variable resistor device according to the current resistance value of the voltage control pin to ensure that the resistance value of the variable resistor device and the voltage control pin connected in parallel as the equivalent resistance matches the reference resistance value pre-set for the voltage control pin of the switching power supply chip.

[0149] Step 409: The adjusted variable resistance device and voltage control pin are used as new voltage control pins, and the switching power supply chip operates based on the new voltage control pins.

[0150] Then, the digital signal processing unit can use the adjusted variable resistance device and the voltage control pin as a new voltage control pin so that the switching power supply chip operates based on the new voltage control pin.

[0151] In an embodiment of the present invention, a first resistance value of a variable resistor device and a reference resistance value of a voltage control pin are obtained; the voltage control pin is selectively connected to a current sampling circuit and a voltage sampling circuit through a third switch unit; the third switch unit is controlled to connect the voltage control pin with the current sampling circuit, and based on the current sampling circuit, a first current value is obtained; the third switch unit is controlled to connect the voltage control pin with the voltage sampling circuit, and based on the voltage sampling circuit, a first voltage value is obtained; the current resistance value of the voltage control pin is determined according to the first resistance value, the first voltage value, and the first current value; when the number of current resistance values ​​exceeds a preset number, a plurality of The invention relates to an average value of a current resistance value; when the difference between the average value and the reference resistance value is within a first preset interval, the resistance state of the voltage control pin is determined to be a normal state; when the difference between the average value and the reference resistance value is not within the first preset interval, the resistance state of the voltage control pin is determined to be an abnormal state; when the resistance state of the voltage control pin is determined to be an abnormal state according to the current resistance value and the reference resistance value, the resistance of the variable resistance device is adjusted according to the current resistance value of the voltage control pin; the adjusted variable resistance device and the voltage control pin are used as new voltage control pins, and the switching power supply chip operates based on the new voltage control pins. Through the embodiments of the present invention, the resistance state of the voltage control pin of the switching power supply chip can be detected.

[0152] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0153] Based on the above detection method, the embodiment of the present invention also provides a detection system for a switching power supply chip; Figure 5 As shown, the system 50 may include:

[0154] The switching power supply chip 510 includes a voltage control pin 511;

[0155] A variable resistor device 520 connected in parallel with the voltage control pin 511;

[0156] The digital signal processing unit 530 is used to execute the above detection method of the switching power supply chip 510 .

[0157] In practical applications, a digital signal processing unit 530 may be provided to execute the steps of the detection method of the switching power supply chip 510 mentioned in the embodiment of the present invention. First, the digital signal processing unit 530 may first obtain the first resistance value currently set by the variable resistance device 520 from the variable resistance device 520, and the reference resistance value pre-set for the voltage control pin 511 of the switching power supply chip 510, the reference resistance value may be the resistance value that the voltage control pin 511 should have, under which the voltage control pin 511 may ensure that the switching power supply chip 510 performs voltage control normally.

[0158] In order to simplify the circuit structure, the voltage control pin 511 and the variable resistance device 520 connected in parallel may be used as an equivalent resistance; then, the equivalent resistance is measured to obtain a first voltage value and a first current value of the equivalent resistance.

[0159] After obtaining the first voltage value and the second voltage value of the equivalent resistance, the current resistance value of the voltage control pin 511 connected in parallel with the variable resistance device 520 may be calculated according to the first resistance value, the first voltage value and the first current value.

[0160] After obtaining the current resistance value of the voltage control pin 511, the resistance state of the voltage control pin 511 can be detected according to the current resistance value and the reference resistance value pre-set for the voltage control pin 511 of the switching power supply chip 510. Exemplarily, the reference resistance value can be used as a reference, and the resistance state of the voltage control pin 511 can be detected based on the deviation between the current resistance value and the reference resistance value. When the deviation is large, it can be considered that the resistance state of the voltage control pin 511 is abnormal, that is, it is in an abnormal state; when the deviation is small, it can be considered that the resistance state of the voltage control pin 511 is not abnormal, that is, it is in a normal state.

[0161] It should be noted that the digital signal processing unit 530 can execute any one of the detection methods for the switching power supply chip 510 mentioned in the above embodiments, which will not be described in detail here.

[0162] For example, Figure 6a and Figure 6b As shown; Figure 6a A schematic diagram showing a circuit structure of a system according to an embodiment of the present invention is shown. Figure 6b Shown for Figure 6a Flow chart of the steps of the circuit detection process.

[0163] The variable resistor device 520 can be a potentiometer; the 5th pin INC and the 2nd pin CS of the potentiometer are related to the potentiometer enable control; the 6th pin U / D is used to adjust the increase or decrease of the resistance value; the 3rd pin VL and the 4th pin VW are the output resistance values; the 7th pin VH is the upper limit of the potentiometer resistance value and is left floating; the 1st pin VCC1 is the power supply, and the 8th pin VSS is connected to the ground GND;

[0164] R x The resistor of the voltage control pin 511 of the switching power supply chip 510 is also the resistor that needs to be detected by the present invention.

[0165] S1 is the access switch, i.e. the first switch unit, which connects the potentiometer and R x Parallel connection;

[0166] S2 is a grounding switch, i.e., the second switch unit, which is enabled during voltage sampling;

[0167] S3 is a switching and connecting switch for voltage and current sampling, i.e., a third switch unit; the DI signal is an electrical signal entering the current sampling circuit 550, and the DV signal is an electrical signal entering the voltage sampling circuit 540.

[0168] The DI_IN signal is an electrical signal input from the current sampling circuit 550 to the digital signal processing unit 530 , and the DV_IN signal is an electrical signal input from the voltage sampling circuit 540 to the digital signal processing unit.

[0169] like Figure 6a As shown, the digital signal processing unit 530 is connected to the 2nd pin CS, the 5th pin INC and the 6th pin U / D of the digitizer respectively; the 1st pin VCC1 of the digitizer is connected to the power supply VCC2. The 3rd pin VL of the digitizer is connected to R x The first end of the digitizer is connected to the first end of S1; R x The second end of S1 is connected to the switching power supply chip; and the second end of S1 is connected to R x The second end of the connection.

[0170] The first end of S3 is connected to R x The second end of S3 is connected to the voltage sampling circuit 540 or the current sampling circuit 550 .

[0171] R x The first end is grounded through S2.

[0172] The current sampling circuit 550 is as follows Figure 6c As shown, the voltage sampling circuit 540 is as follows Figure 6d As shown:

[0173] The current sampling circuit 550 includes a first resistor 551, a second resistor 552, a third resistor 553, a fourth resistor 554 and an operational amplifier 555; wherein one end of the first resistor 551 receives the DI signal, and the other end is connected to the first input pin of the operational amplifier 555, the second input pin of the operational amplifier 555 is connected to the first end of the second resistor 552, and the second end of the second resistor 552 is grounded; the second input pin of the operational amplifier 555 is also connected to the first end of the third resistor 553; the second end of the third resistor 553 is connected to the output end of the operational amplifier 555, the output end of the operational amplifier 555 is also connected to the first end of the fourth resistor 554, and the second end of the fourth resistor 554 outputs the DI_IN signal; the second end of the fourth resistor 554 is also grounded through the first capacitor 556. The first power supply pin of the operational amplifier 555 is grounded through the second resistor 552, and is also grounded through the second capacitor 557.

[0174] The voltage sampling circuit 540 includes a fifth resistor 541, a sixth resistor 542, a seventh resistor 543, an eighth resistor 544, a third capacitor 545 and a diode 546; wherein the first end of the fifth resistor 541 receives the DV signal; the fifth resistor 541 is grounded through the sixth resistor 542 and the seventh resistor 543 in sequence. The first end of the fifth resistor is also connected to the first end of the eighth resistor 544; the second end of the eighth resistor 544 is grounded through the diode 546, and is grounded through the third capacitor 545, and also outputs the DV_IN signal.

[0175] The specific control logic flow is as follows:

[0176] ①. The digital signal processing unit receives the detection instruction and enters the execution loop of detecting the resistance value; k is the number of detections, which is reset before entering each detection loop; first determine whether k is 0. If k is 0, switch S1 is closed, the potentiometer is connected to the circuit, and the digital signal processing unit reads the rk parameter (rk is the resistance value set by the digital potentiometer). Otherwise, k is set to 0, and the judgment condition of whether k is 0 is entered again;

[0177] ②, determine whether S3 is connected to the current sampling circuit; if so, sample the current of the resistor of the voltage control pin, and input the output DI_IN signal to the digital signal processing unit to obtain Ik (Ik is the current flowing through Figure 6a The current of the equivalent resistance of the A and B terminals in the circuit is detected, otherwise the switching action of S3 is executed; it is judged again whether the S3 switch is connected to the voltage sampling circuit, if so, the voltage of the resistance of the voltage control pin is sampled, and the output DV_IN signal is input to the digital signal processing unit to obtain Uk (Uk is the voltage of the equivalent resistance of the A and B terminals), otherwise the switching action of the S3 switch is executed, and it is judged again whether the S3 switch is connected to the voltage sampling circuit;

[0178] ③ After the digital signal processing unit obtains Ik and Uk, it calculates Rxk (Rxk = Uk / Ik, which is the equivalent resistance of the potentiometer and the resistor of the voltage control pin in parallel), and then executes condition k+1, records the number of detections; determines whether k exceeds 3 times, and if so, calculates Rx'( The target resistance value is the average of three calculations; is the target resistance value calculated for the kth time), otherwise, return to step ② again;

[0179] ④. Compare the calculated Rx' with the pre-stored constant (Rxa is the reference resistance value pre-stored in the digital signal processing unit) to determine whether Rxa-Rx' is within the range of {-δ, δ}; if it is, the target resistance is considered normal, otherwise the resistance of the voltage control pin is abnormal and a warning signal is issued; specifically, the fault can be displayed by the digital tube of the circuit, and the digital signal processing unit adjusts the potentiometer to maintain the operation of the entire device under abnormal circumstances.

[0180] In an embodiment of the present invention, a detection system for a switching power supply chip includes: a switching power supply chip including a voltage control pin; a variable resistance device connected in parallel with the voltage control pin; and a digital signal processing unit for executing the above detection method for the switching power supply chip. Through the embodiment of the present invention, the resistance state of the voltage control pin of the switching power supply chip can be detected, thereby realizing early warning.

[0181] Reference Figure 7, shows a schematic structural diagram of a detection device for a switching power supply chip according to an embodiment of the present invention, wherein a voltage control pin of the switching power supply chip is connected in parallel with a variable resistor device; as shown in FIG6 , the device may include the following modules:

[0182] An acquisition module 701 is used to acquire a first resistance value of the variable resistor device and a reference resistance value of the voltage control pin;

[0183] A measuring module 702 is used to measure the equivalent resistance of the voltage control pin and the variable resistance device to obtain a first voltage value and a first current value of the equivalent resistance;

[0184] A determination module 703, configured to determine a current resistance value of the voltage control pin according to the first resistance value, the first voltage value and the first current value;

[0185] The detection module 704 is used to detect the resistance state of the voltage control pin according to the current resistance value and the reference resistance value.

[0186] In an optional embodiment of the present invention, the device further comprises:

[0187] The regulating module is used to adjust the resistance of the variable resistor device according to the current resistance value of the voltage control pin when it is determined that the resistance state of the voltage control pin is abnormal according to the current resistance value and the reference resistance value; the adjusted variable resistor device and the voltage control pin are used as new voltage control pins, and the switching power supply chip operates based on the new voltage control pin.

[0188] In an optional embodiment of the present invention, the first resistance value includes multiple, the current resistance value includes multiple, and one first resistance value corresponds to one current resistance value; the detection module 704 is used to calculate the average value of multiple current resistance values ​​when the number of current resistance values ​​exceeds a preset number; when the difference between the average value and the reference resistance value is within a first preset interval, it is determined that the resistance state of the voltage control pin is a normal state; when the difference between the average value and the reference resistance value is not within the first preset interval, it is determined that the resistance state of the voltage control pin is an abnormal state.

[0189] In an optional embodiment of the present invention, the variable resistor device is connected in parallel with the voltage control pin via a first switch unit; the device further comprises:

[0190] The first switch control module is used to determine that the first switch unit is not closed when the current resistance value is not within the second preset interval; close the first switch unit when the first switch unit is not closed; determine that the first switch unit is closed when the current resistance value is within the second preset interval; and execute the step of detecting the resistance state of the voltage control pin according to the current resistance value and the reference resistance value when the first switch unit is closed.

[0191] In an optional embodiment of the present invention, the voltage control pin is selectively connected to the current sampling circuit and the voltage sampling circuit through a third switch unit; the measurement module 702 is used to control the third switch unit to connect the voltage control pin to the current sampling circuit, and obtain a first current value based on the current sampling circuit; control the third switch unit to connect the voltage control pin to the voltage sampling circuit, and obtain a first voltage value based on the voltage sampling circuit.

[0192] In an optional embodiment of the present invention, the voltage control pin is also grounded through the second switch unit; the measurement module 702 is used to control the third switch unit to connect the voltage control pin with the voltage sampling circuit; and control the closing of the second switch unit; based on the voltage sampling circuit, a first voltage value is obtained.

[0193] In an optional embodiment of the present invention, the device further comprises:

[0194] The prompt module is used to prompt the voltage control pin for abnormal resistance when determining that the resistance state of the voltage control pin is abnormal.

[0195] In the embodiment of the present invention, the first resistance value of the variable resistor device and the reference resistance value of the voltage control pin are obtained; the equivalent resistance of the voltage control pin and the variable resistor device is measured to obtain the first voltage value and the first current value of the equivalent resistance; the current resistance value of the voltage control pin is determined according to the first resistance value, the first voltage value and the first current value; the resistance state of the voltage control pin is detected according to the current resistance value and the reference resistance value. Through the embodiment of the present invention, the resistance state of the voltage control pin of the switching power supply chip can be detected, so as to realize early warning.

[0196] An embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the above-mentioned detection method for the switching power supply chip is implemented.

[0197] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned detection method for a switching power supply chip is implemented.

[0198] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0199] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0200] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0201] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0202] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0203] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0204] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0205] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0206] The above provides a detailed introduction to a detection method for a switching power supply chip, a detection device for a switching power supply chip, an electronic device, a computer-readable storage medium and a detection system for a switching power supply chip. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a general technician in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for detecting a switching power supply chip, characterized in that: The voltage control pin of the switching power supply chip is connected in parallel with the variable resistance device, and the method comprises: Acquiring a first resistance value of the variable resistor device and a reference resistance value of the voltage control pin; Measuring the equivalent resistance of the voltage control pin and the variable resistance device to obtain a first voltage value and a first current value of the equivalent resistance; determining a current resistance value of the voltage control pin according to the first resistance value, the first voltage value, and the first current value; The resistance state of the voltage control pin is detected according to the current resistance value and the reference resistance value.

2. The method according to claim 1, characterized in that The method further comprises: When it is determined that the resistance state of the voltage control pin is an abnormal state according to the current resistance value and the reference resistance value, adjusting the resistance of the variable resistance device according to the current resistance value of the voltage control pin; The adjusted variable resistance device and the voltage control pin are used as new voltage control pins, and the switching power supply chip operates based on the new voltage control pins.

3. The method according to claim 1, characterized in that The first resistance value includes a plurality of values, the current resistance value includes a plurality of values, and one first resistance value corresponds to one current resistance value; The detecting the resistance state of the voltage control pin according to the current resistance value and the reference resistance value includes: When the number of the current resistance values ​​exceeds a preset number, calculating an average value of a plurality of the current resistance values; When the difference between the average value and the reference resistance value is within a first preset interval, determining that the resistance state of the voltage control pin is a normal state; When the difference between the average value and the reference resistance value is not within the first preset interval, it is determined that the resistance state of the voltage control pin is an abnormal state.

4. The method according to claim 1, characterized in that: The variable resistor device is connected in parallel with the voltage control pin via a first switch unit; the method further comprises: When the current resistance value is not within the second preset interval, determining that the first switch unit is not closed; when the first switch unit is not closed, closing the first switch unit; When the current resistance value is within a second preset interval, it is determined that the first switch unit is closed; when the first switch unit is closed, the step of detecting the resistance state of the voltage control pin according to the current resistance value and the reference resistance value is performed.

5. The method according to claim 1, characterized in that The voltage control pin is selectively connected to the current sampling circuit and the voltage sampling circuit through the third switch unit; the equivalent resistance of the voltage control pin and the variable resistance device is measured to obtain a first voltage value and a first current value of the equivalent resistance, including: Controlling the third switch unit to connect the voltage control pin and the current sampling circuit, and obtaining the first current value based on the current sampling circuit; The third switch unit is controlled to connect the voltage control pin with the voltage sampling circuit, and the first voltage value is obtained based on the voltage sampling circuit.

6. The method according to claim 5, characterized in that The voltage control pin is also grounded through the second switch unit; the controlling the third switch unit to connect the voltage control pin with the voltage sampling circuit, and obtaining the first voltage value based on the voltage sampling circuit, includes: Controlling the third switch unit to connect the voltage control pin and the voltage sampling circuit; And, controlling the closing of the second switch unit; Based on the voltage sampling circuit, the first voltage value is obtained.

7. The method according to claim 1, characterized in that The method further comprises: When it is determined that the resistance state of the voltage control pin is in an abnormal state, a prompt indicating the resistance abnormality of the voltage control pin is given.

8. A detection system for a switching power supply chip, characterized in that: The system comprises: A switching power supply chip including a voltage control pin; a variable resistance device connected in parallel with the voltage control pin; A digital signal processing unit, configured to execute the method according to any one of claims 1 to 7.

9. A detection device for a switching power supply chip, characterized in that: The voltage control pin of the switching power supply chip is connected in parallel with a variable resistance device, and the device comprises: An acquisition module, used for acquiring a first resistance value of the variable resistor device and a reference resistance value of the voltage control pin; A measuring module, configured to measure an equivalent resistance of the voltage control pin and the variable resistance device to obtain a first voltage value and a first current value of the equivalent resistance; a determination module, configured to determine a current resistance value of the voltage control pin according to the first resistance value, the first voltage value, and the first current value; The detection module is used to detect the resistance state of the voltage control pin according to the current resistance value and the reference resistance value.

10. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the detection method of the switching power supply chip as claimed in any one of claims 1 to 7 is implemented.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for detecting a switching power supply chip according to any one of claims 1 to 7 is implemented.