Circuit calibration method, device, circuit, equipment and storage medium
By obtaining the current input voltage and frequency adjustment parameters of the calibration circuit, combined with the preset frequency regulating range information, the target frequency regulating parameters are automatically selected, and the frequency adjustment problem of the frequency of the input voltage and target frequency of the locking loop is solved. Automatic calibration.
Patent Information
- Application Number
- CN202010551916.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-17
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2040-06-17
AI Technical Summary
It is difficult to realize automatic calibration of phase-locked loop circuits in the prior art, especially when the input voltage and target frequency change, it is difficult to efficiently adjust the frequency characteristics of the circuit.
By obtaining the current input voltage of the calibration circuit, the current frequency adjustment parameter, and the preset frequency regulating range information, determine whether the input voltage is within the preset voltage range, and according to different situations, select the target frequency adjustment parameter from the frequency adjustment range information, so as to use the frequency adjustment range information to use it to use it. Realize automatic calibration of calibration circuits.
The automation calibration of the lock -in -loop circuit can be implemented. When the input voltage and target frequency change can be efficiently regulated, the frequency characteristics of the circuit can be efficiently regulated, and the work stability and accuracy of the circuit can be improved.
Smart Images

Figure CN111884649B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a circuit calibration method, apparatus, circuit, device and storage medium. Background Art
[0002] A phase locked loop (PLL) is a negative feedback control system that uses a voltage generated by phase synchronization to tune a voltage controlled oscillator to produce a target frequency.
[0003] Phase-locked loops are widely used in wireless communication receivers. Their working principle is: the voltage-controlled oscillator gives a signal, one part of which is used as output, and the other part is compared with the local oscillator signal generated by the PLL IC (PLL Integrated Circuit) through frequency division. In order to keep the frequency unchanged, the phase difference must not change. If there is a change in the phase difference, the voltage at the voltage output end of the PLL IC changes to control the voltage-controlled oscillator until the phase difference is restored. The purpose of frequency locking is achieved. It is a closed-loop electronic circuit that can keep the frequency and phase of the voltage-controlled oscillator in a certain relationship with the input signal.
[0004] With the development of wireless communication technology, the requirements for the working performance of phase-locked loops are becoming higher and higher. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a circuit calibration method, apparatus, circuit, equipment and storage medium, so as to automatically select appropriate target frequency modulation parameters for the circuit to be calibrated from the frequency modulation range information of the circuit to be calibrated according to the current input voltage of the circuit to be calibrated and the preset target frequency, thereby realizing automatic calibration of the circuit to be calibrated.
[0006] A first aspect of an embodiment of the present application provides a circuit calibration method, comprising: when the circuit to be calibrated locks a preset target frequency, obtaining the current input voltage, current frequency modulation parameters and preset frequency modulation range information of the circuit to be calibrated; judging whether the current input voltage is within a preset voltage range; when the current input voltage is within the preset voltage range, selecting target frequency modulation parameters from the frequency modulation range information according to the current frequency modulation parameters, the target frequency modulation parameters causing the circuit to be calibrated to output the target frequency; when the current input voltage is not within the preset voltage range, selecting target frequency modulation parameters from the frequency modulation range information according to the endpoint values of the preset voltage range.
[0007] In one embodiment, when the current input voltage is within the preset voltage range, a target frequency modulation parameter is selected from the frequency modulation range information according to the current frequency modulation parameter, and the target frequency modulation parameter causes the circuit to be calibrated to output the target frequency, including: determining whether the current frequency modulation parameter is an endpoint value of the frequency modulation range information; when the current frequency modulation parameter is an endpoint value of the frequency modulation range information, determining the target frequency modulation parameter that causes the circuit to be calibrated to output the target frequency from the frequency modulation range information according to the endpoint value of the frequency modulation range information.
[0008] In one embodiment, when the current frequency modulation parameter is the endpoint value of the frequency modulation range information, the target frequency modulation parameter that enables the circuit to be calibrated to output the target frequency is determined from the frequency modulation range information according to the endpoint value of the frequency modulation range information, including: when the current frequency modulation parameter is the first endpoint value of the frequency modulation range information, determining the first frequency modulation threshold of the circuit to be calibrated as the current frequency modulation parameter, and under the same output frequency, the operating voltage of the second endpoint value of the frequency modulation range information is less than the operating voltage of the first endpoint value of the frequency modulation range information; selecting the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold enable the circuit to be calibrated to lock the same target frequency, the operating voltage of the second frequency modulation threshold is greater than the operating voltage of the first frequency modulation threshold.
[0009] In one embodiment, when the current frequency modulation parameter is the endpoint value of the frequency modulation range information, the target frequency modulation parameter that enables the circuit to be calibrated to output the target frequency is determined from the frequency modulation range information according to the endpoint value of the frequency modulation range information, including: when the current frequency modulation parameter is the second endpoint value of the frequency modulation range information, determining the second frequency modulation threshold of the circuit to be calibrated as the current frequency modulation parameter, and under the same output frequency, the operating voltage of the second endpoint value of the frequency modulation range information is less than the operating voltage of the first endpoint value of the frequency modulation range information; selecting the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold enable the circuit to be calibrated to lock the same target frequency, the operating voltage of the second frequency modulation threshold is greater than the operating voltage of the first frequency modulation threshold.
[0010] In one embodiment, it also includes: when the current frequency modulation parameter is not the endpoint value of the frequency modulation range information, judging whether the circuit to be calibrated already has a first frequency modulation threshold or a second frequency modulation threshold, when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the working voltage of the second frequency modulation threshold is greater than the working voltage of the first frequency modulation threshold; when the circuit to be calibrated already has the first frequency modulation threshold, selecting the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information; when the circuit to be calibrated already has the second frequency modulation threshold, selecting the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information.
[0011] In one embodiment, the selecting of the target frequency modulation parameter from the frequency modulation range information according to the endpoint value of the preset voltage range also includes: when the current input voltage is not within the preset voltage range, determining whether the current input voltage is greater than the upper endpoint value of the preset voltage range or less than the lower endpoint value of the preset voltage range, the upper endpoint value of the preset voltage range being greater than the lower endpoint value of the preset voltage range; when the current input voltage is greater than the upper endpoint value of the preset voltage range, determining that the first frequency modulation threshold of the circuit to be calibrated is a frequency modulation parameter whose operating voltage is less than the current input voltage; and selecting the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information, wherein when the first frequency modulation threshold and the second frequency modulation threshold cause the circuit to be calibrated to lock the same target frequency, the operating voltage of the second frequency modulation threshold is greater than the operating voltage of the first frequency modulation threshold.
[0012] In one embodiment, it also includes: when the current input voltage is less than the lower endpoint value of the preset voltage range, determining the second frequency modulation threshold of the circuit to be calibrated as a frequency modulation parameter whose operating voltage is greater than the current input voltage; and selecting the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information.
[0013] In one embodiment, the selecting the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information includes: when the circuit to be calibrated already has the first frequency modulation threshold, in the frequency modulation range information, after decreasing the current input voltage according to a preset step length, obtaining a first frequency modulation parameter to which the working voltage after the decrease belongs, and sending the first frequency modulation parameter to the circuit to be calibrated; obtaining the first input voltage of the circuit to be calibrated when locking the target frequency under the first frequency modulation parameter condition, and judging whether the first input voltage is within the preset voltage range; when the first input voltage is within the preset voltage range, cyclically executing the step of selecting a target frequency modulation parameter from the frequency modulation range information according to the current frequency modulation parameter, the target frequency modulation parameter causing the circuit to be calibrated to output the target frequency, until the first input voltage is not within the preset voltage range, executing the step of selecting a target frequency modulation parameter from the frequency modulation range information according to an endpoint value of the preset voltage range.
[0014] In one embodiment, the step of selecting the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information includes: when the circuit to be calibrated already has the second frequency modulation threshold, in the frequency modulation range information, increasing the current input voltage by a preset step size, obtaining a second frequency modulation parameter to which the increased working voltage belongs, and sending the second frequency modulation parameter to the circuit to be calibrated; obtaining the second input voltage of the circuit to be calibrated when the target frequency is locked under the second frequency modulation parameter, and determining whether the second input voltage is within the preset voltage range; when the second input voltage is within the preset voltage range, cyclically executing the step of selecting a target frequency modulation parameter from the frequency modulation range information according to the current frequency modulation parameter, wherein the target frequency modulation parameter causes the circuit to be calibrated to output the target frequency, until the second input voltage is not within the preset voltage range, executing the step of selecting a target frequency modulation parameter from the frequency modulation range information according to an endpoint value of the preset voltage range.
[0015] In one embodiment, the method further includes: acquiring a frequency modulation factor of the circuit to be calibrated; and selecting the target frequency modulation parameter from the frequency modulation range information according to the second frequency modulation threshold, the first frequency modulation threshold and the frequency modulation factor.
[0016] In one embodiment, the method further includes: sending the target frequency modulation parameter to the circuit to be calibrated.
[0017] A second aspect of an embodiment of the present application provides a circuit calibration device, including: an acquisition module, used to acquire the current input voltage, current frequency modulation parameters and preset frequency modulation range information of the circuit to be calibrated when the circuit to be calibrated locks a preset target frequency; a judgment module, used to judge whether the current input voltage is within a preset voltage range; a selection module, used to select target frequency modulation parameters from the frequency modulation range information according to the current frequency modulation parameters when the current input voltage is within the preset voltage range, the target frequency modulation parameters causing the circuit to be calibrated to output the target frequency; a determination module, used to select target frequency modulation parameters from the frequency modulation range information according to the endpoint values of the preset voltage range when the current input voltage is not within the preset voltage range.
[0018] In one embodiment, the selection module includes: a first judgment unit, used to judge whether the current frequency modulation parameter is the endpoint value of the frequency modulation range information; a first determination unit, used to determine the target frequency modulation parameter that makes the circuit to be calibrated output the target frequency from the frequency modulation range information according to the endpoint value of the frequency modulation range information when the current frequency modulation parameter is the endpoint value of the frequency modulation range information.
[0019] In one embodiment, the first determination unit is used to: when the current frequency modulation parameter is the first endpoint value of the frequency modulation range information, determine the first frequency modulation threshold of the circuit to be calibrated as the current frequency modulation parameter, and under the same output frequency, the operating voltage of the second endpoint value of the frequency modulation range information is less than the operating voltage of the first endpoint value of the frequency modulation range information; select the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the operating voltage of the second frequency modulation threshold is greater than the operating voltage of the first frequency modulation threshold.
[0020] In one embodiment, the first determination unit is used to: when the current frequency modulation parameter is the second endpoint value of the frequency modulation range information, determine the second frequency modulation threshold of the circuit to be calibrated as the current frequency modulation parameter, and under the same output frequency, the operating voltage of the second endpoint value of the frequency modulation range information is less than the operating voltage of the first endpoint value of the frequency modulation range information; select the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the operating voltage of the second frequency modulation threshold is greater than the operating voltage of the first frequency modulation threshold.
[0021] In one embodiment, the selection module also includes: a second judgment unit, which is used to judge whether the circuit to be calibrated already has a first frequency modulation threshold or a second frequency modulation threshold when the current frequency modulation parameter is not the endpoint value of the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the operating voltage of the second frequency modulation threshold is greater than the operating voltage of the first frequency modulation threshold; a first selection unit, which is used to select the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information when the circuit to be calibrated already has the first frequency modulation threshold; the first selection unit is also used to select the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information when the circuit to be calibrated already has the second frequency modulation threshold.
[0022] In one embodiment, the determination module includes: a third judgment unit, which is used to determine whether the current input voltage is greater than the upper endpoint value of the preset voltage range or less than the lower endpoint value of the preset voltage range when the current input voltage is not within the preset voltage range, and the upper endpoint value of the preset voltage range is greater than the lower endpoint value of the preset voltage range; a second determination unit, which is used to determine that the first frequency modulation threshold of the circuit to be calibrated is a frequency modulation parameter whose operating voltage is less than the current input voltage when the current input voltage is greater than the upper endpoint value of the preset voltage range; and a second selection unit, which is used to select the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold cause the circuit to be calibrated to lock the same target frequency, the operating voltage of the second frequency modulation threshold is greater than the operating voltage of the first frequency modulation threshold.
[0023] In one embodiment, the second determination unit is also used to: when the current input voltage is less than the lower endpoint value of the preset voltage range, determine the second frequency modulation threshold of the circuit to be calibrated as a frequency modulation parameter whose operating voltage is greater than the current input voltage; the second selection unit is also used to select the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information.
[0024] In one embodiment, the selecting the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information includes: when the circuit to be calibrated already has the first frequency modulation threshold, in the frequency modulation range information, after decreasing the current input voltage according to a preset step length, obtaining a first frequency modulation parameter to which the working voltage after the decrease belongs, and sending the first frequency modulation parameter to the circuit to be calibrated; obtaining the first input voltage of the circuit to be calibrated when locking the target frequency under the first frequency modulation parameter condition, and judging whether the first input voltage is within the preset voltage range; when the first input voltage is within the preset voltage range, cyclically executing the step of selecting a target frequency modulation parameter from the frequency modulation range information according to the current frequency modulation parameter, the target frequency modulation parameter causing the circuit to be calibrated to output the target frequency, until the first input voltage is not within the preset voltage range, executing the step of selecting a target frequency modulation parameter from the frequency modulation range information according to an endpoint value of the preset voltage range.
[0025] In one embodiment, the step of selecting the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information includes: when the circuit to be calibrated already has the second frequency modulation threshold, in the frequency modulation range information, increasing the current input voltage by a preset step size, obtaining a second frequency modulation parameter to which the increased working voltage belongs, and sending the second frequency modulation parameter to the circuit to be calibrated; obtaining the second input voltage of the circuit to be calibrated when the target frequency is locked under the second frequency modulation parameter, and determining whether the second input voltage is within the preset voltage range; when the second input voltage is within the preset voltage range, cyclically executing the step of selecting a target frequency modulation parameter from the frequency modulation range information according to the current frequency modulation parameter, wherein the target frequency modulation parameter causes the circuit to be calibrated to output the target frequency, until the second input voltage is not within the preset voltage range, executing the step of selecting a target frequency modulation parameter from the frequency modulation range information according to an endpoint value of the preset voltage range.
[0026] In one embodiment, the acquisition module is further used to acquire the frequency modulation factor of the circuit to be calibrated; the selection module is further used to select the target frequency modulation parameter from the frequency modulation range information according to the second frequency modulation threshold, the first frequency modulation threshold and the frequency modulation factor.
[0027] In one embodiment, the method further includes: a sending module, configured to send the target frequency modulation parameter to the circuit to be calibrated.
[0028] A third aspect of an embodiment of the present application provides a radio frequency circuit system, comprising: a voltage-controlled oscillator; a frequency divider, whose input end is connected to the voltage-controlled oscillator, and is used to generate a frequency-divided signal after frequency-dividing the output frequency of the voltage-controlled oscillator; a frequency detector and phase detector, connected to the output end of the frequency divider, and is used to generate a comparison signal after comparing a reference frequency and the frequency-divided signal; a charge pump, connected to the frequency detector and phase detector, and is used to generate a voltage-controlled voltage according to the comparison signal; a loop filter, whose input end is connected to the charge pump and whose output end is connected to the voltage-controlled oscillator, and is used to generate an input voltage of the voltage-controlled oscillator after filtering the voltage-controlled voltage, and transmit the input voltage to the voltage-controlled oscillator; a calibration circuit, respectively connected to the loop filter and the voltage-controlled oscillator, and is used to calibrate the voltage-controlled oscillator using a method as in the first aspect of the embodiment of the present application and any one of its embodiments.
[0029] The fourth aspect of the embodiments of the present application provides an electronic device, comprising: a memory for storing computer programs; a processor for executing the method of the first aspect of the embodiments of the present application and any one of its embodiments to identify the flow direction information of document information.
[0030] The fifth aspect of the embodiments of the present application provides a non-transitory electronic device readable storage medium, including: a program, which, when run by an electronic device, enables the electronic device to execute the method of the first aspect of the embodiments of the present application and any one of its embodiments.
[0031] The circuit calibration method, apparatus, circuit, device and storage medium provided in the present application compare the current input voltage when the circuit to be calibrated is locked to a preset target frequency with a preset voltage range, and select the target frequency modulation parameters from the frequency modulation range information in different ways according to the comparison result, so that the circuit to be calibrated outputs the target frequency under the condition of the target frequency modulation parameters, thereby realizing automatic calibration of the circuit to be calibrated. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 A schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0034] Figure 2A A schematic diagram of the structure of a radio frequency circuit system according to an embodiment of the present application;
[0035] Figure 2B A schematic diagram of the frequency characteristics of a voltage-controlled oscillator according to an embodiment of the present application;
[0036] Figure 2C A circuit connection diagram of a voltage-controlled oscillator according to an embodiment of the present application;
[0037] Figure 2D A schematic diagram of the frequency characteristics of a voltage-controlled oscillator according to an embodiment of the present application;
[0038] Figure 3A A schematic diagram of a flow chart of a circuit calibration method according to an embodiment of the present application;
[0039] Figure 3B A schematic diagram of a frequency characteristic curve of a voltage-controlled oscillator according to an embodiment of the present application;
[0040] Figure 4 A schematic diagram of a flow chart of a circuit calibration method according to an embodiment of the present application;
[0041] Figure 5 4 is a flow chart of step 410 of the circuit calibration method according to an embodiment of the present application;
[0042] Figure 6 4 is a flow chart of step 411 of the circuit calibration method according to an embodiment of the present application;
[0043] Fig. 7A A schematic diagram of a flow chart of a circuit calibration method according to an embodiment of the present application;
[0044] Figure 7B A schematic diagram of signal waveforms of a radio frequency circuit system according to an embodiment of the present application;
[0045] Fig. 8A A schematic diagram of the structure of a circuit calibration device according to an embodiment of the present application;
[0046] Figure 8B Schematic diagram of the structure of a circuit calibration device according to an embodiment of the present application.
[0047] Reference numerals:
[0048] 1-electronic device, 10-bus, 11-processor, 12-memory, 200-radio frequency circuit system, XTAL-crystal oscillator, PFD-phase frequency detector, CP-charge pump, LF-loop filter, VCO-voltage controlled oscillator, AC-calibration circuit, DIV-divider. DETAILED DESCRIPTION
[0049] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the present application, the terms "first", "second" and the like are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0050] like Figure 1 As shown, this embodiment provides an electronic device 1, including: at least one processor 11 and a memory 12, Figure 1 A processor is taken as an example. The processor 11 and the memory 12 are connected via a bus 10. The memory 12 stores instructions that can be executed by the processor 11. The instructions are executed by the processor 11 so that the electronic device 1 can execute all or part of the process of the method in the following embodiment to calibrate the circuit to be calibrated.
[0051] In one embodiment, the electronic device 1 may be a mobile phone, a laptop computer, a desktop computer, or a circuit including a comparator and a digital controller.
[0052] like Figure 2A As shown, this embodiment provides a radio frequency circuit system 200, which can be applied in the 315M / 433M communication frequency band and can automatically adjust the calibration frequency. The radio frequency circuit system 200 can be mainly composed of a phase frequency detector PFD, a charge pump CP, a loop filter LF, a voltage controlled oscillator VCO, a frequency divider DIV, and a calibration circuit AC, and can provide a reference frequency Fref for it through an external crystal oscillator XTAL. The radio frequency circuit system 200 is a typical phase-locked loop circuit. Among them, the input end of the frequency divider DIV is connected to the voltage controlled oscillator VCO, which is used to divide the output frequency Fout of the voltage controlled oscillator VCO and generate a frequency division signal Fdiv. The phase frequency detector PFD is connected to the output end of the frequency divider DIV, which is used to compare the reference frequency Fref and the frequency division signal Fdiv to generate a comparison signal up / dn. The charge pump CP is connected to the phase frequency detector PFD to generate a voltage-controlled voltage according to the comparison signal up / dn. The loop filter LF has an input end connected to the charge pump CP and an output end connected to the voltage-controlled oscillator VCO, and is used to generate an input voltage Vc of the voltage-controlled oscillator VCO after filtering the voltage-controlled voltage, and transmit the input voltage Vc to the voltage-controlled oscillator VCO. Figure 2A As shown, the external crystal oscillator XTAL provides a stable and accurate reference frequency Fref. The reference frequency Fref is divided by the output frequency Fout, and the divided frequency signal Fdiv is sent out through the comparison and judgment of the phase frequency detector PFD to send out the up / dn signal to the charge pump CP to generate the voltage for controlling the voltage controlled oscillator VCO. The output voltage of the charge pump CP also needs to be filtered by the loop filter LF to generate the input voltage Vc and then sent to the voltage controlled oscillator VCO. The change of the input voltage Vc can cause the change of the output frequency Fout of the voltage controlled oscillator VCO.
[0053] The calibration circuit AC is connected to the loop filter LF and the voltage controlled oscillator VCO respectively, and the calibration circuit AC at least includes a comparator and a data controller. The calibration circuit AC can realize its function by the electronic device 1 as shown in the figure.
[0054] In one embodiment, the input voltage Vc is sent to the comparator of the calibration circuit AC while being sent to the voltage controlled oscillator VCO. After passing through the comparator, two output signals, fast and slow, are obtained. The digital controller outputs a frequency band selection signal (band_sel) according to these two signals to determine the frequency curve of the voltage controlled oscillator VCO. Usually, the frequency of the crystal oscillator XTAL can be from a dozen to several MHz, while the output frequency of the voltage controlled oscillator VCO is between several hundred MHZ and several GHz. Therefore, the output frequency Fout of the voltage controlled oscillator VCO needs to be divided by the frequency divider DIV and then compared with the reference frequency Fref. Different voltage controlled oscillator VCO operating frequencies can be obtained by setting different frequency division ratios.
[0055] In one embodiment, in the RF circuit system 200, the frequency characteristic curve of the voltage controlled oscillator VCO is as follows: Figure 2B As shown, Vc is the input voltage of the voltage controlled oscillator VCO (relative to the power supply voltage), and Fout is the frequency of the output signal of the voltage controlled oscillator VCO. Figure 2B The relationship between the input voltage Vc and the output frequency Fout is illustrated in FIG. When the input voltage Vc is small, the output frequency Fout is basically unchanged. After exceeding a certain value, as the input voltage Vc increases, the output frequency Fout also gradually increases, which is basically a linear relationship. Taking into account the working area of each module, the input voltage Vc of the voltage-controlled oscillator VCO is actually limited to a certain range. A threshold voltage Vth1 and a threshold voltage Vth2 can be set (assuming that Vth1 represents fast, Vth2 represents slow, and Vth2>Vth1). These two thresholds can be used to determine whether the input voltage Vc is within a reasonable range. Since the circuit is prone to enter a non-ideal working area when the input voltage Vc is too small or too large, only when the input voltage Vc is within the area 20 between Vth1 and Vth2 (i.e., within the preset voltage range) is it considered to be a reasonable working area.
[0056] In one embodiment, if Figure 2C As shown, the voltage controlled oscillator VCO may include: a differential amplifier circuit composed of a transistor M1, a transistor M2, a current source A1 and two resistors L, and an adjustable capacitor array C1 and / or a capacitor array C2 that can adjust the frequency. The input voltage Vc is connected to one end of the capacitor array C1 and / or the capacitor array C2, and the capacitor array C1 and / or the capacitor array C2 are configurable and can be selected by cap_sel.
[0057] In the actual production process, as the process deviation and working environment change, the frequency characteristic curve of the voltage-controlled oscillator VCO will shift and change, so the target frequency may not be generated under certain circumstances. However, the frequency tuning range is too wide. When the input voltage Vc has a certain value range, the gain of the voltage-controlled oscillator VCO will be very high, which makes the voltage-controlled oscillator VCO very sensitive to interference on the control line. Therefore, in order to ensure that the voltage-controlled oscillator VCO can meet the design requirements, digital tuning technology can be added. Multiple frequency characteristic curves can be achieved by changing the size of the capacitor array C1 and / or the capacitor array C2 in the voltage-controlled oscillator VCO. For example Figure 2D As shown in , the voltage controlled oscillator VCO has three frequency characteristic curves, namely, from curve 1 to curve 3, wherein the capacitance of the voltage controlled oscillator VCO gradually decreases and the frequency successively increases.
[0058] If the capacitor array value of the voltage-controlled oscillator VCO is not appropriate, there will be a blind spot between two adjacent curves. Therefore, in the design, there must be overlap between adjacent frequency characteristic curves, and the slope of the frequency characteristic curve cannot be too high. The final result is that there must be enough curves to achieve accurate frequency, and these sufficient frequency characteristic curves constitute the frequency modulation range information of the voltage-controlled oscillator VCO.
[0059] Please see Figure 3A , which is a circuit calibration method of an embodiment of the present application, the method can be Figure 1 The electronic device 1 shown performs as a calibration circuit AC and can be applied to FIG. 2A to FIG. 2D In the RF circuit system 200 shown, the frequency of the voltage controlled oscillator VCO is calibrated. The method comprises the following steps:
[0060] Step 301: when the circuit to be calibrated locks a preset target frequency, obtain the current input voltage, current frequency modulation parameters and preset frequency modulation range information of the circuit to be calibrated.
[0061] In this step, the circuit to be calibrated can be as follows FIG. 2A to FIG. 2D The target frequency of the voltage-controlled oscillator VCO shown in the figure can be preset according to the needs of the actual scene. When calibrating the voltage-controlled oscillator VCO, each time a new capacitor array is configured, the voltage-controlled oscillator VCO needs a certain amount of time to stably lock the target frequency. When the voltage-controlled oscillator VCO locks the preset target frequency, its current input voltage, current frequency modulation parameters and preset frequency modulation range information are obtained in real time. The current frequency modulation parameters can be the current capacitor array parameters of the voltage-controlled oscillator VCO.
[0062] In one embodiment, if Figure 3BAs shown, it is a schematic diagram of the digital tuning frequency characteristic curve of a voltage-controlled oscillator VCO in practical application (here, the flat part of the curve of Fout when Vc is small is ignored). In this system, a total of nine frequency characteristic curves, curve 1 to curve 9, are designed, which can be used as the frequency modulation range information of the voltage-controlled oscillator VCO. In practical application, the number N of frequency characteristic curves in the frequency modulation range information can be selected according to the process and accuracy requirements.
[0063] Step 302 : Determine whether the current input voltage is within a preset voltage range, if so, proceed to step 303 , otherwise, proceed to step 304 .
[0064] In this step, the preset voltage range can be set based on the circuit performance of the voltage-controlled oscillator VCO, for example, the voltage range corresponding to the ideal working area of the voltage-controlled oscillator VCO is used as the preset voltage range. Figure 3B As shown, assuming that the ideal working area of the voltage controlled oscillator VCO is determined by the threshold voltage Vth1 and the threshold voltage Vth2 (assuming Vth2>Vth1), these two thresholds can be used to determine whether the input voltage Vc is within a reasonable range, then Vth1 and Vth2 are the two endpoints of the instant preset voltage range. By determining whether the current input voltage is within the preset voltage range, and then based on the determination result, different tuning methods are used to tune and calibrate the voltage controlled oscillator VCO.
[0065] Step 303: According to the current frequency modulation parameters, a target frequency modulation parameter is selected from the frequency modulation range information, and the target frequency modulation parameter enables the circuit to be calibrated to output a target frequency.
[0066] In this step, since the voltage controlled oscillator VCO is prone to enter a non-ideal working area when the input voltage Vc is too small or too large, only when the input voltage Vc is between Vth1 and Vth2 (i.e., within the preset voltage range) is it considered to be a reasonable working area. When the current input voltage is within the preset voltage range, the target frequency modulation parameter is selected from the frequency modulation range information according to the current frequency modulation parameter, and the target frequency modulation parameter enables the circuit to be calibrated to output the target frequency.
[0067] In one embodiment, if Figure 3B As shown, assuming the target frequency is f0, Figure 3B There are 5 curves that can reach the target frequency f0, namely curves curv3 to curve7. The input voltage Vc of the voltage-controlled oscillator VCO corresponding to each curve is V1, V2, V3, V4, and V5 respectively. Only when Vc is between the two thresholds of Vth1 and Vth2 is it a suitable working point, so Figure 3BAmong the five points V1 to V5 shown in the figure, only V2, V3, and V4 are candidate suitable operating points. Although V1 and V5 can also achieve the frequency of f0, they are not within the preset voltage range and should not be adopted. Then, according to the current frequency modulation parameters, the most suitable target frequency modulation parameters are selected from the points V2, V3, and V4.
[0068] Step 304: Select a target frequency modulation parameter from the frequency modulation range information according to the endpoint value of the preset voltage range.
[0069] In this step, when the current input voltage is not within the preset voltage range, in order to calibrate the voltage controlled oscillator VCO, the target frequency modulation parameters can be selected from the frequency modulation range information according to the magnitude relationship between the current input voltage and the endpoint values of the preset voltage range.
[0070] In the above circuit calibration method, the voltage-controlled oscillator VCO has many frequency characteristic curves. In actual work, the first step is to find all the frequency characteristic curves that can lock the target frequency f0. The second step is to select the curves that work in the reasonable working area from these curves. The last step is to select the most suitable curve from these selected curves to configure the voltage-controlled oscillator VCO. This achieves efficient and accurate adjustment of the circuit operating frequency.
[0071] Please see Figure 4 , which is a circuit calibration method of an embodiment of the present application, the method can be Figure 1 The electronic device 1 shown performs as a calibration circuit AC and can be applied to FIG. 2A to FIG. 2D In the RF circuit system 200 shown, the frequency of the voltage controlled oscillator VCO is calibrated. The method comprises the following steps:
[0072] Step 401: When the circuit to be calibrated locks the preset target frequency, obtain the current input voltage, current frequency modulation parameters and preset frequency modulation range information of the circuit to be calibrated. For details, refer to the description of step 301 in the above embodiment.
[0073] Step 402: Determine whether the current input voltage is within the preset voltage range. For details, refer to the description of step 302 in the above embodiment. If yes, proceed to step 403; otherwise, proceed to step 407.
[0074] Step 403: When the current input voltage is within the preset voltage range, determine whether the current frequency modulation parameter is an endpoint value of the frequency modulation range information. If it is a lower endpoint, proceed to step 404; if it is an upper endpoint, proceed to step 405; if it is not an endpoint value, proceed to step 406.
[0075] In this step, when the current frequency modulation parameter is the endpoint value of the frequency modulation range information, the target frequency modulation parameter that causes the circuit to be calibrated to output the target frequency is determined from the frequency modulation range information according to the endpoint value of the frequency modulation range information. If the current frequency modulation parameter is the first endpoint value of the frequency modulation range information, the process proceeds to step 404; if it is the upper endpoint, the process proceeds to step 405; if it is not the endpoint value, the process proceeds to step 406.
[0076] Step 404: Determine that the first frequency modulation threshold of the circuit to be calibrated is the current frequency modulation parameter, and under the same output frequency, the operating voltage of the second endpoint value of the frequency modulation range information is less than the operating voltage of the first endpoint value of the frequency modulation range information. Then proceed to step 410.
[0077] In this step, because the working voltage of the second endpoint value of the frequency modulation range information is less than the working voltage of the first endpoint value of the frequency modulation range information under the same output frequency of the circuit to be calibrated, when the current frequency modulation parameter is the first endpoint value of the frequency modulation range information, it means that the working voltage cannot be adjusted any higher, for example Figure 3B The curve curev1 shown is a curve of the first endpoint, and the curve curev1 is directly used as the first frequency modulation threshold of the voltage controlled oscillator VCO. Then, the process proceeds to step 410 .
[0078] Step 405: Determine that the second frequency modulation threshold of the circuit to be calibrated is the current frequency modulation parameter, and the second endpoint value of the frequency modulation range information is greater than the first endpoint value of the frequency modulation range information. Then proceed to step 411.
[0079] In this step, when the current frequency modulation parameter is the second endpoint value of the frequency modulation range information, it means that the working voltage cannot be adjusted any lower, for example Figure 3B The curve curev9 shown is a curve of the second endpoint, and the curve curev9 is directly used as the second frequency modulation threshold of the voltage controlled oscillator VCO, and the process proceeds to step 411 .
[0080] Step 406: When the current frequency modulation parameter is not the endpoint value of the frequency modulation range information, it is determined whether the circuit to be calibrated already has a first frequency modulation threshold or a second frequency modulation threshold. When the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the working voltage of the second frequency modulation threshold is greater than the working voltage of the first frequency modulation threshold. If the first frequency modulation threshold exists, the process proceeds to step 410; if the second frequency modulation threshold exists, the process proceeds to step 411.
[0081] Step 407: When the current input voltage is not within the preset voltage range, determine whether the current input voltage is greater than the upper endpoint value of the preset voltage range or less than the lower endpoint value of the preset voltage range, and the upper endpoint value of the preset voltage range is greater than the lower endpoint value of the preset voltage range. If it is greater than the upper endpoint value of the preset voltage range, proceed to step 408; if it is less than the lower endpoint value of the preset voltage range, proceed to step 409.
[0082] Step 408 : when the current input voltage is greater than the upper endpoint of the preset voltage range, determine that the first frequency modulation threshold of the circuit to be calibrated is a frequency modulation parameter where the operating voltage is less than the current input voltage. Then proceed to step 410 .
[0083] In this step, the operating voltage is the input voltage Vc when the circuit to be calibrated locks the target frequency. When the current input voltage is greater than the upper endpoint value of the preset voltage range, it means that the operating voltage of the current frequency modulation parameter has exceeded the optimal working state and the operating voltage should be lowered. Therefore, the frequency modulation parameter with an operating voltage less than the current input voltage is selected from the frequency modulation range information as the first frequency modulation threshold of the circuit to be calibrated.
[0084] Step 409 : when the current input voltage is less than the lower endpoint of the preset voltage range, determine that the second frequency modulation threshold of the circuit to be calibrated is a frequency modulation parameter whose operating voltage is greater than the current input voltage. Then proceed to step 411 .
[0085] In this step, the operating voltage is the input voltage when the circuit to be calibrated locks the target frequency. When the current input voltage is less than the upper endpoint value of the preset voltage range, it means that the operating voltage of the current frequency modulation parameter is already lower than the optimal working state, and the operating voltage should be increased. Therefore, the frequency modulation parameter whose operating voltage is greater than the current input voltage is selected from the frequency modulation range information as the second frequency modulation threshold of the circuit to be calibrated.
[0086] Step 410 : Select the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information, and then proceed to step 412 .
[0087] Step 411 : Select the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information, and proceed to step 412 .
[0088] Step 412: Obtain the frequency modulation factor of the circuit to be calibrated.
[0089] In this step, the frequency modulation factor mainly acts to bias the final target frequency modulation parameter toward a certain direction, and can be selected based on the working performance of the circuit system. For example, in the actual circuit operation process, the ideal working state is closer to the upper end point of the preset voltage range, and the frequency modulation factor can be set to bias toward the upper end point of the preset voltage range to ensure that a more appropriate target frequency modulation parameter is selected.
[0090] Step 413: Select a target frequency modulation parameter from the frequency modulation range information according to the second frequency modulation threshold, the first frequency modulation threshold and the frequency modulation factor.
[0091] Step 414: Send the target frequency modulation parameters to the circuit to be calibrated.
[0092] In one embodiment, see Figure 5 , step 410 may include the following sub-steps:
[0093] Step S1: When the circuit to be calibrated has a first frequency modulation threshold, in the frequency modulation range information, the current input voltage is decreased according to a preset step length, a first frequency modulation parameter of the decreased working voltage is obtained, and the first frequency modulation parameter is sent to the circuit to be calibrated.
[0094] Step S2: obtaining a first input voltage of the circuit to be calibrated when the circuit locks the target frequency under the first frequency modulation parameter condition, and determining whether the first input voltage is within a preset voltage range.
[0095] Step S3: When the first input voltage is within the preset voltage range, return to step 403 and loop through the above process of finding the second frequency modulation threshold until the first input voltage is no longer within the preset voltage range, then enter step S4.
[0096] Step S4: Jump out of step 410 and return to step 407.
[0097] In one embodiment, see Figure 6 , step 411 may include the following sub-steps:
[0098] Step L1: When the circuit to be calibrated has a second frequency modulation threshold, in the frequency modulation range information, the current input voltage is incremented by a preset step length to obtain a second frequency modulation parameter of the incremented working voltage, and the second frequency modulation parameter is sent to the circuit to be calibrated.
[0099] Step L2: obtaining a second input voltage of the circuit to be calibrated when the circuit locks the target frequency under the second frequency modulation parameter condition, and determining whether the second input voltage is within a preset voltage range.
[0100] Step L3: When the second input voltage is within the preset voltage range, return to step 403 and loop through the above process of finding the first frequency modulation threshold until the second input voltage is no longer within the preset voltage range, then enter step L4.
[0101] Step L4: Jump out of step 411 and return to step 407.
[0102] Please see Fig. 7A , which is a circuit calibration method of an embodiment of the present application, the method can be Figure 1The electronic device 1 shown performs as a calibration circuit AC and can be applied to FIG. 2A to FIG. 2D In the RF circuit system 200 shown in FIG. 1 , the frequency of the voltage controlled oscillator VCO is calibrated. Taking the voltage controlled oscillator VCO as an example of a circuit to be calibrated, Figure 3B The 9 frequency characteristic curves shown are used as the frequency modulation range information of the voltage controlled oscillator VCO. The method may include the following steps:
[0103] Step 701: Waiting time T0.
[0104] In this step, in a commonly used manner, by scanning each frequency characteristic curve one by one, that is, scanning from curve 1 to curve 9 in sequence, or setting them one by one in the opposite direction from curve 9 to curve 1, it is detected whether each curve can achieve the locking of the target frequency, and whether the input voltage is between the two thresholds of Vth1 and Vth2 when the frequency is locked. The above approach will consume more time when the number of curves is large, which means that power consumption will increase. In addition, during calibration, each time a new capacitor array is configured, the circuit needs a certain amount of time to stabilize, but the stabilization time will vary according to factors such as the external environment. Usually, in order to ensure that the system can be stable, it is necessary to wait for a long time after each configuration of new parameters. In order to reasonably shorten the waiting time, the scanning and judgment can be started once it is stable. T0 is the time to wait for the system to stabilize each time. T0 can be tens of us to hundreds of us, depending on the time required for the system to stabilize.
[0105] Step 702: Determine whether lock is 1, if so, go to step 703, otherwise, go to step 721.
[0106] In this step, lock is a stable flag of the RF circuit system 200. Lock = 1 indicates that the target frequency has been locked, and lock = 0 indicates that the system has not locked the target frequency. The lock signal is provided by the phase frequency detector PFD. The waveform of the phase frequency detector PFD is as follows: Figure 7B As shown in the figure, when the difference between Fref and Fdiv is large, the pulse width of up and dn signals is large, and when the frequencies of Fref and Fdiv are close, the pulse width of up and dn becomes smaller, and the lock signal changes from 0 to 1, indicating that the system has stabilized and the voltage-controlled oscillator VCO outputs the target frequency.
[0107] N represents the number of frequency characteristic curves of the voltage controlled oscillator VCO (in this embodiment, N=9), up and dn are the upper and lower limits of the appropriate frequency characteristic curve (dn represents the first frequency modulation threshold, and up represents the second frequency modulation threshold), up and dn are initially assigned 0, cnt is a counter waiting for the RF circuit system 200 to stabilize, cap_sel represents the number of the capacitance configuration parameter of the voltage controlled oscillator VCO, and Figure 3B The curves curve1 to curve9 in
[0108] In one embodiment, the goal of the calibration scanning process is to find the upper and lower limits of the appropriate target frequency curve, that is, the values of up and dn. To save the scanning process, the scanning can start from the middle curve. Initially, cap_sel = INT(N / 2) is selected to start the scanning, where INT represents the integer function. This embodiment is equivalent to dividing the time for waiting for the system to stabilize into 4 parts. Each time waiting for a T0, it is judged whether it is stable. If lock = 1 at any moment among T0, 2T0, 3T0, and 4T0, the waiting can be jumped out. If lock = 0 after 4T0, it is considered that the system locking fails. At this time, the output frequency of the voltage-controlled oscillator VCO must be too fast or too slow, that is, Vc > Vth2 or Vc < Vth1.
[0109] Step 702: If lock = 1, start to judge the relationship between the current input voltage Vc and Vth1, Vth2. First, judge whether Vth1 < Vc < Vth2 is satisfied. If it is satisfied, go to step 704; otherwise, go to step 715.
[0110] Step 704: If Vth1 < Vc < Vth2 is satisfied, then judge whether the currently scanned cap_sel (the current frequency modulation parameter) is 1. If it is, go to step 705; otherwise, go to step 710.
[0111] Step 705: If it is 1, it means that the lower limit of the frequency modulation of the voltage-controlled oscillator VCO is the first curve. Therefore, assign cap_sel to dn and go to step 706 to find the upper limit.
[0112] Step 706: Judge whether up ≠ 0? If it is, it means that the upper limit has also been found, and go to step 720. Otherwise, go to step 707.
[0113] Step 707: If up = 0, it means that the upper limit has not been found yet. At this time, judge whether the currently scanned cap_sel value is greater than INT(N / 2). If cap_sel > INT(N / 2), it means that the upper half curve is currently being scanned, and go to step 708. Otherwise, go to step 709.
[0114] Step 708: Continue to scan upward with cap_sel + 1.
[0115] Step 709: If cap_sel > INT(N / 2), it means that the scanning of the lower half curve has just been completed. Assign INT(N / 2) + 1 to cap_sel and return to step 701 to continue scanning upward to find the upper limit.
[0116] Step 710: If cap_sel is not 1, then determine whether cap_sel is N. If so, proceed to Step 711; otherwise, proceed to Step 714.
[0117] Step 711: If cap_sel is N, it indicates that the upper frequency modulation limit of the voltage-controlled oscillator VCO is the frequency modulation parameter corresponding to N (in this embodiment, N = 9). Assign N to up and proceed to Step 712.
[0118] Step 712: Then determine whether the lower limit has been found, that is, determine whether dn ≠ 0? If so, if dn ≠ 0, it means the lower limit has been found, and proceed to Step 720. Otherwise, proceed to Step 713.
[0119] Step 713: If dn = 0, the lower limit has not been found yet, so continue to configure downward and scan with cap_sel - 1. Then return to Step 701.
[0120] Step 714: If cap_sel is not N, then determine whether the lower limit has been found at this time, that is, determine whether dn ≠ 0? If dn = 0, it means the lower limit has not been found, then return to Step 713 and search downward for the lower limit with cap_sel - 1. Otherwise, if dn ≠ 0, return to Step 708.
[0121] Step 715: If Vth1 < Vc < Vth2 is not satisfied, then determine whether Vc > Vth2. If Vc > Vth2 is satisfied, it means the lower limit has been found, and proceed to Step 716; otherwise, proceed to Step 717.
[0122] Step 716: Assign cap_sel + 1 to dn, indicating that the curve above is the lower limit that meets the conditions. Then return to Step 706 to determine whether the upper limit has been found, and the determination process is the same as described in the above steps.
[0123] Step 717: If Vc > Vth2 is not satisfied, then determine whether Vc < Vth1 is satisfied. If the result is yes, it means the upper limit has been found, and proceed to Step 718; otherwise, proceed to Step 719.
[0124] Step 718: Assign cap_sel - 1 to up as the upper limit and return to Step 712 to determine whether the lower limit has been found. If dn ≠ 0, it means both the upper and lower limits have been found; if dn = 0, it means the lower limit has not been found yet, then subtract 1 from cap_sel and continue to scan downward to find the lower limit until the lower limit is finally found.
[0125] Step 719: If Vc < Vth1 is not satisfied, then assign 1 to ERROR and end.
[0126] Step 720: When both the upper and lower limits are found, the cap_sel value corresponding to the final target frequency modulation parameter can be calculated in combination with the frequency modulation factor. Because the Vth1 threshold is closer to the non-ideal working state of the circuit during actual operation, we tend to take Vc closer to the Vth2 threshold. Therefore, the frequency modulation factor can be set to 1, and the target frequency modulation parameter cap_sel = INT[(up+dn+1) / 2]. The target frequency modulation parameter is then sent to the voltage-controlled oscillator VCO so that the voltage-controlled oscillator VCO can work stably under the condition of the target frequency modulation parameter. This achieves automatic calibration of the voltage-controlled oscillator VCO.
[0127] In one embodiment, in the above judgment process, assuming that N=9, it can be finally found that the upper frequency limit of the voltage-controlled oscillator VCO is up=6, and the lower frequency limit dn=4, so cap_sel=INT[(up+dn+1) / 2]=5. Figure 3B As shown, that is, under the condition of locking the target frequency f0, it is finally determined that curve curve5 is the most suitable frequency characteristic curve and V3 is the most ideal working point.
[0128] The calibration scanning process ends after the upper and lower boundaries are found, thereby reducing useless scanning processes as much as possible and reducing the power consumption of the chip.
[0129] Please see Fig. 8A , which is a circuit calibration device 800 of an embodiment of the present application, which can be applied to Figure 1 The electronic device 1 shown can be applied to FIG. 2A to FIG. 2D In the RF circuit system 200 shown, the calibration module is used to calibrate the frequency of the voltage controlled oscillator VCO. The device includes: an acquisition module 81, a judgment module 82, a selection module 83 and a determination module 84. The principle relationship between each module is as follows:
[0130] The acquisition module 81 is used to acquire the current input voltage, current frequency modulation parameters and preset frequency modulation range information of the circuit to be calibrated when the circuit to be calibrated locks the preset target frequency. For details, refer to the description of step 301 in the above embodiment.
[0131] The judging module 82 is used to judge whether the current input voltage is within a preset voltage range. For details, please refer to the description of step 302 in the above embodiment.
[0132] The selection module 83 is used to select a target frequency modulation parameter from the frequency modulation range information according to the current frequency modulation parameter when the current input voltage is within the preset voltage range, and the target frequency modulation parameter enables the circuit to be calibrated to output a target frequency. For details, refer to the description of step 303 in the above embodiment.
[0133] The determination module 84 is used to select a target frequency modulation parameter from the frequency modulation range information according to the endpoint value of the preset voltage range when the current input voltage is not within the preset voltage range. For details, please refer to the description of step 304 in the above embodiment.
[0134] In one embodiment, see Figure 8B The selection module 83 includes: a first judging unit 831, which is used to judge whether the current frequency modulation parameter is the endpoint value of the frequency modulation range information. A first determining unit 832 is used to determine the target frequency modulation parameter that makes the circuit to be calibrated output the target frequency from the frequency modulation range information according to the endpoint value of the frequency modulation range information when the current frequency modulation parameter is the endpoint value of the frequency modulation range information. For details, please refer to the description of steps 403 to 405 and steps 410 to 413 in the above embodiment.
[0135] In one embodiment, the first determination unit 832 is used to: when the current frequency modulation parameter is the first endpoint value of the frequency modulation range information, determine that the first frequency modulation threshold of the circuit to be calibrated is the current frequency modulation parameter, and under the same output frequency, the working voltage of the second endpoint value of the frequency modulation range information is less than the working voltage of the first endpoint value of the frequency modulation range information. From the frequency modulation range information, select the second frequency modulation threshold of the circuit to be calibrated, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the working voltage of the second frequency modulation threshold is greater than the working voltage of the first frequency modulation threshold. For details, refer to the description of step 404, step 410 to step 413 in the above embodiment.
[0136] In one embodiment, the first determination unit 832 is used to: when the current frequency modulation parameter is the second endpoint value of the frequency modulation range information, determine that the second frequency modulation threshold of the circuit to be calibrated is the current frequency modulation parameter, and under the same output frequency, the working voltage of the second endpoint value of the frequency modulation range information is less than the working voltage of the first endpoint value of the frequency modulation range information. From the frequency modulation range information, select the first frequency modulation threshold of the circuit to be calibrated, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the working voltage of the second frequency modulation threshold is greater than the working voltage of the first frequency modulation threshold. For details, refer to the description of step 405 and step 411 to step 413 in the above embodiment.
[0137] In one embodiment, the selection module 83 further includes: a second judgment unit 833, which is used to judge whether the circuit to be calibrated already has a first frequency modulation threshold or a second frequency modulation threshold when the current frequency modulation parameter is not the endpoint value of the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the working voltage of the second frequency modulation threshold is greater than the working voltage of the first frequency modulation threshold. A first selection unit 834 is used to select the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information when the circuit to be calibrated already has a first frequency modulation threshold. The first selection unit 834 is also used to select the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information when the circuit to be calibrated already has a second frequency modulation threshold. For details, refer to the description of step 406 and step 410 to step 413 in the above embodiment.
[0138] In one embodiment, the determination module 84 includes: a third judgment unit 841, which is used to determine whether the current input voltage is greater than the upper endpoint value of the preset voltage range or less than the lower endpoint value of the preset voltage range when the current input voltage is not within the preset voltage range, and the upper endpoint value of the preset voltage range is greater than the lower endpoint value of the preset voltage range. A second determination unit 842 is used to determine that the first frequency modulation threshold of the circuit to be calibrated is a frequency modulation parameter whose operating voltage is less than the current input voltage when the current input voltage is greater than the upper endpoint value of the preset voltage range. A second selection unit 843 is used to select the second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the operating voltage of the second frequency modulation threshold is greater than the operating voltage of the first frequency modulation threshold. For details, refer to the description of steps 407 to 408 and steps 410 to 413 in the above embodiments.
[0139] In one embodiment, the second determining unit 842 is further used to: when the current input voltage is less than the lower endpoint value of the preset voltage range, determine the second frequency modulation threshold of the circuit to be calibrated as the frequency modulation parameter of the operating voltage being greater than the current input voltage. The second selecting unit 843 is further used to select the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information. For details, refer to the description of step 407, step 409, and step 411 to step 413 in the above embodiment.
[0140] In one embodiment, the second frequency modulation threshold of the circuit to be calibrated is selected from the frequency modulation range information, including: when the circuit to be calibrated already has a first frequency modulation threshold, in the frequency modulation range information, the current input voltage is decreased according to a preset step length, the first frequency modulation parameter to which the working voltage after the decrease is obtained, and the first frequency modulation parameter is sent to the circuit to be calibrated. The first input voltage of the circuit to be calibrated when the target frequency is locked under the first frequency modulation parameter condition is obtained, and it is determined whether the first input voltage is within the preset voltage range. When the first input voltage is within the preset voltage range, the step of selecting the target frequency modulation parameter from the frequency modulation range information according to the current frequency modulation parameter is cyclically executed, and the target frequency modulation parameter causes the circuit to be calibrated to output the target frequency, until the first input voltage is not within the preset voltage range, the step of selecting the target frequency modulation parameter from the frequency modulation range information according to the endpoint value of the preset voltage range is executed. For details, refer to the description of steps S1 to S3 in the above embodiment.
[0141] In one embodiment, the first frequency modulation threshold of the circuit to be calibrated is selected from the frequency modulation range information, including: when the circuit to be calibrated already has a second frequency modulation threshold, in the frequency modulation range information, the current input voltage is incremented according to a preset step length, the second frequency modulation parameter to which the incremented working voltage belongs is obtained, and the second frequency modulation parameter is sent to the circuit to be calibrated. The second input voltage of the circuit to be calibrated when the target frequency is locked under the second frequency modulation parameter condition is obtained, and it is determined whether the second input voltage is within the preset voltage range. When the second input voltage is within the preset voltage range, the step of selecting the target frequency modulation parameter from the frequency modulation range information according to the current frequency modulation parameter is cyclically executed, and the target frequency modulation parameter causes the circuit to be calibrated to output the target frequency, until the second input voltage is not within the preset voltage range, the step of selecting the target frequency modulation parameter from the frequency modulation range information according to the endpoint value of the preset voltage range is executed. For details, refer to the description of steps L1 to L3 in the above embodiment.
[0142] In one embodiment, the acquisition module 81 is further used to acquire the frequency modulation factor of the circuit to be calibrated. The selection module 83 is further used to select the target frequency modulation parameter from the frequency modulation range information according to the second frequency modulation threshold, the first frequency modulation threshold and the frequency modulation factor. For details, refer to the description of steps 412 to 413 in the above embodiment.
[0143] In one embodiment, the method further includes: a sending module 85 for sending the target frequency modulation parameters to the circuit to be calibrated. For details, please refer to the description of step 414 in the above embodiment.
[0144] For a detailed description of the circuit calibration device 800 , please refer to the description of the relevant method steps in the above embodiment.
[0145] The embodiment of the present invention also provides a non-transitory electronic device readable storage medium, including: a program, when it is run on an electronic device, the electronic device can execute all or part of the process of the method in the above embodiment. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated: HDD) or a solid-state drive (SSD), etc. The storage medium can also include a combination of the above types of memory.
[0146] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A circuit calibration method, characterized in that: include: When the circuit to be calibrated locks the preset target frequency, obtaining the current input voltage, current frequency modulation parameters and preset frequency modulation range information of the circuit to be calibrated; Determining whether the current input voltage is within a preset voltage range; When the current input voltage is within the preset voltage range, a target frequency modulation parameter is selected from the frequency modulation range information according to the current frequency modulation parameter, and the target frequency modulation parameter enables the circuit to be calibrated to output the target frequency; When the current input voltage is not within the preset voltage range, selecting a target frequency modulation parameter from the frequency modulation range information according to an endpoint value of the preset voltage range; Wherein, when the current input voltage is within the preset voltage range, selecting a target frequency modulation parameter from the frequency modulation range information according to the current frequency modulation parameter, wherein the target frequency modulation parameter enables the circuit to be calibrated to output the target frequency, comprises: Determining whether the current frequency modulation parameter is an endpoint value of the frequency modulation range information; When the current frequency modulation parameter is an endpoint value of the frequency modulation range information, determining the target frequency modulation parameter for causing the circuit to be calibrated to output the target frequency from the frequency modulation range information according to the endpoint value of the frequency modulation range information; The step of selecting a target frequency modulation parameter from the frequency modulation range information according to the endpoint value of the preset voltage range includes: When the current input voltage is not within the preset voltage range, determining whether the current input voltage is greater than an upper endpoint value of the preset voltage range or less than a lower endpoint value of the preset voltage range, the upper endpoint value of the preset voltage range being greater than the lower endpoint value of the preset voltage range; When the current input voltage is greater than the upper endpoint value of the preset voltage range, determining the first frequency modulation threshold of the circuit to be calibrated as a frequency modulation parameter whose operating voltage is less than the current input voltage; A second frequency modulation threshold of the circuit to be calibrated is selected from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, an operating voltage of the second frequency modulation threshold is greater than an operating voltage of the first frequency modulation threshold.
2. The method according to claim 1, characterized in that The step of determining the target frequency modulation parameter for causing the circuit to be calibrated to output the target frequency from the frequency modulation range information according to the endpoint value of the frequency modulation range information when the current frequency modulation parameter is the endpoint value of the frequency modulation range information comprises: When the current frequency modulation parameter is the first endpoint value of the frequency modulation range information, determining that the first frequency modulation threshold of the circuit to be calibrated is the current frequency modulation parameter, and under the same output frequency, the operating voltage of the second endpoint value of the frequency modulation range information is less than the operating voltage of the first endpoint value of the frequency modulation range information; A second frequency modulation threshold of the circuit to be calibrated is selected from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, an operating voltage of the second frequency modulation threshold is greater than an operating voltage of the first frequency modulation threshold.
3. The method according to claim 1, characterized in that The step of determining the target frequency modulation parameter for causing the circuit to be calibrated to output the target frequency from the frequency modulation range information according to the endpoint value of the frequency modulation range information when the current frequency modulation parameter is the endpoint value of the frequency modulation range information comprises: When the current frequency modulation parameter is the second endpoint value of the frequency modulation range information, determining that the second frequency modulation threshold of the circuit to be calibrated is the current frequency modulation parameter, and under the same output frequency, the operating voltage of the second endpoint value of the frequency modulation range information is less than the operating voltage of the first endpoint value of the frequency modulation range information; A first frequency modulation threshold of the circuit to be calibrated is selected from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, an operating voltage of the second frequency modulation threshold is greater than an operating voltage of the first frequency modulation threshold.
4. The method according to claim 1, characterized in that Also includes: When the current frequency modulation parameter is not an endpoint value of the frequency modulation range information, determining whether the circuit to be calibrated already has a first frequency modulation threshold or a second frequency modulation threshold, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the operating voltage of the second frequency modulation threshold is greater than the operating voltage of the first frequency modulation threshold; When the circuit to be calibrated already has the first frequency modulation threshold, selecting a second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information; When the second frequency modulation threshold already exists for the circuit to be calibrated, the first frequency modulation threshold of the circuit to be calibrated is selected from the frequency modulation range information.
5. The method according to claim 1, characterized in that Also includes: When the current input voltage is less than the lower endpoint value of the preset voltage range, determining the second frequency modulation threshold of the circuit to be calibrated as a frequency modulation parameter whose operating voltage is greater than the current input voltage; A first frequency modulation threshold of the circuit to be calibrated is selected from the frequency modulation range information.
6. The method according to claim 1, 2 or 4, characterized in that: The step of selecting a second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information includes: When the circuit to be calibrated already has the first frequency modulation threshold, in the frequency modulation range information, the current input voltage is decreased according to a preset step length, a first frequency modulation parameter to which the decreased working voltage belongs is obtained, and the first frequency modulation parameter is sent to the circuit to be calibrated; Acquire a first input voltage of the circuit to be calibrated when it locks the target frequency under the first frequency modulation parameter condition, and determine whether the first input voltage is within the preset voltage range; When the first input voltage is within the preset voltage range, the step of selecting target frequency modulation parameters from the frequency modulation range information based on the current frequency modulation parameters, wherein the target frequency modulation parameters enable the circuit to be calibrated to output the target frequency, is executed in a loop until the first input voltage is not within the preset voltage range, and the step of selecting target frequency modulation parameters from the frequency modulation range information based on the endpoint values of the preset voltage range is executed.
7. The method according to claim 3, 4 or 5, characterized in that: The step of selecting a first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information includes: When the circuit to be calibrated already has the second frequency modulation threshold, in the frequency modulation range information, the current input voltage is incremented according to a preset step length, a second frequency modulation parameter to which the incremented working voltage belongs is obtained, and the second frequency modulation parameter is sent to the circuit to be calibrated; Acquire a second input voltage of the circuit to be calibrated when it locks the target frequency under the second frequency modulation parameter condition, and determine whether the second input voltage is within the preset voltage range; When the second input voltage is within the preset voltage range, the step of selecting target frequency modulation parameters from the frequency modulation range information based on the current frequency modulation parameters, wherein the target frequency modulation parameters enable the circuit to be calibrated to output the target frequency, is executed in a loop until the second input voltage is not within the preset voltage range, and the step of selecting target frequency modulation parameters from the frequency modulation range information based on the endpoint values of the preset voltage range is executed.
8. The method according to any one of claims 2 to 5, characterized in that Also includes: Obtaining a frequency modulation factor of the circuit to be calibrated; The target frequency modulation parameter is selected from the frequency modulation range information according to the second frequency modulation threshold, the first frequency modulation threshold, and the frequency modulation factor.
9. The method according to claim 1, characterized in that: Also includes: The target frequency modulation parameter is sent to the circuit to be calibrated.
10. A circuit calibration device, characterized in that: include: An acquisition module, used to acquire the current input voltage, current frequency modulation parameters and preset frequency modulation range information of the circuit to be calibrated when the circuit to be calibrated locks the preset target frequency; A judging module, used to judge whether the current input voltage is within a preset voltage range; a selection module, configured to select a target frequency modulation parameter from the frequency modulation range information according to the current frequency modulation parameter when the current input voltage is within the preset voltage range, the target frequency modulation parameter causing the circuit to be calibrated to output the target frequency; a determination module, configured to select a target frequency modulation parameter from the frequency modulation range information according to an endpoint value of the preset voltage range when the current input voltage is not within the preset voltage range; Wherein, the selection module includes: a first judgment unit, used to judge whether the current frequency modulation parameter is an endpoint value of the frequency modulation range information; A first determining unit is used to determine the target frequency modulation parameter that enables the circuit to be calibrated to output the target frequency from the frequency modulation range information according to the endpoint value of the frequency modulation range information when the current frequency modulation parameter is an endpoint value of the frequency modulation range information; Wherein, the determination module includes: a third judgment unit, used for judging whether the current input voltage is greater than the upper endpoint value of the preset voltage range or less than the lower endpoint value of the preset voltage range when the current input voltage is not within the preset voltage range, and the upper endpoint value of the preset voltage range is greater than the lower endpoint value of the preset voltage range; A second determining unit, configured to determine, when the current input voltage is greater than an upper endpoint value of the preset voltage range, that a first frequency modulation threshold of the circuit to be calibrated is a frequency modulation parameter at which the operating voltage is less than the current input voltage; A second selection unit is used to select a second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the operating voltage of the second frequency modulation threshold is greater than the operating voltage of the first frequency modulation threshold.
11. The device according to claim 10, characterized in that The first determining unit is used for: When the current frequency modulation parameter is the first endpoint value of the frequency modulation range information, determining that the first frequency modulation threshold of the circuit to be calibrated is the current frequency modulation parameter, and under the same output frequency, the operating voltage of the second endpoint value of the frequency modulation range information is less than the operating voltage of the first endpoint value of the frequency modulation range information; A second frequency modulation threshold of the circuit to be calibrated is selected from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, an operating voltage of the second frequency modulation threshold is greater than an operating voltage of the first frequency modulation threshold.
12. The device according to claim 10, characterized in that The first determining unit is used for: When the current frequency modulation parameter is the second endpoint value of the frequency modulation range information, determining that the second frequency modulation threshold of the circuit to be calibrated is the current frequency modulation parameter, and under the same output frequency, the operating voltage of the second endpoint value of the frequency modulation range information is less than the operating voltage of the first endpoint value of the frequency modulation range information; A first frequency modulation threshold of the circuit to be calibrated is selected from the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, an operating voltage of the second frequency modulation threshold is greater than an operating voltage of the first frequency modulation threshold.
13. The device according to claim 10, characterized in that The selected modules also include: A second judgment unit is used for judging whether the circuit to be calibrated already has a first frequency modulation threshold or a second frequency modulation threshold when the current frequency modulation parameter is not an endpoint value of the frequency modulation range information, and when the first frequency modulation threshold and the second frequency modulation threshold make the circuit to be calibrated lock the same target frequency, the working voltage of the second frequency modulation threshold is greater than the working voltage of the first frequency modulation threshold; A first selecting unit, configured to select a second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information when the circuit to be calibrated already has the first frequency modulation threshold; The first selecting unit is further configured to select the first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information when the circuit to be calibrated already has the second frequency modulation threshold.
14. The device according to claim 10, characterized in that The second determining unit is further configured to: When the current input voltage is less than the lower endpoint value of the preset voltage range, determining the second frequency modulation threshold of the circuit to be calibrated as a frequency modulation parameter whose operating voltage is greater than the current input voltage; The second selection unit is further configured to select a first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information.
15. The device according to claim 10, 11 or 13, characterized in that: The step of selecting a second frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information includes: When the circuit to be calibrated already has the first frequency modulation threshold, in the frequency modulation range information, the current input voltage is decreased according to a preset step length, a first frequency modulation parameter to which the decreased working voltage belongs is obtained, and the first frequency modulation parameter is sent to the circuit to be calibrated; Acquire a first input voltage of the circuit to be calibrated when it locks the target frequency under the first frequency modulation parameter condition, and determine whether the first input voltage is within the preset voltage range; When the first input voltage is within the preset voltage range, the step of selecting target frequency modulation parameters from the frequency modulation range information based on the current frequency modulation parameters, wherein the target frequency modulation parameters enable the circuit to be calibrated to output the target frequency, is executed in a loop until the first input voltage is not within the preset voltage range, and the step of selecting target frequency modulation parameters from the frequency modulation range information based on the endpoint values of the preset voltage range is executed.
16. The device according to claim 12, 13 or 14, characterized in that The step of selecting a first frequency modulation threshold of the circuit to be calibrated from the frequency modulation range information includes: When the circuit to be calibrated already has the second frequency modulation threshold, in the frequency modulation range information, the current input voltage is incremented according to a preset step length, a second frequency modulation parameter to which the incremented working voltage belongs is obtained, and the second frequency modulation parameter is sent to the circuit to be calibrated; Acquire a second input voltage of the circuit to be calibrated when it locks the target frequency under the second frequency modulation parameter condition, and determine whether the second input voltage is within the preset voltage range; When the second input voltage is within the preset voltage range, the step of selecting target frequency modulation parameters from the frequency modulation range information based on the current frequency modulation parameters, wherein the target frequency modulation parameters enable the circuit to be calibrated to output the target frequency, is executed in a loop until the second input voltage is not within the preset voltage range, and the step of selecting target frequency modulation parameters from the frequency modulation range information based on the endpoint values of the preset voltage range is executed.
17. The device according to any one of claims 11 to 14, characterized in that The acquisition module is further used to acquire the frequency modulation factor of the circuit to be calibrated; The selection module is further used to select the target frequency modulation parameter from the frequency modulation range information according to the second frequency modulation threshold, the first frequency modulation threshold and the frequency modulation factor.
18. The device according to claim 10, characterized in that Also includes: A sending module is used to send the target frequency modulation parameter to the circuit to be calibrated.
19. A radio frequency circuit system, characterized in that: include: Voltage controlled oscillator; A frequency divider, whose input end is connected to the voltage-controlled oscillator, and is used to perform frequency division processing on the output frequency of the voltage-controlled oscillator to generate a frequency division signal; A frequency detector and phase detector connected to the output end of the frequency divider, used for comparing the reference frequency with the frequency divided signal to generate a comparison signal; A charge pump connected to the frequency detector and phase detector, and used for generating a voltage-controlled voltage according to the comparison signal; A loop filter, the input end of which is connected to the charge pump, the output end of which is connected to the voltage-controlled oscillator, and is used to generate an input voltage of the voltage-controlled oscillator after filtering the voltage-controlled voltage, and transmit the input voltage to the voltage-controlled oscillator; A calibration circuit is connected to the loop filter and the voltage-controlled oscillator respectively, and is used to calibrate the voltage-controlled oscillator using the circuit calibration method according to any one of claims 1 to 9.
20. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the method according to any one of claims 1 to 9, so as to calibrate the circuit to be calibrated.
21. A non-transitory electronic device readable storage medium, characterized in that: The invention comprises: a program, which, when executed by an electronic device, causes the electronic device to execute the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Phase-locked loop and automatic frequency calibration circuit thereof and phase-locked loop self-tuning locking method
CN101951259A
Frequency calibration circuit and method thereof
CN104135285A