A method for temperature drift compensation in transistor signal conditioning circuits
By using multi-order nonlinear transformation and closed-loop iterative compensation in an integrated signal conditioning system, the problems of high power consumption, discontinuous compensation, and low accuracy in temperature drift compensation of traditional transistor signal conditioning circuits are solved, achieving high-precision real-time dynamic compensation.
Patent Information
- Application Number
- CN202611251617.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-10
AI Technical Summary
Traditional transistor signal conditioning circuits suffer from problems such as high power consumption, discontinuous compensation, inability to accurately match complex high-order nonlinear characteristics, and lack of closed-loop iterative adjustment, making it difficult to maintain compensation accuracy over a long period of time under temperature change environments.
An integrated signal conditioning system is adopted, which collects temperature in real time through a temperature sensing unit, performs multi-order nonlinear transformation using a function generation unit, adjusts amplitude and polarity using a coefficient adjustment unit, performs summation using an addition unit, and adjusts the total gain using a voltage regulation unit to achieve closed-loop iterative compensation.
It achieves high-precision real-time dynamic compensation for transistor signal conditioning circuits, improving working stability and output accuracy over a wide temperature range.
Smart Images

Figure CN123074447A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of temperature compensation technology, and in particular to a method for temperature drift compensation in transistor signal conditioning circuits. Background Technology
[0002] With the rapid development of communication equipment, precision measuring instruments, and industrial control systems, the stability of transistor signal conditioning circuits, as the core unit of analog signal processing, has become a core technical requirement in many application scenarios. Against this backdrop, transistor signal conditioning circuits face a severe bottleneck challenge in suppressing temperature drift. How to effectively compensate for the DC operating point drift of transistor signal conditioning circuits caused by temperature changes over a wide temperature range is of vital practical significance for improving the temperature stability and output accuracy of signal conditioning circuits.
[0003] Traditional temperature drift compensation schemes often employ temperature control methods such as thermostatic bath crystal oscillators. However, thermostatic bath crystal oscillators consume excessive power, making them unsuitable for large-scale application in cost-sensitive and power-constrained scenarios. Regarding digital compensation, while traditional indirect digital compensation schemes are easy to integrate, the analog-to-digital and digital-to-analog conversion processes result in discontinuous compensation voltages and frequency jumps. Furthermore, traditional compensation schemes often use single-order compensation methods, which cannot accurately match the complex high-order nonlinear characteristics of temperature drift in transistor signal conditioning circuits. Moreover, the compensation process is often open-loop control, lacking real-time verification and closed-loop iterative adjustment of the compensation effect, making it difficult to maintain compensation accuracy over long periods in continuously changing temperature environments. Summary of the Invention
[0004] This invention provides a temperature drift compensation method for transistor signal conditioning circuits. Its main purpose is to achieve high-precision real-time dynamic compensation for temperature drift in transistor signal conditioning circuits, and significantly improve the working stability and output accuracy of transistor signal conditioning circuits over a wide temperature range.
[0005] To achieve the above objectives, the present invention provides a temperature drift compensation method for a transistor signal conditioning circuit, comprising:
[0006] The system receives a temperature drift compensation command and confirms the signal conditioning system according to the temperature drift compensation command. The signal conditioning system includes: a temperature sensing unit, a function generation unit, a coefficient adjustment unit, an addition unit, a voltage regulation unit, and a load amplification unit.
[0007] The temperature sensing unit is activated, and the operating temperature of the load amplification unit is collected in real time using the temperature sensing unit. A temperature detection voltage is generated based on the operating temperature.
[0008] The temperature detection voltage is input into the function generation unit, and the function generation unit performs multi-order nonlinear transformations on the temperature detection voltage to obtain multiple component voltages.
[0009] Multiple component voltages are input to a coefficient adjustment unit, and the amplitude and polarity of each component voltage are adjusted using the coefficient adjustment unit to obtain multiple adjusted component voltages.
[0010] Multiple adjusted component voltages are input into an addition unit, and the addition unit is used to sum and superimpose the multiple adjusted component voltages to obtain a comprehensive compensation voltage.
[0011] The comprehensive compensation voltage is input to the voltage adjustment unit, and the total gain of the comprehensive compensation voltage is adjusted by the voltage adjustment unit to obtain the injected compensation voltage.
[0012] The injected compensation voltage is applied to the load amplification unit to complete the temperature drift compensation for the transistor signal conditioning circuit.
[0013] Optionally, the step of performing multi-order nonlinear transformations on the temperature detection voltage using the function generation unit to obtain multiple component voltages includes:
[0014] The function generation unit is confirmed, wherein the function generation unit contains multiple function generation branches, and different transformation coefficients are configured inside different function generation branches;
[0015] For each function generation branch, the transformation coefficients corresponding to the function generation branch are taken as the highest power. Polynomial operation is performed on the temperature detection voltage with the highest power expansion. During the operation, the temperature detection voltage is calculated by successively raising the power from zero to the highest power. The results of each power calculation are accumulated to obtain the polynomial expansion value of the function generation branch.
[0016] Set a normalization factor for each function generation branch, multiply the polynomial expansion value by the fixed normalization factor set in the function generation branch, and directly set the numerical result obtained after multiplication as the current nonlinear bending degree of the function generation branch.
[0017] The temperature detection voltage is simultaneously input to each function generation branch. Based on the nonlinear bending degree set by each function generation branch, the input temperature detection voltage is subjected to nonlinear transformation by each function generation branch to obtain multiple component voltages.
[0018] Optionally, the coefficient adjustment unit includes multiple coefficient adjustment branches that correspond one-to-one with the function generation branch. Each coefficient adjustment branch is provided with an amplitude adjustment resistor and a polarity switching switch, and the amplitude adjustment resistor is composed of a first resistor and a second resistor connected in series.
[0019] The amplitude and polarity of each component voltage are adjusted using the coefficient adjustment unit to obtain multiple adjusted component voltages, including:
[0020] Obtain the resistance values of the first and second resistors, and set the target amplitude and target polarity of each component voltage;
[0021] Each component voltage is input to its corresponding coefficient adjustment branch. The input component voltage is divided using the amplitude adjustment resistor. The amplitude of the component voltage is adjusted to the target amplitude by changing the ratio of the resistance values of the first resistor and the second resistor, thus obtaining the amplitude-adjusted component voltage.
[0022] Based on the target polarity, the polarity of the amplitude-adjusted component voltage is adjusted using the polarity switching switch, and all component voltages are traversed to obtain multiple adjusted component voltages.
[0023] Optionally, the addition unit includes a voltage converter, a pulse modulator, a low-pass filter, a synchronous rectifier, and a current convergence node;
[0024] The step of using the addition unit to sum and superimpose multiple adjusted component voltages to obtain a comprehensive compensation voltage includes:
[0025] Each of the modulated component voltages is input to a voltage converter, which converts the modulated component voltage into a corresponding component current.
[0026] Each component current output from the voltage converter is sequentially input to the pulse modulator, and the pulse modulator is used to perform pulse width modulation on each component current to obtain a pulse-shaped modulated current.
[0027] All the modulated currents output by the pulse modulator are simultaneously input to the synchronous rectifier. The synchronous rectifier generates a rectified clock signal, which controls the synchronous rectifier to perform synchronous demodulation on each modulated current to obtain the rectified current.
[0028] The rectified current output from the synchronous rectifier is input to a low-pass filter, and the rectified current is filtered by the low-pass filter to obtain the filtered rectified current.
[0029] The rectified currents after multiple filtering are simultaneously fed into the current convergence node, and the rectified currents are directly superimposed to obtain the comprehensive compensation current;
[0030] The voltage converter is used to perform current-to-voltage conversion on the comprehensive compensation current to obtain the comprehensive compensation voltage.
[0031] Optionally, the step of using the pulse modulator to perform pulse width modulation on each component current to obtain a pulse-form modulated current includes:
[0032] The pulse modulator is used to convert each component current into a corresponding component modulation voltage, and the amplitude of the component modulation voltage is linearly proportional to the amplitude of the component current.
[0033] The pulse modulator compares the amplitude of each component modulation voltage with a preset triangular wave reference signal. When the amplitude of the component modulation voltage is greater than the instantaneous value of the triangular wave reference signal, the pulse modulator outputs a high-level pulse. When the amplitude of the component modulation voltage is less than or equal to the instantaneous value of the triangular wave reference signal, the pulse modulator outputs a low-level pulse.
[0034] Arrange the high-level pulses and low-level pulses sequentially according to their output time to obtain a pulse sequence;
[0035] The pulse modulator converts the pulse sequence into a current form, and outputs a modulated current whose pulse width changes linearly with the amplitude of the component current.
[0036] Optionally, controlling the synchronous rectifier to perform synchronous demodulation on each modulated current using the rectified clock signal to obtain the rectified current includes:
[0037] The internal carrier signal of the pulse modulator is obtained, and a rectified clock signal that is phase-synchronized with the internal carrier signal is generated using the synchronous rectifier. The signal period of the rectified clock signal is obtained, and the signal period is used as the demodulation beat.
[0038] Based on the demodulation timing, the modulation current is continuously sampled using the synchronous rectifier to obtain multiple raw demodulation current values, and all the raw demodulation current values are arranged in time order to obtain the raw demodulation current sequence.
[0039] The original demodulated current value at the first position in the original demodulated current sequence is taken as the rectified current value at the first position.
[0040] Set a gain adjustment coefficient, take the second position in the original demodulated current sequence as the current position, calculate the difference between the original demodulated current value at the current position and the rectified current value at the previous position to obtain the demodulation error, and calculate the product of the demodulation error and the gain adjustment coefficient to obtain the current correction amount at the current position.
[0041] The sum of the current correction value and the rectified current value at the previous position is calculated to obtain the rectified current value at the current position. The original demodulated current sequence is then traversed to obtain the rectified current.
[0042] Optionally, the step of filtering the rectified current using the low-pass filter to obtain the filtered rectified current includes:
[0043] Obtain the filter order and iteration step size of the low-pass filter, and read the current weight coefficient sequence of the low-pass filter, wherein the weight coefficient sequence contains the same number of weight coefficients as the filter order;
[0044] Obtain the current value of the rectified current, and arrange all the current values in chronological order to obtain the input current sequence;
[0045] The filter window is set based on the filter order, and the starting position of the filter window is placed at the first current value of the input current sequence.
[0046] Read all current values within the coverage area of the current filtering window to obtain the current value sequence of the current window. Multiply each current value in the current window current value sequence by the weight coefficient at the corresponding position in the weight coefficient sequence, and then add all the products to obtain the current window filtering output value.
[0047] Based on the current window filter output value and iteration step size, the input current sequence is subjected to adaptive iterative filtering using the filter window to obtain the filtered rectified current sequence.
[0048] The filtered rectified current sequence is output in the corresponding position order to obtain the filtered rectified current.
[0049] Optionally, the step of performing adaptive iterative filtering on the input current sequence using the filtering window based on the current window filter output value and iteration step size to obtain the filtered rectified current sequence includes:
[0050] Calculate the average value of all current values in the current window current value sequence, use the average value as the expected current value of the current window, calculate the difference between the expected current value of the current window and the current window filter output value, and obtain the current window filter error;
[0051] The updated weight coefficient sequence is obtained by calculating the current window filtering error, iteration step size, and current window current value sequence according to the following formula:
[0052] ;
[0053] in, This indicates the position index in the weight coefficient sequence. Let the filter order be . For the updated number Individual weight coefficients The iteration step size, This represents the current window filtering error. For the current window current value sequence, the one that is related to the first... The current value corresponding to each weighting coefficient;
[0054] The current value corresponding to the center position of the filtering window is replaced with the current window's filtered output value to obtain the current value of the current window. Based on the filtered current value, the updated weight coefficient sequence is used to continue filtering the input current sequence until all positions in the input current sequence are traversed to obtain the filtered rectified current sequence.
[0055] Optionally, the step of further filtering the input current sequence based on the filtered current value using the updated weight coefficient sequence, until all positions in the input current sequence have been traversed to obtain the filtered rectified current sequence, includes:
[0056] The updated weight coefficient sequence is used as the current weight coefficient sequence for the next iteration, and the starting position of the filter window is moved back by one current value, so that the overall coverage of the filter window is shifted back by one position.
[0057] Reread all current values within the coverage area of the filter window after the movement to obtain a new current value sequence for the current window;
[0058] The process of multiplying and adding, calculating the expected value and the difference, substituting into the formula and outputting is repeated for the new current window value sequence to obtain the next filtered current value.
[0059] Determine whether the end position of the filtering window has reached the last current value of the input current sequence. If not, continue to execute the steps of moving, rereading, and repeating. If it has reached the last current value, arrange all the filtered current values in the order of generation to obtain the filtered rectified current sequence.
[0060] To achieve the above objectives, the present invention also provides a temperature drift compensation system for a transistor signal conditioning circuit, comprising:
[0061] The instruction receiving and confirmation module is used to receive temperature drift compensation instructions and confirm the signal conditioning system according to the temperature drift compensation instructions. The signal conditioning system includes: a temperature sensing unit, a function generation unit, a coefficient adjustment unit, an addition unit, a voltage adjustment unit, and a load amplification unit.
[0062] The temperature detection and transformation module is used to start the temperature sensing unit, collect the operating temperature of the load amplification unit in real time using the temperature sensing unit, generate a temperature detection voltage based on the operating temperature, input the temperature detection voltage into the function generation unit, and use the function generation unit to perform multi-order nonlinear transformation on the temperature detection voltage to obtain multiple component voltages.
[0063] The coefficient adjustment and superposition module is used to input multiple component voltages into the coefficient adjustment unit, and use the coefficient adjustment unit to perform amplitude and polarity adjustment on each component voltage to obtain multiple adjusted component voltages. The multiple adjusted component voltages are then input into the addition unit, and the addition unit is used to perform summation and superposition on the multiple adjusted component voltages to obtain the comprehensive compensation voltage.
[0064] The continuous closed-loop compensation module is used to input the comprehensive compensation voltage into the voltage adjustment unit, adjust the total gain of the comprehensive compensation voltage using the voltage adjustment unit to obtain the injected compensation voltage, and apply the injected compensation voltage to the load amplification unit to complete the temperature drift compensation for the transistor signal conditioning circuit.
[0065] To address the above problems, the present invention also provides an electronic device, the electronic device comprising:
[0066] Memory, storing at least one instruction;
[0067] The processor executes the instructions stored in the memory to implement the temperature drift compensation method for transistor signal conditioning circuits described above.
[0068] To address the aforementioned problems, the present invention also provides a computer-readable storage medium storing at least one instruction, which is executed by a processor in an electronic device to implement the temperature drift compensation method for a transistor signal conditioning circuit described above.
[0069] To address the problems described in the background art, this invention first receives a temperature drift compensation command and confirms a signal conditioning system based on the command. This signal conditioning system includes a temperature sensing unit, a function generation unit, a coefficient adjustment unit, an addition unit, a voltage regulation unit, and a load amplification unit. Thus, this invention uses the temperature drift compensation command to uniformly confirm the integrated signal conditioning system, clearly defining the functional units included in the system. Next, the temperature sensing unit is activated, and its real-time data collection of the load amplification unit's operating temperature is used. A temperature detection voltage is generated based on this operating temperature and input to the function generation unit. The function generation unit then performs multi-order nonlinear transformations on the temperature detection voltage to obtain multiple component voltages. Therefore, this invention generates multiple component voltages through the function generation unit, achieving multi-order complete coverage of the temperature drift compensation components. Then, multiple component voltages are input to a coefficient adjustment unit. The coefficient adjustment unit adjusts the amplitude and polarity of each component voltage to obtain multiple adjusted component voltages. These adjusted component voltages are then input to an addition unit, which sums and superimposes them to obtain a comprehensive compensation voltage. This invention achieves precise matching of the comprehensive compensation voltage to the operating temperature by independently adjusting each component voltage before summing and superimposing them. Finally, the comprehensive compensation voltage is input to a voltage adjustment unit, which adjusts the overall gain of the comprehensive compensation voltage to obtain an injected compensation voltage. This injected compensation voltage is applied to the load amplification unit to complete temperature drift compensation for the transistor signal conditioning circuit. This invention considers the continuous temperature change of the transistor signal conditioning circuit during continuous operation and achieves dynamic continuous temperature drift compensation through closed-loop iteration. Therefore, this invention can achieve high-precision real-time dynamic compensation for temperature drift in transistor signal conditioning circuits, significantly improving the operating stability and output accuracy of transistor signal conditioning circuits over a wide temperature range. Attached Figure Description
[0070] Figure 1 This is a schematic flowchart of a temperature drift compensation method for a transistor signal conditioning circuit according to an embodiment of the present invention;
[0071] Figure 2 This is a functional block diagram of a temperature drift compensation system for a transistor signal conditioning circuit according to an embodiment of the present invention;
[0072] Figure 3 This is a schematic diagram of an electronic device that implements the temperature drift compensation method for a transistor signal conditioning circuit, according to an embodiment of the present invention.
[0073] Explanation of reference numerals in the attached figures:
[0074] 10. Electronic device; 11. Processor; 12. Memory; 13. Bus.
[0075] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0076] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0077] This application provides a temperature drift compensation method for a transistor signal conditioning circuit. The execution subject of this temperature drift compensation method for a transistor signal conditioning circuit includes, but is not limited to, at least one of the following electronic devices that can be configured to execute the method provided in this application embodiment: a server, a terminal, etc. In other words, the temperature drift compensation method for a transistor signal conditioning circuit can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.
[0078] Reference Figure 1 The diagram shown is a schematic flowchart of a temperature drift compensation method for a transistor signal conditioning circuit according to an embodiment of the present invention. In this embodiment, the temperature drift compensation method for a transistor signal conditioning circuit includes:
[0079] S1. Receive a temperature drift compensation command, and confirm the signal conditioning system according to the temperature drift compensation command, wherein the signal conditioning system includes: a temperature sensing unit, a function generation unit, a coefficient adjustment unit, an addition unit, a voltage adjustment unit, and a load amplification unit.
[0080] Understandably, the temperature drift compensation command is automatically issued by the logic control system built into the transistor conditioning circuit. This command is used to control the signal conditioning system to begin temperature compensation of the transistor conditioning circuit. The signal conditioning system is a collection of functional modules integrated into the transistor conditioning circuit.
[0081] It should be understood that the temperature sensing unit is a hardware unit constructed from a constant current source and a temperature-sensing transistor, used to sense the operating temperature of the load amplification unit in real time and generate a temperature detection voltage. The function generation unit is a computational unit containing multiple function generation branches, used to perform multi-order nonlinear transformations on the temperature detection voltage. The coefficient adjustment unit is a processing unit containing multiple coefficient adjustment branches, used to adjust the amplitude and polarity of the component voltages. The addition unit is a hardware unit containing a voltage converter, pulse modulator, synchronous rectifier, low-pass filter, and current convergence node, used to sum and superimpose multiple adjusted component voltages. The voltage adjustment unit is an execution unit constructed from an adjustable gain amplifier, used to adjust the overall gain of the comprehensive compensation voltage. The load amplification unit is a signal amplification circuit containing transistors; optionally, a 2N2222 type NPN transistor is used as the transistor in the load amplification unit.
[0082] It should be explained that the function generation branch is an independent operational branch used to perform single-order nonlinear transformation. Different function generation branches are configured with different transformation coefficients to generate component voltages of different orders for the same temperature detection voltage. The coefficient adjustment branch corresponds one-to-one with the function generation branch and is an independent adjustment branch used to perform amplitude and polarity adjustment. Each coefficient adjustment branch is equipped with an amplitude adjustment resistor and a polarity switching switch to adjust the amplitude and polarity of the component voltage output by the corresponding function generation branch. The multi-branch structure allows the function generation unit to simultaneously generate multiple component voltages covering different temperature compensation orders. The coefficient adjustment unit then independently adjusts the amplitude and polarity of each component voltage, thereby combining them to approximate the nonlinear compensation curve of the transistor signal conditioning circuit for temperature drift.
[0083] S2. Start the temperature sensing unit, use the temperature sensing unit to collect the operating temperature of the load amplification unit in real time, and generate a temperature detection voltage based on the operating temperature.
[0084] Understandably, the temperature sensing unit starts working after receiving a temperature drift compensation command, and senses the current operating ambient temperature of the load amplification unit in real time, i.e., the operating temperature. The temperature sensing unit utilizes the temperature-sensitive characteristics of semiconductor devices to convert changes in the operating temperature into changes in a voltage signal, thereby obtaining a temperature detection voltage that is linearly related to the operating temperature. This temperature detection voltage is a voltage signal that decreases linearly as the operating temperature increases and increases linearly as the operating temperature decreases.
[0085] S3. Input the temperature detection voltage into the function generation unit, and use the function generation unit to perform multi-order nonlinear transformation on the temperature detection voltage to obtain multiple component voltages.
[0086] Understandably, after the temperature detection voltage is input into the function generation unit, the function generation unit uses its multiple function generation branches to perform nonlinear transformations of different orders on the same temperature detection voltage. Each function generation branch outputs a component voltage corresponding to the transformation coefficient of that branch, and all function generation branches output multiple component voltages together.
[0087] It should be explained that the DC operating point drift of the transistor signal conditioning circuit caused by temperature changes is not a simple linear relationship with temperature, but exhibits complex high-order nonlinear characteristics. Therefore, this invention performs nonlinear transformations of different orders on the temperature detection voltage through multiple function generation branches to generate multiple component voltages. The different component voltages have different orders of nonlinear function relationships with the temperature detection voltage, and each component voltage corresponds to a compensation component of a certain order in the temperature drift curve.
[0088] Furthermore, the function generation unit performs multi-order nonlinear transformations on the temperature detection voltage to obtain multiple component voltages, including:
[0089] The function generation unit is confirmed, wherein the function generation unit contains multiple function generation branches, and different transformation coefficients are configured inside different function generation branches;
[0090] For each function generation branch, the transformation coefficients corresponding to the function generation branch are taken as the highest power. Polynomial operation is performed on the temperature detection voltage with the highest power expansion. During the operation, the temperature detection voltage is calculated by successively raising the power from zero to the highest power. The results of each power calculation are accumulated to obtain the polynomial expansion value of the function generation branch.
[0091] Set a normalization factor for each function generation branch, multiply the polynomial expansion value by the fixed normalization factor set in the function generation branch, and directly set the numerical result obtained after multiplication as the current nonlinear bending degree of the function generation branch.
[0092] The temperature detection voltage is simultaneously input to each function generation branch. Based on the nonlinear bending degree set by each function generation branch, the input temperature detection voltage is subjected to nonlinear transformation by each function generation branch to obtain multiple component voltages.
[0093] Understandably, the transformation coefficients are fixed values preset during the circuit design phase for each function generation branch. The fixed transformation coefficients differ between different function generation branches, determining the highest power used by that branch when performing nonlinear transformation on the temperature detection voltage. The polynomial expansion value is a comprehensive value obtained by combining the power components of the temperature detection voltage, including nonlinear components from low to high order. The normalization factor is a fixed constant value set during the circuit design phase for each function generation branch. It is determined based on the ratio of the maximum possible amplitude of the temperature detection voltage to the upper limit of the input voltage range of the amplitude adjustment resistor in the coefficient adjustment unit, and is used to scale the polynomial expansion value to a suitable amplitude range for subsequent coefficient adjustment unit processing. The degree of nonlinear bending is a value used to quantify the intensity of the nonlinear transformation performed by that branch on the temperature detection voltage under the current temperature detection voltage. The greater the degree of nonlinear bending, the more significant the nonlinear characteristics of the component voltage output by that branch as a function of the temperature detection voltage change. Each function generation branch performs nonlinear transformations of different intensities on the same temperature detection voltage according to its calculated degree of nonlinear bending, and outputs component voltages corresponding to its respective degree of nonlinear bending. All function generation branches work in parallel and output multiple component voltages simultaneously.
[0094] S4. Input multiple component voltages into the coefficient adjustment unit, and use the coefficient adjustment unit to perform amplitude and polarity adjustment on each component voltage to obtain multiple adjusted component voltages.
[0095] Understandably, the coefficient adjustment unit utilizes multiple internal coefficient adjustment branches to perform amplitude and polarity adjustments for each component voltage. Each coefficient adjustment branch outputs an adjusted component voltage corresponding to the input component voltage, and all coefficient adjustment branches collectively output multiple adjusted component voltages. Each coefficient adjustment branch corresponds one-to-one with a function generation branch. Each coefficient adjustment branch is equipped with an amplitude adjustment resistor and a polarity switching switch. The amplitude adjustment resistor is used to adjust the amplitude of the input component voltage, and the polarity switching switch is used to adjust the polarity of the amplitude-adjusted component voltage. The adjusted component voltage is the component voltage after amplitude and polarity adjustments, and its amplitude and polarity have been independently set according to the requirements of the temperature drift compensation curve.
[0096] It should be explained that although the multiple component voltages each have different degrees of nonlinear curvature, covering the compensation components of each order in the temperature drift curve, the magnitude and polarity of each component voltage do not yet match the sign and magnitude of the coefficients of each order in the actual temperature drift compensation curve. The DC operating point drift direction of the transistor signal conditioning circuit may differ in different temperature ranges. Therefore, this invention uses a coefficient adjustment unit to independently adjust the amplitude and polarity of each component voltage, ensuring that the amplitude ratio and polarity of each component voltage correspond one-to-one with the coefficients of each order in the actual temperature drift curve.
[0097] Furthermore, the coefficient adjustment unit includes multiple coefficient adjustment branches that correspond one-to-one with the function generation branch. Each coefficient adjustment branch is equipped with an amplitude adjustment resistor and a polarity switching switch, and the amplitude adjustment resistor is composed of a first resistor and a second resistor connected in series.
[0098] The amplitude and polarity of each component voltage are adjusted using the coefficient adjustment unit to obtain multiple adjusted component voltages, including:
[0099] Obtain the resistance values of the first and second resistors, and set the target amplitude and target polarity of each component voltage;
[0100] Each component voltage is input to its corresponding coefficient adjustment branch. The input component voltage is divided using the amplitude adjustment resistor. The amplitude of the component voltage is adjusted to the target amplitude by changing the ratio of the resistance values of the first resistor and the second resistor, thus obtaining the amplitude-adjusted component voltage.
[0101] Based on the target polarity, the polarity of the amplitude-adjusted component voltage is adjusted using the polarity switching switch, and all component voltages are traversed to obtain multiple adjusted component voltages.
[0102] Understandably, the first resistor and the second resistor are two adjustable resistors connected in series. One end of the first resistor is connected to one end of the second resistor, and their connection point serves as a voltage divider output terminal. The input component voltage is applied to the amplitude adjustment resistor formed by the series connection of the first and second resistors. Utilizing the principle of voltage division in series resistors, the voltage signal after voltage division is extracted from the connection point of the first and second resistors. The target amplitude is a desired voltage amplitude preset based on the magnitude of the compensation coefficient corresponding to the order in the temperature drift compensation curve. The target polarity is a desired voltage polarity preset based on the sign of the compensation coefficient of that order. The amplitude-adjusted component voltage is the component voltage whose amplitude has been adjusted to the target amplitude after voltage division processing, but whose polarity has not yet been adjusted. The polarity switching switch is a switching device used to select the output polarity of the voltage signal. When the target polarity is positive, the polarity switching switch directly outputs the amplitude-adjusted component voltage; when the target polarity is negative, the polarity switching switch inverts the amplitude-adjusted component voltage before outputting it.
[0103] It should be explained that the temperature drift compensation curve is a frequency-temperature curve obtained by pre-testing the DC operating point drift of the transistor signal conditioning circuit at different operating temperatures. The compensation coefficients are obtained by polynomial fitting of the temperature drift compensation curve using the least squares method. The absolute values of each order compensation coefficient are normalized according to the maximum voltage amplitude that the coefficient adjustment branch can handle. The normalized value is the target amplitude corresponding to that branch. The sign of each order compensation coefficient is directly used as the target polarity corresponding to that branch, with a positive sign corresponding to positive polarity and a negative sign corresponding to negative polarity.
[0104] S5. Input multiple adjusted component voltages into the addition unit, and use the addition unit to perform summation and superposition on the multiple adjusted component voltages to obtain the comprehensive compensation voltage.
[0105] Understandably, the addition unit performs summation and superposition processing on all modulated component voltages, merging multiple independent modulated component voltages into a single comprehensive compensation voltage. This comprehensive compensation voltage is a single voltage signal obtained by the addition unit after summing and superimposing multiple modulated component voltages; it contains amplitude and polarity information for each order of modulated component voltage.
[0106] It should be explained that each of the adjusted component voltages corresponds to a certain order of compensation component in the temperature drift compensation curve. The amplitude and polarity of each adjusted component voltage have been independently set according to the compensation coefficient of that order. However, the adjusted component voltages are still multiple independent voltage signals and cannot be directly used to drive the bias node of the transistor in the load amplification unit. Therefore, this invention uses an addition unit to sum and superimpose all the adjusted component voltages into a comprehensive compensation voltage, so that the compensation components of each order are simultaneously reflected in the same voltage signal. The amplitude of this comprehensive compensation voltage changes with the operating temperature and matches the temperature drift curve of the transistor signal conditioning circuit.
[0107] Furthermore, the addition unit includes a voltage converter, a pulse modulator, a low-pass filter, a synchronous rectifier, and a current convergence node;
[0108] The step of using the addition unit to sum and superimpose multiple adjusted component voltages to obtain a comprehensive compensation voltage includes:
[0109] Each of the modulated component voltages is input to a voltage converter, which converts the modulated component voltage into a corresponding component current.
[0110] Each component current output from the voltage converter is sequentially input to the pulse modulator, and the pulse modulator is used to perform pulse width modulation on each component current to obtain a pulse-shaped modulated current.
[0111] All the modulated currents output by the pulse modulator are simultaneously input to the synchronous rectifier. The synchronous rectifier generates a rectified clock signal, which controls the synchronous rectifier to perform synchronous demodulation on each modulated current to obtain the rectified current.
[0112] The rectified current output from the synchronous rectifier is input to a low-pass filter, and the rectified current is filtered by the low-pass filter to obtain the filtered rectified current.
[0113] The rectified currents after multiple filtering are simultaneously fed into the current convergence node, and the rectified currents are directly superimposed to obtain the comprehensive compensation current;
[0114] The voltage converter is used to perform current-to-voltage conversion on the comprehensive compensation current to obtain the comprehensive compensation voltage.
[0115] Understandably, the voltage converter is a bidirectional conversion module used to convert voltage signals into current signals and vice versa. The component current is the current signal obtained after the modulated component voltage is converted by the voltage converter, and the amplitude of the component current is linearly proportional to the amplitude of the modulated component voltage. The pulse modulator is a modulation module used to perform pulse width modulation on the component current. The modulated current is a pulse-form current signal obtained after the component current is pulse-width modulated, and the pulse width of the modulated current changes linearly with the amplitude of the component current. The synchronous rectifier is a demodulation module used to perform synchronous demodulation on the modulated current. The rectified clock signal is a periodic clock signal generated by the synchronous rectifier and synchronized with the carrier signal inside the pulse modulator. The rectified current is the analog current signal recovered after the modulated current is synchronously demodulated. The low-pass filter is a filtering module used to filter the rectified current. The filtered rectified current is a smoothed current signal obtained after the rectified current passes through the low-pass filter to remove high-frequency noise components. The current convergence node is a circuit node inside the addition unit used to physically combine multiple current signals. The comprehensive compensation current is the total current signal obtained by directly superimposing the rectified currents after multiple filtering at the current convergence node.
[0116] It should be explained that when there are many superimposed voltage signals, a load effect will exist between the input branches. Therefore, this invention uses current-mode summation instead of voltage summation. First, each modulated component voltage is converted into a component current. Each component current is then converted into a pulse-mode modulated current after pulse width modulation (PWM). PWM encodes the amplitude information of the component current into the pulse width of the modulated current. Each modulated current is synchronously demodulated by a synchronous rectifier. Synchronous demodulation recovers the amplitude information from the pulse width of the modulated current, obtaining an analog rectified current. This rectified current is then filtered by a low-pass filter to remove high-frequency noise, resulting in a smooth, filtered rectified current. Since the filtered rectified currents are all in-phase DC or low-frequency analog current signals, they can be directly superimposed at the current convergence node using Kirchhoff's current law to obtain a comprehensive compensation current, avoiding the load effect of voltage superposition. The superimposed comprehensive compensation current is then converted back into a comprehensive compensation voltage by a voltage converter.
[0117] Further, the step of using the pulse modulator to perform pulse width modulation on each component current to obtain a pulse-form modulated current includes:
[0118] The pulse modulator is used to convert each component current into a corresponding component modulation voltage, and the amplitude of the component modulation voltage is linearly proportional to the amplitude of the component current.
[0119] The pulse modulator compares the amplitude of each component modulation voltage with a preset triangular wave reference signal. When the amplitude of the component modulation voltage is greater than the instantaneous value of the triangular wave reference signal, the pulse modulator outputs a high-level pulse. When the amplitude of the component modulation voltage is less than or equal to the instantaneous value of the triangular wave reference signal, the pulse modulator outputs a low-level pulse.
[0120] Arrange the high-level pulses and low-level pulses sequentially according to their output time to obtain a pulse sequence;
[0121] The pulse modulator converts the pulse sequence into a current form, and outputs a modulated current whose pulse width changes linearly with the amplitude of the component current.
[0122] Understandably, the component modulation voltage is the voltage signal obtained by the pulse modulator after converting the component current. The amplitude of the component modulation voltage is linearly proportional to the amplitude of the component current; the larger the component current, the higher the amplitude of the component modulation voltage. The triangular wave reference signal is a periodic triangular waveform voltage signal generated internally by the pulse modulator, and its frequency is higher than the highest frequency of the component modulation voltage. The high-level pulse is a high-voltage pulse output by the pulse modulator when the amplitude of the component modulation voltage is greater than the instantaneous value of the triangular wave reference signal, and the low-level pulse is a low-voltage pulse output by the pulse modulator when the amplitude of the component modulation voltage is less than or equal to the instantaneous value of the triangular wave reference signal. The pulse sequence is a sequence of pulse waveforms obtained by arranging the high-level pulses and low-level pulses in chronological order of their output time. The modulation current is a pulse-form current signal output by the pulse modulator after converting the pulse sequence into current form. The pulse width of the modulation current varies linearly with the amplitude of the component current; the larger the amplitude of the component current, the wider the high-level pulse width of the modulation current.
[0123] It should be explained that the function of pulse width modulation (PWM) is to convert the analog component current into a pulsed modulated current. The width of the high-level pulse in the modulated current carries the amplitude information of the component current. Since the pulsed modulated current has stronger anti-interference capability than the analog component current, this invention converts the component current into a modulated current through pulse width modulation before sending it to the subsequent synchronous rectifier.
[0124] Further, the step of controlling the synchronous rectifier with the rectifier clock signal to perform synchronous demodulation on each modulated current to obtain the rectified current includes:
[0125] The internal carrier signal of the pulse modulator is obtained, and a rectified clock signal that is phase-synchronized with the internal carrier signal is generated using the synchronous rectifier. The signal period of the rectified clock signal is obtained, and the signal period is used as the demodulation beat.
[0126] Based on the demodulation timing, the modulation current is continuously sampled using the synchronous rectifier to obtain multiple raw demodulation current values, and all the raw demodulation current values are arranged in time order to obtain the raw demodulation current sequence.
[0127] The original demodulated current value at the first position in the original demodulated current sequence is taken as the rectified current value at the first position.
[0128] Set a gain adjustment coefficient, take the second position in the original demodulated current sequence as the current position, calculate the difference between the original demodulated current value at the current position and the rectified current value at the previous position to obtain the demodulation error, and calculate the product of the demodulation error and the gain adjustment coefficient to obtain the current correction amount at the current position.
[0129] The sum of the current correction value and the rectified current value at the previous position is calculated to obtain the rectified current value at the current position. The original demodulated current sequence is then traversed to obtain the rectified current.
[0130] Understandably, the synchronous rectifier first obtains an internal carrier signal from the pulse modulator, which is the periodic signal upon which the pulse modulator generates the triangular wave reference signal. The synchronous rectifier generates a rectified clock signal that is strictly synchronized with the phase of the internal carrier signal, and obtains the signal period of the rectified clock signal. This signal period is used as the demodulation beat, which is the time reference for each sampling of the modulated current by the synchronous rectifier. Within each demodulation beat, the synchronous rectifier samples the modulated current once, obtaining a raw demodulated current value. All the raw demodulated current values obtained from multiple samplings are arranged sequentially according to the sampling time to obtain a raw demodulated current sequence. For the raw demodulated current value at the first position in the raw demodulated current sequence, the synchronous rectifier directly uses it as the rectified current value at the first position. The synchronous rectifier sets a gain adjustment coefficient, which is a preset fixed value used to control the magnitude of each correction. Starting from the second position in the original demodulated current sequence, take the second position as the current position, calculate the difference between the original demodulated current value at the current position and the rectified current value at the first position, and take the difference as the demodulation error.
[0131] It should be explained that before temperature drift compensation begins, a constant modulation current with a known amplitude is input to the synchronous rectifier. The synchronous rectifier continuously samples this constant modulation current to obtain a set of raw demodulated current values. The difference between the maximum and minimum values in this set of raw demodulated current values is calculated to obtain the noise fluctuation range. The ratio of the noise fluctuation range to the known amplitude of the constant modulation current is used as the noise proportionality coefficient. The difference between 1 and the noise proportionality coefficient is calculated, and the difference is the gain adjustment coefficient.
[0132] It should be explained that the modulated current may be subject to noise interference during transmission. If the original demodulated current value obtained from each demodulation beat sampling is directly used as the rectified current value for output, the noise will cause random fluctuations in the rectified current value. Therefore, this invention corrects the original demodulated current sequence point by point. Specifically, since there is no rectified current value to refer to in the previous position of the original demodulated current value at the first position, the original demodulated current value at the first position is directly used as the rectified current value at the first position. Starting from the second position, the rectified current value at each position is obtained by adding a current correction amount to the rectified current value at the previous position.
[0133] Understandably, the demodulation error reflects the deviation of the original demodulated current value at the current position from the rectified current value at the previous position. Multiplying the demodulation error by the gain adjustment coefficient yields the current correction for the current position. Adding this current correction to the rectified current value at the first position gives the rectified current value at the second position. Similarly, taking the third position as the current position, the difference between the original demodulated current value at the third position and the rectified current value at the second position is calculated to obtain the demodulation error. Multiplying this demodulation error by the gain adjustment coefficient gives the current correction. Adding this current correction to the rectified current value at the second position gives the rectified current value at the third position. This process is repeated for each position in the original demodulated current sequence until the rectified current values for all positions are obtained. The rectified current values for all positions are then output sequentially according to their positional order to obtain the rectified current.
[0134] Further, the step of filtering the rectified current using the low-pass filter to obtain the filtered rectified current includes:
[0135] Obtain the filter order and iteration step size of the low-pass filter, and read the current weight coefficient sequence of the low-pass filter, wherein the weight coefficient sequence contains the same number of weight coefficients as the filter order;
[0136] Obtain the current value of the rectified current, and arrange all the current values in chronological order to obtain the input current sequence;
[0137] The filter window is set based on the filter order, and the starting position of the filter window is placed at the first current value of the input current sequence.
[0138] Read all current values within the coverage area of the current filtering window to obtain the current value sequence of the current window. Multiply each current value in the current window current value sequence by the weight coefficient at the corresponding position in the weight coefficient sequence, and then add all the products to obtain the current window filtering output value.
[0139] Based on the current window filter output value and iteration step size, the input current sequence is subjected to adaptive iterative filtering using the filter window to obtain the filtered rectified current sequence.
[0140] The filtered rectified current sequence is output in the corresponding position order to obtain the filtered rectified current.
[0141] Understandably, the low-pass filter first determines its configured filter order and iteration step size. The filter order is the number of current values used by the low-pass filter in a single filtering operation on the input current sequence, and the iteration step size is a fixed value used by the low-pass filter to control the magnitude of each update when updating the weight coefficient sequence. The low-pass filter reads the current weight coefficient sequence, which is a sequence of numerical values consisting of a set of weight coefficients with the same number as the filter order, arranged in order. Each weight coefficient corresponds to a current value at a position in the filtering window and is used to weight the current value at that position.
[0142] It should be explained that high-frequency noise components that were not completely filtered out after synchronous demodulation may remain in the rectified current. If the rectified current is directly fed into the current convergence node for superposition, the noise components will enter the comprehensive compensation current along with the rectified current. Therefore, this invention uses a low-pass filter to perform adaptive iterative filtering on the rectified current. During the filtering process, the weight coefficient sequence is continuously updated according to the filtering error between the filter output value and the expected current value each time, so that the weight coefficient sequence gradually approaches the optimal weighted combination.
[0143] Understandably, the low-pass filter acquires the rectified current value and arranges all acquired current values in chronological order to obtain the input current sequence. The low-pass filter sets a filtering window based on its filter order. This filtering window is the range covered by the low-pass filter when processing consecutive current values in the input current sequence. The number of current values covered by the filtering window at one time is the same as the filter order. The low-pass filter sets the starting position of the filtering window at the first current value in the input current sequence and reads all current values within the current filtering window's coverage area to obtain the current window current value sequence. This current window current value sequence is the current value sequence formed by arranging all current values covered by the filtering window at the current starting position in their original order. The low-pass filter multiplies each current value in the current window current value sequence by the corresponding weight coefficient in the weight coefficient sequence, and then adds all the products. The sum is used as the current window filter output value. This current window filter output value is a filtered result obtained by the low-pass filter through a weighted sum of a set of current values within the current filtering window's coverage area. The low-pass filter performs adaptive iterative filtering on the input current sequence based on the current window's output value, obtaining a filtered rectified current sequence. This filtered rectified current sequence is a sequence of all current values obtained after adaptive iterative filtering of the input current sequence, arranged in positional order. The low-pass filter then outputs the current values from the filtered rectified current sequence sequentially according to their positional order, thus obtaining the filtered rectified current.
[0144] Further, the step of performing adaptive iterative filtering on the input current sequence using the filtering window based on the current window filter output value and iteration step size to obtain the filtered rectified current sequence includes:
[0145] Calculate the average value of all current values in the current window current value sequence, use the average value as the expected current value of the current window, calculate the difference between the expected current value of the current window and the current window filter output value, and obtain the current window filter error;
[0146] The updated weight coefficient sequence is obtained by calculating the current window filtering error, iteration step size, and current window current value sequence according to the following formula:
[0147] ;
[0148] in, This indicates the position index in the weight coefficient sequence. Let the filter order be . For the updated number Individual weight coefficients The iteration step size, This represents the current window filtering error. For the current window current value sequence, the one that is related to the first... The current value corresponding to each weighting coefficient;
[0149] The current value corresponding to the center position of the filtering window is replaced with the current window's filtered output value to obtain the current value of the current window. Based on the filtered current value, the updated weight coefficient sequence is used to continue filtering the input current sequence until all positions in the input current sequence are traversed to obtain the filtered rectified current sequence.
[0150] Understandably, after obtaining the current window's filtered output value, the low-pass filter calculates the average of all current values in the current window's current value sequence. This average is then used as the expected current value for the current window, serving as a reference for calculating the current window's filtering error. The low-pass filter calculates the difference between the expected current value and the current window's filtered output value, using this difference as the current window's filtering error. This error reflects the magnitude of the deviation between the weighted summation of the filtered output value and the expected current value at the current filtering window position.
[0151] It should be explained that if the current window filter output value is exactly the same as the current window expected current value, it means that the current weight coefficient sequence is already the optimal weighted combination and does not need to be updated. If there is a deviation between the two, it means that the current weight coefficient sequence cannot completely filter out the noise component in the rectified current. Therefore, this invention feeds back the current window filter error to the update calculation of the weight coefficient sequence, so that the weight coefficient sequence is automatically adjusted in the direction of reducing the filter error after each filtering process.
[0152] Understandably, the low-pass filter substitutes the current window filtering error, iteration step size, and current window current value sequence into the weight coefficient iteration formula to obtain an updated weight coefficient sequence. Each weight coefficient in the updated weight coefficient sequence is obtained by adding a correction amount to the current weight coefficient. This correction amount is obtained by multiplying the iteration step size, the current window filtering error, and the current value corresponding to that weight coefficient in the current window current value sequence. The low-pass filter uses the current window filtering output value as the filtered value of the current value corresponding to the center position of the filtering window. The center position of the filtering window is the position number at the exact center of the filtering window coverage area, and the filtered value is the value of the current value corresponding to the center position of the filtering window after filtering. The low-pass filter replaces the current value corresponding to the center position of the filtering window with the current window filtering output value, and uses the current value obtained after replacement as the filtered current value of the current window. The filtered current value of the current window is a current value output after filtering at the current filtering window position.
[0153] Understandably, the low-pass filter continues to filter the input current sequence using the updated weight coefficient sequence. The updated weight coefficient sequence is used as the current weight coefficient sequence for the next filtering process. The starting position of the filtering window is moved back by one current value. All current values within the coverage area of the filtering window are read again. The steps of multiplication and addition, calculation of average and difference, substitution into the formula and replacement are repeated to obtain the filtered current value of the next current window. This process is repeated for all coverable positions in the input current sequence. The filtered current values of the current window obtained each time are arranged in the order of generation to obtain the filtered rectified current sequence.
[0154] Furthermore, the process of filtering the input current sequence using the updated weight coefficient sequence based on the filtered current value continues until all positions in the input current sequence have been traversed to obtain the filtered rectified current sequence includes:
[0155] The updated weight coefficient sequence is used as the current weight coefficient sequence for the next iteration, and the starting position of the filter window is moved back by one current value, so that the overall coverage of the filter window is shifted back by one position.
[0156] Reread all current values within the coverage area of the filter window after the movement to obtain a new current value sequence for the current window;
[0157] The process of multiplying and adding, calculating the expected value and the difference, substituting into the formula and outputting is repeated for the new current window value sequence to obtain the next filtered current value.
[0158] Determine whether the end position of the filtering window has reached the last current value of the input current sequence. If not, continue to execute the steps of moving, rereading, and repeating. If it has reached the last current value, arrange all the filtered current values in the order of generation to obtain the filtered rectified current sequence.
[0159] Understandably, after updating the weight coefficient sequence at the current filter window position, the low-pass filter uses the updated weight coefficient sequence as the current weight coefficient sequence for the next iteration. It then shifts the starting position of the filter window one current value backward. The starting position of the filter window is the position number of the first current value within the filter window's coverage area in the input current sequence. After shifting one current value backward, the entire filter window coverage area shifts one position backward. The first current value within the original filter window's coverage area is removed, and the current value immediately following the end of the original filter window's coverage area is included. The low-pass filter then rereads all current values within the shifted filter window's coverage area to obtain a new current window value sequence. It then repeats the steps of multiplication and addition, calculating the expected value and difference, substituting into the formula, and outputting the new current window value sequence to obtain the next filtered current value.
[0160] S6. Input the comprehensive compensation voltage into the voltage adjustment unit, and use the voltage adjustment unit to adjust the total gain of the comprehensive compensation voltage to obtain the injected compensation voltage.
[0161] Understandably, after the comprehensive compensation voltage is input to the voltage regulation unit, the voltage regulation unit adjusts the overall gain of the comprehensive compensation voltage, proportionally amplifying or reducing its amplitude to obtain the injected compensation voltage. The overall gain is the amplification factor used by the voltage regulation unit when adjusting the amplitude of the comprehensive compensation voltage. When the overall gain is greater than 1, the comprehensive compensation voltage is amplified; when the overall gain is less than 1, the comprehensive compensation voltage is reduced; and when the overall gain is equal to 1, the amplitude of the comprehensive compensation voltage remains unchanged. The injected compensation voltage is the voltage signal obtained after the overall compensation voltage has been adjusted by the overall gain. The injected compensation voltage is applied to the bias node of the transistor in the load amplification unit.
[0162] It should be explained that although the comprehensive compensation voltage already contains complete information of each order of compensation components, its amplitude range may not match the compensation voltage amplitude range required by the transistor bias node in the load amplification unit. If the amplitude of the comprehensive compensation voltage is too large, applying it directly to the bias node may cause the transistor to enter the nonlinear operating region or even damage the transistor; if the amplitude of the comprehensive compensation voltage is too small, it cannot effectively offset the DC operating point drift caused by temperature changes. Therefore, this invention uses a voltage regulation unit to adjust the overall gain of the comprehensive compensation voltage, scaling the overall amplitude of the comprehensive compensation voltage to a range suitable for driving the transistor bias node.
[0163] S7. Apply the injected compensation voltage to the load amplification unit to complete the temperature drift compensation for the transistor signal conditioning circuit.
[0164] Understandably, after the injection compensation voltage is applied to the bias node of the transistor in the load amplification unit, the injection compensation voltage is superimposed on the original DC bias voltage of the bias node, changing the base bias voltage of the transistor, thereby adjusting the DC operating point of the transistor and offsetting the DC operating point drift caused by the change in operating temperature.
[0165] It should be explained that during continuous operation, the operating temperature of the transistor signal conditioning circuit may change over time. A single injection of compensation voltage can only compensate for the DC operating point drift at the current operating temperature. When the operating temperature changes again, the compensation effect of the original injection compensation voltage will gradually weaken, requiring the operating temperature to be sensed again and a new injection compensation voltage to be calculated. Therefore, this invention immediately re-executes all steps after each application of the injection compensation voltage to the bias node, forming a cyclic process of temperature sensing, component generation, amplitude polarity adjustment, summation, total gain adjustment, and injection compensation. Furthermore, this cyclic process is continuously executed during the operation of the load amplification unit, with each cycle regenerating the corresponding injection compensation voltage based on the latest operating temperature.
[0166] To address the problems described in the background art, this invention first receives a temperature drift compensation command and confirms a signal conditioning system based on the command. This signal conditioning system includes a temperature sensing unit, a function generation unit, a coefficient adjustment unit, an addition unit, a voltage regulation unit, and a load amplification unit. Thus, this invention uses the temperature drift compensation command to uniformly confirm the integrated signal conditioning system, clearly defining the functional units included in the system. Next, the temperature sensing unit is activated, and its real-time data collection of the load amplification unit's operating temperature is used. A temperature detection voltage is generated based on this operating temperature and input to the function generation unit. The function generation unit then performs multi-order nonlinear transformations on the temperature detection voltage to obtain multiple component voltages. Therefore, this invention generates multiple component voltages through the function generation unit, achieving multi-order complete coverage of the temperature drift compensation components. Then, multiple component voltages are input to a coefficient adjustment unit. The coefficient adjustment unit adjusts the amplitude and polarity of each component voltage to obtain multiple adjusted component voltages. These adjusted component voltages are then input to an addition unit, which sums and superimposes them to obtain a comprehensive compensation voltage. This invention achieves precise matching of the comprehensive compensation voltage to the operating temperature by independently adjusting each component voltage before summing and superimposing them. Finally, the comprehensive compensation voltage is input to a voltage adjustment unit, which adjusts the overall gain of the comprehensive compensation voltage to obtain an injected compensation voltage. This injected compensation voltage is applied to the load amplification unit to complete temperature drift compensation for the transistor signal conditioning circuit. This invention considers the continuous temperature change of the transistor signal conditioning circuit during continuous operation and achieves dynamic continuous temperature drift compensation through closed-loop iteration. Therefore, this invention can achieve high-precision real-time dynamic compensation for temperature drift in transistor signal conditioning circuits, significantly improving the operating stability and output accuracy of transistor signal conditioning circuits over a wide temperature range.
[0167] like Figure 2 The diagram shown is a functional block diagram of a temperature drift compensation system for a transistor signal conditioning circuit provided in an embodiment of the present invention.
[0168] The temperature drift compensation system 100 for transistor signal conditioning circuits described in this invention can be installed in electronic devices. Depending on the functions implemented, the temperature drift compensation system 100 for transistor signal conditioning circuits may include an instruction receiving and confirmation module 101, a temperature detection and conversion module 102, a coefficient adjustment and superposition module 103, and a continuous closed-loop compensation module 104. The module described in this invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, and which are stored in the memory of the electronic device.
[0169] The instruction receiving and confirmation module 101 is used to receive temperature drift compensation instructions and confirm the signal conditioning system according to the temperature drift compensation instructions. The signal conditioning system includes: a temperature sensing unit, a function generation unit, a coefficient adjustment unit, an addition operation unit, a voltage adjustment unit, and a load amplification unit.
[0170] The temperature detection and transformation module 102 is used to start the temperature sensing unit, collect the operating temperature of the load amplification unit in real time using the temperature sensing unit, generate a temperature detection voltage based on the operating temperature, input the temperature detection voltage into the function generation unit, and use the function generation unit to perform multi-order nonlinear transformation on the temperature detection voltage to obtain multiple component voltages.
[0171] The coefficient adjustment and superposition module 103 is used to input multiple component voltages into the coefficient adjustment unit, and use the coefficient adjustment unit to perform amplitude and polarity adjustment on each component voltage to obtain multiple adjusted component voltages. The multiple adjusted component voltages are then input into the addition unit, and the addition unit is used to perform summation and superposition on the multiple adjusted component voltages to obtain a comprehensive compensation voltage.
[0172] The continuous closed-loop compensation module 104 is used to input the comprehensive compensation voltage into the voltage adjustment unit, adjust the total gain of the comprehensive compensation voltage using the voltage adjustment unit to obtain the injected compensation voltage, and apply the injected compensation voltage to the load amplification unit to complete the temperature drift compensation for the transistor signal conditioning circuit.
[0173] In detail, the modules in the temperature drift compensation system 100 for transistor signal conditioning circuits described in this embodiment of the invention employ the same methods as described above during use. Figure 1 The method used is the same as the temperature drift compensation method for transistor signal conditioning circuits described in the previous section, and can produce the same technical effect, so it will not be repeated here.
[0174] like Figure 3 The diagram shown is a schematic representation of an electronic device that implements a temperature drift compensation method for a transistor signal conditioning circuit, according to an embodiment of the present invention.
[0175] The electronic device 1 may include a processor 10, a memory 11 and a bus 12, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a temperature drift compensation method program for a transistor signal conditioning circuit.
[0176] The memory 11 includes at least one type of readable storage medium, such as flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as a portable hard drive. In other embodiments, the memory 11 can be an external storage device of the electronic device 1, such as a plug-in portable hard drive, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the electronic device 1. Furthermore, the memory 11 includes both internal storage units and external storage devices of the electronic device 1. The memory 11 can be used not only to store application software and various types of data installed on the electronic device 1, such as code for a temperature drift compensation method program for a transistor signal conditioning circuit, but also to temporarily store data that has been output or will be output.
[0177] In some embodiments, the processor 10 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The processor 10 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the memory 11 (e.g., temperature drift compensation methods for transistor signal conditioning circuits) and calls data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
[0178] The bus 12 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 12 can be divided into an address bus, a data bus, a control bus, etc. The bus 12 is configured to realize the connection and communication between the memory 11 and at least one processor 10, etc.
[0179] Figure 3 Only electronic devices with components are shown; it will be understood by those skilled in the art that... Figure 3The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.
[0180] For example, although not shown, the electronic device 1 may also include a power supply (such as a battery) to power the various components. Preferably, the power supply can be logically connected to the at least one processor 10 through a power management device, thereby enabling functions such as charging management, discharging management, and power consumption management. The power supply may also include one or more DC or AC power supplies, recharging devices, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0181] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a Wi-Fi interface, a Bluetooth interface, etc.), which is typically used to establish communication connections between the electronic device 1 and other electronic devices.
[0182] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), and optionally, a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen, etc. The display may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device 1 and to display a visual user interface.
[0183] The temperature drift compensation method program for the transistor signal conditioning circuit stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When run in the processor 10, it can achieve the following:
[0184] The system receives a temperature drift compensation command and confirms the signal conditioning system according to the temperature drift compensation command. The signal conditioning system includes: a temperature sensing unit, a function generation unit, a coefficient adjustment unit, an addition unit, a voltage regulation unit, and a load amplification unit.
[0185] The temperature sensing unit is activated, and the operating temperature of the load amplification unit is collected in real time using the temperature sensing unit. A temperature detection voltage is generated based on the operating temperature.
[0186] The temperature detection voltage is input into the function generation unit, and the function generation unit performs multi-order nonlinear transformations on the temperature detection voltage to obtain multiple component voltages.
[0187] Multiple component voltages are input to a coefficient adjustment unit, and the amplitude and polarity of each component voltage are adjusted using the coefficient adjustment unit to obtain multiple adjusted component voltages.
[0188] Multiple adjusted component voltages are input into an addition unit, and the addition unit is used to sum and superimpose the multiple adjusted component voltages to obtain a comprehensive compensation voltage.
[0189] The comprehensive compensation voltage is input to the voltage adjustment unit, and the total gain of the comprehensive compensation voltage is adjusted by the voltage adjustment unit to obtain the injected compensation voltage.
[0190] The injected compensation voltage is applied to the load amplification unit to complete the temperature drift compensation for the transistor signal conditioning circuit.
[0191] Specifically, the processor 10's implementation method for the above instructions can be found in [reference needed]. Figures 1 to 3 The descriptions of the relevant steps in the corresponding embodiments are not repeated here.
[0192] Furthermore, if the modules / units integrated in the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, or a read-only memory (ROM).
[0193] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor of an electronic device, can perform the following:
[0194] The system receives a temperature drift compensation command and confirms the signal conditioning system according to the temperature drift compensation command. The signal conditioning system includes: a temperature sensing unit, a function generation unit, a coefficient adjustment unit, an addition unit, a voltage regulation unit, and a load amplification unit.
[0195] The temperature sensing unit is activated, and the operating temperature of the load amplification unit is collected in real time using the temperature sensing unit. A temperature detection voltage is generated based on the operating temperature.
[0196] The temperature detection voltage is input into the function generation unit, and the function generation unit performs multi-order nonlinear transformations on the temperature detection voltage to obtain multiple component voltages.
[0197] Multiple component voltages are input to a coefficient adjustment unit, and the amplitude and polarity of each component voltage are adjusted using the coefficient adjustment unit to obtain multiple adjusted component voltages.
[0198] Multiple adjusted component voltages are input into an addition unit, and the addition unit is used to sum and superimpose the multiple adjusted component voltages to obtain a comprehensive compensation voltage.
[0199] The comprehensive compensation voltage is input to the voltage adjustment unit, and the total gain of the comprehensive compensation voltage is adjusted by the voltage adjustment unit to obtain the injected compensation voltage.
[0200] The injected compensation voltage is applied to the load amplification unit to complete the temperature drift compensation for the transistor signal conditioning circuit.
[0201] In the embodiments provided by this invention, it should be understood that the disclosed devices, systems, and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative, and actual implementations may have other classification methods.
[0202] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0203] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.
[0204] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0205] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A method for temperature drift compensation in a transistor signal conditioning circuit, characterized in that, The method includes: The system receives a temperature drift compensation command and confirms the signal conditioning system according to the temperature drift compensation command. The signal conditioning system includes: a temperature sensing unit, a function generation unit, a coefficient adjustment unit, an addition unit, a voltage regulation unit, and a load amplification unit. The temperature sensing unit is activated, and the operating temperature of the load amplification unit is collected in real time using the temperature sensing unit. A temperature detection voltage is generated based on the operating temperature. The temperature detection voltage is input into the function generation unit, and the function generation unit performs multi-order nonlinear transformations on the temperature detection voltage to obtain multiple component voltages. Multiple component voltages are input to a coefficient adjustment unit, and the amplitude and polarity of each component voltage are adjusted using the coefficient adjustment unit to obtain multiple adjusted component voltages. Multiple adjusted component voltages are input into an addition unit, and the addition unit is used to sum and superimpose the multiple adjusted component voltages to obtain a comprehensive compensation voltage. The comprehensive compensation voltage is input to the voltage adjustment unit, and the total gain of the comprehensive compensation voltage is adjusted by the voltage adjustment unit to obtain the injected compensation voltage. The injected compensation voltage is applied to the load amplification unit to complete the temperature drift compensation for the transistor signal conditioning circuit.
2. The temperature drift compensation method for transistor signal conditioning circuits as described in claim 1, characterized in that, The function generation unit performs multi-order nonlinear transformations on the temperature detection voltage to obtain multiple component voltages, including: The function generation unit is confirmed, wherein the function generation unit contains multiple function generation branches, and different transformation coefficients are configured inside different function generation branches; For each function generation branch, the transformation coefficients corresponding to the function generation branch are taken as the highest power. Polynomial operations are performed on the temperature detection voltage using the highest power expansion. During the operation, the temperature detection voltage is calculated by successively raising the power from zero to the highest power. The results of each power calculation are accumulated to obtain the polynomial expansion value of the function generation branch. Set a normalization factor for each function generation branch, multiply the polynomial expansion value by the fixed normalization factor set in the function generation branch, and directly set the numerical result obtained after multiplication as the current nonlinear bending degree of the function generation branch. The temperature detection voltage is simultaneously input to each function generation branch. Based on the nonlinear bending degree set by each function generation branch, the input temperature detection voltage is subjected to nonlinear transformation by each function generation branch to obtain multiple component voltages.
3. The temperature drift compensation method for transistor signal conditioning circuits as described in claim 1, characterized in that, The coefficient adjustment unit includes multiple coefficient adjustment branches that correspond one-to-one with the function generation branch. Each coefficient adjustment branch is equipped with an amplitude adjustment resistor and a polarity switching switch. The amplitude adjustment resistor is composed of a first resistor and a second resistor connected in series. The amplitude and polarity of each component voltage are adjusted using the coefficient adjustment unit to obtain multiple adjusted component voltages, including: Obtain the resistance values of the first and second resistors, and set the target amplitude and target polarity of each component voltage; Each component voltage is input to its corresponding coefficient adjustment branch. The input component voltage is divided using the amplitude adjustment resistor. The amplitude of the component voltage is adjusted to the target amplitude by changing the ratio of the resistance values of the first resistor and the second resistor, thus obtaining the amplitude-adjusted component voltage. Based on the target polarity, the polarity of the amplitude-adjusted component voltage is adjusted using the polarity switching switch, and all component voltages are traversed to obtain multiple adjusted component voltages.
4. The temperature drift compensation method for transistor signal conditioning circuits as described in claim 1, characterized in that, The addition unit includes a voltage converter, a pulse modulator, a low-pass filter, a synchronous rectifier, and a current convergence node; The step of using the addition unit to sum and superimpose multiple adjusted component voltages to obtain a comprehensive compensation voltage includes: Each of the modulated component voltages is input to a voltage converter, which converts the modulated component voltage into a corresponding component current. Each component current output from the voltage converter is sequentially input to the pulse modulator, and the pulse modulator is used to perform pulse width modulation on each component current to obtain a pulse-shaped modulated current. All the modulated currents output by the pulse modulator are simultaneously input to the synchronous rectifier. The synchronous rectifier generates a rectified clock signal, which controls the synchronous rectifier to perform synchronous demodulation on each modulated current to obtain the rectified current. The rectified current output from the synchronous rectifier is input to a low-pass filter, and the rectified current is filtered by the low-pass filter to obtain the filtered rectified current. The rectified currents after multiple filtering are simultaneously fed into the current convergence node, and the rectified currents are directly superimposed to obtain the comprehensive compensation current; The voltage converter is used to perform current-to-voltage conversion on the comprehensive compensation current to obtain the comprehensive compensation voltage.
5. The temperature drift compensation method for a transistor signal conditioning circuit as described in claim 4, characterized in that, The step of using the pulse modulator to perform pulse width modulation on each component current to obtain a pulse-form modulated current includes: The pulse modulator is used to convert each component current into a corresponding component modulation voltage, and the amplitude of the component modulation voltage is linearly proportional to the amplitude of the component current. The pulse modulator compares the amplitude of each component modulation voltage with a preset triangular wave reference signal. When the amplitude of the component modulation voltage is greater than the instantaneous value of the triangular wave reference signal, the pulse modulator outputs a high-level pulse. When the amplitude of the component modulation voltage is less than or equal to the instantaneous value of the triangular wave reference signal, the pulse modulator outputs a low-level pulse. Arrange the high-level pulses and low-level pulses sequentially according to their output time to obtain a pulse sequence; The pulse modulator is used to convert the pulse sequence into a current form, and outputs a modulated current whose pulse width changes linearly with the amplitude of the component current.
6. The temperature drift compensation method for a transistor signal conditioning circuit as described in claim 4, characterized in that, The step of controlling the synchronous rectifier with the rectified clock signal to perform synchronous demodulation on each modulated current to obtain the rectified current includes: The internal carrier signal of the pulse modulator is obtained, and a rectified clock signal that is phase-synchronized with the internal carrier signal is generated using the synchronous rectifier. The signal period of the rectified clock signal is obtained, and the signal period is used as the demodulation beat. Based on the demodulation timing, the modulation current is continuously sampled using the synchronous rectifier to obtain multiple raw demodulation current values, and all the raw demodulation current values are arranged in time order to obtain the raw demodulation current sequence. The original demodulated current value at the first position in the original demodulated current sequence is taken as the rectified current value at the first position. Set a gain adjustment coefficient, take the second position in the original demodulated current sequence as the current position, calculate the difference between the original demodulated current value at the current position and the rectified current value at the previous position to obtain the demodulation error, and calculate the product of the demodulation error and the gain adjustment coefficient to obtain the current correction amount at the current position. The sum of the current correction value and the rectified current value at the previous position is calculated to obtain the rectified current value at the current position. The original demodulated current sequence is then traversed to obtain the rectified current.
7. The temperature drift compensation method for a transistor signal conditioning circuit as described in claim 4, characterized in that, The step of filtering the rectified current using the low-pass filter to obtain the filtered rectified current includes: Obtain the filter order and iteration step size of the low-pass filter, and read the current weight coefficient sequence of the low-pass filter, wherein the weight coefficient sequence contains the same number of weight coefficients as the filter order; Obtain the current value of the rectified current, and arrange all the current values in chronological order to obtain the input current sequence; The filter window is set based on the filter order, and the starting position of the filter window is placed at the first current value of the input current sequence. Read all current values within the coverage area of the current filtering window to obtain the current value sequence of the current window. Multiply each current value in the current window current value sequence by the weight coefficient at the corresponding position in the weight coefficient sequence, and then add all the products to obtain the current window filtering output value. Based on the current window filter output value and iteration step size, the input current sequence is subjected to adaptive iterative filtering using the filter window to obtain the filtered rectified current sequence. The filtered rectified current sequence is output in the corresponding position order to obtain the filtered rectified current.
8. The temperature drift compensation method for a transistor signal conditioning circuit as described in claim 7, characterized in that, The step of performing adaptive iterative filtering on the input current sequence using the filtering window based on the current window filter output value and iteration step size to obtain the filtered rectified current sequence includes: Calculate the average value of all current values in the current window current value sequence, use the average value as the expected current value of the current window, calculate the difference between the expected current value of the current window and the current window filter output value, and obtain the current window filter error; The updated weight coefficient sequence is obtained by calculating the current window filtering error, iteration step size, and current window current value sequence according to the following formula: ; in, This indicates the position index in the weight coefficient sequence. Let the filter order be . For the updated number Individual weight coefficients The iteration step size, This represents the current window filtering error. For the current window current value sequence, the one that is related to the first... The current value corresponding to each weighting coefficient; The current value corresponding to the center position of the filtering window is replaced with the current window's filtered output value to obtain the current value of the current window. Based on the filtered current value, the updated weight coefficient sequence is used to continue filtering the input current sequence until all positions in the input current sequence are traversed to obtain the filtered rectified current sequence.
9. The temperature drift compensation method for a transistor signal conditioning circuit as described in claim 8, characterized in that, The process involves further filtering the input current sequence based on the filtered current value and using the updated weight coefficient sequence until all positions in the input current sequence have been traversed, resulting in a filtered rectified current sequence, including: The updated weight coefficient sequence is used as the current weight coefficient sequence for the next iteration, and the starting position of the filter window is moved back by one current value, so that the overall coverage of the filter window is shifted back by one position. Reread all current values within the coverage area of the filter window after the movement to obtain a new current value sequence for the current window; The process of multiplying and adding, calculating the expected value and the difference, substituting into the formula and outputting is repeated for the new current window value sequence to obtain the next filtered current value. Determine whether the end position of the filtering window has reached the last current value of the input current sequence. If not, continue to execute the steps of moving, rereading, and repeating. If it has reached the last current value, arrange all the filtered current values in the order of generation to obtain the filtered rectified current sequence.
10. A temperature drift compensation system for a transistor signal conditioning circuit, characterized in that, The system includes: The instruction receiving and confirmation module is used to receive temperature drift compensation instructions and confirm the signal conditioning system according to the temperature drift compensation instructions. The signal conditioning system includes: a temperature sensing unit, a function generation unit, a coefficient adjustment unit, an addition unit, a voltage adjustment unit, and a load amplification unit. The temperature detection and transformation module is used to start the temperature sensing unit, collect the operating temperature of the load amplification unit in real time using the temperature sensing unit, generate a temperature detection voltage based on the operating temperature, input the temperature detection voltage into the function generation unit, and use the function generation unit to perform multi-order nonlinear transformation on the temperature detection voltage to obtain multiple component voltages. The coefficient adjustment and superposition module is used to input multiple component voltages into the coefficient adjustment unit, and use the coefficient adjustment unit to perform amplitude and polarity adjustment on each component voltage to obtain multiple adjusted component voltages. The multiple adjusted component voltages are then input into the addition unit, and the addition unit is used to perform summation and superposition on the multiple adjusted component voltages to obtain the comprehensive compensation voltage. The continuous closed-loop compensation module is used to input the comprehensive compensation voltage into the voltage adjustment unit, adjust the total gain of the comprehensive compensation voltage using the voltage adjustment unit to obtain the injected compensation voltage, and apply the injected compensation voltage to the load amplification unit to complete the temperature drift compensation for the transistor signal conditioning circuit.
