A method for adjusting a digital analog converter and related equipment

By adjusting the parameters of the digital analog converter, the IR voltage drop is reduced according to the error value of the initial digital signal and the reference digital signal, the problem of low output accuracy caused by narrowing the metal line width in traditional methods is solved, and more efficient digital Analog converter design.

CN112217517BActive Publication Date: 2024-12-27EDGELESS SEMICON CO LTD OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011071255.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-09
Publication Date
2024-12-27
Estimated Expiration
2040-10-09

AI Technical Summary

Technical Problem

When the metal line width of traditional digital-analog converters narrows, the IR voltage drop leads to low output accuracy. The existing methods to reduce the IR voltage drop are costly and limited, and cannot effectively improve output accuracy.

Method used

By adjusting the parameters of the digital analog converter, such as the resistance value of the feedback resistor, based on the error value between the initial digital signal and the reference digital signal, so that it meets the preset error conditions, thereby reducing the IR voltage drop and improving output accuracy.

Benefits of technology

It effectively reduces the IR voltage drop of digital-to-analog converters, improves output accuracy, and avoids the problems of excessive circuit area and high cost caused by increasing the width of metal lines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112217517B_ABST
    Figure CN112217517B_ABST
Patent Text Reader

Abstract

The present application provides a method for adjusting a digital-to-analog converter and related equipment, which are used to solve the problem of low accuracy of the output of the digital-to-analog converter. The method includes: the digital-to-analog converter outputs an analog signal corresponding to each of the at least two initial digital signals based on at least two initial digital signals input; if it is determined that the error value between each initial digital signal and the corresponding reference digital signal does not meet the preset error condition, then according to each initial digital signal and the reference digital signal corresponding to each initial digital signal, the parameter adjustment value of the digital-to-analog converter is determined; based on the parameter adjustment value, the parameter value of the digital-to-analog converter is adjusted so that the error value between each initial digital signal and the corresponding reference digital signal meets the preset error condition, and the adjusted digital-to-analog converter is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a method for adjusting a digital-to-analog converter and related equipment. Background Art

[0002] With the development of semiconductor process technology, the size of semiconductor process is constantly decreasing, and the width of metal lines is getting narrower and narrower, which will cause the metal line resistance to continue to rise, reducing the accuracy of semiconductor output. For example, for a digital-to-analog converter, if the width of the metal line inside the digital-to-analog converter becomes narrower, the IR drop (IR-Drop) will cause the accuracy of the digital-to-analog converter output to be lower. Since the size of traditional semiconductor processes is large, the traditional method of calibrating digital-to-analog converters does not consider the problem of IR drop caused by the narrowing of the metal line width. Therefore, according to the traditional calibration method, the calibrated digital-to-analog converter still has the problem of inaccurate output.

[0003] In order to reduce the IR voltage drop, the metal line resistance can generally be reduced by increasing the width of the metal line. Obviously, this method will cause the circuit area to be too large, making the cost of the digital analog converter higher, and will also produce a large parasitic capacitance, reducing the performance of the digital analog converter. Moreover, the width of the metal line cannot be increased indefinitely. Therefore, the existing method of reducing the IR voltage drop has great limitations and cannot effectively improve the accuracy of the digital analog converter output. The same problem also exists for other factors that affect the accuracy of the digital analog converter output. Summary of the invention

[0004] The embodiments of the present application provide a method for adjusting a digital-to-analog converter and related devices, which are used to solve the problem of low accuracy of the output of the digital-to-analog converter.

[0005] In a first aspect, a method for adjusting a digital-to-analog converter is provided, comprising:

[0006] The digital-to-analog converter outputs analog signals corresponding to each of the at least two initial digital signals based on the at least two initial digital signals input;

[0007] If it is determined that the error value between each initial digital signal and the corresponding reference digital signal does not meet the preset error condition, then determine the parameter adjustment value of the digital-to-analog converter according to each initial digital signal and the reference digital signal corresponding to each initial digital signal; wherein the reference digital signal is obtained by performing analog-to-digital conversion processing on the analog signal corresponding to the initial digital signal according to the calibrated analog-to-digital converter;

[0008] Based on the parameter adjustment value, the parameter value of the digital-to-analog converter is adjusted so that the error value between each initial digital signal and the corresponding reference digital signal satisfies a preset error condition, thereby obtaining an adjusted digital-to-analog converter.

[0009] Optionally, the preset error condition includes:

[0010] |A i -B i |=|A j -B j |

[0011] or,

[0012]

[0013] Among them, A i and A j is any initial digital signal of the at least two initial digital signals, B i and B j A i and A j The corresponding reference initial signals respectively, i and j are integers greater than 0 and less than the number of initial digital signals in the at least two initial digital signals, i and j are not equal, and ε is a preset threshold.

[0014] Optionally, the parameter value of the digital-to-analog converter includes at least two preset values, and determining the parameter adjustment value of the digital-to-analog converter according to each initial digital signal and a reference digital signal corresponding to each initial digital signal specifically includes:

[0015] According to the size of each initial digital signal, in order from small to large, the initial digital signals are sorted to obtain a first initial digital signal sequence;

[0016] According to the magnitude of the error value between each initial digital signal and the corresponding reference digital signal, the initial digital signals are sorted in ascending order to obtain a second initial digital signal sequence;

[0017] If the first initial digital signal sequence is the same as the second initial digital signal sequence, obtaining a parameter adjustment value of the digital-to-analog converter according to a preset value that is smaller than a current parameter value of the digital-to-analog converter;

[0018] If the first initial digital signal sequence and the second initial digital signal sequence are in the same reverse order, a parameter adjustment value of the digital-to-analog converter is obtained according to a preset value that is greater than a current parameter value of the digital-to-analog converter.

[0019] Optionally, the digital-to-analog converter includes a feedback resistor, and the parameter value of the digital-to-analog converter includes a resistance level of the feedback resistor.

[0020] Optionally, after obtaining the adjusted digital-to-analog converter, the method further includes:

[0021] The parameter adjustment value of the digital-to-analog converter is stored so that the digital-to-analog converter operates with the pre-stored parameter adjustment value when it is started.

[0022] In a second aspect, a digital-to-analog converter is provided, comprising:

[0023] A conversion module: configured to output an analog signal corresponding to each of the at least two initial digital signals based on at least two initial digital signals inputted;

[0024] Parameter adjustment module: used to determine the parameter adjustment value of the conversion module according to each initial digital signal and the reference digital signal corresponding to each initial digital signal if it is determined that the error value between each initial digital signal and the corresponding reference digital signal does not meet the preset error condition; wherein the reference digital signal is obtained by performing analog-to-digital conversion processing on the analog signal corresponding to the initial digital signal according to a calibrated analog-to-digital converter; and, based on the parameter adjustment value, adjust the parameter value of the conversion module so that the error value between each initial digital signal and the corresponding reference digital signal meets the preset error condition, thereby obtaining an adjusted digital-to-analog converter.

[0025] Optionally, the preset error condition includes:

[0026] |A i -B i |=|A j -B j |

[0027] or,

[0028]

[0029] Among them, A i and A j is any initial digital signal of the at least two initial digital signals, B i and B j A i and A j The corresponding reference initial signals respectively, i and j are integers greater than 0 and less than the number of initial digital signals in the at least two initial digital signals, i and j are not equal, and ε is a preset threshold.

[0030] Optionally, the parameter value of the conversion module includes at least two preset values, and the adjustment module is specifically used to:

[0031] According to the size of each initial digital signal, in order from small to large, the initial digital signals are sorted to obtain a first initial digital signal sequence;

[0032] According to the magnitude of the error value between each initial digital signal and the corresponding reference digital signal, the initial digital signals are sorted in ascending order to obtain a second initial digital signal sequence;

[0033] If the first initial digital signal sequence is the same as the second initial digital signal sequence, obtaining a parameter adjustment value of the digital-to-analog converter according to a preset value that is smaller than a current parameter value of the digital-to-analog converter;

[0034] If the first initial digital signal sequence and the second initial digital signal sequence are in the same reverse order, a parameter adjustment value of the digital-to-analog converter is obtained according to a preset value that is greater than a current parameter value of the digital-to-analog converter.

[0035] Optionally, the conversion module includes a feedback resistor, and the parameter value of the conversion module includes a resistance level of the feedback resistor.

[0036] According to a third aspect, a computer device includes:

[0037] A memory for storing program instructions;

[0038] The processor is used to call the program instructions stored in the memory and execute the method as described in the first aspect according to the obtained program instructions.

[0039] According to a fourth aspect, a storage medium is provided, wherein the storage medium stores computer executable instructions, wherein the computer executable instructions are used to enable a computer to execute the method according to the first aspect.

[0040] In an embodiment of the present application, the digital-to-analog converter outputs an analog signal corresponding to each of the at least two initial digital signals based on at least two initial digital signals input. According to whether the error value between each initial digital signal and the corresponding reference digital signal meets the preset error condition, it is determined whether the digital-to-analog converter needs to be adjusted. If the error value between each initial digital signal and the corresponding reference digital signal does not meet the preset error condition, then the parameter adjustment value of the analog-to-digital converter is determined according to each initial digital signal and the reference digital signal corresponding to each initial digital signal, such as the resistance value of the feedback resistor in the digital-to-analog converter. Thus, the parameter value of the digital-to-analog converter can be adjusted based on the determined parameter adjustment value. By adjusting the parameter value of the digital-to-analog converter, for example, the IR voltage drop of the digital-to-analog converter can be offset, so that the error value between each initial digital signal and the corresponding reference digital signal meets the preset error condition, thereby improving the output accuracy of the adjusted digital-to-analog converter. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of a structure of a digital-to-analog converter in the related art;

[0042] Figure 2 A schematic diagram of a digital-to-analog converter provided in an embodiment of the present application Figure 1 ;

[0043] Figure 3 A flow chart of a method for adjusting a digital-to-analog converter provided in an embodiment of the present application Figure 1 ;

[0044] Figure 4 A schematic diagram of a digital-to-analog converter provided in an embodiment of the present application Figure 2 ;

[0045] Figure 5 A schematic diagram of a principle of a digital-to-analog converter provided in an embodiment of the present application;

[0046] Figure 6 A flow chart of a method for adjusting a digital-to-analog converter provided in an embodiment of the present application Figure 2 ;

[0047] Figure 7 A schematic diagram of a principle of a method for adjusting a digital-to-analog converter provided in an embodiment of the present application;

[0048] Figure 8 A schematic diagram of the structure of the device for adjusting the digital-to-analog converter provided in the embodiment of the present application Figure 1 ;

[0049] Fig. 9 A schematic diagram of the structure of the device for adjusting the digital-to-analog converter provided in the embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0051] Some of the terms used in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.

[0052] (1) IR drop:

[0053] The voltage deviation caused by the current and resistance in the circuit is manifested as a voltage drop on the power supply and ground network in the integrated circuit. IR drop includes local IR drop and global IR drop. Local IR drop can cause intermittent functional failure when the circuit is working, and global IR drop can cause the entire circuit to not work properly. For example, switch impedance, layout routing or printed circuit board (PCB) routing can all cause IR drop.

[0054] In addition, in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items.

[0055] With the development of semiconductor process technology, the size of digital-to-analog converters is getting smaller and smaller. As a result, the metal wires inside the digital-to-analog converters are getting narrower and narrower, which leads to the continuous increase of metal wire resistance and affects the output accuracy of the digital-to-analog converter. The traditional method of calibrating digital-to-analog converters does not consider the impact of the narrowing of metal wire width on the digital-to-analog converter, resulting in low accuracy of the calibrated digital-to-analog converter.

[0056] As the metal resistance continues to increase, an IR voltage drop will be generated inside the digital-to-analog converter. For example, for a digital-to-analog converter with a base reference voltage of 3V, the ideal accuracy of the digital-to-analog converter is 16 bits. If an IR voltage drop is generated inside the digital-to-analog converter, such as an IR voltage drop of 1mV, it will cause a precision loss of 22 least significant bits (LSB). At this time, the actual accuracy of the digital-to-analog converter will be lower than 12 bits, far from the ideal accuracy, and the digital-to-analog converter will not be able to perform accurate digital-to-analog conversion processing. In fact, the output error of the digital-to-analog converter should be controlled within 1LSB.

[0057] In order to reduce the IR voltage drop, the traditional method is to increase the width of the metal line, which will make the circuit area of ​​the digital analog converter too large, making the cost of the digital analog converter higher, and will also produce a large parasitic capacitance, reducing the performance of the digital analog converter. In addition, the width of the metal line cannot be increased indefinitely. Therefore, the existing method of reducing the IR voltage drop has great limitations and cannot effectively improve the accuracy of the digital analog converter output. The same problem also exists for other factors that affect the accuracy of the digital analog converter output.

[0058] In view of this, the present application provides a method for adjusting a digital-to-analog converter, which can be applied to a digital-to-analog converter, or can be applied to an adjusting device, where the adjusting device adjusts the digital analog. The adjusting device can be a terminal device or a network device, where the terminal device can be a mobile phone, a tablet computer, or a personal computer, etc.; the network device can be a server, etc. In the embodiment of the present application, the method for adjusting a digital-to-analog converter is applied to a digital-to-analog converter, and the digital-to-analog converter itself is adjusted as an example for introduction.

[0059] Please refer to Figure 1 , which is a structural diagram of a digital-to-analog converter in the related art. The digital-to-analog converter in the related art includes an input circuit 101, a resistor array 102 and an operational amplifier 103. The operational amplifier 103 includes a feedback resistor 104. The input circuit 101 is connected to the resistor array 102, and the resistor array 102 is connected to the operational amplifier 103. The feedback resistor 104 connects the input end and the output end of the operational amplifier 103. Figure 1 The feedback resistor 104 is R F The resistance in the resistor array is represented by R or 2R, and the input voltage of the operational amplifier 103, that is, the common mode voltage V cm , which can be expressed as The input circuit is used to input digital signals, the resistor array 102 is used to convert the digital code in the digital signal into a current signal proportional to the digital signal, that is, an analog signal, according to the reference voltage, the operational amplifier 103 is used to filter the noise signal, and the feedback resistor 104 converts the filtered current signal into a voltage signal and outputs it. The output of an ideal digital-to-analog converter can be expressed as the following formula (1):

[0060]

[0061] Among them, V REF Represents the reference voltage, which can be expressed as V REFH -V REFL , N represents the input DAC IN The number of digital codes included in the digital signal, D i For input DAC IN The i-th digital code in a digital signal, where i is an integer greater than 0 and less than N.

[0062] If there is an IR drop inside the DAC, the output of the DAC can be expressed as follows:

[0063]

[0064] Where, ΔV r is the IR drop inside the digital-to-analog converter.

[0065] The output error of the digital-to-analog converter, that is, the error between the output of the digital-to-analog converter and the ideal output, can be expressed as the following formula (3):

[0066]

[0067] Input DAC IN The digital code included in the digital signal can be expressed as [D N-1 , D N-2 , …, D1, D0], input DAC IN The value range of the digital signal is [0, 2 N -1]. According to the above formula (3), as the input DAC IN Starting from 0 and increasing continuously until it reaches the maximum value, the output error of the digital-to-analog converter will change from Change to -ΔV r For example, a 1mV IR voltage drop will cause the maximum output error of the digital-to-analog converter to be -1mV. For a high-precision digital-to-analog converter with a resolution of more than 12 bits, this is an output error that exceeds the allowable error range and is intolerable. It can be seen that the IR voltage drop will cause the output accuracy of the digital-to-analog converter to be low.

[0068] Therefore, in the embodiment of the present application, the feedback resistor in the operational amplifier in the digital-to-analog converter is set to a feedback resistor with a configurable resistance value. Then, the output of the digital-to-analog converter can be expressed as the following formula (4):

[0069]

[0070] Wherein, R is the default resistance value of the feedback resistor, and ΔR+R is the parameter adjustment value after adjusting the default resistance value of the feedback resistor.

[0071] According to the above formula (4), the output error of the digital-to-analog converter can be expressed as the following formula (5):

[0072]

[0073] The above formula (5) can be simplified to the following formula (6):

[0074]

[0075] Among them, V in formula (6) off It can be expressed as the following formula (7):

[0076]

[0077] V in formula (6) k It can be expressed as the following formula (8):

[0078]

[0079] According to formula (7), V off Almost no DAC input IN The output error varies with the change of the digital signal, and is a fixed output error in the global range of the internal circuit of the digital-to-analog converter. The fixed output error can be offset by increasing or decreasing an error value through software programming. In the embodiment of the present application, the offset process of this part of the output error is not introduced too much.

[0080] According to formula (8), for V k For example, it will be input to the DAC along with the digital-to-analog converter IN The digital signal changes. Therefore, V k It can be considered as an uncertain value. In the embodiment of the present application, V is adjusted by adjusting the parameter value of the digital analog converter. k For example, adjusting the feedback resistor value can adjust V k The value of .

[0081] Please refer to Figure 2 , is a schematic diagram of the structure of the digital-to-analog converter provided in an embodiment of the present application. The digital-to-analog converter includes an input circuit 201, a resistor array 202, an operational amplifier 203, and a parameter adjustment module 205. The operational amplifier 203 includes a feedback resistor 204 with a configurable resistance value. The output end of the digital-to-analog converter is connected to a calibrated analog-to-digital converter 206. The input circuit 201 and the resistor array 202 can be respectively connected to Figure 1 The input circuit 101 is the same as the resistor array 102. The calibrated analog-to-digital converter 206 is not a part of the digital-to-analog converter. The calibrated analog-to-digital converter 206 can be an analog-to-digital converter integrated in the chip where the digital-to-analog converter is located, or can be an analog-to-digital converter external to the chip where the digital-to-analog converter is located, and there is no specific limitation. The resistor array 202 and the operational amplifier 203 can be used as a conversion module of the digital-to-analog converter, for performing digital-to-analog conversion processing based on the input digital signal and outputting a corresponding analog signal.

[0082] The overall idea of ​​the method for adjusting the digital-to-analog converter provided in the embodiment of the present application is introduced in detail below.

[0083] In an embodiment of the present application, the digital-to-analog converter outputs an analog signal corresponding to each of the at least two initial digital signals based on at least two initial digital signals input. According to whether the error value between each initial digital signal and the corresponding reference digital signal meets the preset error condition, it is determined whether the digital-to-analog converter needs to be adjusted. If the error value between each initial digital signal and the corresponding reference digital signal does not meet the preset error condition, then the parameter adjustment value of the analog-to-digital converter, that is, the resistance value of the feedback resistor 204, is determined according to each initial digital signal and the reference digital signal corresponding to each initial digital signal. The reference digital signal is obtained by performing analog-to-digital conversion processing on the analog signal corresponding to the initial digital signal according to the calibrated analog-to-digital converter 206. Thus, the parameter value of the digital-to-analog converter can be adjusted based on the determined parameter adjustment value so that the error value between each initial digital signal and the corresponding reference digital signal meets the preset error condition, and the adjusted digital-to-analog converter is obtained. By adjusting the parameter value of the digital-to-analog converter, the IR voltage drop is reduced.

[0084] The following is a detailed introduction to the method for adjusting the digital-to-analog converter provided in an embodiment of the present application.

[0085] Please refer to Figure 3 , is a flow chart of a method for adjusting a digital-to-analog converter provided in an embodiment of the present application, the method specifically comprising the following steps:

[0086] S301: A digital-to-analog converter outputs an analog signal corresponding to each of the at least two initial digital signals based on at least two initial digital signals inputted.

[0087] S302, if it is determined that the error value between each initial digital signal and the corresponding reference digital signal does not meet the preset error condition, determine the parameter adjustment value of the digital-to-analog converter according to each initial digital signal and the reference digital signal corresponding to each initial digital signal.

[0088] S303, based on the parameter adjustment value, adjusting the parameter value of the digital-to-analog converter so that the error value between each initial digital signal and the corresponding reference digital signal satisfies a preset error condition, thereby obtaining an adjusted digital-to-analog converter.

[0089] The following is based on Figure 2 The structural diagram of the digital-to-analog converter shown in the figure illustrates the specific implementation methods of each step.

[0090] Before the digital-to-analog converter executes S301 and outputs analog signals corresponding to each of the at least two initial digital signals based on the at least two initial digital signals, the digital-to-analog converter may first receive the at least two initial digital signals.

[0091] Other devices, such as adjustment devices, can randomly generate two initial digital signals. After generating at least two initial digital signals, the other devices can send the at least two initial digital signals to the digital-to-analog converter. The input circuit 201 in the digital-to-analog converter can receive the at least two initial digital signals sent by the other devices, so that the digital-to-analog converter obtains at least two initial digital signals.

[0092] Alternatively, the parameter adjustment module 205 in the digital-to-analog converter can randomly generate at least two initial digital signals. After the parameter adjustment module 205 generates at least two initial digital signals, the at least two initial digital signals are input into the input circuit 201, so that the digital-to-analog converter obtains at least two initial digital signals.

[0093] After the digital-to-analog converter obtains at least two initial digital signals, step 301 is performed, where the digital-to-analog converter outputs analog signals corresponding to each of the at least two initial digital signals based on the at least two initial digital signals input.

[0094] The input circuit 201 in the digital-to-analog converter inputs at least two initial digital signals into the resistor array 202, and the resistor array 202 receives the at least two initial digital signals sent by the input circuit 201. The resistor array 202 converts the at least two initial digital signals into analog signals respectively, and inputs the analog signals corresponding to the at least two initial digital signals obtained into the operational amplifier 203. The operational amplifier 203 receives the analog signals corresponding to the at least two initial digital signals input by the resistor array 202, and filters the analog signals, and obtains the analog signals corresponding to the at least two filtered initial digital signals after filtering out the noise signals. After obtaining the analog signals corresponding to the at least two filtered initial digital signals, the operational amplifier 203 outputs them.

[0095] When the digital-to-analog converter executes S302, if it is determined that the error value between each initial digital signal and the corresponding reference digital signal does not satisfy the preset error condition, then before determining the parameter adjustment value of the digital-to-analog converter based on each initial digital signal and the reference digital signal corresponding to each initial digital signal, the digital-to-analog converter may first determine whether the error value between each initial digital signal and the corresponding reference digital signal satisfies the preset error condition.

[0096] The reference digital signal is obtained by performing analog-to-digital conversion processing on the analog signal corresponding to the initial digital signal according to the calibrated analog-to-digital converter 206. The calibrated analog-to-digital converter 206 is connected to the output end of the digital-to-analog converter, and performs analog-to-digital conversion on the analog signal output by the digital-to-analog converter to obtain the reference digital signal. The calibrated analog-to-digital converter 206 inputs the obtained reference digital signal into the digital-to-analog converter, so that the digital-to-analog converter adjusts the parameter value of the digital-to-analog converter according to the reference digital signal.

[0097] As an example, the accuracy of the calibrated analog-to-digital converter 206 is greater than or equal to the accuracy of the digital-to-analog converter.

[0098] According to different preset error conditions, the methods for determining whether the error value between each initial digital signal and the corresponding reference digital signal meets the preset error condition are different, and two of them are described as examples below.

[0099] Preset error condition 1:

[0100] |A i -B i |=|A j -B j |

[0101] Preset error condition 2:

[0102]

[0103] Among them, A i and A j is any initial digital signal of at least two initial digital signals, B i and B j A i and A j The corresponding reference initial signals respectively, i and j are integers greater than 0 and less than the number of initial digital signals in at least two initial digital signals, i and j are not equal, and ε is a preset threshold.

[0104] For the above-mentioned preset error condition 1, determination method 1 is:

[0105] After the digital-to-analog converter obtains at least two initial digital signals, the error value between the initial digital signal and the corresponding reference digital signal is determined for each of the two initial digital signals. If the error values ​​corresponding to the two initial digital signals determined are equal, then it is determined that the error values ​​between the two initial digital signals and the corresponding reference digital signals meet the preset error condition. Otherwise, the digital-to-analog converter determines that the error values ​​between the two initial digital signals and the corresponding reference digital signals do not meet the preset error condition.

[0106] If the preset error condition is satisfied for each of the two initial digital signals, the digital-to-analog converter determines that the error value between each initial digital signal and the corresponding reference digital signal satisfies the preset error condition. Otherwise, the digital-to-analog converter determines that the error value between each initial digital signal and the corresponding reference digital signal does not satisfy the preset error condition.

[0107] For the above-mentioned preset error condition 2, the second determination method is:

[0108] After the digital-to-analog converter obtains at least two initial digital signals, the error value between the initial digital signal and the corresponding reference digital signal is determined for each of the two initial digital signals. If the ratio of the error value corresponding to the two initial digital signals to the error value between the two initial digital signals is within a preset range, then it is determined that the error value between the two initial digital signals and the corresponding reference digital signals meets the preset error condition. Otherwise, the digital-to-analog converter determines that the error value between the two initial digital signals and the corresponding reference digital signals does not meet the preset error condition.

[0109] If the preset error condition is satisfied for each of the two initial digital signals, the digital-to-analog converter determines that the error value between each initial digital signal and the corresponding reference digital signal satisfies the preset error condition. Otherwise, the digital-to-analog converter determines that the error value between each initial digital signal and the corresponding reference digital signal does not satisfy the preset error condition.

[0110] If the digital-to-analog converter determines that the error value between each initial digital signal and the respectively corresponding reference digital signal satisfies the preset error condition, then an adjusted digital-to-analog converter is obtained.

[0111] If the digital-to-analog converter determines that the error value between each initial digital signal and the corresponding reference digital signal does not satisfy the preset error condition, then the digital-to-analog converter executes S302. If it is determined that the error value between each initial digital signal and the corresponding reference digital signal does not satisfy the preset error condition, the parameter adjustment value of the digital-to-analog converter is determined based on each initial digital signal and the reference digital signal corresponding to each initial digital signal.

[0112] The parameter value of the digital-to-analog converter may include at least two preset values, and the digital-to-analog converter may adjust the parameter value of the digital-to-analog converter by switching between different preset values.

[0113] The digital-to-analog converter sorts the initial digital signals in ascending order according to the size of each initial digital signal in at least two initial digital signals to obtain a first initial digital signal sequence.

[0114] The digital-to-analog converter sorts the initial digital signals in ascending order according to the error value between each initial digital signal in at least two initial digital signals and the corresponding reference digital signal to obtain a second initial digital signal sequence.

[0115] As an embodiment, the sorting order of the initial digital signals may also be from large to small, or other orders, and the first initial digital signal sequence and the second initial digital signal sequence need to be obtained by sorting in the same order.

[0116] If the first initial digital signal sequence is the same as the second initial digital signal sequence, that is, the initial digital signals corresponding to the same serial number in the first initial digital signal sequence and the second initial digital signal sequence are the same, then it can be determined that the current parameter value is larger, and a preset value that is smaller than the current parameter value is used as the parameter adjustment value of the digital-to-analog converter.

[0117] If the first initial digital signal sequence and the second initial digital signal sequence are the same in reverse order, that is, the second initial digital signal sequence is arranged in reverse order, and after the reverse order, the initial digital signals corresponding to the same serial number in the first initial digital signal sequence and the second initial digital signal sequence are the same, then it can be determined that the current parameter value is smaller, and a preset value greater than the current parameter value is used as the parameter adjustment value of the digital-to-analog converter.

[0118] As an embodiment, the parameter value of the digital-to-analog converter may be a preset range. If the first initial digital signal sequence is the same as the second initial digital signal sequence, then any value less than the current parameter value within the preset range may be used as the parameter adjustment value of the digital-to-analog converter. If the first initial digital signal sequence is the same as the second initial digital signal sequence in reverse order, then any value greater than the current parameter value within the preset range may be used as the parameter adjustment value of the digital-to-analog converter.

[0119] After obtaining the parameter adjustment value, the digital-to-analog converter executes S303 to adjust the parameter value of the digital-to-analog converter based on the parameter adjustment value. The digital-to-analog converter sets the parameter value of the digital-to-analog converter as the parameter adjustment value.

[0120] After the digital-to-analog converter adjusts the parameter values ​​of the digital-to-analog converter, the above steps can be repeated until the error value between each initial digital signal and the corresponding reference digital signal meets the preset error condition, thereby obtaining an adjusted digital-to-analog converter.

[0121] As an embodiment, after obtaining the adjusted digital-to-analog converter, the digital-to-analog converter can store the current parameter values ​​of the digital-to-analog converter, so that the digital-to-analog converter can operate with the stored parameter adjustment values ​​when it is started next time, thereby achieving an accurate digital-to-analog conversion effect.

[0122] The following takes the parameter of the digital-to-analog converter as the resistance value of the feedback resistor 204 as an example to introduce the method for adjusting the digital-to-analog converter in the embodiment of the present application.

[0123] Please refer to Figure 4, is a structural diagram of the feedback resistor 204. The feedback resistor 204 includes multiple resistors connected in parallel, that is, multiple preset resistance values, such as R0, R1, ..., Rx. If the current resistance value of the feedback resistor 204 is R0, and the parameter adjustment value determined by the digital-to-analog converter is R1, the digital-to-analog converter opens the switch of the R0 branch in the feedback resistor 204 and closes the switch of the R1 branch, so as to adjust the current resistance value of the feedback resistor 204 from R0 to R1. The feedback resistor 204 is designed to be adjustable in multiple gears. By adjusting the resistance gear of the feedback resistor 204, the optimal resistance gear under the current IR voltage drop condition can be determined.

[0124] As an example, please refer to Figure 5 , is a schematic diagram of a structure of the parameter adjustment module 205. The parameter adjustment module 205 includes a resistance level control circuit 501, an input control circuit 502, a conversion control circuit 503, an adjustment value calculation circuit 504 and a storage unit 505.

[0125] After the digital-to-analog converter is started, the resistance level control circuit 501 obtains the resistance value of the feedback resistor 204 from the storage unit 505. After obtaining the resistance value of the feedback resistor 204, the resistance level control circuit 501 sets the resistance level of the feedback resistor 204 based on the resistance value of the feedback resistor 204. The input control circuit 502 randomly generates two initial digital signals DAC IN 1 and DAC IN 2.

[0126] The input control circuit 502 obtains the DAC IN 1 and DAC IN 2, then the DAC is input to the input circuit 201 IN 1 and DAC IN 2. Input circuit 201 receives DAC IN 1 and DAC IN 2, the input circuit 201 is fed to the conversion module of the digital-to-analog converter, namely the resistor array 202 and the operational amplifier 203, and the DAC IN 1 and DAC IN 2, so that the conversion module can respectively IN 1 and DAC IN 2 Perform digital-to-analog conversion and output DAC OUT 1 and DAC OUT 2.

[0127] Calibrated analog-to-digital converter 206 pairs of DAC OUT 1 and DAC OUT 2 performs analog-to-digital conversion processing and outputs DAC to the adjustment value calculation circuit 504 IN 11 and DAC IN22. The conversion control circuit 503 receives the DAC input of the calibrated analog-to-digital converter 206 IN 11 and DAC IN 22. The conversion control circuit 503 determines the DAC IN 1-DAC IN 11 and DAC IN 2-DAC IN 22 whether the preset error condition is met. If so, the adjustment value calculation circuit 504 calculates the value according to the DAC IN 1 and DAC IN 2. DAC IN 11 and DAC IN 22. Determine the resistance adjustment value of the feedback resistor 204.

[0128] The resistance level control circuit 501 adjusts the feedback resistor 204 based on the resistance level adjustment value of the feedback resistor 204. IN 1-DAC IN 11 and DAC IN 2-DAC IN 22 satisfies the preset error condition, the resistance level control circuit 501 stores the resistance level adjustment value of the feedback resistor 204 in the storage unit 505.

[0129] Please refer to Figure 6 , is a flow chart of a digital-to-analog converter adjusting the resistance of the feedback resistor 204. Figure 2 , the process of adjusting the resistance value of the feedback resistor 204 by the digital-to-analog converter is introduced by way of example.

[0130] S601 , the input circuit 201 of the digital-to-analog converter receives two initial digital signals input by the parameter adjustment module 205 .

[0131] S602 , the input circuit 201 inputs two initial digital signals into the resistor array 202 respectively.

[0132] S603 , the resistor array 202 converts the two input initial digital signals into current signals respectively, and inputs the two current signals into the operational amplifier 203 respectively.

[0133] S604, the operational amplifier 203 filters the two current signals respectively, and converts the current signals into voltage signals, and inputs the voltage signals corresponding to the two initial digital signals, ie, analog signals.

[0134] S605 , the calibrated analog-to-digital converter 206 converts the analog signal output by the operational amplifier 203 into a reference digital signal, and inputs the reference digital signals corresponding to the two initial digital signals into the parameter adjustment module 205 .

[0135] S606, the parameter adjustment module 205 determines whether the error values ​​between the two initial digital signals and the corresponding reference digital signals meet the preset error condition. If the parameter adjustment module 205 determines that the error values ​​between the two initial digital signals and the corresponding reference digital signals do not meet the preset error condition, the parameter adjustment module 205 executes S606; if the parameter adjustment module 205 determines that the error values ​​between the two initial digital signals and the corresponding reference digital signals meet the preset error condition, a calibrated digital-to-analog converter is obtained.

[0136] S607 , the parameter adjustment module 205 determines the resistance adjustment value of the feedback resistor 204 according to the two initial digital signals and the corresponding reference digital signals.

[0137] S608, the parameter adjustment module 205 adjusts the resistance of the feedback resistor 204 based on the determined resistance adjustment value of the feedback resistor 204, so that the error value between each initial digital signal and the corresponding reference digital signal meets the preset error condition, and obtains an adjusted digital-to-analog converter.

[0138] Please refer to Figure 7 , which is a comparison chart of the output error of the digital-to-analog converter before and after adjustment.

[0139] The horizontal axis is the input DAC IN The vertical axis is the digital signal of the digital analog converter, and the vertical axis is the output error V err . Figure 7 (1) To adjust the output error of the digital-to-analog converter before Figure 7 (2) is the output error of the digital-to-analog converter after adjustment. It can be seen that when the slope of the output error of the digital-to-analog converter approaches 0, the output error of the digital-to-analog converter is proportional to the input DAC. IN The digital signal of the feedback resistor 204 is irrelevant, and the purpose of offsetting the IR voltage drop is achieved by adjusting the resistance value of the feedback resistor 204.

[0140] Based on the same inventive concept, the embodiment of the present application provides a device for adjusting a digital-to-analog converter, which can implement the functions corresponding to the aforementioned method for adjusting a digital-to-analog converter. The device can be equivalent to the aforementioned digital-to-analog converter. Please refer to Figure 8 , the device includes a conversion module 801 and a parameter adjustment module 802, wherein:

[0141] The conversion module 801 is configured to output an analog signal corresponding to each of the at least two initial digital signals based on at least two initial digital signals inputted;

[0142] Parameter adjustment module 802: used to determine the parameter adjustment value of the conversion module 801 according to each initial digital signal and the reference digital signal corresponding to each initial digital signal if it is determined that the error value between each initial digital signal and the corresponding reference digital signal does not meet the preset error condition; wherein the reference digital signal is obtained by performing analog-to-digital conversion processing on the analog signal corresponding to the initial digital signal according to a calibrated analog-to-digital converter; and, based on the parameter adjustment value, adjust the parameter value of the conversion module 801 so that the error value between each initial digital signal and the corresponding reference digital signal meets the preset error condition, thereby obtaining an adjusted digital-to-analog converter.

[0143] In a possible embodiment, the preset error condition includes:

[0144] |A i -B i |=|A j -B j |

[0145] or,

[0146]

[0147] Among them, A i and A j is any initial digital signal of at least two initial digital signals, B i and B j A i and A j The corresponding reference initial signals respectively, i and j are integers greater than 0 and less than the number of initial digital signals in at least two initial digital signals, i and j are not equal, and ε is a preset threshold.

[0148] In a possible embodiment, the parameter value of the conversion module 801 includes at least two preset values, and the parameter adjustment module 802 is specifically used to:

[0149] According to the size of each initial digital signal, in order from small to large, the initial digital signals are sorted to obtain a first initial digital signal sequence;

[0150] According to the magnitude of the error value between each initial digital signal and the corresponding reference digital signal, the initial digital signals are sorted in ascending order to obtain a second initial digital signal sequence;

[0151] If the first initial digital signal sequence is the same as the second initial digital signal sequence, obtaining a parameter adjustment value of the digital-to-analog converter according to a preset value that is less than a current parameter value of the digital-to-analog converter;

[0152] If the reverse order of the first initial digital signal sequence is the same as the reverse order of the second initial digital signal sequence, the parameter adjustment value of the digital-to-analog converter is obtained according to a preset value that is greater than the current parameter value of the digital-to-analog converter.

[0153] In a possible embodiment, the conversion module 801 includes a feedback resistor, and the parameter value of the conversion module 801 includes a resistance level of the feedback resistor.

[0154] Based on the same inventive concept, an embodiment of the present application provides a computer device, which can realize the aforementioned function of adjusting the digital-to-analog converter. The computer device can be equivalent to the aforementioned electric fan, see Fig. 9 , the computer device comprises:

[0155] At least one processor 901, and a memory 902 connected to the at least one processor 901. The specific connection medium between the processor 901 and the memory 902 is not limited in the embodiment of the present application. Fig. 9 In the example, the processor 901 and the memory 902 are connected via a bus 900. Fig. 9 The bus 900 is represented by a bold line, and the connection between other components is only for schematic illustration and is not intended to be limiting. The bus 900 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 901 can also be called a controller 901, and there is no limitation on the name.

[0156] In the embodiment of the present application, the memory 902 stores instructions that can be executed by at least one processor 901. The at least one processor 901 can execute the method for adjusting the digital-to-analog converter discussed above by executing the instructions stored in the memory 902. The processor 901 can implement Figure 8 The functions of each module in the control device are shown.

[0157] Among them, processor 901 is the control center of the control device, and can use various interfaces and lines to connect various parts of the entire control device. By running or executing instructions stored in memory 902 and calling data stored in memory 902, the various functions of the control device and process data, the control device can be monitored as a whole.

[0158] In a possible embodiment, the processor 901 may include one or more processing units, and the processor 901 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 901. In some embodiments, the processor 901 and the memory 902 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.

[0159] Processor 901 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method for adjusting the digital-to-analog converter disclosed in the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.

[0160] The memory 902 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 902 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 902 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 902 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0161] By programming the processor 901, the code corresponding to the method for adjusting the digital-to-analog converter described in the above embodiment can be fixed into the chip, so that the chip can execute the method when running. Figure 2The steps of the method for adjusting the digital-to-analog converter in the embodiment shown are as follows: How to design and program the processor 901 is a technique well known to those skilled in the art and will not be described in detail here.

[0162] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes the method for adjusting the digital-to-analog converter discussed above.

[0163] In some possible implementations, various aspects of the method for adjusting a digital-to-analog converter provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of the method for adjusting a digital-to-analog converter according to various exemplary implementations of the present application described above in this specification.

[0164] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0165] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing 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.

[0166] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising 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.

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

[0168] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for adjusting a digital-to-analog converter, characterized in that: The invention is applied to reduce the IR voltage drop in the digital-to-analog converter, comprising: The digital-to-analog converter outputs analog signals corresponding to each of the at least two initial digital signals based on the at least two initial digital signals input; If it is determined that the error value between each initial digital signal and the corresponding reference digital signal does not meet the preset error condition, then determine the parameter adjustment value of the digital-to-analog converter according to each initial digital signal and the reference digital signal corresponding to each initial digital signal; wherein the reference digital signal is obtained by performing analog-to-digital conversion processing on the analog signal corresponding to the initial digital signal according to the calibrated analog-to-digital converter; Based on the parameter adjustment value, adjusting the parameter value of the digital-to-analog converter so that the error value between each initial digital signal and the corresponding reference digital signal satisfies a preset error condition, thereby obtaining an adjusted digital-to-analog converter; Wherein, when the parameter value of the digital-to-analog converter includes at least two preset values, determining the parameter adjustment value of the digital-to-analog converter according to each initial digital signal and the reference digital signal corresponding to each initial digital signal specifically includes: According to the size of each initial digital signal, in order from small to large, the initial digital signals are sorted to obtain a first initial digital signal sequence; According to the magnitude of the error value between each initial digital signal and the corresponding reference digital signal, the initial digital signals are sorted in ascending order to obtain a second initial digital signal sequence; If the first initial digital signal sequence is the same as the second initial digital signal sequence, obtaining a parameter adjustment value of the digital-to-analog converter according to a preset value that is smaller than a current parameter value of the digital-to-analog converter; If the first initial digital signal sequence and the second initial digital signal sequence are in the same reverse order, obtaining a parameter adjustment value of the digital-to-analog converter according to a preset value greater than a current parameter value of the digital-to-analog converter; The digital-to-analog converter includes a feedback resistor, and when the at least two preset values ​​each correspond to a resistance level of the feedback resistor, adjusting the parameter value of the digital-to-analog converter based on the parameter adjustment value includes: Based on the parameter adjustment value, the resistance level of the feedback resistor is switched.

2. The method according to claim 1, characterized in that The preset error conditions include: |A i -B i |=|A j -B j | or, Among them, A i and A j is any initial digital signal of the at least two initial digital signals, B i and B j A i and A j The corresponding reference initial signals respectively, i and j are integers greater than 0 and less than the number of initial digital signals in the at least two initial digital signals, i and j are not equal, and ε is a preset threshold.

3. The method according to claim 1, characterized in that After obtaining the regulated digital-to-analog converter, it also includes: The parameter adjustment value of the digital-to-analog converter is stored so that the digital-to-analog converter operates with the pre-stored parameter adjustment value when it is started.

4. A digital-to-analog converter, characterized in that: The invention is applied to reduce the IR voltage drop in the digital-to-analog converter, comprising: A conversion module: configured to output an analog signal corresponding to each of the at least two initial digital signals based on at least two initial digital signals inputted; An adjustment module: used for determining a parameter adjustment value of the conversion module according to each initial digital signal and a reference digital signal respectively corresponding to each initial digital signal, if it is determined that the error value between each initial digital signal and the respectively corresponding reference digital signal does not satisfy a preset error condition; wherein the reference digital signal is obtained by performing analog-to-digital conversion processing on an analog signal corresponding to the initial digital signal according to a calibrated analog-to-digital converter; and, based on the parameter adjustment value, adjusting the parameter value of the conversion module so that the error value between each initial digital signal and the respectively corresponding reference digital signal satisfies the preset error condition, thereby obtaining an adjusted digital-to-analog converter; When the parameter value of the conversion module includes at least two preset values, the adjustment module is specifically used for: According to the size of each initial digital signal, in order from small to large, the initial digital signals are sorted to obtain a first initial digital signal sequence; According to the magnitude of the error value between each initial digital signal and the corresponding reference digital signal, the initial digital signals are sorted in ascending order to obtain a second initial digital signal sequence; If the first initial digital signal sequence is the same as the second initial digital signal sequence, obtaining a parameter adjustment value of the digital-to-analog converter according to a preset value that is smaller than a current parameter value of the digital-to-analog converter; If the first initial digital signal sequence and the second initial digital signal sequence are in the same reverse order, obtaining a parameter adjustment value of the digital-to-analog converter according to a preset value greater than a current parameter value of the digital-to-analog converter; The conversion module includes a feedback resistor, and when the at least two preset values ​​each correspond to a resistance level of the feedback resistor, the adjustment module is specifically configured to: switch the resistance level of the feedback resistor based on the parameter adjustment value.

5. A computer device, characterized in that: include: A memory for storing program instructions; The processor is used to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 3 according to the obtained program instructions.

6. A storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 1 to 3.