Self-adaptive adjustment method and system for resistance value of controllable digital resistor and storage medium

Through real-time detection and adaptive adjustment of the resistance value of the controllable digital resistor, and using the series and parallel combination of resistors, the shortcomings of resistance value adjustment accuracy and flexibility in the prior art are solved, and high-precision and low-cost resistance control are achieved.

CN120090613APending Publication Date: 2025-06-03GUANGZHOU GOSUNCN ROBOTICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411522214.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

Existing variable resistors have shortcomings in terms of accuracy and flexibility in resistance adjustment, especially in high-precision application scenarios, where resistance errors are large and expensive.

Method used

By detecting the resistance value of the controllable digital resistor in real time, determining whether adjustment is needed, and adaptive adjustment of the resistance value is achieved through the series and parallel combination of the first resistor and the second resistor. The specific methods include obtaining voltage information, determining resistance information, calculating the difference value, decomposing the difference value to adjust the series and parallel connection of the resistor.

Benefits of technology

It improves the resistance accuracy of the controllable digital resistor and the flexibility of the resistance range, ensures the stability and high accuracy of the resistance value, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120090613A_ABST
    Figure CN120090613A_ABST
Patent Text Reader

Abstract

The invention provides a self-adaptive adjustment method and system for the resistance value of a controllable digital resistor and a storage medium, and the method comprises the steps: determining first resistance information according to obtained first voltage information; whether the resistance value of the controllable digital resistor needs to be adjusted is judged according to the difference value between the first resistor information and the target resistor information; when the resistance value needs to be adjusted, decomposing the first resistance information through a preset decomposition rule to obtain second resistance information and third resistance information; the resistor series connection condition of the first resistor is adjusted according to the second resistor information, and the resistor series connection condition of the second resistor is adjusted according to the third resistor information, so that the effect of detecting and adjusting the resistance value of the controllable digital resistor in real time is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital resistors, and more particularly, to an adaptive adjustment method, system, and storage medium for controlling the resistance value of a digital resistor. Background Art

[0002] An adjustable resistor, also called a variable resistor, is a special resistor whose resistance value can be adjusted within a certain range. Currently, the variable resistor adjusts its resistance value by adjusting the sliding or rotation of a controller. However, due to manual control and the resistor adjustment method, the accuracy and precision of the resistance value adjustment cannot be well controlled. In addition, in some high-precision resistance value application scenarios, a combination of high-precision resistors in series is used. However, currently, the resistance value of high-precision resistors can only reach the thousandth place, and there are certain errors, and the price is expensive. In addition, there is also a scenario where low-resistance resistors are obtained by paralleling resistors with the same resistance value. However, this method usually uses resistors with the same resistance value in parallel, resulting in inflexible resistance value intervals and ultimately low accuracy of the obtained resistance value. Summary of the Invention

[0003] In view of the above problems, the purpose of the present invention is to provide an adaptive adjustment method, system, and storage medium for controlling the resistance value of a digital resistor. First, by real-time detecting the resistance value of the controllable digital resistor to determine whether the controllable digital resistor needs to be adjusted, thereby ensuring the stability of the resistance value of the controllable digital resistor. In addition, through specific series-parallel combinations of the first resistor and the second resistor, the resistance value accuracy and the flexibility of the resistance value interval of the controllable digital resistor are improved.

[0004] The first aspect of the present invention provides an adaptive adjustment method for the resistance value of a controllable digital resistor, and the method includes:

[0005] Obtain first voltage information;

[0006] Determine first resistance information according to the first voltage information;

[0007] Obtain first difference information according to the difference between the first resistance information and the target resistance information;

[0008] Judge whether the first difference information is lower than a preset span threshold;

[0009] If so, obtain second resistance information and third resistance information from the first difference information through a preset decomposition rule;

[0010] Adjust the series connection of the resistors of the first resistor according to the second resistance information;

[0011] Adjust the series and parallel connections of the resistors of the second resistor according to the third resistance information.

[0012] In this solution, adjusting the series connection of the resistors of the first resistor according to the second resistor information specifically includes:

[0013] Obtaining first resistance value calculation information according to the second resistor information;

[0014] Judging whether the first resistance value calculation information is greater than zero;

[0015] If not, end the setting of the first resistor;

[0016] If so, sequentially judge whether the first resistance value calculation information is less than the first resistance value information of the first resistor that makes up the first resistor;

[0017] If not, select to connect the first resistor, and update the first resistance value calculation information according to the first resistance value calculation information and the first resistance value information;

[0018] If so, select to disconnect the first resistor.

[0019] In this solution, adjusting the series and parallel connections of the resistors of the second resistor according to the third resistor information specifically includes:

[0020] Obtaining second resistance value calculation information according to the third resistor information;

[0021] Obtaining the resistance value correspondence table of the second resistor;

[0022] Judging whether the second resistance value calculation information is lower than a preset error threshold;

[0023] If so, end the setting of the second resistor;

[0024] If not, sequentially judge whether the first resistance value calculation information is greater than the second resistance value information in the resistance value correspondence table;

[0025] If so, set the first sub-resistor according to the second resistance value information, and update the second resistance value calculation information according to the second resistance value calculation information and the second resistance value information.

[0026] This solution further includes:

[0027] The first resistor includes at least two of the first resistors;

[0028] Controlling the connection state of the first resistor through a preset selection switch;

[0029] The connection state includes a disconnection state and a series connection state.

[0030] This solution further includes:

[0031] The first sub-resistor is formed by paralleling at least two second sub-resistors;

[0032] Calculate the parallel resistance value information after parallel connection in various combinations according to the resistance value of the second sub-resistor;

[0033] Arrange the parallel resistance value information in descending order to generate the resistance value correspondence table;

[0034] The second sub-resistor includes at least one resistor and is used to form the first sub-resistor in parallel.

[0035] In this solution, it further includes:

[0036] Judge whether the target resistance information is greater than a preset amplitude threshold;

[0037] If so, set the first resistor and the second resistor to the maximum resistance state.

[0038] In the second aspect of the present invention, an adaptive adjustment system for the resistance value of a controllable digital resistor is provided, including an adaptive adjustment method program for the resistance value of a controllable digital resistor. When the adaptive adjustment method program for the resistance value of a controllable digital resistor is executed by the processor, the following steps are implemented:

[0039] Obtain the first voltage information;

[0040] Determine the first resistance information according to the first voltage information;

[0041] Obtain the first difference information according to the difference between the first resistance information and the target resistance information;

[0042] Judge whether the first difference information is lower than a preset span threshold;

[0043] If so, obtain the second resistance information and the third resistance information from the first difference information through a preset decomposition rule;

[0044] Adjust the series connection situation of the resistance of the first resistor according to the second resistance information;

[0045] Adjust the series and parallel connection situations of the resistance of the second resistor according to the third resistance information.

[0046] In this solution, the step of adjusting the series connection situation of the resistance of the first resistor according to the second resistance information is specifically:

[0047] Obtain the first resistance value calculation information according to the second resistance information;

[0048] Judge whether the first resistance value calculation information is greater than zero;

[0049] If not, end the setting of the first resistor;

[0050] If so, then sequentially determine whether the first resistance value calculation information is less than the first resistance value information of the first resistor that constitutes the first resistor;

[0051] If not, then select to connect the first resistor, and update the first resistance value calculation information according to the first resistance value calculation information and the first resistance value information;

[0052] If so, then select to disconnect the first resistor.

[0053] In this solution, the adjustment of the series and parallel situations of the resistors of the second resistor according to the third resistor information is specifically as follows:

[0054] Obtain second resistance value calculation information according to the third resistor information;

[0055] Obtain the resistance value correspondence table of the second resistor;

[0056] Judge whether the second resistance value calculation information is lower than a preset error threshold;

[0057] If so, then end the setting of the second resistor;

[0058] If not, then sequentially determine whether the first resistance value calculation information is greater than the second resistance value information that constitutes the resistance value correspondence table;

[0059] If so, then set the first sub-resistor according to the second resistance value information, and update the second resistance value calculation information according to the second resistance value calculation information and the second resistance value information.

[0060] The third aspect of the present invention provides a computer-readable storage medium, which includes a program for an adaptive adjustment method of the resistance value of a controllable digital resistor. When the program for the adaptive adjustment method of the resistance value of the controllable digital resistor is executed by a processor, the steps of the adaptive adjustment method of the resistance value of the controllable digital resistor as described in any one of the above are implemented.

[0061] The present invention provides an adaptive adjustment method, system and storage medium for the resistance value of a controllable digital resistor. According to the acquired first voltage information, first resistor information is determined; it is judged whether the controllable digital resistor needs to adjust its resistance value through the difference between the first resistor information and the target resistor information; when resistance value adjustment is required, the first resistor information is decomposed through a preset decomposition rule to obtain second resistor information and third resistor information; the series connection situation of the resistors of the first resistor is adjusted according to the second resistor information, and the series connection situation of the resistors of the second resistor is adjusted according to the third resistor information, so as to achieve the effect of real-time detection and adjustment of the resistance value of the controllable digital resistor. Description of the Drawings

[0062] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the embodiments. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation of the scope.

[0063] Figure 1 Shows the flowchart of the adaptive adjustment method for the resistance value of the controllable digital resistor of the present invention;

[0064] Figure 2 Shows the adjustment flowchart of the resistance series connection of the first resistor;

[0065] Figure 3 Shows the adjustment flowchart of the resistance series and parallel connections of the second resistor;

[0066] Figure 4 Shows a schematic diagram of a first resistor provided by the present invention;

[0067] Figure 5 Shows a schematic diagram of a first sub-resistor provided by the present invention;

[0068] Figure 6 Shows a resistance value comparison table of a first sub-resistor provided by the embodiments of the present invention;

[0069] Figure 7 Shows a block diagram of the adaptive adjustment system for the resistance value of the controllable digital resistor of the present invention. Specific Embodiments

[0070] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0071] Unless otherwise defined, all terms (including technical and scientific terms) used in the embodiments of the present invention have the same meaning as commonly understood by those of ordinary skill in the art to which the present invention belongs. It should also be understood that terms such as those defined in a general dictionary should be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and should not be interpreted in an idealized or overly formal sense unless clearly defined in the embodiments of the present invention.

[0072] In the embodiments of the present invention, the terms "first", "second" and similar terms do not denote any order, quantity or importance, but are only used to distinguish different components. Similar terms such as "a", "an" or "the" do not denote a quantity limitation either, but mean that there is at least one. Similarly, terms such as "comprising" or "including" mean that the elements or objects appearing before this term cover the elements or objects listed after this term and their equivalents, without excluding other elements or objects.

[0073] Similar terms such as "connected" or "coupled" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The steps before or after the method embodiments of the present invention do not necessarily need to be carried out precisely in sequence. On the contrary, they can be carried out in reverse order or various steps can be processed simultaneously. At the same time, other operations can also be added to these processes, or one or several steps can be removed from these processes.

[0074] In addition, in each embodiment of the present invention, the functional modules can be integrated together to form an independent part, or each module can exist alone, or two or more modules can be integrated to form an independent part.

[0075] Figure 1 The flowchart of the adaptive adjustment method for the resistance value of the controllable digital resistor of the present invention is shown.

[0076] As Figure 1 shown, the present invention discloses an adaptive adjustment method for the resistance value of a controllable digital resistor, and the method includes:

[0077] S102, obtaining first voltage information;

[0078] S104, determining first resistance information according to the first voltage information;

[0079] S106, obtaining first difference information according to the difference between the first resistance information and the target resistance information;

[0080] S108, determining whether the first difference information is higher than a preset span threshold;

[0081] S110, if so, obtaining second resistance information and third resistance information from the first difference information through a preset decomposition rule;

[0082] S112, adjusting the resistance series connection of the first resistor according to the second resistance information;

[0083] S114, adjusting the resistance series and parallel connections of the second resistor according to the third resistance information.

[0084] It should be noted that the first voltage information is the voltage value across the controllable digital resistor; the first resistance information is the total resistance value of the controllable digital resistor. First, obtain the voltage value across the controllable digital resistor, and according to Ohm's law and the resistance value of the standard resistor, obtain the first resistance information; among them, in practical applications, the voltage value is usually represented by the conversion value of the analog-to-digital converter. Secondly, compare the first resistance information with the preset target resistance information of the controllable digital resistor, calculate the difference between the two, and obtain the first difference information. Then, determine whether the first difference information is higher than the preset span threshold, where the span threshold is the minimum spanning amplitude of the resistance value obtained by the controllable digital resistor according to its internal settings, that is, the adjustment accuracy of the resistance value of the controllable digital resistor. When the first difference information is higher than the preset span threshold, it indicates that there is an error between the resistance value of the controllable digital resistor and the target resistance, and the error is greater than the adjustable accuracy. At this time, the resistance value of the adjustable digital resistor is adjusted to improve the resistance value accuracy of the controllable digital resistor. Further, when the resistance value of the controllable digital resistor needs to be adjusted, the first difference information needs to be decomposed according to the preset rules; as an implementation method, the integer part of the first difference information is regarded as the second resistance information, and the decimal part of the first difference information is regarded as the third resistance information. Finally, according to the second resistance information, adjust the resistance series connection of the first resistor so that the resistance value of the first resistor meets the first part of the requirements of the target resistance value; according to the third resistance information, adjust the resistance series and parallel connection of the second resistor so that the resistance value of the second resistor meets the second part of the requirements of the target resistance value; combine the first resistor and the second resistor so that the first resistance information of the adjustable digital resistor reaches the resistance value requirement of the target resistance, and realize the function of adaptive adjustment.

[0085] Figure 2 The adjustment flowchart of the resistance series connection of the first resistor is shown.

[0086] According to an embodiment of the present invention, as Figure 2 shown, according to the second resistance information, adjusting the resistance series connection of the first resistor specifically includes:

[0087] S202, according to the second resistance information, obtain the first resistance calculation information;

[0088] S204, determine whether the first resistance calculation information is greater than zero;

[0089] S206, if not, end the setting of the first resistor;

[0090] S208, if so, then sequentially determine whether the first resistance calculation information is less than the first resistance information of the first resistor that makes up the first resistor;

[0091] S210. If not, then select to connect the first resistor, and calculate the first resistance calculation information based on the first resistance value calculation information and the first resistance value information, and update the first resistance value calculation information;

[0092] S212. If so, then select to disconnect the first resistor.

[0093] It should be noted that the first resistance value calculation information is the calculation amount in the adjustment process of the first resistor, and is used to compare with the magnitude of the first resistance value information; the first resistor is used to form the first resistor in series; the first resistance value information is the resistance value of the first resistor. Since the second resistance information is the integer part of the first difference information, the target resistance value after adjustment of the first resistor in the calculation process is obtained according to the second resistance information and the resistance value information of the first resistor, and used as the first resistance value calculation information. Determine whether the first resistance value calculation information is greater than zero. If the first resistance value calculation information is not greater than zero, it means that the resistance value of the first resistor has reached the preset target resistance value, that is, the first resistor has been set. If the first resistance value calculation information is greater than zero, that is, the resistance value of the first resistor is still different from the preset target resistance value by the magnitude of the first resistance value calculation information; at this time, according to the preset first resistance order, compare the magnitude relationship between the first resistance value calculation information and the first resistance value information; among them, the preset first resistance order is the order of the first resistance value from large to small. If the first resistance value calculation information is not less than the first resistance value information, then select to connect the first resistor corresponding to the first resistance value, that is, the first resistor is connected in series to the resistor group of the first resistor; then calculate the difference between the first resistance value calculation information and the first resistance value information to update the first resistance value calculation information, which also represents the difference between the current resistance value of the first resistor and the target value. If the first resistance value calculation information is less than the first resistance value information, then select to disconnect the first resistor corresponding to the first resistance value, indicating that the current first resistor is not selected. After the first resistance value calculation information completes the comparison operation with one of the first resistors, re-enter step S204 until the adjustment of the first resistor ends.

[0094] Figure 3 The adjustment flowchart showing the series and parallel connection conditions of the second resistor is shown.

[0095] According to an embodiment of the present invention, as Figure 3 shown, adjusting the series and parallel connection conditions of the second resistor according to the third resistance information specifically includes:

[0096] S302. Obtain the second resistance value calculation information according to the third resistance information;

[0097] S304. Obtain the resistance value correspondence table of the second resistor;

[0098] S306. Determine whether the second resistance value calculation information is lower than the preset error threshold;

[0099] S308, if so, end the setting of the second resistor;

[0100] S310, if not, then sequentially determine whether the first resistance calculation information is greater than the second resistance information in the resistance value correspondence table;

[0101] S312, if so, set the first sub - resistor according to the second resistance information, and update the second resistance calculation information according to the second resistance calculation information and the second resistance information.

[0102] It should be noted that the second resistance calculation information is the calculation amount in the adjustment process of the second resistor, and is used to compare with the magnitude of the second resistance information; the first sub - resistor is composed of at least two resistors in parallel and is used to be connected in series to form the second resistor; the second resistance information is the resistance value in the resistance value correspondence table. Since the third resistance information is the decimal part of the first difference information, the target resistance value after the adjustment of the second resistor in the calculation process is obtained according to the third resistance information and the resistance value information of the second resistor, and is used as the second resistance calculation information. Obtain the resistance value correspondence table of the second resistor from the controllable digital resistance system, and the resistance value correspondence table records the resistance values that the first sub - resistor can be set. Determine whether the second resistance calculation information is lower than the preset error threshold; where the error threshold is the precision error of the controllable digital resistance setting, that is to say, if the error between the actual resistance value and the target resistance value is within the error threshold range, it means that the resistance value has reached the preset standard. When the second resistance calculation information is lower than the preset error threshold, it means that the resistance value of the second resistor has reached the preset target resistance value, that is, the second resistor has been set. When the second resistance calculation information is not lower than the preset error threshold, that is, the resistance value of the second resistor is still different from the preset target resistance value by the magnitude of the second resistance calculation information; at this time, according to the order of the second resistance information in the resistance value correspondence table, where the preset order of the resistance value correspondence table is that the second resistance information is from large to small. Compare the magnitude relationship between the second resistance calculation information and the second resistance information; when the second resistance calculation information is greater than the second resistance information, it means that the first sub - resistor needs to be adjusted to the magnitude of the second resistance information to be connected in series to form the second resistor. Then calculate the difference between the second resistance calculation information and the second resistance information to update the second resistance calculation information, which also represents the difference between the current resistance value of the second resistor and the target value. After the second resistance calculation information completes the comparison operation with one of the second resistance information in the resistance value correspondence table, re - enter step S306 until the adjustment of the second resistor ends.

[0103] According to an embodiment of the present invention, it further includes:

[0104] The first resistor includes at least two of the first resistors;

[0105] Control the connection state of the first resistor through a preset selection switch;

[0106] The connection state includes a disconnection state and a series connection state.

[0107] It should be noted that Figure 4 The figure shows a schematic diagram of a first resistor provided by the present invention, as Figure 4 shown, including: a first resistor R4, first resistors R41 / R42…R4n, and first resistor selection switches S41 / S42…S4n. The connection state of the corresponding first resistor R4n is selected through the selection switch S4n; when the selection switch does not connect the first resistor, the first resistor is in a disconnection state; when the selection switch connects the first resistor, the first resistor is connected in series into the resistor group of the first resistor to form the first resistor. The resistance value of the first resistor is adjusted according to the series connection situation of the first resistor. For example, if the resistance values of 10 first resistors are 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 resistance units respectively, and the states of the selection switches are connected, connected, connected, connected, connected, disconnected, disconnected, disconnected, disconnected, disconnected, it means that the first 5 first resistors are in a series connection state, and the last 5 first resistors are in a disconnection state, then the total resistance value of the first resistor is 15 resistance units.

[0108] According to an embodiment of the present invention, it further includes:

[0109] The first sub-resistor is formed by paralleling at least two second sub-resistors;

[0110] Calculate the parallel resistance value information in various combinations according to the resistance values of the second sub-resistors;

[0111] Arrange the parallel resistance value information in descending order to generate the resistance value correspondence table;

[0112] The second sub-resistor includes at least one resistor for paralleling to form the first sub-resistor.

[0113] It should be noted that Figure 5 The figure shows a schematic diagram of a first sub-resistor provided by the present invention, as Figure 5 shown, including: a first sub-resistor R5, second sub-resistors R51 / R52, resistors R511 / R512…R51n and R521 / R522…R52n that make up the second sub-resistors, and selection switches S511 / S512…S51n and S521 / S522…S52n for the resistors that make up the second sub-resistors. The second sub-resistor is formed by connecting resistor groups in series and then paralleling to form the first sub-resistor. Figure 6 The figure shows a resistance value correspondence table of a first sub-resistor provided by an embodiment of the present invention, as Figure 6As shown, by adjusting the resistance value of the second sub-resistor through a selection switch, multiple resistance values can be generated after the second sub-resistors in each combination are connected in parallel, which means that the first sub-resistor can be set to multiple resistance values. For example, Figure 6 As shown, the resistance interval is the difference between the resistance value of the first sub-resistor formed by connecting the latter combination of the second sub-resistors in parallel and the resistance value of the first sub-resistor formed by connecting the latter combination of the second sub-resistors in parallel, which can represent the setting accuracy of the first sub-resistor; the smaller the resistance interval, the smaller the span that can be crossed, that is, the higher the setting accuracy.

[0114] According to an embodiment of the present invention, it further includes:

[0115] Determine whether the target resistance information is greater than a preset amplitude threshold;

[0116] If so, set the first resistor and the second resistor to the maximum resistance state.

[0117] It should be noted that there is an upper limit to the resistance value setting of the adjustable digital resistor. When the resistance value of the set target resistor is greater than the preset resistance upper limit, the resistance values of the first resistor and the second resistor are set to the maximum resistance state to avoid too small resistance values due to incorrect settings and the situation of burning out the adjustable digital resistor in special circuits.

[0118] It is worth mentioning that it further includes:

[0119] The resistance values of the first resistor are in a geometric progression relationship;

[0120] Among them, the common ratio coefficient of the geometric progression relationship is greater than or equal to 2.

[0121] It should be noted that the resistance value distribution of the first resistor determines the resistance value distribution after series connection, that is, it determines the resistance value distribution of the first resistor. In order to make the resistance value distribution of the first resistor wider, in practical applications, the resistance values of the first resistor are in a geometric progression relationship with a proportionality coefficient of 2. For example, using 10 first resistors with resistance values of 1, 2, 4, 8, 16, 32, 64, 128, 256, and 512 respectively, 1024 resistance value selections from 0 to 1023 can be obtained through the combination of the first resistors.

[0122] Figure 7 Shows a block diagram of the adaptive adjustment system for the resistance value of the controllable digital resistor of the present invention.

[0123] For example, Figure 7 As shown, the present invention discloses an adaptive adjustment system 6 for the resistance value of a controllable digital resistor, including a memory 71 and a processor 72. The memory includes an adaptive adjustment method program for the resistance value of the controllable digital resistor. When the adaptive adjustment method program for the resistance value of the controllable digital resistor is executed by the processor, the following steps are implemented:

[0124] Obtain the first voltage information;

[0125] Determine the first resistance information according to the first voltage information;

[0126] Obtain the first difference information according to the difference between the first resistance information and the target resistance information;

[0127] Judge whether the first difference information is higher than a preset span threshold;

[0128] If so, obtain the second resistance information and the third resistance information from the first difference information through a preset decomposition rule;

[0129] Adjust the resistance series connection of the first resistor according to the second resistance information;

[0130] Adjust the resistance series and parallel connections of the second resistor according to the third resistance information.

[0131] It should be noted that, first, obtain the voltage value at both ends of the controllable digital resistor, and obtain the first resistance information according to Ohm's law and the resistance value of the standard resistor; among them, in practical applications, the voltage value is usually represented by the conversion value of the analog-to-digital converter. Secondly, compare the first resistance information with the preset target resistance information of the controllable digital resistor, calculate the difference between the two, and obtain the first difference information. Then, judge whether the first difference information is higher than the preset span threshold, where the span threshold is the minimum spanning amplitude of the resistance value obtained by the controllable digital resistor according to its internal settings, that is, the adjustment accuracy of the resistance value of the controllable digital resistor. When the first difference information is higher than the preset span threshold, it means that there is an error between the resistance value of the controllable digital resistor and the target resistance, and the error is greater than the adjustable accuracy. At this time, the resistance value of the adjustable digital resistor is adjusted to improve the resistance value accuracy of the controllable digital resistor. Further, when the resistance value of the controllable digital resistor needs to be adjusted, the first difference information needs to be decomposed according to a preset rule; as an implementation method, the integer part of the first difference information is regarded as the second resistance information, and the decimal part of the first difference information is regarded as the third resistance information. Finally, adjust the resistance series connection of the first resistor according to the second resistance information so that the resistance value of the first resistor meets the first part of the target resistance value requirement; adjust the resistance series and parallel connections of the second resistor according to the third resistance information so that the resistance value of the second resistor meets the second part of the target resistance value requirement; combine the first resistor and the second resistor so that the first resistance information of the adjustable digital resistor reaches the resistance value requirement of the target resistance, and realize the function of adaptive adjustment.

[0132] According to the embodiment of the present invention, the adjusting the resistance series connection of the first resistor according to the second resistance information specifically includes:

[0133] Obtain first resistance value calculation information according to the second resistance information;

[0134] Determine whether the first resistance value calculation information is greater than zero;

[0135] If not, end the setting of the first resistor;

[0136] If so, sequentially determine whether the first resistance value calculation information is less than the first resistance value information of the first resistor that constitutes the first resistor;

[0137] If not, select to turn on the first resistor, and update the first resistance value calculation information according to the first resistance value calculation information and the first resistance value information;

[0138] If so, select to turn off the first resistor.

[0139] It should be noted that since the second resistance information is the integer part of the first difference information, the target resistance value after adjustment of the first resistor in the calculation process is obtained according to the second resistance value information and the resistance value information of the first resistor, and used as the first resistance value calculation information. Determine whether the first resistance value calculation information is greater than zero. If the first resistance value calculation information is not greater than zero, it means that the resistance value of the first resistor has reached the preset target resistance value, that is, the first resistor has been set. If the first resistance value calculation information is greater than zero, that is, the resistance value of the first resistor still differs from the preset target resistance value by the magnitude of the first resistance value calculation information; at this time, according to the preset first resistor order, compare the magnitude relationship between the first resistance value calculation information and the first resistance value information; among them, the preset first resistor order is the order of the first resistance value information from large to small. If the first resistance value calculation information is not less than the first resistance value information, select to turn on the first resistor corresponding to the first resistance value information, that is, the first resistor is connected in series to the resistor group of the first resistor; then calculate the difference between the first resistance value calculation information and the first resistance value information to update the first resistance value calculation information, which also represents the difference between the current resistance value of the first resistor and the target value. If the first resistance value calculation information is less than the first resistance value information, select to turn off the first resistor corresponding to the first resistance value information, indicating that the current first resistor is not selected. After the first resistance value calculation information completes the comparison operation with one of the first resistors, re-enter step S204 until the adjustment of the first resistor ends.

[0140] According to an embodiment of the present invention, the adjusting the series and parallel connection conditions of the resistors of the second resistor according to the third resistance information is specifically as follows:

[0141] Obtain second resistance value calculation information according to the third resistance information;

[0142] Obtain the resistance value correspondence table of the second resistor;

[0143] Determine whether the second resistance calculation information is lower than a preset error threshold;

[0144] If so, end the setting of the second resistor;

[0145] If not, sequentially determine whether the first resistance calculation information is greater than the second resistance information in the resistance value correspondence table;

[0146] If so, set the first sub-resistor according to the second resistance information, and update the second resistance calculation information according to the second resistance calculation information and the second resistance information.

[0147] It should be noted that since the third resistance information is the fractional part of the first difference information, the target resistance value after adjustment of the second resistor in the calculation process is obtained according to the third resistance information and the resistance value information of the second resistor, and used as the second resistance calculation information. Obtain the resistance value correspondence table of the second resistor from the controllable digital resistor system, and the resistance value correspondence table records the resistance values that the first sub-resistor can be set. Determine whether the second resistance calculation information is lower than a preset error threshold; wherein, the error threshold is the precision error set by the controllable digital resistor, that is to say, if the error between the actual resistance value and the target resistance value is within the error threshold range, it means that the resistance value has reached the preset standard. When the second resistance calculation information is lower than the preset error threshold, it means that the resistance value of the second resistor has reached the preset target resistance value, that is, the second resistor has been set. When the second resistance calculation information is not lower than the preset error threshold, that is, the resistance value of the second resistor is still different from the preset target resistance value by the magnitude of the second resistance calculation information; at this time, according to the order of the second resistance information in the resistance value correspondence table, wherein, the preset order of the resistance value correspondence table is the order of the second resistance information from large to small. Compare the magnitude relationship between the second resistance calculation information and the second resistance information; when the second resistance calculation information is greater than the second resistance information, it means that the first sub-resistor needs to be adjusted to the magnitude of the second resistance information to be connected in series to form the second resistor. Then calculate the difference between the second resistance calculation information and the second resistance information to update the second resistance calculation information, which also represents the difference between the current resistance value of the second resistor and the target value. After the second resistance calculation information completes the comparison operation with the second resistance information in one of the resistance value correspondence tables, re-enter step S306 until the adjustment of the second resistor ends.

[0148] According to an embodiment of the present invention, it further includes:

[0149] The first resistor includes at least two of the first resistors;

[0150] Control the connection state of the first resistor through a preset selection switch;

[0151] The connection state includes a disconnected state and a series-connected state.

[0152] It should be noted that Figure 4 FIG. shows a schematic diagram of a first resistor provided by the present invention, as Figure 4 shown, including: a first resistor R4, first resistors R41 / R42...R4n, and first resistor selection switches S41 / S42...S4n. The connection state of the corresponding first resistor R4n is selected through the selection switch S4n; when the selection switch does not conduct the first resistor, the first resistor is in an open state; when the selection switch conducts the first resistor, the first resistor is connected in series into the resistor group of the first resistor to form the first resistor. The resistance value of the first resistor is adjusted according to the series connection situation of the first resistor. For example, if the resistance values of 10 first resistors are 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 resistance units respectively, and the states of the selection switches are connected, connected, connected, connected, connected, disconnected, disconnected, disconnected, disconnected, disconnected, it means that the first 5 first resistors are in a series-connected state, and the last 5 first resistors are in an open state, then the total resistance value of the first resistor is 15 resistance units.

[0153] According to an embodiment of the present invention, it further includes:

[0154] The first sub-resistor is formed by parallel connection of at least two second sub-resistors;

[0155] Calculate the parallel resistance value information in various combinations according to the resistance values of the second sub-resistors;

[0156] Arrange the parallel resistance value information in descending order to generate the resistance value correspondence table;

[0157] The second sub-resistor includes at least one resistor for parallel connection to form the first sub-resistor.

[0158] It should be noted that Figure 5 FIG. shows a schematic diagram of a first sub-resistor provided by the present invention, as Figure 5 shown, including: a first sub-resistor R5, second sub-resistors R51 / R52, resistors R511 / R512...R51n and R521 / R522...R52n that make up the second sub-resistors, and selection switches S511 / S512...S51n and S521 / S522...S52n for the resistors that make up the second sub-resistors. The second sub-resistor is formed by series connection of resistor groups and then parallel connection to form the first sub-resistor. Figure 6 FIG. shows a resistance value correspondence table of a first sub-resistor provided by an embodiment of the present invention, as Figure 6 shown, the resistance value of the second sub-resistor is adjusted through the selection switch, and multiple resistance values can be generated after parallel connection of the second sub-resistors in various combinations, which means that the first sub-resistor can be set to multiple resistance values. As Figure 6As shown, the resistance value interval is the difference between the resistance value of the first sub-resistor formed by the parallel combination of the latter second sub-resistor combination and the resistance value of the first sub-resistor formed by the parallel combination of the latter second sub-resistor combination, which can represent the setting accuracy of the first sub-resistor; the smaller the resistance value interval, the smaller the span that can be crossed, that is, the higher the setting accuracy.

[0159] According to an embodiment of the present invention, it further includes:

[0160] Judge whether the target resistance information is greater than a preset amplitude threshold;

[0161] If so, set the first resistor and the second resistor to the maximum resistance state.

[0162] It should be noted that there is an upper limit for the resistance value setting of the adjustable digital resistor. When the resistance value of the set target resistor is greater than the preset resistance value upper limit, the resistance values of the first resistor and the second resistor are set to the maximum resistance state to avoid too small resistance values due to incorrect settings and the situation of burning out the adjustable digital resistor in special circuits.

[0163] It is worth mentioning that it further includes:

[0164] The resistance values of the first resistor are in a geometric progression relationship;

[0165] Among them, the common ratio coefficient of the geometric progression relationship is greater than or equal to 2.

[0166] It should be noted that the resistance value distribution of the first resistor determines the resistance value distribution after series connection, that is, it determines the resistance value distribution of the first resistor. In order to make the resistance value distribution of the first resistor wider, in practical applications, the resistance values of the first resistor are in a geometric progression relationship with a proportionality coefficient of 2. For example, using 10 first resistors with resistance values of 1, 2, 4, 8, 16, 32, 64, 128, 256, and 512 respectively, 1024 resistance value selections from 0 to 1023 can be obtained through the combination of the first resistors.

[0167] The third aspect of the present invention provides a computer-readable storage medium, which includes a program for the adaptive adjustment method of the resistance value of a controllable digital resistor. When the program for the adaptive adjustment method of the resistance value of the controllable digital resistor is executed by a processor, the steps of the adaptive adjustment method of the resistance value of the controllable digital resistor as described in any one of the above are realized.

[0168] The present invention provides an adaptive adjustment method, system and storage medium for the resistance value of a controllable digital resistor. According to the acquired first voltage information, first resistor information is determined; whether the controllable digital resistor needs to adjust its resistance value is judged based on the difference between the first resistor information and the target resistor information; when resistance value adjustment is required, the first resistor information is decomposed into second resistor information and third resistor information through a preset decomposition rule; the series connection situation of the resistors of the first resistor is adjusted according to the second resistor information, and the series connection situation of the resistors of the second resistor is adjusted according to the third resistor information, so as to achieve the effect of real-time detection and adjustment of the resistance value of the controllable digital resistor.

[0169] If the above-mentioned function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that makes a contribution to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical discs and other various media that can store program codes.

[0170] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for adaptively adjusting the resistance value of a controllable digital resistor, characterized in that: The method comprises: Acquiring first voltage information; determining first resistance information according to the first voltage information; Obtaining first difference information according to a difference between the first resistance information and the target resistance information; Determining whether the first difference information is lower than a preset span threshold; If yes, the first difference information is decomposed according to a preset rule to obtain second resistance information and third resistance information; According to the second resistance information, adjusting the resistance series connection of the first resistor; According to the third resistance information, adjusting the series connection and parallel connection of the second resistor; The first voltage information is the voltage value across the controllable digital resistor; The first resistance information is the total resistance value of the controllable digital resistor.

2. The method for adaptively adjusting the resistance value of a controllable digital resistor according to claim 1, characterized in that: The adjusting the resistance series connection of the first resistor according to the second resistance information is specifically as follows: Obtaining first resistance value calculation information according to the second resistance information; Determining whether the first resistance calculation information is greater than zero; If not, then the setting of the first resistor is terminated; If yes, then determining in sequence whether the first resistance calculation information is less than the first resistance information of the first resistor constituting the first resistor; If not, then select to connect the first resistor, and update the first resistance calculation information according to the first resistance calculation information and the first resistance information; If yes, disconnect the first resistor; The first resistance value calculation information is a calculation amount of the first resistor adjustment process, and is used for comparison with the magnitude of the first resistance value information; The first resistor is used to form a first resistor in series; The first resistance value information is the resistance value of the first resistor.

3. The method for adaptively adjusting the resistance value of a controllable digital resistor according to claim 1, characterized in that: The adjusting the series connection and parallel connection of the resistance of the second resistor according to the third resistance information is specifically as follows: Obtaining second resistance value calculation information according to the third resistance information; Obtaining a resistance value correspondence table of the second resistor; Determining whether the second resistance calculation information is lower than a preset error threshold; If yes, then the setting of the second resistor is finished; If not, determining in turn whether the first resistance value calculation information is greater than the second resistance value information constituting the resistance value corresponding table; If yes, setting the first sub-resistor according to the second resistance information, and updating the second resistance calculation information according to the second resistance calculation information and the second resistance information; The second resistance value calculation information is a calculation amount of the second resistor adjustment process, and is used for comparison with the magnitude of the second resistance value information; The first sub-resistor is formed by connecting at least two resistors in parallel, and connected in series to form a second resistor; The second resistance value information is a resistance value in a resistance value correspondence table.

4. The method for adaptively adjusting the resistance value of a controllable digital resistor according to claim 1, characterized in that: Also includes: The first resistor includes at least two first resistors; Controlling the connection state of the first resistor by a preset selection switch; The connection state includes a disconnection state and a series connection state.

5. The method for adaptively adjusting the resistance value of a controllable digital resistor according to claim 1, characterized in that: Also includes: The first sub-resistor is formed by connecting at least two second sub-resistors in parallel; According to the resistance value of the second sub-resistor, calculating the parallel resistance value information after parallel connection in various combinations; Arrange the parallel resistance information in descending order to generate the resistance correspondence table; The second sub-resistor includes at least one resistor, which is connected in parallel to form the first sub-resistor.

6. The method for adaptively adjusting the resistance value of a controllable digital resistor according to claim 1, characterized in that: Also includes: Determining whether the target resistance information is greater than a preset amplitude threshold; If so, the first resistor and the second resistor are set to a maximum resistance state.

7. The self-adaptive adjustment system of the controllable digital resistor value is characterized in that: The system includes a memory and a processor, wherein the memory includes a program for a method for adaptively adjusting the resistance value of a controllable digital resistor, and when the program for adaptively adjusting the resistance value of a controllable digital resistor is executed by the processor, the following steps are implemented: Acquiring first voltage information; determining first resistance information according to the first voltage information; Obtaining first difference information according to a difference between the first resistance information and the target resistance information; Determining whether the first difference information is lower than a preset span threshold; If yes, the first difference information is decomposed according to a preset rule to obtain second resistance information and third resistance information; According to the second resistance information, adjusting the resistance series connection of the first resistor; According to the third resistance information, the series connection and parallel connection of the resistance of the second resistor are adjusted.

8. The adaptive adjustment system for controllable digital resistor value according to claim 7, characterized in that: The adjusting the resistance series connection of the first resistor according to the second resistance information is specifically as follows: Obtaining first resistance value calculation information according to the second resistance information; Determining whether the first resistance calculation information is greater than zero; If not, then the setting of the first resistor is terminated; If yes, then determining in sequence whether the first resistance calculation information is less than the first resistance information of the first resistor constituting the first resistor; If not, then select to connect the first resistor, and update the first resistance calculation information according to the first resistance calculation information and the first resistance information; If yes, the first resistor is disconnected.

9. The adaptive adjustment system for controllable digital resistor value according to claim 7, characterized in that: The adjusting the series connection and parallel connection of the resistance of the second resistor according to the third resistance information is specifically as follows: Obtaining second resistance value calculation information according to the third resistance information; Obtaining a resistance value correspondence table of the second resistor; Determining whether the second resistance calculation information is lower than a preset error threshold; If yes, then the setting of the second resistor is finished; If not, determining in turn whether the first resistance value calculation information is greater than the second resistance value information constituting the resistance value corresponding table; If so, the first sub-resistor is set according to the second resistance information, and the second resistance calculation information is updated according to the second resistance calculation information and the second resistance information.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer-readable storage medium includes a method program for adaptively adjusting the resistance value of a controllable digital resistor. When the method program for adaptively adjusting the resistance value of a controllable digital resistor is executed by a processor, the steps of the method for adaptively adjusting the resistance value of a controllable digital resistor as claimed in any one of claims 1 to 6 are implemented.