Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments, and all other embodiments obtained by those skilled in the art based on the embodiments of the present invention are within the scope of protection of the embodiments of the present invention.
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 embodiment provides a bias current control method of an isolated operational amplifier, which is described in detail as follows:
as shown in fig. 1, the bias current control method of the isolated operational amplifier comprises the following steps:
step S001, obtaining an output effect representation value of the ith judgment moment in the working process of the isolation type operational amplifier, wherein the ith judgment moment is the current moment.
When the bias current of the amplifier is controlled by using the traditional compensation current method, namely when the bias current of the amplifier is controlled, the phenomenon of poor compensation effect occurs, the problem of poor control effect occurs when the bias current of the amplifier is controlled due to poor compensation effect, and the reason of poor compensation effect is that the phenomenon of over-compensation or under-compensation may occur frequently when the bias current of the amplifier is compensated by adopting the traditional compensation current method, and the phenomenon of over-compensation or under-compensation may occur frequently, namely the problem of poor control effect occurs when the bias current of the amplifier is controlled, the over-compensation refers to the problem of overlarge compensation current, the under-compensation refers to the problem of small compensation current, and the frequent occurrence of the under-compensation or over-compensation phenomenon also affects the overall working performance of the amplifier and the stability of the amplifier, so the main purpose of the embodiment is to reduce the phenomenon of over-compensation or under-compensation as much as possible, thereby improving the effect when the bias current of the amplifier is controlled, and the purpose of reducing the phenomenon of over-compensation or under-compensation is achieved by implementing the optimal compensation method.
In addition, because the embodiment mainly determines the optimal compensation current by analyzing the output effect characterization values of different time periods, the embodiment obtains the output effect characterization value of the current moment firstly, and the output effect characterization value of the current moment is the basis for obtaining the output effect characterization value corresponding to the subsequent moment; in addition, in this embodiment, any isolated operational amplifier is taken as an example for analysis, that is, all isolated operational amplifiers or amplifiers appearing later in this embodiment refer to the same isolated operational amplifier.
Next, in this embodiment, in the process of operating the isolation type operational amplifier, the output effect representation value at the ith determination time is obtained first, where the ith determination time is the current time, and since in this embodiment, the output effect representation values at a plurality of determination times need to be obtained, that is, not only the output effect representation value at the ith determination time is obtained in this embodiment, but also since in this embodiment, the method for obtaining the output effect representation value at each determination time is the same, in order to facilitate description, this embodiment will be described taking the process of obtaining the output effect representation value at any determination time T0 as an example, that is, the process of obtaining the output effect representation value at the determination time T0 is as follows:
Firstly, obtaining a monitoring time period corresponding to a judging time T0, wherein the monitoring time period corresponding to each judging time is a time period formed from the previous judging time of the judging time to the judging time, and each monitoring time period corresponding to each judging time comprises A monitoring times, wherein A is larger than 0, namely the monitoring time period corresponding to the judging time T0 is a time period formed from the previous judging time of the judging time T0 to the judging time T0.
In a specific application, the practitioner needs to set a monitoring period corresponding to the judgment time, that is, a time interval between adjacent judgment times, and a value of a according to actual situations, for example, the embodiment may set a time length of the monitoring period corresponding to the judgment time appearing in the embodiment to 0.5 seconds, that is, the time intervals between adjacent judgment times are all 0.5 seconds, and the embodiment may set the value of a to 25, and also require that the time intervals between adjacent judgment times are all equal.
And then under the bias current corresponding to each monitoring time in the monitoring time period corresponding to the judging time T0, acquiring an input signal and an output signal of the amplifier in the monitoring time period corresponding to the judging time T0, and respectively marking the input signal or the output signal at the moment as a time domain signal, wherein the time domain signal is the first input signal or the output signal at the moment corresponding to the judging time T0, and the time domain signal is the time domain signal corresponding to the first input signal or the time domain signal corresponding to the judging time T0, and the time domain signal is the time domain signal corresponding to the monitoring time period corresponding to the judging time T0.
Next, a DTW (dynamic time warping) algorithm is utilized to obtain a DTW distance between a first input signal corresponding to the judging time T0 and a first output signal corresponding to the judging time T0, and the DTW distance is recorded as a first characterization value corresponding to the judging time T0; then obtaining a first difference sequence corresponding to the judging moment T0, recording the mean value of the first difference sequence corresponding to the judging moment T0 as a second characterization value corresponding to the judging moment T0, taking the a first difference value in the first difference sequence corresponding to the judging moment T0 as the absolute value of the difference between the a first amplitude corresponding to the judging moment T0 and the a second amplitude corresponding to the a first amplitude, taking the a first amplitude corresponding to the judging moment T0 as the amplitude corresponding to the same frequency as the a frequency in the first frequency domain signal corresponding to the judging moment T0, taking the a second amplitude corresponding to the judging moment T0 as the amplitude corresponding to the a frequency in the second frequency domain signal corresponding to the judging moment T0, taking the first frequency domain signal corresponding to the judging moment T0 as the frequency domain signal obtained after fast Fourier transform, taking the second frequency domain signal corresponding to the judging moment T0 as the frequency domain signal obtained after fast Fourier transform, taking the a second frequency domain signal corresponding to the judging moment T0 as the frequency signal obtained after fast Fourier transform, taking the first frequency signal corresponding to the a second frequency signal corresponding to the judging moment T0 as the frequency corresponding to the first frequency value, and then taking the amplitude corresponding to the first frequency value of the first frequency signal corresponding to the first frequency value to the judgment moment T0, and then constructing a characterization constant after the first frequency value is obtained after the first frequency value is calculated from the first frequency signal corresponding to the a moment T0, the output effect characterization value is recorded as the judgment time T0.
In addition, if the determination time T0 is not the i-th determination time, the bias currents corresponding to all the monitoring times in the monitoring time period corresponding to the determination time T0 are bias currents compensated by the compensation current of the last determination time of the determination time T0, that is, the compensation current of each determination time is mainly used for current compensation of the amplifier in the monitoring time period corresponding to the next determination time of the determination time, if the determination time T0 is not the i-th determination time, the bias currents corresponding to all the monitoring times in the monitoring time period corresponding to the determination time T0 are equal, and are the compensation currents of the last determination time of the determination time T0, the last determination time of the determination time T0 is one determination time adjacent to the determination time T0 and temporally before the determination time T0, and if the determination time T0 is the i-th determination time, and there is a behavior of current compensation of the amplifier in the monitoring time period corresponding to the next determination time corresponding to the i-th determination time, the bias currents corresponding to the described above are also the bias currents in the monitoring time period corresponding to the current compensation after the i-th determination time, and if the bias currents corresponding to the current compensation is not described in the monitoring time period after the i-th determination time.
And for ease of understanding, the present embodiment will specifically describe the expression for acquiring the output effect characterization value at the i-th judgment timing as follows:
。
。
Wherein, For the output effect characterization value at the ith judgment moment, c1 is a preset first constant,For the first characterization value corresponding to the ith judgment moment,For the second characterization value corresponding to the ith judgment moment,For the total number of data in the first difference sequence corresponding to the i-th judgment moment,For the a-th first amplitude value,For the a-th second amplitude value,In a specific application, the practitioner needs to set the value of c1 according to the actual situation, for example, the value of c1 is set to 0.01 in this embodiment, and the purpose of c1 is to prevent the denominator from being 0.
In addition, when the first characterization value corresponding to the ith judgment moment is smaller, the deviation degree between the first input signal corresponding to the ith judgment moment and the corresponding first output signal is smaller, the output effect of the output signal corresponding to the ith judgment moment is better under the bias voltage of the amplifier at each monitoring moment, when the second characterization value corresponding to the ith judgment moment is smaller, the frequency component and the intensity in the frequency spectrum signal corresponding to the first output signal corresponding to the ith judgment moment and the corresponding first input signal are closer, the interference degree of the first output signal corresponding to the ith judgment moment under noise is possibly smaller, the interference degree of the noise is smaller, the output effect of the output signal corresponding to the ith judgment moment is better under the bias voltage of the amplifier at each monitoring moment is more indicated, and based on the analysis, when the first characterization value and the second characterization value corresponding to the ith judgment moment are smaller, the frequency component and the intensity are closer, the interference degree of the first output signal corresponding to the ith judgment moment is possibly smaller, the interference degree of the noise is possibly smaller, and the interference degree of the noise is smallerThe larger the value of (2)The larger the value of (2) is, the better the output effect of the output signal corresponding to the ith judging moment is, otherwise, when the first characterization value and the second characterization value corresponding to the ith judging moment are larger, the indication is thatThe smaller the value of (2)The smaller the value of (c) is, the worse the output effect of the output signal corresponding to the i-th judgment time is.
Therefore, the output effect characterization value of the ith judgment moment can be obtained through the process.
Step S002, obtaining the compensation current at the ith determination time according to the preset initial control factor and the output effect representation value at the ith determination time, obtaining the output effect representation value at the (i+1) th determination time according to the compensation current at the ith determination time, and obtaining the determination index value at the (i+1) th determination time according to the output effect representation value at the (i+1) th determination time and the output effect representation value at the (i+1) th determination time.
After obtaining the output effect representation value at the ith judgment moment, the embodiment obtains the compensation current at the ith judgment moment according to the preset initial control factor and the output effect representation value at the ith judgment moment, obtains the output effect representation value at the (i+1) th judgment moment according to the compensation current at the (i) th judgment moment, obtains the judgment index value at the (i+1) th judgment moment according to the (i) th judgment moment and the output effect representation value at the (i+1) th judgment moment, and determines the cut-off condition of the optimal compensation current, and based on the description, if the judgment index value at the (i+1) th judgment moment is required to be obtained, the compensation current at the (i) th judgment moment is required to be obtained according to the preset initial control factor and the output effect representation value at the (i) th judgment moment, so that the acquisition process of the compensation current at the (i) th judgment moment is as follows:
Firstly, obtaining a preset initial control factor, taking the preset initial control factor as the control factor of the ith judging moment, wherein the main function of the control factor is to control the adjustment size or the adjustment speed of the compensation current and is also related to the speed of searching the optimal compensation current, and in the specific application, an implementer needs to set the preset initial control factor according to the actual situation, but the preset initial control factor is required to have smaller value, for example, the preset initial control factor can be set to be 0.02.
In this embodiment, not only the compensation current at the ith determination time is required to be obtained, but also the compensation currents at a plurality of determination times after the ith determination time may be required to be obtained, and in this embodiment, the method for obtaining the compensation current at each determination time is the same, so for convenience of description and understanding, the description will be given later taking the process of obtaining the compensation current at any determination time T0 as an example, that is, the process of obtaining the compensation current at the determination time T0 is:
Firstly, under each monitoring time in a monitoring time period corresponding to a judging time T0, obtaining bias current of an amplifier, and recording the average value of all bias current of the obtained amplifier in the monitoring time period corresponding to the judging time T0 as the average bias current of the judging time T0; the method comprises the steps of obtaining a result obtained by subtracting an output effect representation value of a judging time T0 from a preset second constant, recording the result as a first difference operation value of the judging time T0, obtaining a product of an average bias current of the judging time T0 and a control factor of the judging time T0, recording the result as a first product value of the judging time T0, multiplying the first difference operation value of the judging time T0 and the first product value of the judging time T0, recording the result of multiplication as a second product value of the judging time T0, obtaining the opposite number of the second product value of the judging time T0, and taking the opposite number as a compensation current of the judging time T0, wherein, for example, if the second product value of the judging time T0 is S2, the opposite number of the second product value of the judging time T0 is- (S2), and in addition, when the output effect representation value of the judging time T0 is smaller, the obtained compensation current of the judging time T0 is larger, and the compensation current of the judging time T0 is mainly used for compensating a time formed by a next judging time segment from the judging time T0 to the judging time T0 and is located at the next time T0 adjacent to the judging time T0.
Therefore, when the control factor and the output effect representation value at the ith determination time are known, the compensation current at the ith determination time can be obtained according to the method for obtaining the compensation current at the determination time T0, and the specific obtaining method is not described in detail, and after the compensation current at the ith determination time is obtained, the output effect representation value at the ith+1 determination time is obtained according to the compensation current at the ith determination time, and in the present embodiment, the method for obtaining the output effect representation value at the ith+1 determination time is the same as the method for obtaining the output effect representation value at the determination time T0, so that the detailed description is not made, and the compensation current at the ith determination time mainly serves to perform current compensation on the amplifier current of the monitoring time period corresponding to the ith+1 determination time, and the input and output signals of the amplifier are required to be obtained when the output effect representation value at the ith+1 determination time is calculated, and the obtained input and output signals of the amplifier are the compensation signals at the ith determination time by using the current at the ith determination time. In addition, after the compensation current is obtained, the microcontroller output analysis module in the compensation circuit of the isolated operational amplifier also receives the compensation current information, and compensates the bias current of the amplifier according to the received information.
In addition, in the embodiment, not only the judgment index value of the i+1 th judgment time but also the judgment index values of a plurality of judgment times positioned after the i+1 th judgment time may be required to be obtained, and in the embodiment, the acquisition method of the judgment index value of each judgment time is the same, so that the description is made for convenience of description and understanding, taking the acquisition process of the judgment index value of the i+b th judgment time as an example, b is a positive integer, that is, the i+b th judgment time is not the i th judgment time, so that the acquisition process of the judgment index value of the i+b th judgment time is:
The method comprises the steps of firstly obtaining the ratio of an output effect representation value at the i+b judgment moment to an output effect representation value at the i+b judgment moment, marking the ratio as a first index value at the i+b judgment moment, then obtaining the inverse of a result obtained by adding a preset first constant and a first difference absolute value at the i+b judgment moment, marking the inverse as a second index value at the i+b judgment moment, wherein the first difference absolute value at the i+b judgment moment is the difference absolute value between the output effect representation value at the i+b judgment moment and the output effect representation value at the i+b (b-1) judgment moment, marking the normalized value of the result obtained by multiplying the first index value at the i+b judgment moment with the corresponding second index value as the judgment index value at the i+b judgment moment, and obtaining the specific expression of the judgment index value at the i+b judgment moment:
。
Wherein, For the judgment index value at the i+b judgment time, norm () is a normalization function,The output effect characterization value at the i+b judgment moment,The output effect characterization value at the i-th judgment moment,The output effect characterization value of the i < + > (b-1) th judgment moment; for the first index value at the i+b-th judgment timing, Is the second index of the i+b judgment time,The absolute value of the first difference at the i+b-th judgment time.
And when the first index value and the second index value of the i+b judgment time are larger, the larger the judgment index value of the i+b judgment time is, the larger the possibility that the compensation current of the i+ (b-1) judgment time is the optimal compensation current is, and otherwise, the possibility that the compensation current of the i+ (b-1) judgment time is the optimal compensation current is smaller is.
Therefore, in the case where the output effect characteristic values at the i-th determination time and the i+1-th determination time are known, the determination index value at the i+1-th determination time can be obtained according to the above-described method of obtaining the determination index value at the i+b-th determination time, and since the process of obtaining the determination index value at the i+b-th determination time has been described in detail in the above-described process, the present embodiment does not describe the process of obtaining the determination index value at the i+1-th determination time.
Step S003, determining whether the judging index value at the (i+1) th judging moment is not greater than a preset judging threshold, if yes, obtaining a control factor at the (i+1) th judging moment, obtaining a compensation current at the (i+1) th judging moment according to the control factor at the (i+1) th judging moment and the output effect characterization value, obtaining an output effect characterization value at the (i+2) th judging moment according to the compensation current at the (i+1) th judging moment, and obtaining the judging index value at the (i+2) th judging moment according to the (i+1) th judging moment and the output effect characterization value at the (i+2) th judging moment.
The embodiment then determines whether the obtained i+1th determination time value is not greater than a preset determination threshold, if yes, determines that the compensation current at the i+1th determination time is not the optimal compensation current, and further needs to continuously find the optimal compensation current, i.e. when the determination index value at the i+1th determination time is less than or equal to the preset determination threshold, a control factor at the i+1th determination time needs to be obtained, then the compensation current at the i+1th determination time is obtained according to the control factor at the i+1th determination time and the output effect representation value, then the output effect representation value at the i+2th determination time is obtained according to the compensation current at the i+1th determination time, and the output effect representation value at the i+2th determination time is obtained, and then the optimal compensation current is further determined based on the determination index value at the i+2th determination time.
Therefore, as can be seen from the above description, if the index value of the i+2th judgment time is to be obtained, the control factor of the i+1th judgment time needs to be obtained first, in this embodiment, it may be necessary to obtain not only the control factor of the i+1th judgment time, but also the control factors of the multiple judgment times located after the i+1th judgment time, and in this embodiment, the control factor of each judgment time is obtained by the same method, so for convenience of description and understanding, the process of obtaining the control factor of the i+b judgment time will be described later by taking the process of obtaining the control factor of the i+b judgment time as an example:
Firstly, the ratio of the absolute value of the first difference value of the i+b judgment time to the output effect representation value of the i+b judgment time is recorded as the first ratio, namely, the absolute value of the first difference value of the i+b judgment time is the absolute value of the difference value between the output effect representation value of the i+b judgment time and the output effect representation value of the i+b judgment time, then, the first ratio is subjected to negative correlation mapping, the mapping result is recorded as a target mapping value corresponding to the i+b judgment time, and the specific expression of the target mapping value corresponding to the i+b judgment time is obtained as follows:
。
Wherein, For the target mapping value corresponding to the i+b judgment time, exp () is an exponential function based on a constant e, and whenThe smaller the value of (c) is,The larger the value of (c), the smaller the other way around.
Immediately judging whether the output effect characterization value at the i+b judgment moment is not smaller than the output effect characterization value at the i+b judgment moment (b-1), if so, indicating that the compensation is possibly not optimal, further searching and determining an optimal compensation current, namely, when the output effect characterization value at the i+b judgment moment is larger than or equal to the output effect characterization value at the i+b judgment moment (b-1), adding a value obtained by adding a target mapping value corresponding to the i+b judgment moment to a preset second constant and multiplying the value by a control factor at the i+b judgment moment (b-1), and marking the result as the control factor at the i+b judgment moment (i+b) and indicating that when the output effect characterization value at the i+b judgment moment is not smaller than the output effect characterization value at the i+b judgment moment (b-1) and the target mapping value corresponding to the i+b judgment moment are largerSmaller, at this timeThe smaller the compensation current at the i+ (b-1) th judgment moment, the less obvious the effect of compensating the monitoring time period corresponding to the i+b th judgment moment is, and the compensation current is adjusted to a larger extent laterThe larger the compensation current at the i+ (b-1) th judgment moment, the more obvious the effect of compensating the monitoring time period corresponding to the i+b th judgment moment is, and the smaller the compensation current is adjusted in order to avoid missing the optimal compensation current.
In addition, if the output effect representation value at the i+b judgment time is smaller than the output effect representation value at the i+b judgment time, the phenomenon that overcompensation possibly occurs is also indicated, and the optimal compensation current is also required to be further searched and determined, namely, when the output effect representation value at the i+b judgment time is smaller than the output effect representation value at the i+b judgment time, the result of subtracting the target mapping value corresponding to the i+b judgment time from the preset second constant and multiplying the result by the control factor at the i+b judgment time is recorded as the control factor at the i+b judgment time, and when the output effect representation value at the i+b judgment time is smaller than the output effect representation value at the i+b judgment time and the target mapping value corresponding to the i+b judgment time is larger, the result is indicated thatSmaller, at this timeThe smaller the compensation current at the i-th judgment time, the more the monitoring time period corresponding to the i+b-th judgment time is compensated based on the compensation current at the i-th judgment time, the greater the degree of overcompensation, and the greater the subsequent adjustment of the compensation current should be, while at the momentThe larger the compensation current at the i-th judgment time is, the smaller the degree of overcompensation is, the smaller the compensation current should be adjusted to avoid missing the optimal compensation current when the monitoring time period corresponding to the i+b-th judgment time is compensated.
Therefore, the method for obtaining the control factor at the i+b judgment time can obtain the control factor at the i+1 judgment time, so that detailed description is not made, and after the control factor at the i+1 judgment time is obtained, the compensation current at the i+1 judgment time is obtained according to the control factor at the i+1 judgment time and the output effect characterization value, and under the condition that the control factor at the i+1 judgment time and the output effect characterization value are known, the compensation current at the i+1 judgment time can be obtained according to the method for obtaining the compensation current at the i+0 judgment time, and the detailed description of a specific obtaining method is not made, and after the compensation current at the i+1 judgment time is obtained, the output effect characterization value at the i+2 judgment time is obtained according to the compensation current at the i+1 judgment time, and the output effect characterization value at the i+2 judgment time is obtained according to the method for obtaining the output effect characterization value at the judgment time T0, so that the output effect characterization value at the i+2 judgment time is not obtained.
In a specific application, the practitioner needs to set the value of the preset second constant according to the actual situation, for example, the value of the preset second constant is set to 1 in this embodiment.
And after obtaining the output effect representation value of the i+2th judging moment, obtaining the judging index value of the i+2th judging moment according to the output effect representation value of the i+1th judging moment and the i+2th judging moment, and obtaining the judging index value of the i+2th judging moment pair according to the method of obtaining the judging index value of the i+1th judging moment and the i+2th judging moment under the condition that the output effect representation value of the i+1th judging moment and the i+2th judging moment is known, therefore, the embodiment does not describe the obtaining process of the judging index value of the i+2th judging moment in detail.
In a specific application, the practitioner needs to set a preset judgment threshold according to the actual situation, for example, the preset judgment threshold may be set to 0.73 in this embodiment.
Step S004, judging whether the judging index value of the (i+2) th judging moment is not larger than a preset judging threshold value, if yes, acquiring a control factor of the (i+2) th judging moment, obtaining a compensation current of the (i+2) th judging moment according to the control factor of the (i+2) th judging moment and an output effect representation value, obtaining an output effect representation value of the (i+3) th judging moment according to the compensation current of the (i+2) th judging moment, obtaining the judging index value of the (i+3) th judging moment according to the (i+2) th judging moment and the output effect representation value of the (i+3) th judging moment, if not, taking the compensation current of the (i+2) th judging moment as an optimal compensation current, and carrying out current compensation on the amplifier after the (i+3) th judging moment by utilizing the optimal compensation current.
After obtaining the judging index value of the i+2 judging moment, judging whether the judging index value of the i+2 judging moment is not larger than a preset judging threshold value, if yes, continuously obtaining the control factor of the i+2 judging moment, obtaining the compensation current of the i+2 judging moment according to the control factor of the i+2 judging moment and the output effect representation value, obtaining the output effect representation value of the i+3 judging moment according to the compensation current of the i+2 judging moment, obtaining the judging index value of the i+3 judging moment according to the i+2 judging moment and the output effect representation value of the i+3 judging moment, and then continuously judging whether the judging index value of the i+3 judging moment is not larger than the preset judging threshold value, if yes, judging that the compensation current of the i+2 judging moment is the optimal compensation current, and continuously searching the optimal compensation current is not needed.
In addition, in this embodiment, the method for acquiring the control factor at the i+2th determination time is the same as the method for acquiring the control factor at the i+b determination time, and thus the embodiment will not be described in detail, the method for acquiring the compensation current at the i+2th determination time is the same as the method for acquiring the compensation current at the determination time T0, and therefore the embodiment will not be described in detail, the method for acquiring the output effect characterization value at the i+3th determination time is the same as the method for acquiring the output effect characterization value at the determination time T0, and therefore the embodiment will not be described in detail, and the method for acquiring the determination index value at the i+3th determination time is the same as the method for acquiring the determination index value at the i+b determination time, and therefore the embodiment will not be described in detail.
Therefore, the present embodiment can obtain the optimal compensation current through the above process, and after obtaining the optimal compensation current, current compensation is performed by using the optimal compensation current, and if the optimal compensation current is found at the i+3rd judgment time as described in the present embodiment, then current compensation is performed on the amplifier after the i+3rd judgment time by using the optimal compensation current obtained at this time.
In addition, after the current compensation is performed on the amplifier after the (i+3) th judgment time by using the optimal compensation current, the method further comprises the following steps of continuously searching for a new optimal compensation current by taking the (j) th monitoring time as a new (i) th judgment time and acquiring the optimal compensation current according to the method of acquiring the optimal compensation current in the step, if the change value of the bias current of the amplifier under the (j) th monitoring time is monitored to be larger than the preset change threshold corresponding to the (j) th monitoring time in the process of performing the current compensation on the amplifier after the (i+3) th judgment time by using the acquired optimal compensation current, and the (j) th monitoring time is positioned after the (i+3) th judgment time in time.
In the embodiment, the method for acquiring the bias current change value of the amplifier at the jth monitoring time comprises the steps of firstly acquiring a historical monitoring time period corresponding to the jth monitoring time, recording the average value of the bias current of the amplifier at all monitoring times in the historical monitoring time period as a first average value, wherein the bias current at the moment is a compensated value, and recording the absolute value of the difference between the bias current of the amplifier at the jth monitoring time and the first average value as the bias current change value of the amplifier at the jth monitoring time, wherein the bias current of the amplifier at the jth monitoring time is also a value after current compensation.
In addition, in a specific application, the practitioner needs to set a preset change threshold value corresponding to the jth monitoring time and a corresponding historical monitoring time period according to an actual situation, for example, the product of the bias current of the amplifier at the jth monitoring time and 0.1 is taken as the preset change threshold value corresponding to the jth monitoring time, and the embodiment records a time period formed by the first 0.5 seconds of the jth monitoring time as the historical monitoring time period corresponding to the jth monitoring time, and can set the number of the monitoring times in the historical monitoring time period to 25.
In summary, the present embodiment firstly obtains the output effect characterization value of the ith judgment time in the process of operating the isolation operational amplifier, then obtains the compensation current of the ith judgment time according to the preset initial control factor and the output effect characterization value of the ith judgment time, obtains the output effect characterization value of the ith+1 judgment time according to the compensation current of the ith judgment time, obtains the judgment index value of the ith+1 judgment time according to the output effect characterization value of the ith judgment time and the ith+1 judgment time, and then obtains the control factor of the ith+1 judgment time according to the control factor of the ith+1 judgment time and the output effect characterization value, obtains the compensation current of the ith+1 judgment time according to the compensation current of the ith+1 judgment time, obtains the output effect characterization value of the ith+2 judgment time according to the output effect characterization value of the ith+1 judgment time and the ith+2 judgment time, obtains the control factor of the ith+1 judgment time according to the control factor of the ith+1 judgment time and the output effect characterization value of the ith+2 judgment time, and obtains the output effect characterization value of the ith+2 judgment time according to the i+2 judgment time, and the output effect characterization value of the ith+2 judgment time, and obtains the control factor of the ith+1 judgment time according to the i+1 judgment time and the output effect characterization value of the ith+2 judgment time, and finally, continuously judging whether the judging index value of the (i+3) th judging moment is not larger than a preset judging threshold value, if not, taking the compensation current of the (i+2) th judging moment as the optimal compensation current, and carrying out current compensation on the amplifier after the (i+3) th judging moment by utilizing the optimal compensation current. According to the obtained optimal compensation current, the embodiment can reduce the phenomenon of overcompensation or undercompensation as far as possible, so that the effect of controlling the bias current of the amplifier can be improved.
The foregoing embodiments are merely illustrative of the technical solutions of the present application, and not restrictive, and although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that modifications may still be made to the technical solutions described in the foregoing embodiments or equivalent substitutions of some technical features thereof, and that such modifications or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.