Calibration circuit, method, chip and electronic device for phase-locked loop
By designing the calibration circuit in the phase-locked loop, the delay and gain calibration of the modulation path in the two-point modulation phase-locked loop are realized, which solves the problem of modulation signal rate exceeding the filter bandwidth and path mismatch, and improves signal quality and calibration. efficiency.
Patent Information
- Application Number
- CN202111633215.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-12-29
AI Technical Summary
In a two-point modulation transmitter of a phase-locked loop, the rate of the modulation signal exceeds the loop filter bandwidth, resulting in the attenuation of high-frequency components, and due to the influence of frequency, temperature, and process, there is a mismatch in delay and gain between modulation paths. Deteriorates the transmitter's EVM indicator.
A calibration circuit is designed to realize delay and gain calibration of two modulation paths through the transmission unit, duty cycle detection unit, delay calibration unit and polarity detection unit, and uses a lookup table to save the calibration value to reduce calibration time.
It effectively reduces the calibration time, improves the modulation rate and signal quality of the phase-locked loop, reduces the EVM index of the transmitter, and is suitable for application scenarios with limited power consumption.
Smart Images

Figure CN114448427B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of integrated circuits, and in particular to a calibration circuit, method, chip and electronic equipment for a phase-locked loop. Background Art
[0002] Phase Locked Loop (PLL) is a negative feedback control system that uses the voltage generated by phase synchronization to tune the voltage-controlled oscillator to generate the target frequency. Phase Locked Loops are widely used in various clock generation modules, such as clock recovery circuits, RF transceivers, etc. Compared with mixer-based transmitters, the two-point modulation transmitter based on the phase-locked loop has a simple circuit architecture and low power consumption. It is more suitable for power-constrained application scenarios such as the Internet of Things (IoT) and wearable devices, and supports constant envelope modulation methods such as FSK, PSK, etc.
[0003] The two-point modulation transmitter based on the phase-locked loop mainly includes: a two-point modulation phase-locked loop (Two point modulation PLL) and a power amplifier (Power Ampilifer, PA). This type of transmitter architecture is suitable for constant envelope modulation. There is no information on the amplitude, only frequency / phase information. The transmitted phase information is modulated into the phase-locked loop by controlling the digital frequency division ratio in the phase-locked loop. The voltage-controlled oscillator outputs the modulated RF signal and transmits it through the PA. The transmitter architecture is simple, and the PA can adopt a switch-type structure with high efficiency. However, since the rate of the modulation signal is greater than the bandwidth of the loop filter in the PLL, the high-frequency components in the modulation signal will be attenuated by the loop filter, making the modulation rate of the phase-locked loop unable to break through the filter bandwidth (usually 100kHz-200kHz) limit. In addition, in actual applications, due to the influence of the operating frequency, temperature, and process of the phase-locked loop, there is a mismatch in the delay and gain between the two modulation paths, which deteriorates the transmitter EVM index. Summary of the invention
[0004] The purpose of an embodiment of the present invention is to provide a calibration circuit, method, chip, and electronic device for a phase-locked loop. The calibration circuit for the phase-locked loop utilizes minimal additional resource overhead to achieve gain calibration and delay calibration of two modulation paths in a two-point modulation phase-locked loop, thereby reducing the calibration time.
[0005] The calibration circuit includes: a transmission unit, including a first branch for transmitting a first signal, a second branch for transmitting a second signal, and a third branch for transmitting a third signal, wherein the first signal is an input signal, the second signal is a high-pass signal of the input signal after passing through the second branch, and the third signal is a low-pass signal of the input signal after passing through the third branch; a duty cycle detection unit, used to detect a first duty cycle after the first signal and the second signal are XORed and a second duty cycle after the first signal and the third signal are XORed; a delay calibration unit, used to determine a delay compensation value according to the first duty cycle and the second duty cycle, and compensate for the delay of the second branch according to the delay compensation value.
[0006] Optionally, the first branch is provided with a first delay device for generating a configurable delay and estimating the transmission delay of the second branch and the third branch; the second branch is provided with a second delay device for compensating the delay of the second branch according to the delay compensation value; the second branch and the third branch share a low-pass filter.
[0007] Optionally, determining the delay compensation value according to the first duty cycle and the second duty cycle includes: opening the first branch and the second branch, closing the third branch, adjusting the first delay device, and if the first duty cycle is greater than the duty cycle threshold, the duration of the first delay device is the first delay t1; opening the first branch and the third branch, closing the second branch, adjusting the first delay device, and if the second duty cycle is less than the duty cycle threshold, the duration of the first delay device is the second delay t2; determining the delay compensation value t3 according to the first delay t1 and the second delay t2: t3 = |t1-t2|; the delay compensation value t3 is saved in the lookup table LUT.
[0008] Optionally, the calibration circuit further includes: a polarity detection unit, used to detect the change polarity of the second signal and the third signal; and a gain calibration unit, used to adjust the gain of the second branch according to the change polarity of the second signal and the third signal.
[0009] Optionally, the second branch is provided with a multiplier for adjusting the gain of the second branch.
[0010] Optionally, if the second signal and the third signal output AC signals after passing through the polarity detection unit, and the polarity of the AC signal is opposite to that of the input signal, the gain of the second branch is greater than the gain of the third branch, and the gain of the second branch is reduced; if the second signal and the third signal output AC signals after passing through the polarity detection unit, and the polarity of the AC signal is the same as that of the input signal, the gain of the second branch is less than the gain of the third branch, and the gain of the second branch is increased; if the second signal and the third signal output DC signals after passing through the polarity detection unit, the gain of the second branch is equal to the gain of the third branch, and gain compensation is completed.
[0011] Optionally, if gain compensation is completed, the gain is saved in a lookup table LUT.
[0012] On the other hand, the present invention provides a calibration method for a phase-locked loop, the calibration method comprising: acquiring a first signal, a second signal and a third signal, the first signal being an input signal, the second signal being a high-pass signal in the input signal, and the third signal being a low-pass signal in the input signal; detecting a first duty cycle after XORing the first signal and the second signal and a second duty cycle after XORing the first signal and the third signal; determining a delay compensation value based on the first duty cycle and the second duty cycle; and compensating for the delay of the second signal based on the delay compensation value.
[0013] Optionally, the first signal is a reference signal used to determine the delay between the second signal and the third signal.
[0014] Optionally, determining the delay compensation value based on the first duty cycle and the second duty cycle includes: obtaining the first signal and the second signal, adjusting the delay length of the first signal, and if the first duty cycle is less than the duty cycle threshold, the delay length of the first signal is the first delay t1; obtaining the first signal and the third signal, adjusting the delay length of the first signal, and if the second duty cycle is less than the duty cycle threshold, the delay length of the first signal is the second delay t2; determining the delay compensation value t3 based on the first delay t1 and the second delay t2: t3 = |t1-t2|.
[0015] Optionally, the calibration method further includes: detecting the changing polarities of the second signal and the third signal; and adjusting the gain of the second signal according to the changing polarities of the second signal and the third signal.
[0016] Optionally, polarity detection is performed on the second signal and the third signal. If the output is an AC signal, and the polarity of the AC signal is opposite to that of the input signal, the gain of the second signal is greater than the gain of the third signal, and the gain of the second signal is reduced; if the output is an AC signal, and the polarity of the AC signal is the same as that of the input signal, the gain of the second signal is less than the gain of the third signal, and the gain of the second signal is increased; if the output is a DC signal, the gain of the second signal is equal to the gain of the third signal, and gain compensation is completed.
[0017] In another aspect, the present invention provides a chip, which comprises at least one of the calibration circuits described above.
[0018] On the other hand, the present invention provides an electronic device, which at least includes the chip mentioned above.
[0019] The calibration circuit for a phase-locked loop of the present invention comprises: a transmission unit, comprising a first branch for transmitting a first signal, a second branch for transmitting a second signal, and a third branch for transmitting a third signal, wherein the first signal is an input signal, the second signal is a high-pass signal of the input signal after passing through the second branch, and the third signal is a low-pass signal of the input signal after passing through the third branch; a duty cycle detection unit, for detecting a first duty cycle after the first signal and the second signal are XORed, and a second duty cycle after the first signal and the third signal are XORed; a delay calibration unit, for determining a delay compensation value according to the first duty cycle and the second duty cycle, and compensating for the delay of the second branch according to the delay compensation value. The calibration circuit realizes effective delay calibration of a two-point modulation phase-locked loop.
[0020] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0022] Figure 1 It is a gain delay mismatch diagram of a two-point modulation phase-locked loop in the prior art;
[0023] Figure 2 It is a schematic diagram of the gain delay calibration principle of the present invention;
[0024] Figure 3 is a calibration circuit diagram for a phase-locked loop of the present invention;
[0025] Figure 4 is a delay calibration flow chart of the present invention;
[0026] Figure 5 is a gain calibration flow chart of the present invention;
[0027] Figure 6 is a polarity detection circuit diagram of the present invention;
[0028] Figure 7 It is a timing diagram of gain delay calibration of the present invention. DETAILED DESCRIPTION
[0029] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0030] Figure 1 is a two-point modulation phase-locked loop gain delay mismatch diagram in the prior art, such as Figure 1 As shown, in the existing two-point modulation scheme, the frequency of the VCO is controlled by the output voltage of the DAC and the LPF. Since the digital baseband signal passes through different circuit modules from the modulator (MOD) through the high-pass (high path) and low-pass (low path) paths to the VCO control end, there is a difference in transmission delay when the same baseband signal reaches the VCO through these two paths. At the same time, when the VCO receives a "1" transmitted from the high-pass (highpath) path, the VCO frequency will increase. Due to the negative feedback characteristics of the PLL, when the external disturbance causes the VCO frequency to increase, the low-pass (low path) path will cause the LPF (low-pass filter) voltage to decrease to offset the increased VCO frequency, so that the VCO output frequency tends to remain unchanged. Since the digital baseband signal passes through different circuit modules from the modulator through the two paths to the VCO control end, the same baseband signal can cause a difference in the VCO frequency change value, that is, the gain is not matched.
[0031] In order to solve the existing gain delay mismatch problem, the present invention proposes a gain delay calibration principle. Figure 2 Schematic diagram of the gain delay calibration principle of the present invention. Figure 2 As shown in the figure, the DELAY (delay) modules t1 and t2 represent the transmission delay of the modulated signal from different paths to the LPF (low-pass filter), the multiplier represents the gain k1 and k2 of the different paths to the LPF (low-pass filter), the black solid line represents the actual waveform, and the dotted line represents the modulator output waveform. If the transmission delay of each circuit module is not considered and only the gain is considered, assuming that the modulated signal is a single-frequency sine wave sin(wt), the modulated signal passing through the high-pass path "+" will cause a "-" Asin(ωt) change in the LPF (low-pass filter), that is, a change of opposite polarity; and the modulated signal passing through the low-pass path "+" will cause a "+" Bsin(ωt) change in the LPF, that is, a change of the same polarity. The changes caused by the two paths are superimposed on the LPF to obtain the actual LPF change signal (BA)sin(ωt). There are only three results after superposition, including: the same polarity as sin(ωt), the opposite polarity as sin(ωt), or 0 after superposition, so the relative size relationship of the two path gains can be obtained by detecting the polarity of the LPF voltage change.
[0032] Figure 3 is a calibration circuit diagram for a phase-locked loop of the present invention, such as Figure 3As shown, the calibration circuit includes: a transmission unit, including a first branch for transmitting a first signal, a second branch for transmitting a second signal, and a third branch for transmitting a third signal, wherein the first signal is an input signal, the second signal is a high-pass signal of the input signal after passing through the second branch, and the third signal is a low-pass signal of the input signal after passing through the third branch; a duty cycle detection unit, used to detect a first duty cycle after the first signal and the second signal are XORed, and a second duty cycle after the first signal and the third signal are XORed; a delay calibration unit, used to determine a delay compensation value according to the first duty cycle and the second duty cycle, and compensate for the delay of the second branch according to the delay compensation value. The calibration circuit realizes effective delay calibration of a two-point modulation phase-locked loop. The input signal is a signal containing modulation information required by a two-point modulation PLL generated by a MOD modulator, the high-pass signal is a signal of the input signal reaching the LPF input end after passing through the second branch, and the low-pass signal is a signal of the input signal reaching the LPF input end after passing through the third branch.
[0033] According to a preferred implementation, the first branch at least includes: a switch (SW0), a first delay (Delay) connected in sequence, wherein the first delay is used to generate a configurable delay and estimate the transmission delay of the second branch and the third branch; the second branch at least includes: a switch (SW1), a second delay (Delay), a multiplier, an LPF (low-pass filter), and a polarity detection circuit (Polarity Detector) connected in sequence, wherein the second delay is used to compensate for the delay of the second branch according to the delay compensation value; the third branch at least includes: a switch (SW2), a multiplier, an LPF (low-pass filter), and a polarity detection circuit (Polarity Detector) connected in sequence. Preferably, the second branch and the third branch can share a low-pass filter (i.e. Figure 1 The first delay device and the second delay device may be digitally controlled delay devices.
[0034] The method for determining the delay compensation value according to the first duty cycle and the second duty cycle includes: opening the first branch and the second branch, closing the third branch, adjusting the first delay device, and if the first duty cycle is greater than the duty cycle threshold, the duration of the first delay device is the first delay t1; opening the first branch and the third branch, closing the second branch, adjusting the first delay device, and if the second duty cycle is less than the duty cycle threshold, the duration of the first delay device is the second delay t2; determining the delay compensation value t3 according to the first delay t1 and the second delay t2: t3=|t1-t2|; and saving the delay compensation value t3 in a lookup table LUT.
[0035] Due to the delay mismatch, the signal superimposed on the LPF (low-pass filter) is This is a waveform whose instantaneous polarity changes with time, and no useful information can be obtained. 0 -φ 1 The compensation is performed by the digitally controlled delay unit, and the output digital baseband signal of the modulator is delayed by φ 0 -φ 1 , which can be simplified to a three-value problem. Specifically, the calibration circuit also includes: a polarity detection unit, which is used to detect the change polarity of the second signal and the third signal; a gain calibration unit, which is used to adjust the gain of the second branch according to the change polarity of the second signal and the third signal. The second branch is provided with a multiplier, which is used to adjust the gain of the second branch. If the second signal and the third signal output an AC signal after passing through the polarity detection unit, and the polarity of the AC signal is opposite to that of the input signal, the gain of the second branch is greater than the gain of the third branch, and the gain of the second branch is reduced; if the second signal and the third signal output an AC signal after passing through the polarity detection unit, and the polarity of the AC signal is the same as that of the input signal, the gain of the second branch is less than the gain of the third branch, and the gain of the second branch is increased; if the second signal and the third signal output a DC signal after passing through the polarity detection unit, the gain of the second branch is equal to the gain of the third branch, and the gain compensation is completed. If the gain compensation is completed, the gain is saved to the lookup table LUT.
[0036] Figure 3 The FSM is a finite state machine, which is used to obtain the delay duration and gain value of the signal after the duty cycle detection circuit (Duty Detector), and save the final delay duration and gain value to the LUT (lookup table), so that the subsequent circuit can directly read the delay duration and gain value, and use them in the second delay device and the multiplier in the second branch for delay and gain compensation.
[0037] Figure 3MOD is a modulator, and its output is connected to the left ends of switches SW0, SW1, and SW2, and is used to generate the modulation signal required by the two-point modulation PLL. The right end of SW0 is connected to the digital control delay unit Delay, and the control end of the Delay unit is connected to the FSM output through SW5, and the output end is connected to the upper branch of the XOR gate. The right end of SW1 is connected to another Delay unit, and the output of the Delay unit passes through the high-pass branch HP. The output of HP is multiplied by the coefficient through the multiplier as the input of the LPF. At this time, the phase difference between the LPF input signal and the output signal of MOD is 180°. At the same time, the right end of SW2 is connected to the low-pass branch LP, and the output of LP is multiplied by the coefficient through the multiplier as another input of the LPF. The phase difference between the LPF input signal and the output signal of MOD is 0°. The output of LPF is connected to the polarity detector, that is, the modulation signal output by MOD passes through the HP path and the LP path to the polarity detection module. The signal is in anti-phase relationship, with a phase difference of 180°. The output of the Polarity detector module is connected to the lower branch of the XOR gate, the output of the XOR gate is connected to the input of the Duty Detector circuit, and the output of the Duty Detector circuit is connected to the input of the FSM. The output of the FSM is connected to the Delay unit of the SW0 branch through SW5, and is connected to one input of the data selector. At the same time, the signal is connected to the other input of the data selector through the LUT. The output of the data selector is connected to the control end of the Delay unit of the SW1 branch through SW3, and is connected to the coefficient control end of the multiplier of the HP branch through SW4.
[0038] The polarity detection circuit (Polarity Detector) is used to detect the instantaneous polarity change of the LPF voltage. The input signal is amplified in turn, and the analog-to-digital conversion is used to obtain a digital signal consistent with the polarity of the LPF voltage; the first delay device is used to perform a specific delay on the input signal according to the input delay control word; the XOR gate is used to extract the duty cycle information of the delayed modulation signal and the polarity detection signal; the duty cycle detection unit is used to quantify the duty cycle information, and the sliding average circuit is used to obtain the duty cycle quantization information within multiple consecutive cycles, filter out the burrs generated by the XOR gate, and obtain smooth duty cycle information; the finite state machine FSM performs state jumps according to the actual duty cycle according to the two duty cycle judgment thresholds set, and controls the multiplier and the digital control delay unit to increase or decrease. Since there is a 180° phase difference between the HP path and the modulation signal, the duty cycle detected by the FSM is set to 90%. When it is detected that the duty cycle of the XOR gate output signal is greater than 90%, it means that the delay generated by the first delay device is the same as the actual delay t1 of the HP path. Since there is a 0° phase difference between the LP path and the modulation signal, the duty cycle of the FSM detection is set to 10%. When the duty cycle of the XOR gate output signal is detected to be less than 10%, it indicates that the delay generated by the digital control delay unit is the same as the actual delay t2 of the LP path. Preferably, the gain delay calibration scheme proposed by the present invention first performs delay calibration and then performs gain calibration.
[0039] The polarity detection circuit (Polarity Detector) is an analog-to-digital conversion interface, which is composed of: a unit gain amplifier at the input end, which is used to filter out high-frequency noise in the loop filter signal and collect LPF signals; a mid-end amplifier, which is used to amplify the collected modulation signal; a dynamic comparator, which is used to judge the modulation signal and convert it into a digital signal; an output buffer, which is used to shape the digital signal. The polarity detection circuit also includes a reference voltage generation circuit; the reference voltage generation circuit is used to generate the reference voltage required by the active filter, amplifier, and dynamic comparator after the chip is powered on. The duty cycle detection module is used to detect the duty cycle of the signal output by the XOR gate, and the relative size relationship of the compensation delay can be obtained through the duty cycle. The duty cycle detection module also includes a sliding average circuit, which is used to filter out the burrs output by the duty cycle detection module. The digital state machine FSM is used to complete the state jump according to the duty cycle detection result, and control the control word change of the digital control delay unit and the multiplication unit. The lookup table LUT is used to save the obtained calibration value and support the rapid acquisition of the calibration value during subsequent channel switching.
[0040] Figure 4 is a delay calibration flow chart of the present invention, combined with Figure 3 and 4As shown, (1) the delay of the first branch HP path is detected, SW0, SW1, and SW5 are closed, and the state machine determines whether the delay of the digital control delay Delay is equal to the HP path delay t1; if not, the state machine adjusts the delay of the digital control delay Delay and performs the above judgment again; if equal, the estimated value of the HP path delay t1 is completed. Since there is a 180° phase difference between the HP path and the modulation signal, the duty cycle of the FSM detection is set to 90%. When the duty cycle of the XOR gate output signal is detected to be greater than 90%, it means that the delay generated by the digital control delay unit is the same as the actual delay t1 of the HP path.
[0041] (2) Detect the delay of the second branch LP path, SW0, SW2, SW5 are closed, and the state machine determines whether the delay of the digital control delay Delay is equal to the LP path delay t2; if not, the state machine adjusts the delay of the digital control delay Delay and performs the above judgment again; if equal, the estimated value of the LP path delay t2 is completed. Since there is a 0° phase difference between the LP path and the modulation signal, the duty cycle of the FSM detection is set to 10%. When it is detected that the duty cycle of the XOR gate output signal is less than 10%, it means that the delay generated by the digital control delay unit is the same as the actual delay t2 of the LP path.
[0042] (3) Generate compensation delay, SW3 is closed, the obtained t1-t2 value is written into the lookup table LUT, and assigned to the Delay unit at the same time, completing the compensation of the delay HP path and LP path.
[0043] Figure 5 is a gain calibration flow chart of the present invention, combined with Figure 3 and Figure 5 As shown, on the basis of completing the delay calibration, the HP path gain is adjusted based on the LP path loop gain. The gain calibration process is as follows: for gain calibration, SW1, SW2, and SW4 are closed, and the modulated signal passes through the HP path and the LP path to reach the LPF at the same time. The polarity of the LPF voltage change is detected. If it is the same as the polarity of the modulation signal change, it means that the HP path gain is greater than the LP path gain. The state machine reduces the multiplier value of the multiplier on the HP path, reduces the HP path gain, and then compares; if it is opposite to the polarity of the modulation signal change, it means that the HP path gain is less than the LP path gain. The state machine increases the multiplier value of the multiplier on the HP path, increases the HP path gain, and then compares; if the LPF voltage has no polarity change, it means that the HP path and LP path gains are equal, that is, the gain compensation is completed, and the obtained multiplier values of the multipliers on the HP path and LP path are written into the lookup table LUT.
[0044] Figure 6 It is the polarity detection circuit diagram of the present invention, such as Figure 6As shown, the polarity detection circuit diagram includes: an input stage unit gain amplifier A1, an intermediate stage constant gain amplifier A2, and an output stage comparator CMP. (The input signal LPF_in is connected to the non-inverting end of the input stage unit gain amplifier A1 through the input DC-isolating capacitor C1. The output of A1 is connected to its inverting end and to the non-inverting input end of the intermediate stage constant gain amplifier A2. The upper branch and the lower branch of the output of A2 are connected to the inverting input end and the non-inverting input end of the output stage comparator CMP through the output DC-isolating capacitors C2 and C3, respectively. CLK is connected to the clock input end of CMP as a reference clock, and the output of CMP is connected to the output OUT through the buffer BUFFER. In order to allow the amplifier to obtain a bias voltage of VDD / 2, the non-inverting input end of A1 is connected to the ground GND through the voltage-dividing resistor R1, and is connected to the ground GND through the voltage-dividing resistor R2. to the power supply VDD. The inverting input terminal of A2 is connected to the ground GND through the voltage divider resistor R3, and is connected to the power supply VDD through the voltage divider resistor R4. The inverting input terminal and the non-inverting input terminal of CMP are connected to the ground GND through the voltage divider resistor R5, and are connected to the power supply VDD through the voltage divider resistor R6. ) The input stage unit gain amplifier A1 adopts a rail-to-rail amplifier to transmit the small signal of the LPF voltage change to the back end without distortion, and at the same time filters out the high-frequency ripple; the intermediate stage constant gain amplifier A2 adopts a differential amplifier in a closed-loop negative feedback connection mode to ensure the stability of the gain bandwidth under PVT and provide a 40-fold gain; the output stage comparator CMP adopts a dynamic comparator to provide a judgment capability as low as μV. Due to the use of the above structure, the polarity detection of LPF voltage changes as low as 0.25mV at different PVTs can be completed. Compared with the open-loop amplifier used in the traditional solution, the polarity detection circuit of the embodiment of the present invention adopts a differential amplifier in a closed-loop negative feedback connection mode, so that a constant gain can be maintained under different PVT conditions. Compared with the static comparator used in the conventional solution, the polarity detection circuit of the embodiment of the present invention adopts a dynamic comparator, and the minimum comparison voltage is as low as μV level.
[0045] Figure 7 is a gain delay calibration timing diagram of a chip designed using the present invention, such as Figure 7As shown, after the chip is powered on, channel 0 is selected, the phase-locked loop is locked to the center frequency of channel 0, and delay calibration is completed through test word 1; gain calibration is completed through test word 2; after calibration, the obtained gain delay calibration control word is written into LUT, that is, the gain delay calibration of channel 0 is completed. Other channels are selected in turn for calibration, and the gain delay calibration control word corresponding to the channel is written into LUT, that is, the gain delay calibration of all channels is completed. After the calibration is completed, the chip enters the normal working stage. When channel 0 is selected, the gain delay calibration control word corresponding to channel 0 is obtained by reading LUT, and only one clock cycle is needed to complete the calibration. Compared with the 300μs calibration stage required before each operation of the traditional scheme, the calibration scheme of the present invention only requires one calibration for each channel, and the calibration control word is stored in LUT, which significantly shortens the calibration time.
[0046] The calibration circuit of the present invention comprises: a transmission unit, comprising a first branch for transmitting a first signal, a second branch for transmitting a second signal, and a third branch for transmitting a third signal, wherein the first signal is an input signal, the second signal is a high-pass signal of the input signal after passing through the second branch, and the third signal is a low-pass signal of the input signal after passing through the third branch; a duty cycle detection unit, for detecting a first duty cycle after the first signal and the second signal are XORed, and a second duty cycle after the first signal and the third signal are XORed; a delay calibration unit, for determining a delay compensation value according to the first duty cycle and the second duty cycle, and compensating for the delay of the second branch according to the delay compensation value. The calibration circuit realizes effective delay calibration of a two-point modulation phase-locked loop.
[0047] The calibration circuit of the present invention further comprises: a polarity detection unit for detecting the change polarity of the second signal and the third signal; and a gain calibration unit for adjusting the gain of the second branch according to the change polarity of the second signal and the third signal. The calibration circuit realizes effective gain calibration of the two-point modulation phase-locked loop.
[0048] The calibration circuit of the present invention only needs to be calibrated twice (once for delay calibration and once for gain calibration), and no calibration is required after each power-on, so that gain calibration and delay calibration of two modulation paths in a two-point modulation phase-locked loop can be realized, thereby reducing the calibration time. When the chip is tested at the factory, a calibration test is performed on each channel, and the obtained gain and delay control words are stored in the lookup table. During normal operation, it is only necessary to read the calibration value stored in the LUT, which speeds up the calibration speed after channel switching and completes the calibration of delay and gain at the same time. The calibration circuit of the present invention can still complete the polarity detection and amplification of 0.25μV weak signals under different PVT conditions, and the calibration circuit of the present invention is also applicable to digital phase-locked loop structures, and it is only necessary to replace the polarity detection circuit with a digital implementation method.
[0049] The present invention also provides a chip and an electronic device, wherein the chip at least includes the calibration circuit described above, and the chip may be a radio frequency SoC chip or a low-power IoT chip; the electronic device includes at least the chip described above, and the electronic device may be a wearable or mobile device, and the electronic device includes wireless products such as smart watches, smart phones, and wireless headphones.
[0050] The optional implementation modes of the embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above implementation modes. Within the technical concept of the embodiments of the present invention, various simple modifications can be made to the technical scheme of the embodiments of the present invention, and these simple modifications all belong to the protection scope of the embodiments of the present invention.
[0051] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the embodiments of the present invention will not further describe various possible combinations.
[0052] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0053] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A calibration circuit for a phase-locked loop, It is characterized in that The calibration circuit comprises: A transmission unit, comprising a first branch for transmitting a first signal, a second branch for transmitting a second signal, and a third branch for transmitting a third signal, wherein the first signal is an input signal, the second signal is a high-pass signal of the input signal after passing through the second branch, and the third signal is a low-pass signal of the input signal after passing through the third branch; a duty cycle detection unit, configured to detect a first duty cycle obtained by performing an XOR operation on the first signal and the second signal, and a second duty cycle obtained by performing an XOR operation on the first signal and the third signal; A delay calibration unit, configured to determine a delay compensation value according to the first duty cycle and the second duty cycle, and compensate for the delay of the second branch according to the delay compensation value; The determining the delay compensation value according to the first duty cycle and the second duty cycle includes: Open the first branch and the second branch, close the third branch, adjust the first delay device, and if the first duty cycle is greater than the duty cycle threshold, the duration of the first delay device is the first delay t1; Open the first branch and the third branch, close the second branch, adjust the first delay device, and if the second duty cycle is less than the duty cycle threshold, the duration of the first delay device is the second delay t2; Determine a delay compensation value t3 according to the first delay t1 and the second delay t2: t3 = | t1 - t2|; The delay compensation value t3 is stored in the lookup table LUT.
2. The calibration circuit according to claim 1, It is characterized in that The first branch is provided with a first delay device for generating a configurable delay and estimating the transmission delay of the second branch and the third branch; The second branch is provided with a second delay device, which is used to compensate the delay of the second branch according to the delay compensation value; The second branch and the third branch share a low-pass filter.
3. The calibration circuit according to claim 1, It is characterized in that The calibration circuit further comprises: A polarity detection unit, used for detecting the changing polarities of the second signal and the third signal; A gain calibration unit is used to adjust the gain of the second branch according to the change polarity of the second signal and the third signal.
4. The calibration circuit according to claim 3, It is characterized in that The second branch is provided with a multiplier for adjusting the gain of the second branch.
5. The calibration circuit according to claim 3, It is characterized in that If the second signal and the third signal output an AC signal after passing through the polarity detection unit, and the polarity of the AC signal is opposite to that of the input signal, and the gain of the second branch is greater than the gain of the third branch, the gain of the second branch is reduced; If the second signal and the third signal output an AC signal after passing through the polarity detection unit, and the polarity of the AC signal is the same as that of the input signal, and the gain of the second branch is less than the gain of the third branch, the gain of the second branch is increased; If the second signal and the third signal output a DC signal after passing through the polarity detection unit, the gain of the second branch is equal to the gain of the third branch, and the gain compensation is completed.
6. The calibration circuit according to claim 5, It is characterized in that If the gain compensation is completed, the gain is saved in the lookup table LUT.
7. A calibration method for a phase-locked loop, It is characterized in that The calibration method comprises: Acquire a first signal, a second signal and a third signal, wherein the first signal is an input signal, the second signal is a high-pass signal in the input signal, and the third signal is a low-pass signal in the input signal; Detecting a first duty cycle obtained by performing an XOR operation on the first signal and the second signal and a second duty cycle obtained by performing an XOR operation on the first signal and the third signal; Determining a delay compensation value according to the first duty cycle and the second duty cycle; Compensating for the delay of the second signal according to the delay compensation value; The determining the delay compensation value according to the first duty cycle and the second duty cycle includes: Acquire a first signal and a second signal, and adjust a delay time of the first signal. If the first duty cycle is less than a duty cycle threshold, the delay time of the first signal is a first delay time t1. Acquire the first signal and the third signal, and adjust the delay time of the first signal. If the second duty cycle is less than the duty cycle threshold, the delay time of the first signal is the second delay t2. A delay compensation value t3 is determined according to the first delay t1 and the second delay t2: t3 = | t1 - t2|.
8. The calibration method according to claim 7, It is characterized in that The first signal is a reference signal, which is used to determine the delay of the second signal and the third signal.
9. The calibration method according to claim 7, It is characterized in that The calibration method further comprises: detecting the changing polarities of the second signal and the third signal; The gain of the second signal is adjusted according to the changing polarities of the second signal and the third signal.
10. The calibration method according to claim 9, It is characterized in that Perform polarity detection on the second signal and the third signal, If the output is an AC signal, and the polarity of the AC signal is opposite to that of the input signal, and the gain of the second signal is greater than the gain of the third signal, the gain of the second signal is reduced; If the output is an AC signal, and the AC signal has the same polarity as the input signal, and the gain of the second signal is less than the gain of the third signal, the gain of the second signal is increased; If the output is a DC signal, the gain of the second signal is equal to the gain of the third signal, and gain compensation is completed.
11. A chip, It is characterized in that The chip at least comprises the calibration circuit described in any one of claims 1-6.
12. An electronic device, It is characterized in that The electronic device comprises at least the chip according to claim 11.
