Mismatch correction method and device of IQ signal, storage medium and electronic equipment

By iteratively adjusting the control word and dynamically adjusting the delay chain circuit delay, the problem of high complexity and low efficiency in IQ signal calibration is solved, and fast and accurate phase calibration is achieved, which is suitable for a variety of chips and scenarios.

CN118659782AActive Publication Date: 2024-09-17ZHUHAI HUGE IC CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410688381.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-17
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

The digital calibration method of IQ signal in the prior art has the problems of high complexity, low efficiency and large hardware size, resulting in long calibration time and insufficient accuracy.

Method used

Iteratively adjust the control word and dynamically change the delay of the delay chain circuit to adjust the phase difference of the I/Q signal in real time to achieve accurate phase calibration, reduce dependence on ADC sampling data, reduce errors, and confirm the final control word through statistical methods accuracy.

Benefits of technology

It achieves fast response, low error, and high-precision phase calibration, reduces hardware dependence, improves system stability and response speed, and is suitable for different types of chips and application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659782A
    Figure CN118659782A
Patent Text Reader

Abstract

The embodiment of the invention discloses an IQ signal mismatch correction method and device, a storage medium and electronic equipment, and relates to the field of signal processing. According to the invention, phase correction is directly carried out on the simulated IQ signal through iteration and correction methods, and the algorithm complexity is low, so that phase correction can be completed in a short time, and the response speed of the system is improved. And the method does not depend on a specific hardware platform or a chip manufacturing process, so that the method has relatively high applicability. The technical scheme can be adopted for calibration as long as the problem of phase deviation of I / Q signals exists in chips of different models or in different application scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of signal processing, and in particular to an IQ signal mismatch correction method, device, storage medium and electronic device. Background Art

[0002] Due to problems such as chip manufacturing process mismatch, even if the IQ phase difference is 90° during design, the phase deviation of the IQ signals may still be greater or less than 90° on the actual chip, so the phase of the IQ signal needs to be corrected. Figure 1 As shown, the prior art method for correcting the IQ signal is to perform digital correction through post-stage ADC sampling data, calculate the phase and amplitude of the ADC data, determine the phase mismatch and amplitude mismatch of the IQ signal, and then implement IQ correction through numerical compensation. However, the problem with this calibration method is that the correction time is long, and the algorithm complexity of the digital calibration device is high, resulting in a large area of ​​the digital calibration device. Summary of the invention

[0003] The embodiments of the present application provide a method, device, storage medium and electronic device for correcting mismatch of IQ signals, which can solve the problems of high complexity, low efficiency and large hardware volume in digital calibration in the prior art. The technical solution is as follows:

[0004] In a first aspect, an embodiment of the present application provides a method for correcting mismatch of an IQ signal, the method comprising:

[0005] Execute n iterations: instruct the delay chain circuit to perform delay processing on the specified channel according to the current control word; measure the phase difference between the I-channel signal and the Q-channel signal after the delay processing, convert the phase difference into a phase difference voltage, and compare the phase difference voltage with the reference voltage; if the phase difference voltage is less than the reference voltage, calculate the intermediate control word between the current control word and the maximum control word, and use the calculated intermediate control word as the next control word; if the phase difference voltage is greater than the reference voltage, calculate the intermediate control word between the current control word and the minimum control word, and use the calculated intermediate control word as the next control word; instruct the delay chain circuit to perform delay processing on the specified channel according to the instruction of the next control word; n represents the length of the control word;

[0006] After executing the nth iteration, the latest control word is obtained and the delay chain circuit is instructed to delay the designated channel according to the latest control word. After the delay processing, the phase difference between the I-path signal and the Q-path signal is measured, and the phase difference is converted into a phase difference voltage; the size between the phase difference voltage and the reference voltage is compared, and the number of the first comparison results and the second comparison results is counted within a preset time window. If the number of the first comparison results is greater than the number of the second comparison results, the latest control word is increased by 1 as the target control word; if the number of the second comparison results is greater than the number of the first comparison results, the latest control word is reduced by 1 as the target control word; the first comparison result indicates that the phase difference voltage is less than the reference voltage, and the second comparison result indicates that the phase difference voltage is greater than the reference voltage.

[0007] In a second aspect, an embodiment of the present application provides an IQ signal mismatch correction device, the device comprising:

[0008] The iteration unit is used to perform n iterations: instruct the delay chain circuit to perform delay processing on the designated channel according to the current control word; after the delay processing, measure the phase difference between the I-channel signal and the Q-channel signal, convert the phase difference into a phase difference voltage, and compare the phase difference voltage with a reference voltage; if the phase difference voltage is less than the reference voltage, calculate the intermediate control word between the current control word and the maximum control word, and use the calculated intermediate control word as the next control word; if the phase difference voltage is greater than the reference voltage, calculate the intermediate control word between the current control word and the minimum control word, and use the calculated intermediate control word as the next control word; instruct the delay chain circuit to perform delay processing on the designated channel according to the instruction of the next control word;

[0009] The correction unit is used to obtain the latest control word after executing the nth iteration and instruct the delay chain circuit to delay the designated channel according to the latest control word, measure the phase difference between the I-way signal and the Q-way signal after the delay processing, and convert the phase difference into a phase difference voltage; compare the size between the phase difference voltage and the reference voltage, and count the number of the first comparison results and the second comparison results within a preset time window. If the number of the first comparison results is greater than the number of the second comparison results, add 1 to the latest control word as the target control word; if the number of the second comparison results is greater than the number of the first comparison results, subtract 1 from the latest control word as the target control word; the first comparison result indicates that the phase difference voltage is less than the reference voltage, and the second comparison result indicates that the phase difference voltage is greater than the reference voltage.

[0010] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0011] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0012] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0013] The control word is adjusted in real time through iteration, and the delay of the delay chain circuit is dynamically changed according to the phase difference of the current I / Q two-way signal, so as to achieve precise control of the phase difference. This real-time and dynamic adjustment capability enables the technical solution to respond to system changes more quickly and ensure that the system always works in the best state. The adjustment of the phase difference is mainly dependent on the delay chain circuit and the control logic, without relying on the sampling data of the ADC. Therefore, compared with the IQ calibration achieved through numerical compensation, the technical solution has a lower dependence on hardware and reduces the error introduced by insufficient ADC performance or precision. By iterating and adjusting the control word, the technical solution can gradually approach the ideal phase difference and achieve high-precision phase calibration. After the iteration is completed, the accuracy of the final control word can be further confirmed by counting the number of comparison results within the preset time window. This statistical method can reduce the impact of single measurement errors and improve the stability of the system. At the same time, due to the low complexity of the algorithm, the phase calibration can be completed in a shorter time, which improves the response speed of the system. It does not depend on a specific hardware platform or chip manufacturing process, so it has strong applicability. Regardless of the chip model or application scenario, as long as there is a phase deviation problem between the I / Q signals, this technical solution can be used for calibration. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0015] Figure 1 It is a schematic diagram of digitally correcting an IQ signal through an ADC in the prior art;

[0016] Figure 2 is a flow chart of a mismatch correction method for an IQ signal provided in an embodiment of the present application;

[0017] Figure 3 It is a structural schematic diagram of an IQ signal mismatch correction device provided by the present application;

[0018] Figure 4 It is a structural schematic diagram of an electronic device provided by this application. DETAILED DESCRIPTION

[0019] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0020] It should be noted that the IQ signal mismatch correction method provided in the present application is generally performed by an IQ signal mismatch correction device. Accordingly, the IQ signal mismatch correction device is generally arranged in an electronic device.

[0021] See also Figure 1 , which is a flow chart of a method for correcting mismatch of an IQ signal according to an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:

[0022] S201, execute n iterations: instruct the delay chain circuit to perform delay processing on the designated channel according to the current control word; measure the phase difference between the I-channel signal and the Q-channel signal after the delay processing, convert the phase difference into a phase difference voltage, and compare the phase difference voltage with the reference voltage; if the phase difference voltage is less than the reference voltage, calculate the intermediate control word between the current control word and the maximum control word, and use the calculated intermediate control word as the next control word; if the phase difference voltage is greater than the reference voltage, calculate the intermediate control word between the current control word and the minimum control word, and use the calculated intermediate control word as the next control word; instruct the delay chain circuit to perform delay processing on the designated channel according to the instruction of the next control word.

[0023] Among them, the I channel is used to transmit the I channel signal, the Q channel is used to transmit the Q channel signal, and the delay chain circuit is set in the specified channel, and the specified channel is the I channel or the Q channel. The following takes the delay chain circuit set in the Q channel as an example for explanation.

[0024] 1. Initialization: Set the number of iterations n, where n represents the length of the control word of the delay chain circuit. Set the reference voltage V_ref, the maximum control word CW_max, the minimum control word CW_min, and the initial control word CW_current. For example, if the length of the control word set for the delay chain circuit is 6, then the minimum control word CW_min = 0, and the maximum control word CW_max = 63, that is, the delay chain circuit is set with a total of 64 levels of delay.

[0025] 2. Start iteration: For each iteration i (where i goes from 1 to n).

[0026] 3. Delay processing: instruct the delay chain circuit to perform delay processing on the Q channel according to the current control word CW_current.

[0027] 4. Phase difference measurement: After the Q channel delay processing, measure the phase difference between the I channel signal and the Q channel signal, and convert the measured phase difference into a phase difference voltage V_phase_diff.

[0028] 5. Compare the phase difference voltage with the reference voltage: Compare the phase difference voltage V_phase_diff with the reference voltage V_ref.

[0029] 6. Adjust the control word: If V_phase_diff is less than V_ref, do the following:

[0030] Calculate the middle control word CW_mid between the current control word CW_current and the maximum control word CW_max, and set CW_mid as the next control word CW_next.

[0031] If V_phase_diff is greater than V_ref, do the following:

[0032] Calculate the middle control word CW_mid between the current control word CW_current and the minimum control word CW_min.

[0033] Set CW_mid to the next control word CW_next.

[0034] 7. Update the current control word: Set the next control word CW_next to the current control word CW_current for use in the next iteration.

[0035] 8. Iteration completion check: Check whether the number of iterations n has been reached. If not, return to step 3 to continue the next iteration. If reached, end the iteration process.

[0036] 9. End of calibration: The control word CW_current finally used is the control word obtained after n times of iterative calibration, which is used for subsequent delay processing of the Q channel.

[0037] For example, assuming n=6, the minimum control word is 0, and the maximum control word is 63, the following is a specific execution step example to illustrate the above mismatch correction process:

[0038] Initialization: Set the number of iterations n = 6. Set the reference voltage V_ref (the specific value is determined by the system). Set the maximum control word CW_max = 63. Set the minimum control word CW_min = 0. Set the initial control word CW_current (for example, starting from the middle value, CW_current = 32).

[0039] Start iteration: For each iteration i (from 1 to 6): Iteration 1 (i=1): Use the current control word CW_current=32 to instruct the delay chain circuit to delay the Q channel. Measure the phase difference between the I-way signal and the Q-way signal and convert it into a phase difference voltage V_phase_diff. Compare V_phase_diff and V_ref. Assuming that V_phase_diff is less than V_ref, calculate the intermediate control word CW_mid=(32+63) / 2=47.5 (since the control word must be an integer, it can be rounded to 48 here). Set CW_mid=48 as the next control word CW_next.

[0040] Update the current control word: set CW_next=48 to CW_current for the next iteration.

[0041] Continue iteration: Repeat steps 3 and 4, adjusting the control word in each iteration according to the comparison result of V_phase_diff and V_ref until all 6 iterations are completed.

[0042] Example of iterative process:

[0043] The second iteration may result in CW_current=55 (if V_phase_diff is still less than V_ref).

[0044] The third iteration may result in CW_current=59 (continuing to reduce the phase difference).

[0045] The fourth iteration may find that V_phase_diff is greater than V_ref, so CW_current will be adjusted toward CW_min, for example, CW_current=52.

[0046] Subsequent iterations continue to adjust until a close match of the control word is found.

[0047] End of correction: After 6 iterations, the mismatch correction device obtains a control word CW_current that is closer to the best match. This control word will be used for subsequent Q channel delay processing.

[0048] In some embodiments of the present application, calculating an intermediate control word between a current control word and a maximum control word includes:

[0049] Taking an average of the current control word and the maximum control word, and rounding, rounding up, or rounding down the average to obtain an intermediate control word;

[0050] Calculate the intermediate control word between the current control word and the minimum control word, including:

[0051] The intermediate control word is obtained by taking the average of the current control word and the minimum control word, and rounding, rounding up or rounding down the average to obtain the intermediate control word. The intermediate control word obtained in this way is an integer.

[0052] In one or more possible embodiments, the number of gears of the delay chain circuit is related to the clock frequency and the calibration accuracy. Specifically, the number of gears of the delay chain circuit can be calculated according to the following formula:

[0053] delay_t=α / 4f, delay_num=(1 / 4f-T) / delay_t, f is the clock frequency of the I / Q channel, a is the required calibration accuracy, which can be 1 / 1000 or 1 / 10000, T is the basic delay difference of the I / Q channel, which should be less than 1 / 4f; delay_t is the delay amount of each gear, and delay_num is the number of gears in the delay chain.

[0054] S202, after executing the nth iteration, obtain the latest control word and instruct the delay chain circuit to delay the specified channel according to the latest control word, measure the phase difference between the I-path signal and the Q-path signal after the delay processing, and convert the phase difference into a phase difference voltage; compare the phase difference voltage with the reference voltage, and count the number of first comparison results and second comparison results within a preset time window, if the number of first comparison results is greater than the number of second comparison results, add 1 to the latest control word as the target control word; if the number of second comparison results is greater than the number of first comparison results, subtract 1 from the latest control word as the target control word.

[0055] The first comparison result indicates that the phase difference voltage is less than the reference voltage, and the second comparison result indicates that the phase difference voltage is greater than the reference voltage. After n iterations of S201, the latest control word CW_latest is obtained, and CW_latest is used as the control word to instruct the delay chain circuit to perform delay processing on the specified channel again. After the delay processing, the phase difference between the I-channel signal and the Q-channel signal is measured and converted into a phase difference voltage V_final_phase_diff.

[0056] Within the preset time window T_window, the size between the phase difference voltage and the reference voltage is repeatedly compared multiple times. In each comparison, if V_final_phase_diff is less than V_ref, it is recorded as the first comparison result; if V_final_phase_diff is greater than V_ref, it is recorded as the second comparison result. The number of the first comparison results and the second comparison results is counted, and recorded as Count_Less and Count_Greater respectively. Compare Count_Less and Count_Greater: If Count_Less is greater than Count_Greater, it means that in most cases, the phase difference voltage is too small, so CW_latest is added by 1 as the target control word CW_target. If Count_Greater is greater than Count_Less, it means that in most cases, the phase difference voltage is too large, so CW_latest is subtracted by 1 as the target control word CW_target. The determined target control word CW_target is output, or it is applied to the delay chain circuit to achieve precise delay adjustment of the specified channel.

[0057] After the above steps, the mismatch correction device finds a target control word CW_target, which can keep the phase difference voltage near the reference voltage for a long time, thereby achieving accurate correction of the phase difference between the I-channel and Q-channel signals.

[0058] In some embodiments of the present application, a comparator is used to compare the phase difference voltage with a reference voltage. If the phase difference voltage is smaller than the reference voltage, the comparator outputs a low level 0; if the phase difference voltage is larger than the reference voltage, the comparator outputs a high level 1, that is, the first comparison result is that the comparator outputs a low level, and the second comparison result is that the comparator outputs a high level.

[0059] Implementing the embodiments of the present application can bring the following beneficial effects:

[0060] The control word is adjusted in real time through iteration, and the delay of the delay chain circuit is dynamically changed according to the phase difference of the current I / Q two-way signal, so as to achieve precise control of the phase difference. This real-time and dynamic adjustment capability enables the technical solution to respond to system changes more quickly and ensure that the system always works in the best state. The adjustment of the phase difference is mainly dependent on the delay chain circuit and the control logic, without relying on the sampling data of the ADC. Therefore, compared with the IQ calibration achieved through numerical compensation, the technical solution has a lower dependence on hardware and reduces the error introduced by insufficient ADC performance or precision. By iterating and adjusting the control word, the technical solution can gradually approach the ideal phase difference and achieve high-precision phase calibration. After the iteration is completed, the accuracy of the final control word can be further confirmed by counting the number of comparison results within the preset time window. This statistical method can reduce the impact of single measurement errors and improve the stability of the system. At the same time, due to the low complexity of the algorithm, the phase calibration can be completed in a shorter time, which improves the response speed of the system. It does not depend on a specific hardware platform or chip manufacturing process, so it has strong applicability. Regardless of the chip model or application scenario, as long as there is a phase deviation problem between the I / Q signals, this technical solution can be used for calibration.

[0061] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0062] See also Figure 3 , which shows a schematic diagram of the structure of an IQ signal mismatch correction device provided by an exemplary embodiment of the present application, hereinafter referred to as device 3. The device 3 can be implemented as all or part of an electronic device through software, hardware or a combination of both. The device 3 includes: an iteration unit 301 and a correction unit 302.

[0063] The iteration unit 301 is used to perform n iterations: instruct the delay chain circuit to perform delay processing on the specified channel according to the current control word; measure the phase difference between the I-channel signal and the Q-channel signal after the delay processing, convert the phase difference into a phase difference voltage, and compare the phase difference voltage with a reference voltage; if the phase difference voltage is less than the reference voltage, calculate the intermediate control word between the current control word and the maximum control word, and use the calculated intermediate control word as the next control word; if the phase difference voltage is greater than the reference voltage, calculate the intermediate control word between the current control word and the minimum control word, and use the calculated intermediate control word as the next control word; instruct the delay chain circuit to perform delay processing on the specified channel according to the instruction of the next control word;

[0064] The correction unit 302 is used to obtain the latest control word after executing the nth iteration and instruct the delay chain circuit to delay the specified channel according to the latest control word, measure the phase difference between the I-channel signal and the Q-channel signal after the delay processing, and convert the phase difference into a phase difference voltage; compare the size between the phase difference voltage and the reference voltage, and count the number of first comparison results and second comparison results within a preset time window. If the number of first comparison results is greater than the number of second comparison results, add 1 to the latest control word as the target control word; if the number of second comparison results is greater than the number of first comparison results, subtract 1 from the latest control word as the target control word; the first comparison result indicates that the phase difference voltage is less than the reference voltage, and the second comparison result indicates that the phase difference voltage is greater than the reference voltage.

[0065] In one or more possible embodiments, the calculating the intermediate control word between the current control word and the maximum control word includes:

[0066] Taking an average of the current control word and the maximum control word, and rounding, rounding up, or rounding down the average to obtain an intermediate control word;

[0067] The step of calculating an intermediate control word between the current control word and the minimum control word includes:

[0068] An average of the current control word and the minimum control word is taken, and the average is rounded, rounded up, or rounded down to obtain an intermediate control word.

[0069] In one or more possible embodiments, the initialized control word configured in the delay chain circuit is determined by an intermediate control word calculated based on 0 and a maximum control word.

[0070] In one or more possible embodiments, the phase difference voltage and the reference voltage are compared by a comparator. When the output of the comparator is low, it indicates that the phase difference voltage is less than the reference voltage; when the output of the comparator is high, it indicates that the phase difference voltage is greater than the reference voltage.

[0071] In one or more possible embodiments, the number of gears of the delay chain circuit is related to the clock frequency and the calibration accuracy, and the number of gears of the delay chain circuit is calculated according to the following formula:

[0072] delay_t=α / 4f, delay_num=(1 / 4f-T) / delay_t, f is the clock frequency of the I / Q channel, a is the required calibration accuracy, which can be 1 / 1000 or 1 / 10000, T is the basic delay difference of the I / Q channel, which should be less than 1 / 4f; delay_t is the delay amount of each gear, and delay_num is the number of gears in the delay chain.

[0073] It should be noted that, when the device 3 provided in the above embodiment executes the mismatch correction method of the IQ signal, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above functions. In addition, the mismatch correction device for the IQ signal provided in the above embodiment and the mismatch correction method embodiment of the IQ signal belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0074] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0075] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 2 The specific description of the illustrated embodiment will not be repeated here.

[0076] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the IQ signal mismatch correction method described in the above embodiments.

[0077] See also Figure 4 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .

[0078] The communication bus 402 is used to realize the connection and communication between these components.

[0079] The user interface 403 may include a display screen (Display) and a camera (Camera), and the optional user interface 403 may also include a standard wired interface and a wireless interface.

[0080] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0081] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts within the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.

[0082] Among them, the memory 405 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 405 may optionally be at least one storage device located away from the aforementioned processor 401. As Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program.

[0083] exist Figure 4In the electronic device 400 shown, the user interface 403 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 401 can be used to call the application stored in the memory 405 and specifically execute the following Figure 2 The specific process can be referred to Figure 2 As shown, no further description is given here.

[0084] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0085] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for correcting mismatch of an IQ signal, characterized in that: include: Execute n iterations: instruct the delay chain circuit to perform delay processing on the specified channel according to the current control word; measure the phase difference between the I-channel signal and the Q-channel signal after the delay processing, convert the phase difference into a phase difference voltage, and compare the phase difference voltage with the reference voltage; If the phase difference voltage is less than the reference voltage, an intermediate control word between the current control word and the maximum control word is calculated, and the calculated intermediate control word is used as the next control word; If the phase difference voltage is greater than the reference voltage, an intermediate control word between the current control word and the minimum control word is calculated, and the calculated intermediate control word is used as the next control word; Instructing the delay chain circuit to perform delay processing on the designated channel according to the instruction of the next control word; n represents the length of the control word; After executing the nth iteration, the latest control word is obtained and the delay chain circuit is instructed to perform delay processing on the designated channel according to the latest control word. After the delay processing, the phase difference between the I-path signal and the Q-path signal is measured, and the phase difference is converted into a phase difference voltage; the magnitude between the phase difference voltage and the reference voltage is compared, and the number of the first comparison results and the second comparison results is counted within a preset time window. If the number of the first comparison results is greater than the number of the second comparison results, the latest control word is increased by 1 as the target control word; If the number of the second comparison result is greater than the number of the first comparison result, the latest control word is reduced by 1 as the target control word; The first comparison result indicates that the phase difference voltage is smaller than the reference voltage, and the second comparison result indicates that the phase difference voltage is larger than the reference voltage.

2. The method according to claim 1, characterized in that The calculating of the intermediate control word between the current control word and the maximum control word comprises: Taking an average of the current control word and the maximum control word, and rounding, rounding up, or rounding down the average to obtain an intermediate control word; The step of calculating an intermediate control word between the current control word and the minimum control word includes: An average of the current control word and the minimum control word is taken, and the average is rounded, rounded up, or rounded down to obtain an intermediate control word.

3. The method according to claim 1 or 2, characterized in that: The initialized control word configured in the delay chain circuit is determined by an intermediate control word calculated based on 0 and the maximum control word.

4. The method according to claim 3, characterized in that The phase difference voltage is compared with the reference voltage by a comparator. When the output of the comparator is low, it indicates that the phase difference voltage is smaller than the reference voltage; when the output of the comparator is high, it indicates that the phase difference voltage is larger than the reference voltage.

5. The method according to claim 1, 2 or 4, characterized in that: The number of gears in the delay chain circuit is related to the clock frequency and the calibration accuracy. The number of gears in the delay chain circuit is calculated according to the following formula: delay_t=α / 4f, delay_num=(1 / 4f-T) / delay_t, f is the clock frequency of the I / Q channel, a is the required calibration accuracy, which can be 1 / 1000 or 1 / 10000, T is the basic delay difference of the I / Q channel, which should be less than 1 / 4f; delay_t is the delay amount of each gear, and delay_num is the number of gears in the delay chain.

6. An IQ signal mismatch correction device, characterized in that: include: The iteration unit is used to perform n iterations: instruct the delay chain circuit to perform delay processing on the designated channel according to the current control word; after the delay processing, the phase difference between the I-channel signal and the Q-channel signal is measured, the phase difference is converted into a phase difference voltage, and the size between the phase difference voltage and the reference voltage is compared; If the phase difference voltage is less than the reference voltage, an intermediate control word between the current control word and the maximum control word is calculated, and the calculated intermediate control word is used as the next control word; If the phase difference voltage is greater than the reference voltage, an intermediate control word between the current control word and the minimum control word is calculated, and the calculated intermediate control word is used as the next control word; Instructing the delay chain circuit to perform delay processing on the designated channel according to the instruction of the next control word; A correction unit is used to obtain the latest control word after executing the nth iteration and instruct the delay chain circuit to delay the designated channel according to the latest control word, measure the phase difference between the I-channel signal and the Q-channel signal after the delay processing, and convert the phase difference into a phase difference voltage; compare the magnitude between the phase difference voltage and the reference voltage, count the number of the first comparison results and the second comparison results within a preset time window, and if the number of the first comparison results is greater than the number of the second comparison results, add 1 to the latest control word as the target control word; If the number of the second comparison result is greater than the number of the first comparison result, the latest control word is reduced by 1 as the target control word; The first comparison result indicates that the phase difference voltage is smaller than the reference voltage, and the second comparison result indicates that the phase difference voltage is larger than the reference voltage.

7. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 5.

8. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Adaptive non-linearity identification and compensation using orthogonal functions in a mixed signal circuit

    CN113169738A

  • IQ signal calibration method and system, and storage medium

    CN113676432A

  • IQ channel correction method, electronic equipment and computer storage medium

    CN115242256A

  • Methods and apparatus for low jitter fractional output dividers

    US11500336B1

  • Signal time delay adjustment method and device, and computer storage medium

    WO2017012410A1