A signal source power temperature compensation method, control module and signal source device

The feedforward temperature compensation method built with microcontrollers and high-resolution DACs solves the problem of low accuracy in signal source temperature compensation. It achieves high-precision, low-cost, and easy-to-implement signal source power temperature compensation, adapts to device aging and batch differences, and simplifies the production process.

CN121841286BActive Publication Date: 2026-05-22CHENGDU ZHONGKE FOUR POINT ZERO TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHENGDU ZHONGKE FOUR POINT ZERO TECH CO LTD
Filing Date
2026-03-16
Publication Date
2026-05-22

AI Technical Summary

Technical Problem

Existing signal source temperature compensation methods suffer from low accuracy, high production and testing costs, complex calibration procedures, lack of dynamic adaptability, and poor compensation continuity.

Method used

A microcontroller and temperature sensor are used to detect ambient temperature. High-precision feedforward temperature compensation is achieved using a high-resolution DAC and digital programmable coefficients. Compensation parameters are determined through simplified temperature testing. A programmable analog computing link is constructed to adapt to batch and temperature curve variations of adapter components, reducing hardware modifications and improving product maintainability.

Benefits of technology

It achieves high-precision, low-cost, and easy-to-implement signal source power temperature compensation, simplifies the production process, reduces costs, improves product stability and adaptability, and adapts to device aging and batch differences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121841286B_ABST
    Figure CN121841286B_ABST
Patent Text Reader

Abstract

The application provides a signal source power temperature compensation method, a control module and a signal source device, constructs a programmable analog calculation link taking a temperature sensing voltage as a reference, and realizes high-precision, flexible and simple circuit feedforward temperature compensation. Specifically, in terms of precision and adaptability, the technology converts the temperature compensation relationship into high-precision mathematical operation by using a high-resolution DAC (such as 16 bits), and replaces the traditional fixed resistance voltage division by a digital programmable coefficient k, so that the compensation precision far exceeds that of the traditional method, and the technology can flexibly adapt to different batches of devices and complex temperature curves.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and more specifically, to a method for temperature compensation of signal source power, a control module, and a signal source device. Background Technology

[0002] The output power stability of radio frequency (RF) signal sources is a key performance indicator for wireless communication, radar, and automated test systems. However, power temperature drift caused by ambient temperature fluctuations can severely restrict system performance and measurement accuracy. Therefore, high-precision power temperature compensation over a wide temperature range has become a focus of industry research.

[0003] Existing technical solutions are mainly based on digital lookup tables and pre-distortion compensation methods. The principle is to collect power deviation data at different temperatures during the production testing phase, establish a temperature-to-compensation value mapping table, and store it in non-volatile memory. During operation, the table is retrieved using a temperature sensor to control circuits such as digitally controlled attenuators for power correction. However, this method has significant drawbacks: firstly, production testing costs are high, and the full-temperature calibration process is complex and time-consuming; secondly, it lacks dynamic adaptability, as fixed data cannot track parameter drift caused by device aging or batch differences; and thirdly, compensation continuity is poor, with limited table resolution leading to interpolation errors that may cause power step fluctuations, making continuous high-precision power control impossible. Summary of the Invention

[0004] The purpose of this application is to provide a method, control module, and signal source device for temperature compensation of signal source power, so as to solve the problem of low accuracy of existing signal source temperature compensation methods.

[0005] This application provides a temperature compensation method for signal source power, applied to the control module of a signal source device. The method includes:

[0006] Using a microcontroller, the reference voltage V0, offset lookup table, and temperature compensation coefficient are obtained;

[0007] A temperature sensor is used to detect the ambient temperature, and the temperature sensing voltage Vtemp is obtained.

[0008] Using the first DAC, the output voltage Vdac1 is obtained based on the temperature sensing voltage and the temperature compensation coefficient;

[0009] Using a microcontroller, the initial open-loop power control code value is obtained; based on the current operating frequency and offset lookup table, the corresponding power control offset OFFSETi is queried.

[0010] Using the second DAC, the open-loop power control voltage Vloop is obtained based on the open-loop power control code value; where the open-loop power control code value is the sum of the initial open-loop power control code value and the power control offset.

[0011] Using the signal synthesis and conditioning circuit, the temperature compensation voltage Vcomp is obtained based on the output voltage Vdac1; and the control voltage Vctrl of the voltage-controlled attenuator is obtained based on the temperature compensation voltage Vcomp and the open-loop power control voltage Vloop.

[0012] In the above technical solution, a programmable analog computing link based on temperature sensing voltage is constructed, realizing high-precision, flexible and simple feedforward temperature compensation. Specifically, in terms of accuracy and adaptability, this technology utilizes a high-resolution DAC (e.g., 16-bit) to transform temperature compensation relationships into high-precision mathematical calculations. It replaces traditional fixed-resistance voltage division with a digitally programmable coefficient k, achieving compensation accuracy far exceeding traditional methods and flexibly adapting to different device batches and complex temperature profiles. In the manufacturing process, the solution drastically simplifies the calibration process, requiring only a single simplified, limited-point temperature test to determine core compensation parameters. This eliminates the cumbersome steps of traditional full-temperature chamber scanning and individual data burning, significantly reducing production costs and shortening delivery cycles. In system architecture design, this method directly compensates for the physical quantity of "temperature change," avoiding the introduction of additional components such as RF detectors in closed-loop power control, resulting in a simpler, more reliable circuit structure and higher compensation efficiency. Furthermore, in the product's entire lifecycle management, addressing characteristic drift caused by device aging or differences between batches of devices requires only software recalibration and coefficient updates, without hardware modifications. This greatly improves product maintainability and long-term stability, ultimately achieving a precise, efficient, low-cost, and easily implemented signal source power temperature compensation solution.

[0013] In some optional implementations, obtaining the reference voltage V0, the offset lookup table, and the temperature compensation coefficient includes:

[0014] Using a microcontroller, the temperature compensation coefficient is set to the initial temperature compensation coefficient k0, and the open-loop power control code value is set to the initial open-loop power control code value.

[0015] Under the condition that the signal source device is at the first ambient temperature and the first frequency, the output power of the signal source is made to reach the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP1, and the temperature sensing voltage is Vtemp1.

[0016] Under the condition that the signal source device is at the second ambient temperature and the first frequency, the signal source output power reaches the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP2, and the temperature sensing voltage is Vtemp2.

[0017] Based on LOOP1, LOOP2, Vtemp1, and Vtemp2, the optimal temperature compensation coefficient k is obtained:

[0018] ;

[0019] Where G is a constant determined by the operational amplifier gain and the system scaling factor, Vdac2 is the reference voltage of the second DAC, and k0 is 0.5 × Mdac, where Mdac is the full-scale code value of the DAC.

[0020] In some optional implementations, obtaining the reference voltage V0, the offset lookup table, and the temperature compensation coefficient further includes:

[0021] After obtaining the optimal temperature compensation coefficient k, the temperature compensation coefficient is set to the optimal temperature compensation coefficient k. The open-loop power control code value is set to the sum of the initial open-loop power control code value and the power control offset. By adjusting the power control offset, the output power of the signal source reaches the target power. At this time, the power control offset is the power control offset corresponding to the first frequency point and is recorded in the offset lookup table.

[0022] In some alternative implementations, the output voltage Vdac1:

[0023] Vdac1 = Vtemp × k / Mdac;

[0024] Where Vtemp is the temperature sensing voltage and Mdac is the DAC full-scale code value.

[0025] In some alternative implementations, the temperature-compensated voltage Vcomp:

[0026] Vcomp= Vtemp×(k-0.5×Mdac) / Mdac.

[0027] In some alternative implementations, the control voltage Vctrl:

[0028] Vctrl = Vcomp + Vloop.

[0029] This application provides a control module for a signal source device, comprising:

[0030] The microcontroller is used to obtain the reference voltage V0, the offset lookup table, and the temperature compensation coefficient.

[0031] A temperature sensor is used to detect the ambient temperature and obtain the temperature sensing voltage Vtemp.

[0032] The first DAC is used to obtain the output voltage Vdac1 based on the temperature sensing voltage and the temperature compensation coefficient;

[0033] The microcontroller is also used to obtain the initial open-loop power control code value; and to look up the corresponding power control offset OFFSETi based on the current operating frequency and offset lookup table.

[0034] The second DAC is used to obtain the open-loop power control voltage Vloop based on the open-loop power control code value; wherein the open-loop power control code value is the sum of the initial open-loop power control code value and the power control offset.

[0035] The signal synthesis and conditioning circuit is used to obtain the temperature compensation voltage Vcomp based on the output voltage Vdac1; and to obtain the control voltage Vctrl of the voltage-controlled attenuator based on the temperature compensation voltage Vcomp and the open-loop power control voltage Vloop.

[0036] In some alternative implementations, the microcontroller is further configured to:

[0037] Set the temperature compensation coefficient to the initial temperature compensation coefficient k0, and set the open-loop power control code value to the initial open-loop power control code value.

[0038] Under the condition that the signal source device is at the first ambient temperature and the first frequency, the output power of the signal source is made to reach the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP1, and the temperature sensing voltage is Vtemp1.

[0039] Under the condition that the signal source device is at the second ambient temperature and the first frequency, the signal source output power reaches the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP2, and the temperature sensing voltage is Vtemp2.

[0040] Based on LOOP1, LOOP2, Vtemp1, and Vtemp2, the optimal temperature compensation coefficient k is obtained:

[0041] ;

[0042] Where G is a constant determined by the operational amplifier gain and the system scaling factor, Vdac2 is the reference voltage of the second DAC, and k0 is 0.5 × Mdac, where Mdac is the full-scale code value of the DAC.

[0043] In some alternative implementations, the microcontroller is further configured to:

[0044] After obtaining the optimal temperature compensation coefficient k, the temperature compensation coefficient is set to the optimal temperature compensation coefficient k. The open-loop power control code value is set to the sum of the initial open-loop power control code value and the power control offset. By adjusting the power control offset, the output power of the signal source reaches the target power. At this time, the power control offset is the power control offset corresponding to the first frequency point and is recorded in the offset lookup table.

[0045] This application provides a signal source device, including an oscillator, an amplifier, and a control module for any of the signal source devices described above. Attached Figure Description

[0046] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 A flowchart of a method for temperature compensation of signal source power provided in an embodiment of this application. Detailed Implementation

[0048] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0049] Please refer to Figure 1 , Figure 1 A flowchart of a temperature compensation method for signal source power provided in this application embodiment is applied to the control module of a signal source device. The method includes:

[0050] Using a microcontroller, the reference voltage V0, offset lookup table, and temperature compensation coefficient are obtained;

[0051] A temperature sensor is used to detect the ambient temperature, and the temperature sensing voltage Vtemp is obtained.

[0052] Using the first DAC, the output voltage Vdac1 is obtained based on the temperature sensing voltage and the temperature compensation coefficient;

[0053] Using a microcontroller, the initial open-loop power control code value is obtained; based on the current operating frequency and offset lookup table, the corresponding power control offset OFFSETi is queried.

[0054] Using the second DAC, the open-loop power control voltage Vloop is obtained based on the open-loop power control code value; where the open-loop power control code value is the sum of the initial open-loop power control code value and the power control offset.

[0055] Using the signal synthesis and conditioning circuit, the temperature compensation voltage Vcomp is obtained based on the output voltage Vdac1; and the control voltage Vctrl of the voltage-controlled attenuator is obtained based on the temperature compensation voltage Vcomp and the open-loop power control voltage Vloop.

[0056] In the above technical solution, a programmable analog computing link based on temperature sensing voltage is constructed, realizing high-precision, flexible and simple feedforward temperature compensation. Specifically, in terms of accuracy and adaptability, this technology utilizes a high-resolution DAC (e.g., 16-bit) to transform temperature compensation relationships into high-precision mathematical calculations. It replaces traditional fixed-resistance voltage dividers with digitally programmable coefficients k, achieving compensation accuracy far exceeding traditional methods and flexibly adapting to different device batches and complex temperature profiles. In the manufacturing process, the solution drastically simplifies the calibration process, requiring only a single, simplified, limited-point temperature test to determine core compensation parameters. This eliminates the cumbersome steps of traditional full-temperature chamber scanning and individual data burning, significantly reducing production costs and shortening delivery cycles. In system architecture design, this method directly compensates for temperature changes at the source, avoiding the introduction of additional components such as RF detectors in closed-loop power control, resulting in a simpler, more reliable circuit structure and higher compensation efficiency. Furthermore, in the product's entire lifecycle management, addressing characteristic drift caused by device aging or differences between batches requires only software recalibration and coefficient updates, without hardware modifications. This greatly improves product maintainability and long-term stability, ultimately achieving a precise, efficient, low-cost, and easily implemented signal source power temperature compensation solution.

[0057] In some optional implementations, obtaining the reference voltage V0, the offset lookup table, and the temperature compensation coefficient includes:

[0058] Using a microcontroller, the temperature compensation coefficient is set to the initial temperature compensation coefficient k0, and the open-loop power control code value is set to the initial open-loop power control code value.

[0059] Under the condition that the signal source device is at the first ambient temperature and the first frequency, the output power of the signal source is made to reach the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP1, and the temperature sensing voltage is Vtemp1.

[0060] Under the condition that the signal source device is at the second ambient temperature and the first frequency, the signal source output power reaches the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP2, and the temperature sensing voltage is Vtemp2.

[0061] Based on LOOP1, LOOP2, Vtemp1, and Vtemp2, the optimal temperature compensation coefficient k is obtained:

[0062] ;

[0063] Where G is a constant determined by the operational amplifier gain and the system scaling factor, Vdac2 is the reference voltage of the second DAC, and k0 is 0.5 × Mdac, where Mdac is the full-scale code value of the DAC.

[0064] In some optional implementations, obtaining the reference voltage V0, the offset lookup table, and the temperature compensation coefficient further includes:

[0065] After obtaining the optimal temperature compensation coefficient k, the temperature compensation coefficient is set to the optimal temperature compensation coefficient k. The open-loop power control code value is set to the sum of the initial open-loop power control code value and the power control offset. By adjusting the power control offset, the output power of the signal source reaches the target power. At this time, the power control offset is the power control offset corresponding to the first frequency point and is recorded in the offset lookup table.

[0066] In some alternative implementations, the output voltage Vdac1:

[0067] Vdac1 = Vtemp × k / Mdac;

[0068] Where Vtemp is the temperature sensing voltage and Mdac is the DAC full-scale code value.

[0069] In some alternative implementations, the temperature-compensated voltage Vcomp:

[0070] Vcomp= Vtemp×(k-0.5×Mdac) / Mdac.

[0071] In some alternative implementations, the control voltage Vctrl is:

[0072] Vctrl = Vcomp + Vloop.

[0073] This application provides a control module for a signal source device, comprising:

[0074] The microcontroller is used to obtain the reference voltage V0, the offset lookup table, and the temperature compensation coefficient.

[0075] A temperature sensor is used to detect the ambient temperature and obtain the temperature sensing voltage Vtemp.

[0076] The first DAC is used to obtain the output voltage Vdac1 based on the temperature sensing voltage and the temperature compensation coefficient;

[0077] The microcontroller is also used to obtain the initial open-loop power control code value; and to look up the corresponding power control offset OFFSETi based on the current operating frequency and offset lookup table.

[0078] The second DAC is used to obtain the open-loop power control voltage Vloop based on the open-loop power control code value; wherein the open-loop power control code value is the sum of the initial open-loop power control code value and the power control offset.

[0079] The signal synthesis and conditioning circuit is used to obtain the temperature compensation voltage Vcomp based on the output voltage Vdac1; and to obtain the control voltage Vctrl of the voltage-controlled attenuator based on the temperature compensation voltage Vcomp and the open-loop power control voltage Vloop.

[0080] In some alternative implementations, the microcontroller is also used for:

[0081] Set the temperature compensation coefficient to the initial temperature compensation coefficient k0, and set the open-loop power control code value to the initial open-loop power control code value.

[0082] Under the condition that the signal source device is at the first ambient temperature and the first frequency, the output power of the signal source is made to reach the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP1, and the temperature sensing voltage is Vtemp1.

[0083] Under the condition that the signal source device is at the second ambient temperature and the first frequency, the signal source output power reaches the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP2, and the temperature sensing voltage is Vtemp2.

[0084] Based on LOOP1, LOOP2, Vtemp1, and Vtemp2, the optimal temperature compensation coefficient k is obtained:

[0085] ;

[0086] Where G is a constant determined by the operational amplifier gain and the system scaling factor, Vdac2 is the reference voltage of the second DAC, and k0 is 0.5 × Mdac, where Mdac is the full-scale code value of the DAC.

[0087] In some alternative implementations, the microcontroller is also used for:

[0088] After obtaining the optimal temperature compensation coefficient k, the temperature compensation coefficient is set to the optimal temperature compensation coefficient k. The open-loop power control code value is set to the sum of the initial open-loop power control code value and the power control offset. By adjusting the power control offset, the output power of the signal source reaches the target power. At this time, the power control offset is the power control offset corresponding to the first frequency point and is recorded in the offset lookup table.

[0089] This application provides a signal source device, including an oscillator, an amplifier, and a control module for any of the above signal source devices.

[0090] In one specific embodiment, the output voltage Vtemp of the temperature sensor is used as the reference voltage Vref of the first DAC. The microcontroller writes a 16-bit temperature compensation coefficient k to the first DAC. The output voltage of the first DAC is: Vdac1 = Vref × k / 65535.

[0091] The voltage Vdac1 is fed into the subsequent signal synthesis and conditioning circuit. One of the core functions of this circuit is to perform a subtraction operation, specifically, to synthesize Vdac1 with a fixed reference voltage (usually set to 0.5 × Vref). Therefore, the final output temperature compensation component voltage Vcomp of this circuit is: Vcomp = Vdac1 - 0.5 × Vref = Vref × ((k - 32768) / 65535).

[0092] Among them, 32768 is half of 65535, corresponding to the median code of a 16-bit DAC.

[0093] The key to this design lies in establishing a clear zero-compensation baseline: when the coefficient k=32768, Vcomp=0, and the temperature compensation channel has no effect. When k>32768, Vcomp changes positively with temperature; when k<32768, Vcomp changes negatively with temperature.

[0094] This embodiment determines the optimal k value and completes system calibration through a simplified two-step temperature experiment. This method requires only measurements at two temperature points to accurately fit the compensation curve, including:

[0095] Step 1: Determine the global temperature compensation coefficient k;

[0096] The goal of this step is to measure the inherent slope of the power change of the signal source itself with temperature, and to calculate the compensation coefficient k that can accurately counteract this slope.

[0097] Initialization: Place the device in a constant temperature chamber. The microcontroller sets the temperature compensation coefficient k to an initial value of 32768 (i.e., turns off the effect of temperature compensation) and sets an initial open-loop power control code value for DAC2.

[0098] First Ambient Temperature (T1) Calibration: Set the temperature of the constant temperature chamber to the first ambient temperature T1 (e.g., 15℃). After the temperature stabilizes, adjust only the initial open-loop power control code value to ensure that the output power of the signal source at the target frequency accurately reaches the target power. Record the code value sent by the microcontroller to DAC2 at this time, denoted as LOOP1.

[0099] Second Ambient Temperature (T2) Calibration and Data Recording: Change the temperature of the constant temperature chamber to the ambient temperature T2 (e.g., 25℃). After the temperature stabilizes, keep k=32768 unchanged and restore the initial open-loop power control code value to LOOP1. At this time, due to temperature drift, the output power will deviate from the target power. Adjust only the initial open-loop power control code value again to make the output power reach the target power again, and record the code value at this time, denoted as LOOP2.

[0100] Calculate the optimal value of k:

[0101] From T1 to T2, in order to maintain constant power, the required change in open-loop control voltage is: ΔLOOP = LOOP2 - LOOP1. This change is precisely the inherent temperature drift that needs to be offset by the temperature compensation channel.

[0102] The change in output voltage of the temperature compensation channel under the influence of the k value is:

[0103] ΔVcomp=[Vtemp2×(k-32768) / 65535]-[Vtemp1×(k-32768) / 65535].

[0104] Let ΔVcomp be numerically equal to and opposite in direction to the voltage change produced by ΔLOOP (to achieve compensation), that is:

[0105] ΔVcomp=-ΔLOOP / 65535×2.5×G;

[0106] Since Vtemp1 and Vtemp2 can be read or calculated by the microcontroller via the ADC, k can be determined by the following formula:

[0107] k=32768-[(LOOP2-LOOP1)×G×2.5] / (Vtemp2-Vtemp1);

[0108] Where G is a constant determined by the operational amplifier gain, system proportional gain, etc. The microcontroller can automatically perform this calculation and store the obtained optimal k value in non-volatile memory, and 2.5 is the reference voltage of the second DAC.

[0109] Step 2: Reset and calibrate the reference point power.

[0110] After determining the k value in step one, the temperature compensation channel will no longer output zero at the reference temperature T2 (unless k is exactly 32768), which will cause the system's initial operating point (power) to shift at T2. The purpose of this step is to eliminate this shift and ensure that the output power is still accurately the target power when using the new k value at T2.

[0111] Baseline state settings: Maintain the oven temperature at T2 (25℃). The microcontroller calls the stored optimal k value to configure the first DAC and sets the open-loop power control code value to LOOP2.

[0112] Offset Calibration: The output power is measured at this point. Since k ≠ 32768, the power will deviate from the target power. A power control offset OFFSETi is introduced. This offset can be a digital correction directly superimposed on the initial open-loop power control code value, or it can be an analog offset voltage introduced through an additional DAC channel. Adjusting this power control offset OFFSETi allows the output power to accurately reach the target power again at T2.

[0113] Frequency flatness calibration (extended): Repeat step two at different operating frequencies. Since the response of each frequency to temperature and control may vary slightly, an independent power control offset can be determined for each frequency and stored in the microcontroller's lookup table.

[0114] Workflow summary:

[0115] During normal operation, the microcontroller performs the following operations:

[0116] Read the current temperature sensor voltage Vtemp.

[0117] Based on the current operating frequency, read the corresponding initial open-loop power control code value and power control offset OFFSETi.

[0118] The optimal k value is called, and the temperature compensation voltage Vcomp is generated by the first DAC and subsequent circuits.

[0119] The final control signal is synthesized by converting the initial open-loop power control code value and the power control offset OFFSETi into a voltage Vloop, which is then superimposed with Vcomp in the operational amplifier circuit to generate the control voltage Vctrl applied to the voltage-controlled attenuator.

[0120] Vctrl drives the voltage-controlled attenuator, causing its attenuation to change dynamically, precisely offsetting the power drift caused by the current temperature, and achieving power stability across the entire temperature range.

[0121] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0122] Furthermore, the units described as separate components may or may not be physically separate. The components shown as units 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 units can be selected to achieve the purpose of this embodiment according to actual needs.

[0123] Furthermore, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0124] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.

[0125] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for temperature compensation of signal source power, characterized in that, The method, applied to a control module for a signal source device, includes: Using a microcontroller, the reference voltage V0, offset lookup table, and temperature compensation coefficient are obtained; A temperature sensor is used to detect the ambient temperature, and the temperature sensing voltage Vtemp is obtained. Using the first DAC, the output voltage Vdac1 is obtained based on the temperature sensing voltage and the temperature compensation coefficient; Using a microcontroller, the initial open-loop power control code value is obtained; based on the current operating frequency and offset lookup table, the corresponding power control offset OFFSETi is queried. Using the second DAC, the open-loop power control voltage Vloop is obtained based on the open-loop power control code value; where the open-loop power control code value is the sum of the initial open-loop power control code value and the power control offset. Using the signal synthesis and conditioning circuit, the temperature compensation voltage Vcomp is obtained based on the output voltage Vdac1; and the control voltage Vctrl of the voltage-controlled attenuator is obtained based on the temperature compensation voltage Vcomp and the open-loop power control voltage Vloop. The methods for obtaining the temperature compensation coefficient include: Using a microcontroller, the temperature compensation coefficient is set to the initial temperature compensation coefficient k0, and the open-loop power control code value is set to the initial open-loop power control code value. Under the condition that the signal source device is at the first ambient temperature and the first frequency, the output power of the signal source is made to reach the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP1, and the temperature sensing voltage is Vtemp1. Under the condition that the signal source device is at the second ambient temperature and the first frequency, the signal source output power reaches the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP2, and the temperature sensing voltage is Vtemp2. Based on LOOP1, LOOP2, Vtemp1, and Vtemp2, the optimal temperature compensation coefficient k is obtained: ; Where G is a constant determined by the operational amplifier gain and the system scaling factor, Vdac2 is the reference voltage of the second DAC, and k0 is 0.5 × Mdac, where Mdac is the full-scale code value of the DAC. After obtaining the optimal temperature compensation coefficient k, set the temperature compensation coefficient as the optimal temperature compensation coefficient k.

2. The method as described in claim 1, characterized in that, The acquisition of the reference voltage V0, the offset lookup table, and the temperature compensation coefficient includes: The open-loop power control code value is set to the sum of the initial open-loop power control code value and the power control offset. By adjusting the power control offset, the output power of the signal source reaches the target power. The power control offset at this time is the power control offset corresponding to the first frequency point, and it is recorded in the offset lookup table.

3. The method as described in claim 2, characterized in that, The output voltage Vdac1: Vdac1 = Vtemp × k / Mdac; Where Vtemp is the temperature sensing voltage and Mdac is the DAC full-scale code value.

4. The method as described in claim 2, characterized in that, The temperature compensation voltage Vcomp: Vcomp= Vtemp×(k-0.5×Mdac) / Mdac.

5. The method as described in claim 4, characterized in that, The control voltage Vctrl: Vctrl = Vcomp + Vloop.

6. A control module for a signal source device, characterized in that, include: The microcontroller is used to obtain the reference voltage V0, the offset lookup table, and the temperature compensation coefficient. A temperature sensor is used to detect the ambient temperature and obtain the temperature sensing voltage Vtemp. The first DAC is used to obtain the output voltage Vdac1 based on the temperature sensing voltage and the temperature compensation coefficient; The microcontroller is also used to obtain the initial open-loop power control code value; and to look up the corresponding power control offset OFFSETi based on the current operating frequency and offset lookup table. The second DAC is used to obtain the open-loop power control voltage Vloop based on the open-loop power control code value; wherein the open-loop power control code value is the sum of the initial open-loop power control code value and the power control offset. The signal synthesis and conditioning circuit is used to obtain the temperature compensation voltage Vcomp based on the output voltage Vdac1; and to obtain the control voltage Vctrl of the voltage-controlled attenuator based on the temperature compensation voltage Vcomp and the open-loop power control voltage Vloop. The microcontroller is also used for: Using a microcontroller, the temperature compensation coefficient is set to the initial temperature compensation coefficient k0, and the open-loop power control code value is set to the initial open-loop power control code value. Under the condition that the signal source device is at the first ambient temperature and the first frequency, the output power of the signal source is made to reach the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP1, and the temperature sensing voltage is Vtemp1. Under the condition that the signal source device is at the second ambient temperature and the first frequency, the signal source output power reaches the target power by adjusting the initial open-loop power control code value. At this time, the value of the initial open-loop power control code value is LOOP2, and the temperature sensing voltage is Vtemp2. Based on LOOP1, LOOP2, Vtemp1, and Vtemp2, the optimal temperature compensation coefficient k is obtained: ; Where G is a constant determined by the operational amplifier gain and the system scaling factor, Vdac2 is the reference voltage of the second DAC, and k0 is 0.5 × Mdac, where Mdac is the full-scale code value of the DAC. After obtaining the optimal temperature compensation coefficient k, set the temperature compensation coefficient as the optimal temperature compensation coefficient k.

7. The control module as described in claim 6, characterized in that, The microcontroller is also used for: The open-loop power control code value is set to the sum of the initial open-loop power control code value and the power control offset. By adjusting the power control offset, the output power of the signal source reaches the target power. The power control offset at this time is the power control offset corresponding to the first frequency point, and it is recorded in the offset lookup table.

8. A signal source device, characterized in that, It includes an oscillator, an amplifier, and a control module for a signal source device as described in claim 6 or 7.