Voltage trimming method and system based on integrated circuit

文档序号:828622 发布日期:2021-03-30 浏览:6次 中文

阅读说明:本技术 基于集成电路的电压修调方法及系统 (Voltage trimming method and system based on integrated circuit ) 是由 邱鹏 于 2019-09-29 设计创作,主要内容包括:本发明公开了一种基于集成电路的电压修调方法,包括:根据期望电压与所述集成电路提供的待修调电压获得偏差,根据所述偏差获得相对修调参数;以及根据所述待修调电压所处的阈值范围和所述相对修调参数提供数字修调信号,以调节所述待修调电压。本发明还公开了一种基于集成电路的电压修调系统,简化了获取数字修调信号的过程,增加了电压修调的准确性和可靠性,通用性和可扩展性更强。(The invention discloses a voltage trimming method based on an integrated circuit, which comprises the following steps: obtaining deviation according to the expected voltage and the voltage to be modified provided by the integrated circuit, and obtaining a relative modification parameter according to the deviation; and providing a digital trimming signal according to the threshold range of the voltage to be trimmed and the relative trimming parameter so as to adjust the voltage to be trimmed. The invention also discloses a voltage trimming system based on the integrated circuit, which simplifies the process of acquiring the digital trimming signal, increases the accuracy and reliability of voltage trimming, and has stronger universality and expandability.)

1. A voltage trimming method based on an integrated circuit is characterized by comprising the following steps:

obtaining a deviation according to a desired voltage and a voltage to be modified provided by the integrated circuit,

obtaining relative trimming parameters according to the deviation; and

and providing a digital trimming signal according to the threshold range of the voltage to be trimmed and the relative trimming parameter so as to adjust the voltage to be trimmed.

2. The voltage trimming method according to claim 1, wherein the digital trimming signal comprises a first trimming bit and a plurality of second trimming bits, the first trimming bit corresponds to a positive trimming precision or a negative trimming precision, and the trimming precision of each of the second trimming bits is opposite to the first trimming bit.

3. The voltage trimming method of claim 2, wherein providing a digital trimming signal according to the threshold range of the voltage to be trimmed and the relative trimming parameter comprises:

judging the threshold range of the voltage to be modified based on the expected voltage;

determining the value of a first trimming bit in the digital trimming signal according to the threshold range of the voltage to be trimmed;

determining values of the plurality of second trim bits according to a binary code of the relative trim parameter.

4. The voltage trimming method according to claim 1, wherein the deviation is a difference between a voltage value of the voltage to be trimmed and a voltage value of the desired voltage.

5. The voltage trimming method according to claim 2, wherein the first trimming bit and the plurality of second trimming bits have trimming accuracies different from each other in absolute value.

6. The voltage trimming method according to claim 5, wherein among the plurality of trimming bits of the digital trimming signal, the highest trimming bit corresponds to the trimming precision with the largest absolute value, and the lowest trimming bit corresponds to the trimming precision with the smallest absolute value.

7. The voltage trimming method of claim 3, wherein determining the value of the first trimming bit in the digital trimming signal comprises:

when the voltage to be trimmed is smaller than a first threshold value, the value of the first trimming bit is 0;

when the voltage to be trimmed is larger than a second threshold value, the value of the first trimming bit is 1;

when the voltage to be trimmed is greater than the first threshold and less than the second threshold, the value of the first trimming bit is 0.

8. The voltage trimming method according to claim 7, wherein when the voltage to be trimmed is greater than the first threshold and smaller than the second threshold, the first trimming bit and the second trimming bits in the digital trimming signal both have a value of 0.

9. The voltage trimming method of claim 8,

the first threshold is a difference of a voltage value of the desired voltage minus a product of the voltage value of the desired voltage and a half step of a minimum trimming accuracy,

the second threshold is the sum of the voltage value of the desired voltage plus the product of the voltage value of the desired voltage and half the step size of the minimum trimming precision.

10. The voltage trimming method of claim 1, wherein obtaining relative trimming parameters according to the deviation comprises:

obtaining the percentage of the absolute value of the deviation relative to the voltage to be modified according to the deviation; and

and obtaining the relative trimming parameters according to the percentages.

11. The voltage trimming method of claim 10, wherein obtaining the relative trimming parameter according to the percentage when the voltage to be trimmed is smaller than a first threshold comprises:

dividing the percentage by the minimum trimming precision to obtain an integer part of the quotient and a remainder;

comparing whether the remainder is greater than half the step size of the minimum trimming precision,

wherein the relative trimming parameter is an integer part of the quotient when the remainder is not greater than half step length of the minimum trimming precision,

and when the remainder is more than half step length of the minimum trimming precision, the relative trimming parameter is the integer part of the quotient plus 1.

12. The voltage trimming method of claim 10, wherein obtaining the relative trimming parameter according to the percentage when the voltage to be trimmed is greater than a second threshold comprises:

dividing the percentage by the minimum trimming precision to obtain an integer part of the quotient and a remainder;

calculating the multiple of the absolute value of the trimming precision corresponding to the first trimming position in the digital trimming signal relative to the minimum trimming precision;

comparing whether the remainder is greater than half the step size of the minimum trimming precision,

wherein the relative trimming parameter is the integer part of the quotient subtracted from the multiple when the remainder is not greater than half a step length of the minimum trimming precision,

and when the remainder is larger than half step length of the minimum trimming precision, the relative trimming parameter is that the integer part of the quotient is subtracted from the multiple and then is subtracted by 1.

13. The voltage trimming method according to claim 3, further comprising:

when the voltage to be trimmed is smaller than a first threshold value, comparing whether the relative trimming parameter is larger than a, and when the relative trimming parameter is larger than a, determining the values of the plurality of second trimming bits according to a binary code of a;

when the voltage to be modified is larger than a second threshold value, comparing whether the relative modification parameter is larger than b, and when the relative modification parameter is larger than b, determining the values of the plurality of second modification bits according to the binary code of b,

wherein, a is the absolute value of the quotient obtained by dividing the maximum positive polarity combined trimming precision by the minimum trimming precision, b is the absolute value of the quotient obtained by dividing the maximum negative polarity combined trimming precision by the minimum trimming precision, and a and b are positive numbers.

14. An integrated circuit based voltage trimming system, comprising:

the LDO module receives a voltage to be trimmed provided by the integrated circuit at a positive input end and receives an analog trimming signal at a negative input end, and is used for outputting an expected voltage according to the voltage to be trimmed and the analog trimming signal;

the trimming control module is used for providing a digital trimming signal;

and the trimming module is connected with the LDO module and the trimming control module and is used for generating the analog trimming signal according to the digital trimming signal.

Technical Field

The invention relates to the technical field of integrated circuit testing, in particular to a voltage trimming method and system based on an integrated circuit.

Background

In an integrated circuit, a constant reference voltage is generated inside a chip to provide accurate and stable reference voltage values for internal digital circuits and analog circuits, namely, a voltage reference is an indispensable part of the analog circuits and the digital circuits. In the production process, the accuracy of the reference voltage of the chip is usually deviated from a preset value due to uncertain factors such as offset, temperature drift and process deviation of the reference voltage. The imbalance and temperature drift of the reference voltage often cause the function failure of the whole circuit, the accuracy of the reference voltage directly affects the accuracy of data acquisition of the integrated circuit, and affects the output voltage of an LDO (low dropout regulator) and a DC-DC (Direct Current-Direct Current) converter, and the yield and profit margin of the product are also affected.

For example, if there are 4 bits in a trimming bit of a digital trimming signal, which are trim0, trim1, trim2, and trim3, each voltage trimming bit corresponds to a reference trimming precision, and different reference trimming precision combinations can be obtained by using the 4 trimming bit values, thereby realizing the precision trimming required for different voltages to be trimmed. The method specifically comprises the following steps: and calculating a trimming amount according to the difference value between the voltage value of the voltage to be trimmed and the voltage value of the expected voltage, outputting a corresponding digital trimming signal according to the trimming amount, and then controlling a trimming circuit to perform precision trimming on the voltage to be trimmed according to the digital trimming signal. Wherein obtaining the digital trimming signal is typically implemented in a program.

The existing method for obtaining the digital trimming signal is to obtain the digital trimming signal by looking up a table, and output the corresponding digital trimming signal by looking up the table according to the threshold range of the trimming amount. However, such a processing method is relatively complicated, and the required data processing time is relatively long. On the other hand, the lookup table also needs to store various trimming precision combinations, thereby causing certain resource waste. Meanwhile, when the number of the reference trimming precisions is more and the trimming precision combinations are more, the table lookup method adopted by the prior art is more complicated and is more prone to errors.

Therefore, there is a need to provide an improved technical solution to overcome the above technical problems in the prior art.

Disclosure of Invention

In order to solve the technical problems, the invention provides a voltage trimming method and a voltage trimming system based on an integrated circuit, which simplify the process of acquiring digital trimming signals, increase the accuracy and reliability of voltage trimming, and have stronger universality and expandability.

The invention provides a voltage trimming method based on an integrated circuit, which comprises the following steps: obtaining deviation according to the expected voltage and the voltage to be modified provided by the integrated circuit, and obtaining a relative modification parameter according to the deviation; and providing a digital trimming signal according to the threshold range of the voltage to be trimmed and the relative trimming parameter so as to adjust the voltage to be trimmed.

Preferably, the voltage trimming method according to claim 1, wherein the digital trimming signal comprises a first trimming bit and a plurality of second trimming bits, the first trimming bit corresponds to a positive trimming accuracy or a negative trimming accuracy, and the trimming accuracy of each of the second trimming bits is opposite to that of the first trimming bit.

Preferably, the providing a digital trimming signal according to the threshold range where the voltage to be trimmed is located and the relative trimming parameter includes: judging the threshold range of the voltage to be modified based on the expected voltage; determining the value of a first trimming bit in the digital trimming signal according to the threshold range of the voltage to be trimmed; determining values of the plurality of second trim bits according to a binary code of the relative trim parameter.

Preferably, the deviation is a difference between a voltage value of the voltage to be modified and a voltage value of the expected voltage.

Preferably, the first trimming bit and the plurality of second trimming bits have trimming accuracies different from each other in absolute value.

Preferably, among the plurality of trimming bits of the digital trimming signal, the most significant trimming bit corresponds to the trimming precision with the largest absolute value, and the least significant trimming bit corresponds to the trimming precision with the smallest absolute value.

Preferably, determining the value of the first trim bit in the digital trim signal comprises: when the voltage to be trimmed is smaller than a first threshold value, the value of the first trimming bit is 0; when the voltage to be trimmed is larger than a second threshold value, the value of the first trimming bit is 1; when the voltage to be trimmed is greater than the first threshold and less than the second threshold, the value of the first trimming bit is 0.

Preferably, when the voltage to be modified is greater than the first threshold and smaller than the second threshold, the values of the first modification bit and the plurality of second modification bits in the digital modification signal are both 0.

Preferably, the first threshold is a difference obtained by subtracting a voltage value of the desired voltage by a product of the voltage value of the desired voltage and a half step of the minimum trimming accuracy, and the second threshold is a sum of the voltage value of the desired voltage and a product of the voltage value of the desired voltage and the half step of the minimum trimming accuracy.

Preferably, obtaining the relative trimming parameter according to the deviation comprises: obtaining the percentage of the absolute value of the deviation relative to the voltage to be modified according to the deviation; and obtaining the relative trimming parameters according to the percentages.

Preferably, when the voltage to be modified is smaller than a first threshold, obtaining the relative modification parameter according to the percentage includes: dividing the percentage by the minimum trimming precision to obtain an integer part of the quotient and a remainder; and comparing whether the remainder is greater than half step length of the minimum trimming precision, wherein when the remainder is not greater than half step length of the minimum trimming precision, the relative trimming parameter is an integer part of the quotient, and when the remainder is greater than half step length of the minimum trimming precision, the relative trimming parameter is the integer part of the quotient plus 1.

Preferably, when the voltage to be modified is greater than a second threshold, obtaining the relative modification parameter according to the percentage includes: dividing the percentage by the minimum trimming precision to obtain an integer part of the quotient and a remainder; calculating the multiple of the absolute value of the trimming precision corresponding to the first trimming position in the digital trimming signal relative to the minimum trimming precision; and comparing whether the remainder is greater than half step length of the minimum trimming precision, wherein when the remainder is not greater than half step length of the minimum trimming precision, the relative trimming parameter is the integer part of the multiple minus the quotient, and when the remainder is greater than half step length of the minimum trimming precision, the relative trimming parameter is the integer part of the multiple minus the quotient minus 1.

Preferably, the method further comprises the following steps: when the voltage to be trimmed is smaller than a first threshold value, comparing whether the relative trimming parameter is larger than a, and when the relative trimming parameter is larger than a, determining the values of the plurality of second trimming bits according to a binary code of a; and when the voltage to be modified is greater than a second threshold value, comparing whether the relative modification parameter is greater than b, and when the relative modification parameter is greater than b, determining the values of the plurality of second modification bits according to the binary code of b, wherein a is the absolute value of the quotient obtained by dividing the maximum positive-polarity combined modification precision by the minimum modification precision, b is the absolute value of the quotient obtained by dividing the maximum negative-polarity combined modification precision by the minimum modification precision, and a and b are positive numbers.

The invention provides a voltage trimming system based on an integrated circuit, which comprises: the LDO module receives a voltage to be trimmed provided by the integrated circuit at a positive input end and receives an analog trimming signal at a negative input end, and is used for outputting an expected voltage according to the voltage to be trimmed and the analog trimming signal; the trimming control module is used for providing a digital trimming signal; and the trimming module is connected with the LDO module and the trimming control module and is used for generating the analog trimming signal according to the digital trimming signal.

The invention has the beneficial effects that: when the digital trimming signal is obtained, the voltage to be trimmed is compared with the expected voltage to obtain the value of the first trimming bit according to the comparison result, the multiple of the minimum trimming precision corresponding to the relative trimming precision is obtained through calculation to obtain the relative trimming parameter, and the values of the plurality of second trimming bits are determined according to the binary code of the relative trimming parameter, so that the process of obtaining the digital trimming signal is simplified, and the data processing time is saved.

Because the value of each trimming bit is obtained by direct calculation, the data comparison output of ranges one by one is not needed, and the accuracy and the reliability of voltage trimming are improved.

On the other hand, the technical scheme disclosed by the invention does not need a lookup table, only stores a single analog value when data processing is carried out, optimizes the storage mode and saves storage resources.

The voltage trimming method based on the integrated circuit disclosed by the invention has stronger universality and expandability.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.

Drawings

The above and other objects, features and advantages of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings.

Fig. 1 is a schematic structural diagram of an integrated circuit-based voltage trimming system according to an embodiment of the present invention;

FIG. 2 is a schematic circuit diagram of the LDO module of FIG. 1;

fig. 3 is a schematic flowchart illustrating a voltage trimming method based on an integrated circuit according to an embodiment of the present invention;

fig. 4 shows a flow chart of a method for obtaining the digital trimming signal in fig. 3.

Detailed Description

To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. The invention may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

The present invention will be described in detail below with reference to the accompanying drawings.

Fig. 1 shows a schematic structural diagram of an integrated circuit-based voltage trimming system according to an embodiment of the present invention, and fig. 2 shows a schematic structural diagram of a circuit of the LDO module in fig. 1.

In an embodiment of the invention, as shown in fig. 1, the reference voltage trimming circuit of the integrated circuit includes an LDO module 100, a trimming module 300, and a trimming control module 200.

The non-inverting input terminal of the LDO module 100 receives a voltage to be trimmed provided by the integrated circuit, the voltage to be trimmed passes through the trimming module 300 and then feeds back an analog trimming signal to the inverting input terminal of the LDO module 100, and the output terminal Vout of the LDO module 100 outputs a desired voltage according to the voltage to be trimmed and the analog trimming signal. The desired voltage may be used as a reference voltage for providing a stable voltage reference for integrated circuits, i.e., digital and analog circuits within the chip.

The integrated circuit is preset with a reference voltage, and when the integrated circuit is tested, the voltage trimming circuit of the integrated circuit trims the voltage to be trimmed output by the LDO module 100 with the reference voltage as a reference.

Further, as shown in fig. 2, the LDO module 100 includes an operational amplifier OP1, a first voltage regulator resistor R1, and a second voltage regulator resistor R2.

The power supply end of the operational amplifier OP1 is connected with the chip internal power supply VCC, the non-inverting input end of the operational amplifier OP1 receives external voltage to be modified, the output end of the operational amplifier OP1 is grounded through a first voltage-stabilizing resistor R1, the modifying module 300 and a second voltage-stabilizing resistor R2 in sequence, and the common node of the second voltage-stabilizing resistor R2 and the modifying module 300 is connected to the inverting input end of the operational amplifier OP 1.

The trimming control module 200 is connected to the off-chip program control module and configured to generate an n-bit digital trimming signal according to the calibration signal provided by the program control module. Wherein n is more than or equal to 1 and n is a natural number. In this embodiment, n is equal to 4 as an example.

The trimming module 300 is connected to the LDO module 100 and the trimming control module 200, respectively, and configured to generate an analog trimming signal according to the digital trimming signal, so as to trim the voltage to be trimmed to a desired voltage.

Fig. 3 is a schematic flow chart of a voltage trimming method based on an integrated circuit according to an embodiment of the present invention, and fig. 4 is a flow chart of a method for obtaining a digital trimming signal in fig. 3.

As shown in fig. 3, in the present embodiment, when performing voltage trimming, the method mainly includes performing steps S1 to S3, and specifically includes:

in step S1, a deviation is obtained according to the desired voltage and the voltage to be modified provided by the integrated circuit.

In this embodiment, a difference obtained by subtracting the voltage value of the voltage to be modified from the voltage value of the expected voltage is a deviation of the voltage to be modified from the expected voltage, where the deviation represents a specific voltage value of the voltage to be modified that needs to be modified. When the deviation is a positive number, the voltage to be modified is smaller than the expected voltage, and the voltage to be modified should be modified in a positive polarity; when the deviation is negative, it indicates that the voltage to be modified is greater than the expected voltage, and the voltage to be modified should be modified with negative polarity.

In step S2, relative trimming parameters are obtained from the deviations.

In the embodiment, the percentage of the absolute value of the deviation relative to the voltage to be modified is obtained according to the deviation; the relative trimming amount is obtained from the percentage.

Further, when the voltage to be modified is smaller than a first threshold value, dividing the obtained percentage by the minimum modification precision value to obtain an integer part of a quotient and a remainder; and comparing whether the remainder is larger than the minimum trimming precision, such as half step length after amplification by 1000 times, so as to determine the relative trimming parameters. If the step length is not larger than half step length, taking the integer part of the quotient as a relative trimming parameter; and if the step length is larger than half of the step length, adding 1 to the integer part of the quotient to be used as a relative trimming parameter.

When the voltage to be modified is larger than a second threshold value, dividing the obtained percentage by the minimum modification precision value to obtain an integer part of a quotient and a remainder; and calculating the multiple of the absolute value of the trimming precision corresponding to the first trimming position relative to the minimum trimming precision, and simultaneously comparing whether the remainder is greater than the minimum trimming precision, such as half step length after amplification of 1000 times, so as to determine the relative trimming parameters. If the step length is not more than half step length, the integral part of the quotient is subtracted from the multiple to be used as a relative trimming parameter; if the step length is larger than half step length, subtracting the integer part of the quotient from the multiple and then subtracting 1 to be used as a relative trimming parameter.

In step S3, a digital trimming signal is provided according to the threshold range and the relative trimming parameter where the voltage to be trimmed is located, so as to adjust the voltage to be trimmed.

The digital trimming signal has n trimming bits, including a first trimming bit and a plurality of second trimming bits, and the absolute values of the trimming precisions corresponding to the first trimming bit and the plurality of second trimming bits are different from each other. Specifically, the first trimming bit corresponds to a positive trimming accuracy or a negative trimming accuracy, and the trimming accuracy corresponding to each second trimming bit is opposite to the first trimming bit. By giving different values to different trimming positions, trimming of corresponding precision of one voltage signal can be realized.

Preferably, when the value of one trimming bit is 0, it indicates that the target voltage is not trimmed corresponding to the trimming bit trimming precision; and when the value of one trimming bit is 1, the target voltage is trimmed according to the trimming bit trimming precision.

Preferably, among the n-bit trimming bits of the digital trimming signal, the first trimming bit is the highest-order trimming bit and corresponds to the trimming precision with the maximum absolute value; the lowest second trimming bit in the plurality of second trimming bits corresponds to the trimming precision with the smallest absolute value. Meanwhile, the absolute values of the trimming precision corresponding to two adjacent trimming positions show a multiple relation, and the preferred multiple is 2 times.

In this embodiment, a digital trimming signal with 4-bit trimming bits is taken as an example for explanation, and as shown in table 1, table 1 shows a table of correspondence between different trimming bits and a plurality of trimming precisions in the digital trimming signal of this embodiment.

Trimming and positioning Value case Variation in precision Value case Variation in precision
Trim0 0 The precision is not changed 1 -1.60%
Trim1 0 The precision is not changed 1 +0.8%
Trim2 0 The precision is not changed 1 +0.4%
Trim3 0 The precision is not changed 1 +0.2%

In Table 1, the first trim bit trim0 is the highest trim bit and trim bit trim3 is the lowest trim bit in the second plurality of trim bits. The trimming bits trim0, trim1, trim2 and trim3 can realize the trimming of the voltage to be trimmed between-1.60% and 1.40% with the step trimming precision of 0.2%.

Further, the method for obtaining the digital trimming signal according to the deviation includes performing steps S31 to S33, as shown in fig. 4:

in step S31, based on the desired voltage, the threshold range in which the voltage to be trimmed is located is determined.

In step S32, the value of the first trimming bit in the digital trimming signal is determined according to the threshold range where the voltage to be trimmed is located.

In this embodiment, as can be seen from table 1, the first trimming bit in the digital trimming signal is the highest trimming bit, and the first trimming bit corresponds to the trimming precision of the negative polarity, and when the value is 1, it indicates that the voltage to be trimmed is trimmed by the negative polarity.

Further, the voltage value of the voltage to be modified and the expected voltage are compared. When the voltage to be modified is smaller than the first threshold, the positive modification of the voltage to be modified is required, and the value of the first modification bit is 0; when the voltage to be modified is larger than the second threshold, the voltage to be modified is subjected to negative modification, and the value of the first modification position is 1; when the voltage to be modified is greater than the first threshold and smaller than the second threshold, it indicates that the voltage to be modified does not need to be modified, and the value of the first modification bit is also 0 at this time.

Further, when the voltage to be modified is greater than the first threshold and smaller than the second threshold, the values of the first modification bit and the plurality of second modification bits in the digital modification signal are both 0.

Preferably, the first threshold is a difference obtained by subtracting a product of the voltage value of the desired voltage and a half step of the minimum trimming accuracy. The second threshold is the sum of the voltage value of the desired voltage plus the product of the voltage value and half step size of the minimum trimming precision.

In another embodiment of the invention, the value of the first trimming bit in the digital trimming signal may be determined based on a threshold range of the obtained deviation. The method specifically comprises the following steps: when the deviation is smaller than a third threshold value, the value of the first trimming bit is 0; when the deviation is greater than a fourth threshold value, the value of the first trimming bit is 1; when the deviation to be detected is greater than the third threshold value and less than the fourth threshold value, the value of the first trimming bit is also 0.

Further, when the deviation is greater than the third threshold and less than the fourth threshold, the value of each trimming bit in the digital trimming signal is 0.

Preferably, the third threshold is the inverse of the product of the voltage value of the desired voltage and half the step size of the minimum trimming accuracy. The fourth threshold is a product of a voltage value of the desired voltage and a half step of the minimum trimming accuracy.

The invention determines a plurality of thresholds by half step length of the minimum trimming precision, and can further improve the trimming precision of the voltage to be trimmed.

In step S33, values of a plurality of second trimming bits are determined based on the binary code of the relative trimming parameter.

In this embodiment, the decimal relative trimming parameter obtained in step S2 is converted into a corresponding binary code, and the binary code is sequentially assigned to a plurality of second trimming bits in the digital trimming signal in order from the higher order to the lower order.

Further, when the voltage to be modified is smaller than the first threshold, whether the obtained relative modification parameter is larger than a needs to be compared, and when the relative modification parameter is larger than a, the values of the plurality of second modification bits are determined according to the binary code of a. Wherein a is the absolute value of the quotient of the maximum positive combined trimming precision divided by the minimum trimming precision, and a is a positive number.

Further, when the voltage to be modified is greater than the second threshold, whether the obtained relative modification parameter is greater than b is also compared, and when the relative modification parameter is greater than b, the values of the plurality of second modification bits are determined according to the binary code of b. Wherein b is the absolute value of the quotient of the maximum negative combined trimming precision divided by the minimum trimming precision, and b is a positive number.

The following describes the steps S31 to S32 further by way of example:

assuming that the desired voltage value is 4.6V, the first threshold value is 4.6-4.6 × 0.2%/2 at 4.595, and the second threshold value is 4.6+4.6 × 0.2%/2 at 4.605.

If the voltage value to be modified is 4.53V, which is smaller than the first threshold, the first modification value in the digital modification signal is 0, i.e. the trim0 has a value of 0. The absolute value of the deviation is 4.6-4.53 ═ 0.07, the percentage of the deviation to the voltage to be trimmed is 0.07/4.53 × 100 ═ 1.545%, after dividing this percentage by the minimum trimming precision of 0.2%, the integer part of the quotient is 7, the remainder is 1.545, half the step length after amplification of the minimum trimming precision by 1000 times is 1, and if the remainder is greater than 1, the relative trimming parameter is 7+1 ═ 8. But the maximum trimming percentage is + 1.4%, so if the trimming parameter >7, the assigned trimming parameter is 7. The relative trimming parameter is converted into binary value of 100, i.e. the value of trim1 is 1, the value of trim2 is 0, and the value of trim3 is 0. Therefore, the digital trimming signal at this time is 0111.

If the voltage value to be modified is 4.69V, which is greater than the second threshold, the first modification value in the digital modification signal is 1, i.e. the trim0 has a value of 1. The absolute value of the deviation is 4.69-4.6 ═ 0.09, the percentage of the voltage to be trimmed is 0.09/4.69 × 100 ═ 1.919%, the percentage is divided by the minimum trimming precision 0.2%, the integer part of the quotient is 9, the remainder is 0.119, the half step size after the minimum trimming precision is amplified 1000 times is 1, and the remainder is less than 1, and the relative trimming parameter is 9+0 ═ 9. But the maximum trimming percentage is-1.6%, so if the trimming parameter >8, the assigned trimming parameter is 8. The relative trimming parameter is converted into binary to be 1000, namely the value of trim1 is 0, the value of trim2 is 0, and the value of trim3 is 0. Therefore, the digital trimming signal at this time is 1000.

If the voltage value to be modified is 4.594V, which is greater than the first threshold and less than the second threshold, the values of all the modification bits of the digital modification signal at this time are 0, and the digital modification signal is 0000.

It should be noted that the above-mentioned illustrations are only exemplary and should not be construed as limiting the technical solutions of the present application, and all other alternatives that can be directly suggested by those skilled in the art from the above-mentioned illustrations should be within the scope of the present application.

In this embodiment, when the program is written according to the above method, for example, if statements may be used for programming, so as to simplify the program statements, so that the program programming is easier and simpler, especially when there are many combinations of trimming bits in the digital trimming signal. And the program storage space can be saved, the data processing speed is accelerated, and the data processing is more accurate.

Further, referring to fig. 1, the digital trimming signal is sent to the trimming module 300, so that an analog trimming signal corresponding to the digital trimming signal can be obtained.

Further, the analog trimming signal and the signal to be trimmed are added by using the operational amplifier OP1, so as to obtain the trimmed desired voltage.

Preferably, the deviation between the corrected expected voltage and the reference voltage is smaller than the minimum correction precision, and voltage correction with different precision requirements can be realized by setting different minimum correction precisions.

In conclusion, the technical scheme disclosed by the invention simplifies the process of acquiring the digital trimming signal and saves the data processing time. Because the value of each trimming bit is obtained by direct calculation, the data comparison output of ranges one by one is not needed, and the accuracy and the reliability of voltage trimming are improved.

On the other hand, the technical scheme disclosed by the invention does not need a lookup table, only stores a single analog value when data processing is carried out, optimizes the storage mode and saves storage resources.

Meanwhile, the voltage trimming method based on the integrated circuit disclosed by the invention has stronger universality and expandability.

It should be noted that, in this document, the contained terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Finally, it should be noted that: it should be understood that the above examples are only for clearly illustrating the present invention and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications of the invention may be made without departing from the scope of the invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种用于旋钮的防误操作装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类