Resistance and capacitance adjusting system based on phase-locked loop
By adjusting the resistance and capacitance value of the filter in the phase-locked loop circuit, and according to the bandwidth ratio and damping coefficient calculation formula, the problem of the output frequency range of the phase-locked loop decreases when the power supply voltage changes, realizing the stability of the phase-locked loop Improved operating and frequency accuracy.
Patent Information
- Application Number
- CN202310561433.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2024-11-22
AI Technical Summary
When the power supply voltage of the existing phase-locked loop circuit decreases, the gain value of the voltage-controlled oscillator changes, resulting in a decrease in the output frequency range and a decrease in margin, resulting in unstable operation of the phase-locked loop and difficult to meet the frequency accuracy requirements.
By introducing a resistor and capacitance adjustment system into the phase-locked loop circuit, the resistance and capacitance value of the filter is adjusted using the bandwidth ratio and damping coefficient calculation formula to ensure that the loop parameters are within the preset margin range and achieve stable operation of the phase-locked loop .
In the case of consuming the smallest circuit area, the stable operation of the phase-locked loop circuit is maintained to ensure accurate locking of frequency and phase, and improve the working stability and frequency accuracy of the phase-locked loop.
Smart Images

Figure CN119010890A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of circuit parameter adjustment of a phase-locked loop, and in particular to a resistance and capacitance adjustment system based on a phase-locked loop. Background Art
[0002] The phase-locked loop is a very important functional system, such as providing one or more clocks with required frequencies in a chip system, generating local oscillator signals in a receiver, and maintaining synchronization in a communication system. The phase-locked loop is usually composed of a phase frequency detector, a charge pump, a low-pass filter, a voltage-controlled oscillator, and a frequency divider, and forms a feedback loop. The phase frequency detector is used to detect the frequency difference and phase difference between the feedback signal and the reference signal generated by the crystal oscillator, and generate a pulse control signal; the charge pump responds to the pulse control signal to provide a charging current or a discharging current for the low-pass filter; the low-pass filter filters the output electrical signal of the charge pump, and inputs the filtered output voltage signal into the voltage-controlled oscillator as the control voltage of the voltage-controlled oscillator; the voltage-controlled oscillator generates an oscillation voltage output signal in response to the control voltage provided by the low-pass filter; the frequency divider is used to divide the oscillation voltage output signal and generate a feedback signal input to the phase frequency detector. During the operation of the phase-locked loop, when the phases of the reference signal and the feedback signal maintain a fixed difference, it means that the phases of the output voltage and the input voltage are locked, that is, the phase-locked loop is locked. Therefore, an output signal fo with locked frequency and phase is generated through the phase-locked loop circuit.
[0003] Among them, Kvco, as the gain value of the voltage-controlled oscillator, represents the ratio between the output frequency change value of the voltage-controlled oscillator and the control voltage change value thereof. If the power supply voltage of the phase-locked loop decreases, the control voltage of the voltage-controlled oscillator also decreases, which means that Kvco needs to increase. The circuit parameter adjustment method of the prior art will make the Kvco change smaller, but will reduce the output frequency range of the voltage-controlled oscillator, that is, the margin is reduced, resulting in the output frequency of the phase-locked loop not being easy to meet the pre-configured frequency accuracy requirements, which may cause the phase-locked loop to work unstably (causing some or all of the loop parameters in the phase-locked loop to change). Summary of the invention
[0004] A resistance and capacitance adjustment system based on a phase-locked loop, the resistance and capacitance adjustment system includes a pre-divider, a phase frequency detector, a charge pump, a filter, a voltage-controlled oscillator, a loop frequency divider and a circuit parameter adjuster; the phase frequency detector, the charge pump, the filter, the voltage-controlled oscillator and the loop frequency divider are coupled end to end to form a phase-locked loop circuit; the circuit parameter adjuster is coupled to the phase-locked loop circuit, and the circuit parameter adjuster is used to adjust the filter resistance inside the filter according to the bandwidth ratio calculation formula, and adjust the filter capacitance inside the filter according to the damping coefficient calculation formula, so that the loop parameters generated by the phase-locked loop circuit are within a preset margin range. This technical solution builds a phase-locked loop circuit with a minimized area by changing the capacitance value and resistance value in the loop filter, selecting or configuring the filter resistance and filter capacitance, and selecting or configuring a loop that occupies a smaller area and plays a phase-locked role based on the bandwidth ratio calculation formula and the damping coefficient calculation formula, so as to maintain the stable operation of the phase-locked loop circuit while consuming as little circuit area as possible.
[0005] Furthermore, the bandwidth ratio calculation formula includes: Among them, ω c is the loop bandwidth, ω i is the frequency of the reference signal input to the phase frequency detector; is the bandwidth ratio, fo is the frequency of the signal to be divided input to the loop divider, R l is the resistance value of the filter resistor inside the filter; K o is the gain value of the voltage-controlled oscillator, which is used to indicate the rate of change of the output signal frequency of the voltage-controlled oscillator relative to the control voltage of the voltage-controlled oscillator; K d is the ratio of the output current of the charge pump to its phase; wherein the frequency division signal output by the loop frequency divider is set as the feedback signal of the input frequency and phase detector. The bandwidth ratio calculation formula set in the technical solution realizes the calculation of the bandwidth ratio on the basis of offsetting some circuit parameters, overcoming the influence of the filter capacitor, the reference capacitor, the frequency division coefficient of the pre-frequency divider, and the frequency division coefficient of the loop frequency divider.
[0006] Furthermore, the method for adjusting the filter resistance inside the filter according to the bandwidth ratio calculation formula by the circuit parameter regulator includes: configuring the circuit parameter regulator to o and K d Under the condition that K o When the circuit parameter adjuster increases, the resistance value of the filter resistor R l The circuit parameter regulator configures fo and K d Under the condition that K o When the circuit parameter adjuster reduces the resistance value of the filter resistor R lIncrease the bandwidth ratio so that it is within the first preset margin range. To ensure the stable operation of the phase-locked loop, at least the bandwidth ratio can be locked within a fixed range and not affected by K o The impact of change.
[0007] Furthermore, the damping coefficient calculation formula includes: Among them, C l is the capacitance value of the filter capacitor inside the filter; fin is the frequency of the signal to be processed input to the pre-divider, ζ is the damping coefficient, Pdiv is the frequency division coefficient of the pre-divider, and the signal to be processed input to the pre-divider is from the crystal oscillator. This technical solution adjusts the capacitance value according to the calculation rules specified by the damping calculation formula, which can be understood as calculating the damping coefficient on the basis of offsetting some circuit parameters to overcome the influence of the frequency division coefficient of the loop divider.
[0008] Furthermore, the method for adjusting the filter capacitor inside the filter according to the damping coefficient calculation formula by the circuit parameter adjuster includes: configuring fo, K d , fin and Pdiv remain unchanged, if K o Increase the resistance value of the filter resistor R l decreases, the circuit parameter adjuster will reduce the capacitance value C of the filter capacitor l Increase so that the damping coefficient is within the second preset margin range and the bandwidth ratio is within the first preset margin range; configure fo, K d , fin and Pdiv remain unchanged, if K o Reduce the resistance value of the filter resistor R l increases, the circuit parameter adjuster will increase the capacitance value C of the filter capacitor l The damping coefficient is adjusted down so that the damping coefficient is within the second preset margin range, and the bandwidth ratio is within the first preset margin range; wherein the loop parameters generated by the phase-locked loop circuit include the bandwidth ratio and the damping coefficient, and the preset margin range includes the first preset margin range and the second preset margin range. Thus, when some circuit parameters are fixed, the problem of the voltage-controlled oscillator gain value destroying the phase-locked state due to changes in internal model parameters or changes in electrical quantity (supply voltage and current) can be overcome by adjusting the filter capacitor and the filter resistor.
[0009] Furthermore, the circuit parameter regulator is used to reduce the resistance value of the filter resistor inside the filter when the gain value of the voltage-controlled oscillator increases, so as to control the bandwidth ratio to be within a first preset margin range; and then increase the capacitance value of the filter capacitor inside the filter to control the damping coefficient to be within a second preset margin range; wherein the increase multiple of the gain value of the voltage-controlled oscillator is equal to the increase multiple of the capacitance value of the filter capacitor, so that the capacitance value of the filter capacitor inside the filter is not adjusted to increase in square multiples when participating in the calculation of the damping coefficient; the circuit parameter regulator is also used to increase the resistance value of the filter resistor inside the filter when the gain value of the voltage-controlled oscillator decreases, so as to control the bandwidth ratio to be within a first preset margin range; and then reduce the capacitance value of the filter capacitor inside the filter to control the damping coefficient to be within a second preset margin range; wherein the decrease multiple of the gain value of the voltage-controlled oscillator is equal to the decrease multiple of the capacitance value of the filter capacitor. This technical solution does not require setting the capacitance value of the filter capacitor to the square of the resistance value of the filter resistor to be reduced because the resistance value of the filter resistor inside the filter is reduced. It also overcomes the problem that the capacitance level inside the filter is not large enough, and achieves the goal of minimizing the increase in the area of the phase-locked loop circuit.
[0010] Further, the filter is provided with a preset number of resistance gears and a preset number of capacitance gears, each resistance gear has a matching capacitance gear, connected to form a filter resistor and a filter capacitor in series; a circuit parameter adjuster is used to output a control code to the filter; the circuit parameter adjuster is coupled to the filter, and the circuit parameter adjuster is used to switch the resistance gear to change the resistance value of the filter resistor inside the filter, and / or switch the capacitance gear to change the capacitance value of the filter capacitor inside the filter when receiving the control code. The circuit parameter adjuster controls the loop parameters generated by the phase-locked loop circuit to be within a preset margin range by switching the capacitance gear and the resistance gear, and supports reducing the capacitance value of the filter capacitor inside the filter to reduce the loop area that plays a phase-locking role in the phase-locked loop circuit.
[0011] Further, the control code includes a capacitance control code corresponding to the capacitance value and a resistance control code corresponding to the resistance value; the filter includes a preset number of capacitors to be selected, a preset number of resistors to be selected, a reference capacitor and twice the preset number of switch circuits; the first end of each resistor to be selected is coupled to the output end of the charge pump through a switch circuit, and the second end of each resistor to be selected is coupled to the first end of a corresponding capacitor to be selected through a switch circuit, and the second ends of the capacitors to be selected are coupled to ground, wherein the first end of the reference capacitor is coupled to the output end of the charge pump, and the second end of the reference capacitor is coupled to ground; the resistance control code corresponding to the resistance value output by the circuit parameter adjuster is used to control the opening and closing of the switch circuit coupled between the first end of the resistor to be selected and the output end of the charge pump, and the switching circuit coupled between the first end of the resistor to be selected and the output end of the charge pump. When the switch circuit between the first end of the selected resistor and the output end of the charge pump is closed, it indicates that a selected resistor connected to the closed switch circuit is selected, and the selected resistor is determined to become the filter resistor in the filter, and the filter is determined to switch to the resistance gear corresponding to the resistance control code; the capacitance control code corresponding to the capacitance value output by the circuit parameter regulator is used to control the opening and closing of the switch circuit coupled between the first end of the selected capacitor and the second end of the selected resistor, and when the switch circuit coupled between the first end of the selected capacitor and the second end of the selected resistor is closed, it indicates that a selected capacitor connected to the closed switch circuit is selected, and the selected capacitor is determined to become the filter capacitor in the filter, and the filter is determined to switch to the capacitance gear corresponding to the capacitance control code. This technical solution enables a resistance gear to be connected to the phase-locked loop circuit in series with only a corresponding capacitance gear, forming multiple groups of independent resistance-capacitance matching modes.
[0012] Further, inside the filter, among all the switch circuits coupled between the first end of each resistor to be selected and the output end of the charge pump, under the control of the resistance control code currently output by the circuit parameter adjuster, there is a switch circuit that changes from open to closed, and there is a switch circuit that changes from closed to open, and the other switch circuits remain open, and it is determined that the filter is switched from the resistance gear corresponding to the resistance control code output in advance to the resistance gear corresponding to the resistance control code currently output, so as to increase or decrease the resistance value of the filter resistor inside the filter; inside the filter, among all the switch circuits coupled between the first end of each filter capacitor and the second end of the corresponding filter resistor, under the control of the capacitance control code currently output by the circuit parameter adjuster, there is a switch circuit that changes from open to closed, and there is a switch circuit that changes from closed to open, and the other switch circuits remain open, and it is determined that the filter is switched from the capacitance gear corresponding to the capacitance control code output in advance to the capacitance gear corresponding to the capacitance control code currently output, so as to increase or decrease the capacitance value of the filter capacitor inside the filter.
[0013] Furthermore, in the filter, a preset number of resistors to be selected are arranged in sequence in a predetermined direction, and the resistance values of the preset number of resistors to be selected decrease in sequence in equal multiples in the predetermined direction; a preset number of capacitors to be selected are arranged in sequence in a predetermined direction, and the capacitance values of the preset number of capacitors to be selected increase in sequence in equal multiples in the predetermined direction; each time the resistance gear and the capacitance gear are switched, a resistor to be selected and a capacitor to be selected connected to the same switching circuit are selected, then it is determined that each time the resistance gear and the capacitance gear are switched, the increase multiple of the capacitance value of the filter capacitor inside the filter is equal to the decrease multiple of the filter resistance inside the same filter, or the decrease multiple of the capacitance value of the filter capacitor inside the filter is equal to the increase multiple of the filter resistance inside the same filter, so that the bandwidth ratio is within a first preset margin range, and the damping coefficient is within a second preset margin range; wherein, the capacitance value of the reference capacitor is smaller than the capacitance value of the capacitor to be selected. Therefore, when the gain value of the voltage-controlled oscillator increases, the circuit parameter adjuster reduces the resistance value of the filter resistor inside the filter by a certain multiple to control the bandwidth ratio to be within a first preset margin range, and increases the capacitance value of the filter capacitor inside the filter by the certain multiple to control the damping coefficient to be within a second preset margin range, thereby providing a circuit basis for adjustable resistance and capacitance, that is, a hardware circuit basis for performing gear shifting operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 The schematic diagram is a framework of a phase-locked loop-based resistance and capacitance adjustment system provided by an embodiment. DETAILED DESCRIPTION
[0015] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0016] This embodiment discloses a resistance and capacitance adjustment system of a phase-locked loop, such as Figure 1As shown, the resistance and capacitance adjustment system includes a pre-frequency divider, a phase frequency detector, a charge pump, a filter, a voltage-controlled oscillator, a loop frequency divider and a circuit parameter adjuster; wherein the phase frequency detector, the charge pump, the filter, the voltage-controlled oscillator and the loop frequency divider are coupled end to end to form a phase-locked loop circuit; the circuit parameter adjuster is coupled to the phase-locked loop circuit, and the circuit parameter adjuster is used to adjust the filter resistance inside the filter according to the bandwidth ratio calculation formula, and adjust the filter capacitance inside the filter according to the damping coefficient calculation formula, so that the loop parameters generated by the phase-locked loop circuit are within a preset margin range. In this embodiment, the circuit parameter adjuster can be regarded as a controller of the resistance and capacitance adjustment system, and can be electrically coupled with the pre-frequency divider, the loop frequency divider, the filter and other related circuit modules with signal triggering or feedback relationships at the same time. In this embodiment, the frequency division coefficient, the resistance value, the capacitance value and other circuit parameters are adjusted to control the loop parameters of the phase-locked loop to remain unchanged or within a certain margin. Preferably, each circuit module connected to form a phase-locked loop circuit is configured to be connected to a corresponding power supply to meet the power supply requirement. The loop divider corresponds to the divider in the context of this application and is defined here as a loop divider to distinguish it from the pre-divider outside the phase-locked loop circuit. Considering the area factor, the filter disclosed in this embodiment will be constructed as a low-pass filter. Or if only the working stability of the phase-locked loop is considered, the filter disclosed in this embodiment can be constructed as various types of filters, which are not limited here.
[0017] In this embodiment, the circuit parameter regulator is coupled to the phase-locked loop circuit, and the circuit parameter regulator is used to adjust the filter resistance inside the filter according to the bandwidth ratio calculation formula, and adjust the filter capacitance inside the filter according to the damping coefficient calculation formula, so that the loop parameters generated by the phase-locked loop circuit are within the preset margin range, including the loop parameters caused by the external power supply voltage factor, Kvco change (voltage-controlled oscillator output frequency change), charge pump output current change, external input phase-locked loop crystal signal or phase-locked frequency range caused by the change are pulled back to the predetermined margin range or maintained unchanged, and the filter resistance and filter capacitance inside the filter can be changed by the circuit parameter regulator according to the calculation formula required for the loop parameters. The specific implementation includes switching the corresponding numerical gear, which is regarded as a gear selection operation or a parameter adjustment operation. In particular, when the gain value of the voltage-controlled oscillator changes (such as Kvco increases), the resistance value of the filter resistance inside the filter is reduced, which can control the loop parameters generated by the phase-locked loop circuit to be within the preset margin range, and can also suppress the increase in the area of the phase-locked loop circuit.
[0018] The loop parameters of the phase-locked loop disclosed in this embodiment include bandwidth ratio and damping coefficient; the frequency and phase accuracy locked by the phase-locked loop are controlled to ensure the stability of the phase-locked loop, wherein the factors measuring the stability of the phase-locked loop include the accuracy of the locked frequency and phase, locking efficiency, oscillation rate, etc.
[0019] Specifically, in the process of controlling the loop parameters generated by the phase-locked loop circuit to be within a preset margin range by changing the filter resistor and filter capacitor inside the filter, considering the circuit area, the resistance value of the filter resistor inside the filter will be reduced when the gain value of the voltage-controlled oscillator increases. In order to maintain the loop parameters generated by the phase-locked loop circuit within the preset margin range, the filter capacitor inside the filter will need to be greatly increased, so this embodiment still needs to be compromised. Therefore, the circuit parameter regulator will continue to adjust the capacitance value of the filter capacitor inside the filter based on the bandwidth ratio calculation formula and the damping coefficient calculation formula by changing the division coefficient of the pre-divider or / and the frequency of the signal to be processed for input to the pre-divider, so that while ensuring that the loop parameters generated by the phase-locked loop circuit are within the preset margin range, the capacitance value of the filter capacitor inside the filter is reduced, even smaller than the capacitance value of the filter capacitor after the last increase, and forming a configuration mode that minimizes the area.
[0020] In summary, this embodiment changes the capacitance value and the resistance value in the loop filter, and selects or configures the filter resistor and the filter capacitor to build a phase-locked loop circuit with minimized area. It selects or configures a loop that occupies a smaller area and plays a phase-locked role based on the bandwidth ratio calculation formula and the damping coefficient calculation formula, so as to maintain stable operation of the phase-locked loop circuit while consuming as little circuit area as possible (mainly including the loop bandwidth, bandwidth ratio and damping coefficient remain unchanged or are at a preset margin).
[0021] As an embodiment, the bandwidth ratio calculation formula used in the circuit parameter adjustment method is Among them, ω c represents the loop bandwidth, ω i It indicates the frequency of the signal input to the frequency detector and phase detector, and can indicate the frequency of the signal output by the pre-divider. represents the bandwidth ratio, fo represents the frequency of the signal to be divided which is input into the loop divider, and R l Indicates the resistance value; K o represents the gain value of the voltage-controlled oscillator, and is used to represent the rate of change of the output signal frequency of the voltage-controlled oscillator relative to the control voltage of the voltage-controlled oscillator; K d Represents the ratio of the output current of the charge pump to its phase.
[0022] The derivation process of the bandwidth ratio calculation formula includes: Wherein, fin represents the frequency of the external input signal to be processed, N represents the frequency division coefficient of the loop frequency divider, and Pdiv represents the frequency division coefficient of the pre-frequency divider; R l It can be expressed as the filter resistance value in the filter, C l It can be expressed as the filter capacitance value in the filter, C p Indicates the capacitance value of the reference capacitor. The reference capacitor is the capacitor in the filter other than the filter capacitor. The capacitance value of the reference capacitor is smaller than the filter capacitor value in the filter. K o represents the rate of change of the output signal frequency of the voltage controlled oscillator relative to the control voltage of the voltage controlled oscillator; the change of the power supply voltage required by the phase-locked loop and K o The source of the change in the power supply voltage required by the phase-locked loop includes the change in the process coefficient of the transistor; fin is the frequency of the external input signal to be processed, and the signal to be processed input to the pre-divider is derived from the crystal oscillator. N is the division coefficient of the loop divider. Pdiv and N support the conversion of fin to fo, and fo is set to maintain a fixed frequency value when the loop parameters are within the preset margin range.
[0023] Therefore, in this embodiment, in the bandwidth ratio calculation formula, there is Then ignore the reference capacitance C p The premise is equal to Among them, the capacitance value of the reference capacitor is C p Equal to 0, to offset the filter capacitor value C in the filter l ; and also cancel the frequency division coefficient N of the loop frequency divider in the bandwidth ratio calculation formula; so that the bandwidth ratio calculation formula is directly expressed as The frequency-divided signal output by the loop frequency divider is set as a feedback signal input to the frequency and phase detector.
[0024] The bandwidth ratio calculation formula set in this embodiment realizes calculating the bandwidth ratio on the basis of offsetting some circuit parameters, thereby overcoming the influence of the filter capacitor, the reference capacitor, the frequency division coefficient of the pre-divider, and the frequency division coefficient of the loop divider.
[0025] As an embodiment, the method in which the circuit parameter adjuster adjusts the filter resistance inside the filter according to the bandwidth ratio calculation formula includes:
[0026] The circuit parameter adjuster configures fo and K d Under the condition that K o When the circuit parameter adjuster increases, the resistance value of the filter resistor R l Reduce the resistance value R so that the bandwidth ratio is within the first preset margin range.l The reduction factor is equal to K o In this embodiment, based on the calculation formula of the bandwidth ratio, in order to maintain the bandwidth ratio within the first preset margin range, in a phase-locked loop working environment where the gain value of the voltage-controlled oscillator increases due to changes in internal model parameters or power (supply voltage and current), the resistance value R l Reduce (regarded as changing the filter resistance inside the filter) to ensure the stability of the phase-locked loop, at least to ensure that the bandwidth ratio is locked within a fixed range and is not affected by K o The impact of change.
[0027] The circuit parameter adjuster configures fo and K d Under the condition that K o When the circuit parameter adjuster reduces the resistance value of the filter resistor R l Increase the resistance value R so that the bandwidth ratio is within the first preset margin range. l The enlargement factor is equal to K o In this embodiment, based on the calculation formula of the bandwidth ratio, in order to maintain the bandwidth ratio within the first preset margin range, in a phase-locked loop working environment where the gain value of the voltage-controlled oscillator is reduced due to changes in internal model parameters or power (supply voltage and current), the resistance value R l Increase (regarded as changing the filter resistance inside the filter) to ensure the stability of the phase-locked loop, at least to ensure that the bandwidth ratio is locked within a fixed range and is not affected by K o The impact of change.
[0028] Based on the above embodiment, the damping coefficient calculation formula used in the circuit parameter adjustment method is: The derivation process of the damping coefficient calculation formula includes: when the resistance value of the reference capacitor is less than one tenth of the filter capacitor value, for example, the resistance value of the reference capacitor is close to 10pf, and the filter capacitor value C l reaches 160pf, that is, the two are at different orders of magnitude, so it is chosen to ignore the reference capacitance C p The damping coefficient is calculated using the following formula:
[0029]
[0030] Therefore, in this embodiment, the damping coefficient calculation formula is expressed as Thus, the frequency division coefficient N of the loop frequency divider is offset, and fo and Pdiv are converted in sequence; wherein ζ is the damping coefficient. In this embodiment, the capacitance value is adjusted according to the operation rules specified in the damping calculation formula, and the damping coefficient can be calculated on the basis of offsetting part of the circuit parameters to overcome the influence of the frequency division coefficient of the loop frequency divider.
[0031] It should be noted that the frequency division method of the pre-divider is to make a ratio between the frequency fin of the signal input to the pre-divider and the frequency division coefficient Pdiv of the pre-divider to obtain the frequency of the divided signal. The pre-divider uses its frequency division coefficient as the reduction multiple to complete the frequency division operation of the signal, wherein the frequency division coefficient Pdiv of the pre-divider is a positive integer. The frequency division method of the loop divider is to control the frequency of the input loop divider to be divided. Ratioed with the division factor N of the loop divider, the frequency of the feedback signal of the input frequency detector and phase detector is obtained. The frequency of the phase-locked loop output signal, i.e., the frequency of the output signal of the loop divider, is obtained and fed back to the frequency detector and phase detector so that the frequency of the output signal of the loop divider is equal to the frequency of the signal divided by the pre-divider; wherein the frequency of the signal input to the loop divider is equal to the product of the frequency of the signal divided by the pre-divider and the frequency division coefficient of the loop divider. The frequency division coefficient of the loop divider is a positive integer, which is determined by the count modulus value of the counter set inside the loop divider, and supports adjustment by the trigger signal issued by the circuit parameter regulator. .
[0032] As an embodiment, the method for adjusting the filter capacitor inside the filter according to the damping coefficient calculation formula by the circuit parameter adjuster includes: configuring fo, K d , fin and Pdiv remain unchanged, if K o Increase the resistance value of the filter resistor R l decreases, the circuit parameter adjuster will reduce the capacitance value C of the filter capacitor l Increase so that the damping coefficient is within the second preset margin range and the bandwidth ratio is within the first preset margin range; wherein the capacitance value C l The adjustment factor is equal to the resistance value R l The reduction factor is also equal to K o Based on the calculation formula of bandwidth ratio and the calculation formula of damping coefficient, in order to maintain the bandwidth ratio within the first preset margin range and maintain the damping coefficient within the second preset margin range, in a phase-locked loop working environment where the gain value of the voltage-controlled oscillator increases due to changes in internal model parameters or power (supply voltage and current), by reducing the resistance value R l To improve the bandwidth ratio that changes due to the gain value change of the voltage-controlled oscillator (understood as index degradation, that is, deviation from the first preset margin range), at the same time, by increasing the capacitance value C l To improve the damping coefficient that changes (understood as indicator degradation, ie, deviates from the second preset margin range) due to changes in the gain value of the voltage-controlled oscillator and the filter resistance.
[0033] In the circuit parameter regulator configuration fo, K d , fin and Pdiv remain unchanged, if K o Reduce the resistance value of the filter resistor R l increases, the circuit parameter adjuster will increase the capacitance value C of the filter capacitor l The capacitance value C is adjusted to be small so that the damping coefficient is within the second preset margin range and the bandwidth ratio is within the first preset margin range; wherein the capacitance value C l The reduction factor is equal to the resistance value R l The increase multiple is also equal to K o The reduction multiple. Among them, the loop parameters generated by the phase-locked loop circuit include a bandwidth ratio and a damping coefficient, and the preset margin range includes a first preset margin range and a second preset margin range. Based on the calculation formula of the bandwidth ratio and the calculation formula of the damping coefficient, in order to maintain the bandwidth ratio within the first preset margin range and maintain the damping coefficient within the second preset margin range, in a circuit parameter adjustment environment where the gain value of the voltage-controlled oscillator is reduced due to changes in internal model parameters or changes in power (supply voltage and current), by increasing the resistance value R l To improve the bandwidth ratio that changes due to the gain value change of the voltage-controlled oscillator (understood as index degradation, that is, deviation from the first preset margin range), the capacitance value C l The gain value of the voltage controlled oscillator increases by a factor of K. o Equal to the capacitance value C l With the same bandwidth ratio calculation formula and the same damping coefficient calculation formula, other related circuit parameters (including the locked signal frequency parameters, bandwidth-related parameters and charge pump output current-related parameters, the aforementioned bandwidth ratio calculation formula and damping coefficient calculation formula are expressions associated with the aforementioned parameters) remain relatively unchanged.
[0034] In summary, the change in loop parameters (manifested as a change in loop bandwidth) caused by the change in the gain value of the voltage-controlled oscillator is controllable for the circuit parameter regulator by changing the resistance value R l and capacitance C l The implementation method to maintain the stability of the phase-locked loop is feasible. When some circuit parameters are fixed, the problem of the voltage-controlled oscillator gain value destroying the phase-locked state due to changes in internal model parameters or power supply voltage and current can be overcome by adjusting the filter capacitor and filter resistor.
[0035] It should be noted that the preset margin range includes a first preset margin range and a second preset margin range, and the first preset margin range is different from the second preset margin range; when the bandwidth ratio is within the first preset margin range, and the damping coefficient is within the second preset margin range, the loop parameters of the phase-locked loop are within the preset margin range. The first preset margin range is preferably less than 0.1. The second preset margin range is preferably less than or equal to 0.707, and greater than or equal to 0.5. Among them, the damping coefficient needs to be set near 0.707. A damping coefficient that is too large will cause the phase locking operation performed by the phase-locked loop to be slow, and a damping coefficient that is too small will cause the phase-locked loop oscillation to decay slowly or even fail to lock. A large damping coefficient is acceptable, but a small damping coefficient has certain risks, so the damping coefficient is usually not less than 0.5.
[0036] The first preset margin range is different from the second preset margin range, which is specifically manifested as the first preset margin range being used to represent the numerical range of the bandwidth ratio, and the second preset margin range being used to represent the numerical range of the damping coefficient, and the numerical ranges of the two do not overlap. When it is detected that the bandwidth ratio is within the first preset margin range and the damping coefficient is within the second preset margin range, it is determined that the loop parameters generated by the phase-locked loop circuit are within the preset margin range.
[0037] As an embodiment, a circuit parameter regulator is used to reduce the resistance value of the filter resistor inside the filter when the gain value of the voltage-controlled oscillator increases, so as to control the bandwidth ratio to be within a first preset margin range; and then increase the capacitance value of the filter capacitor inside the filter, so as to control the damping coefficient to be within a second preset margin range; wherein the increase multiple of the gain value of the voltage-controlled oscillator is equal to the increase multiple of the capacitance value of the filter capacitor, so that the capacitance value of the filter capacitor inside the filter is not adjusted to increase in square multiples when participating in the calculation of the damping coefficient;
[0038] Specifically, the circuit parameter regulator, based on the calculation formula of the bandwidth ratio and the calculation formula of the damping coefficient, in order to maintain the bandwidth ratio within the first preset margin range and maintain the damping coefficient within the second preset margin range, the circuit parameter regulator, in a phase-locked loop working environment where the gain value of the voltage-controlled oscillator increases due to changes in internal model parameters or changes in electrical quantity (supply voltage and current), reduces the resistance value of the filter resistor inside the filter (regarded as changing the filter resistor inside the filter), and increases the capacitance value of the filter capacitor inside the filter (regarded as changing the filter capacitor inside the filter), and the increase multiple of the gain value of the voltage-controlled oscillator is equal to the increase multiple of the capacitance value of the filter capacitor. In fact, the change caused by the change in the gain value of the voltage-controlled oscillator (understood as indicator degradation, that is, the deviation from the first preset) is improved by reducing the resistance value of the filter resistor inside the filter. At the same time, the damping coefficient that changes due to the gain value change of the voltage-controlled oscillator and the filter resistance change (understood as indicator degradation, that is, offset from the second preset margin range) is improved by increasing the capacitance value of the filter capacitor inside the filter. Since the gain value of the voltage-controlled oscillator changes and the resistance value of the filter resistor also changes in the same damping coefficient calculation formula, the capacitance value of the filter capacitor inside the filter is not adjusted to increase in square multiples when participating in the calculation of the damping coefficient, thereby weakening the compensation effect of the capacitance value of the filter capacitor in the filter. Specifically, it can be understood that the capacitance value of the filter capacitor does not need to be set to the square of the resistance value of the filter resistor because the resistance value of the filter resistor inside the filter is reduced. This also overcomes the problem that the capacitance gear set in the filter is not large enough, thereby minimizing the increase in the area of the phase-locked loop circuit.
[0039] The circuit parameter regulator is also used to increase the resistance value of the filter resistor inside the filter when the gain value of the voltage-controlled oscillator decreases, so as to control the bandwidth ratio to be within a first preset margin range; and then reduce the capacitance value of the filter capacitor inside the filter to control the damping coefficient to be within a second preset margin range; wherein the reduction multiple of the gain value of the voltage-controlled oscillator is equal to the reduction multiple of the capacitance value of the filter capacitor. Specifically, based on the calculation formula of the bandwidth ratio and the calculation formula of the damping coefficient, in order to maintain the bandwidth ratio within the first preset margin range and maintain the damping coefficient within the second preset margin range, the circuit parameter adjuster increases the resistance value of the filter resistor inside the filter (regarded as changing the filter resistor inside the filter) while reducing the capacitance value of the filter capacitor inside the filter (regarded as changing the filter capacitor inside the filter) in a circuit parameter adjustment environment where the gain value of the voltage-controlled oscillator decreases due to changes in internal model parameters or changes in electrical quantity (supply voltage and current). Moreover, the increase multiple of the gain value of the voltage-controlled oscillator is equal to the decrease multiple of the capacitance value of the filter capacitor. Under the same bandwidth ratio calculation formula and the same damping coefficient calculation formula, other related circuit parameters (including locked signal frequency parameters, bandwidth-related parameters, and charge pump output current-related parameters, the aforementioned bandwidth ratio calculation formula and damping coefficient calculation formula are expressions associated with the aforementioned parameters) remain relatively unchanged. In summary, the change in loop parameters (manifested as a change in loop bandwidth) caused by the change in the gain value of the voltage-controlled oscillator is controllable for the circuit parameter regulator, and the implementation method of maintaining the stability of the phase-locked loop by changing the filter resistor and the filter capacitor is feasible, and the increase in the area of the phase-locked loop circuit can be suppressed as much as possible.
[0040] In summary, by adjusting the circuit parameters to meet the stability requirements of the loop parameters and reduce the circuit area requirements, the phase-locked loop chip circuit can be configured and manufactured, which can save chip area and ensure the working stability of the phase-locked loop.
[0041] In the aforementioned embodiment, the frequency division method of the pre-divider is to make a ratio between the frequency of the signal input to the pre-divider and the frequency division coefficient of the pre-divider to obtain the frequency of the divided signal, so that the pre-divider uses its frequency division coefficient as a reduction factor to complete the frequency division operation of the signal; wherein, the frequency division coefficient of the pre-divider is a positive integer, which is determined by the count modulus value of the counter set inside the pre-divider, and supports adjustment by the corresponding trigger signal issued by the circuit parameter regulator; the signal input to the pre-divider is generated by a crystal oscillator, which supports the generation of crystal oscillator signals of multiple frequencies, and the frequencies of various crystal oscillator signals include 4MHz, 8MHz, 12MHz, 24MHz, 32MHz, 32.576KHz, etc.; the crystal oscillator can be regarded as a part of the phase-locked loop working system or located outside the phase-locked loop working system. The frequency division method of the loop divider is to control the frequency of the signal input to the loop divider to be ratioed with the frequency division coefficient of the loop divider to obtain the frequency of the divided signal; wherein, the frequency division coefficient of the loop divider is a positive integer, which is determined by the count modulus value of the counter set inside the loop divider, and supports adjustment by the trigger signal issued by the circuit parameter regulator. Among them, the frequency of the signal after frequency division by the loop divider (the frequency of the feedback signal output by the loop divider to the frequency detector) is equal to the frequency of the signal after frequency division by the pre-divider; the circuit parameter adjuster can simultaneously adjust the frequency division coefficient of the pre-divider and the frequency division coefficient of the loop divider, and no matter whether the frequency of the signal to be processed increases or not, the frequency division coefficients of the two dividers can be simultaneously increased or decreased, so that the frequency of the feedback signal output by the loop divider to the frequency detector is equal to the frequency of the signal after frequency division by the pre-divider, and it is adapted that: when the loop parameters generated by the phase-locked loop circuit are within the preset margin range, the capacitance value of the filter capacitor is adjusted in the direction of reduction, which saves the chip area required for configuration and ensures the stability of the phase-locked loop operation and the accuracy of the locked frequency.
[0042] As an embodiment, the filter sets a preset number of resistance gears and a preset number of capacitance gears, each resistance gear has a matching capacitance gear, connected in series to form a filter resistor and a filter capacitor, combined with Figure 1It can be seen that the resistor R1 and the capacitor C1 can be connected in series to form a combination of a resistor gear and a capacitor gear, but the resistor R1 and the capacitor C2 cannot be connected in series to form a combination of a resistor gear and a capacitor gear. A circuit parameter regulator is used to output a control code to the filter, and the preset number is greater than or equal to the value 2. The control code here can be a multi-bit digital coding signal, for example, a digital coding signal with twice the preset number of bits. One capacitor gear is controlled by a one-bit digital coding signal, and one resistor gear is controlled by a one-bit digital coding signal. The filter resistor under the relevant resistance gear and the filter capacitor under the relevant capacitance gear are connected to the phase-locked loop circuit, and the area problem of the capacitor (essentially the problem of adjusting the capacitance value) may be considered; in particular, when the circuit parameter regulator detects a trigger signal for shifting, it outputs a new control code to the filter, and the filter capacitor under the new resistance gear is connected to the phase-locked loop circuit. The filter capacitor under the resistance and new capacitance gear is connected to the phase-locked loop circuit. Specifically, the circuit parameter regulator is coupled to the filter and is used to switch the resistance gear to change the resistance value of the filter resistor inside the filter, and switch the capacitance gear to change the capacitance value of the filter capacitor inside the filter when receiving the control code, then a new set of resistance-capacitance filter arrays is switched on in the filter, and the trigger signal for shifting gears here is caused by a change in the gain value of the voltage-controlled oscillator, then the circuit parameter regulator controls the loop parameters generated by the phase-locked loop circuit to be within a preset margin range by switching the capacitance gear and the resistance gear, and supports reducing the capacitance value of the filter capacitor inside the filter to reduce the loop area that plays a phase-locking role in the phase-locked loop circuit.
[0043] As an embodiment, the control code includes a capacitance control code corresponding to the capacitance value and a resistance control code corresponding to the resistance value; the filter includes a preset number of capacitors to be selected, a preset number of resistors to be selected, a reference capacitor and twice the preset number of switch circuits, such as Figure 1 As shown, the preset number is equal to m, the preset number of capacitors to be selected are C1, C2, ..., and Cm in sequence, the preset number of resistors to be selected are R1, R2, ..., Rm, and the reference capacitor Cp in sequence; twice the preset number of switch circuits are Figure 1 S11, S12, ..., S1m between the charge pump and the resistor, and Figure 1S21, S22, ..., S2m between the resistors and capacitors in the circuit. The first end of each resistor to be selected is coupled to the output end of the charge pump through a switch circuit, and the second end of each resistor to be selected is coupled to the first end of a corresponding capacitor to be selected through a switch circuit. The second ends of the capacitors to be selected are all coupled to the ground. The first end of the reference capacitor Cp is coupled to the output end of the charge pump, and the second end of the reference capacitor Cp is coupled to the ground. The first end of the reference capacitor Cp is also coupled to the input end of the voltage-controlled oscillator. After the switch circuit is closed, the resistors and capacitors in series can be connected to the phase-locked loop circuit together. For example, it is possible for the resistor to be selected R1 and the capacitor to be selected C1 to be connected in series to the phase-locked loop circuit, but it is not possible for the resistor to be selected R1 and the capacitor to be selected C2 to be connected in series to the phase-locked loop circuit, so that one resistor position is only connected in series with a corresponding capacitor position to the phase-locked loop circuit, forming multiple groups of independent resistance-capacitance matching modes.
[0044] In some embodiments, not shown in the figure, the second end of each selected resistor is connected together, or one end of the switch circuit S21, S22, ..., S2m for connecting to the second end of the selected resistor is set to be connected together, then the selected resistors and selected capacitors that are not connected in the same column can also be selected to be connected to the phase-locked loop circuit after the corresponding switch circuit is closed. For example, it is possible to connect the selected resistor R1 and the selected capacitor C2 in series to the phase-locked loop circuit, and the selected resistor R1 can also be switched to be connected in series with the selected capacitor C1 to the phase-locked loop circuit, so that one resistance position can be selected to be connected in series with multiple corresponding capacitance positions to the phase-locked loop circuit, forming multiple groups of resistance-capacitance matching modes.
[0045] The resistance control code corresponding to the resistance value output by the circuit parameter adjuster is used to control the opening and closing of the switch circuit coupled between the first end of the resistor to be selected and the output end of the charge pump. The switch circuit coupled between the first end of the resistor to be selected and the output end of the charge pump corresponds to Figure 1 S11, S12, ..., S1m in the resistor control code can be expressed as SR[m-1:0]; when the switch circuit coupled between the first end of the resistor to be selected and the output end of the charge pump is closed, it indicates that a resistor to be selected connected to the closed switch circuit is selected, and the selected resistor is determined to become the filter resistor in the filter, and the filter is switched to the resistance position corresponding to the resistance control code; for example, when m=4, the resistance control code can be expressed as SR[3:0], and when the resistance control code SR[3:0]=1000, the switch circuit S11 coupled between the first end of the resistor to be selected R1 and the output end of the charge pump is closed, indicating that the resistor to be selected R1 connected to the switch circuit S11 is selected, and the resistor to be selected R1 is determined to become the filter resistor R1 in the filter, and the filter is switched to the resistance position corresponding to the resistance control code SR[3:0].
[0046] The capacitance control code corresponding to the capacitance value output by the circuit parameter adjuster is used to control the opening and closing of the switch circuit coupled between the first end of the capacitor to be selected and the second end of the resistor to be selected. The switch circuit coupled between the first end of the capacitor to be selected and the second end of the resistor to be selected corresponds to Figure 1 S21, S22, ..., S2m in the capacitor control code can be expressed as SC[m-1:0]; when the switch circuit coupled between the first end of the selected capacitor and the second end of the selected resistor is closed, it indicates that a selected capacitor connected to the closed switch circuit is selected, and the selected capacitor is determined to become the filter capacitor in the filter, and the filter is switched to the capacitor position corresponding to the capacitor control code; for example, when m=4, the capacitor control code can be expressed as SC[3:0], and when the capacitor control code SC[3:0]=1000, the switch circuit S21 coupled between the first end of the selected capacitor C1 and the output end of the charge pump is closed, indicating that the selected capacitor C1 connected to the switch circuit S21 is selected, and the selected capacitor C1 is determined to become the filter capacitor C1 in the filter, and the filter is switched to the capacitor position corresponding to the capacitor control code SC[3:0]. In summary, when the capacitance control code SC[3:0]=1000 and the resistance control code SR[3:0]=1000, the selected resistor R1 and the selected capacitor C1 become the filter resistor and filter capacitor selected in series in the filter; when the capacitance control code SC[3:0] is switched to 0001 and the resistance control code SR[3:0] is switched to 0001, the selected resistor R4 and the selected capacitor C4 become the filter resistor and filter capacitor selected in series in the filter. Therefore, after the capacitance control code SC[3:0] and the resistance control code SR[3:0] both set binary 1 in the bits at the corresponding positions, the capacitance value of the filter capacitor is substituted into the damping coefficient calculation formula so that the damping coefficient is within the second preset margin range, and at the same time, the resistance value of the filter resistor is substituted into the bandwidth ratio calculation formula so that the bandwidth ratio is within the first preset margin range.
[0047] Preferably, inside the filter, among all the switch circuits coupled between the first end of each resistor to be selected and the output end of the charge pump, under the control of the resistance control code currently output by the circuit parameter regulator, there is a switch circuit that changes from open to closed, and there is a switch circuit that changes from closed to open, and it is determined that the filter switches from the resistance gear corresponding to the resistance control code output in advance to the resistance gear corresponding to the resistance control code currently output, so as to increase or decrease the resistance value of the filter resistor inside the filter. Inside the filter, among all the switch circuits coupled between the first end of each filter capacitor and the second end of the corresponding filter resistor, under the control of the capacitance control code currently output by the circuit parameter regulator, there is a switch circuit that changes from open to closed, and there is a switch circuit that changes from closed to open, and it is determined that the filter switches from the capacitance gear corresponding to the capacitance control code output in advance to the capacitance gear corresponding to the capacitance control code currently output, so as to increase or decrease the capacitance value of the filter capacitor inside the filter.
[0048] Preferably, in the filter, a preset number of resistors to be selected are arranged in sequence in a predetermined direction, and the resistance values of the preset number of resistors to be selected decrease in sequence in equal multiples in the predetermined direction; a preset number of capacitors to be selected are arranged in sequence in a predetermined direction, and the capacitance values of the preset number of capacitors to be selected decrease and increase in sequence in equal multiples in the predetermined direction. Figure 1In the preferred embodiment, each time the capacitor position is switched, a selected capacitor is selected as the filter capacitor in the filter; similarly, each time the resistor position is switched, a selected resistor is selected as the filter resistor in the filter, and each time the resistor position and the capacitor position are switched, a selected resistor and a selected capacitor connected to the same switch circuit are selected. Then, each time the resistor position and the capacitor position are switched, the capacitance value of the filter capacitor in the filter is increased by a multiple equal to the reduction multiple of the filter resistor in the same filter, or the capacitance value of the filter capacitor in the filter is reduced by a multiple equal to the reduction multiple of the filter resistor in the same filter. The multiple is equal to the multiple of the filter resistance inside the same filter, so that the bandwidth ratio is within the first preset margin range, and the damping coefficient is within the second preset margin range; thereby, when the gain value of the voltage-controlled oscillator increases, the circuit parameter adjuster reduces the resistance value of the filter resistor inside the filter by a certain multiple to control the bandwidth ratio to be within the first preset margin range, and increases the capacitance value of the filter capacitor inside the filter by the certain multiple to control the damping coefficient to be within the second preset margin range, providing a circuit basis for adjustable resistance and capacitance, that is, a hardware circuit basis for performing a gear shift operation.
[0049] In this embodiment, the capacitance value of the reference capacitor is smaller than the capacitance value of the selected capacitor, and the capacitance value of the filter capacitor inside the filter will not be much smaller than the capacitance value of the reference capacitor, and will be at different orders of magnitude. Therefore, in the process of adjusting the filter capacitor and the filter resistor, the influence of the capacitance value of the reference capacitor on the loop parameters of the phase-locked loop circuit is weakened.
[0050] Preferably, in the filter, a preset number of resistors to be selected are arranged in sequence in a predetermined direction, and the resistance values of the preset number of resistors to be selected decrease in sequence in the predetermined direction; corresponding to Figure 1 In the figure, the resistance values of the selected resistors R1, R2, ..., Rm decrease from left to right. When the gain value of the voltage-controlled oscillator increases, the control resistance gear changes, and the direction of switching the resistance gear is a predetermined direction so that the resistance value of the currently selected resistor decreases relative to the resistance value of the last selected resistor. At this time, other circuit parameters involved in the calculation of the bandwidth ratio and the damping coefficient are relatively fixed. Figure 1In the embodiment, the direction of switching the resistance gear is from left to right, and the selected resistors with smaller subscripts are switched to the phase-locked loop circuit in turn, so as to reduce the resistance value of the filter resistor inside the filter, wherein each time the resistance gear is switched, a selected resistor is selected in the filter. The loop parameters generated by the phase-locked loop circuit are controlled to be within the preset margin range, and the resistance value of the filter resistor inside the filter is reduced.
[0051] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention, which should be included in the scope of the technical solution for protection of the present invention.
Claims
1. A resistance and capacitance adjustment system based on a phase-locked loop, characterized in that: The resistance and capacitance adjustment system comprises a pre-frequency divider, a phase frequency detector, a charge pump, a filter, a voltage-controlled oscillator, a loop frequency divider and a circuit parameter adjuster; the phase frequency detector, the charge pump, the filter, the voltage-controlled oscillator and the loop frequency divider are coupled end to end in sequence to form a phase-locked loop circuit; The circuit parameter regulator is coupled to the phase-locked loop circuit. The circuit parameter regulator is used to adjust the filter resistance inside the filter according to the bandwidth ratio calculation formula, and adjust the filter capacitance inside the filter according to the damping coefficient calculation formula, so that the loop parameters generated by the phase-locked loop circuit are within a preset margin range.
2. The resistance and capacitance adjustment system according to claim 1, characterized in that: The bandwidth ratio calculation formula includes: Among them, ω c is the loop bandwidth, ω i is the frequency of the reference signal input to the phase frequency detector; is the bandwidth ratio, fo is the frequency of the signal to be divided input to the loop divider, R l is the resistance value of the filter resistor inside the filter; K o is the gain value of the voltage-controlled oscillator, which is used to indicate the rate of change of the output signal frequency of the voltage-controlled oscillator relative to the control voltage of the voltage-controlled oscillator; K d is the ratio of the output current of the charge pump to its phase; The frequency-divided signal output by the loop frequency divider is set as a feedback signal input to the frequency and phase detector.
3. The resistance and capacitance adjustment system according to claim 2, characterized in that: The method of the circuit parameter regulator adjusting the filter resistance inside the filter according to the bandwidth ratio calculation formula includes: The circuit parameter adjuster configures fo and K d Under the condition that K o When the circuit parameter adjuster increases, the resistance value of the filter resistor R l Decreasing the bandwidth ratio so that the bandwidth ratio is within a first preset margin range; The circuit parameter adjuster configures fo and K d Under the condition that K o When the circuit parameter adjuster reduces the resistance value of the filter resistor R l The bandwidth ratio is adjusted to be within a first preset margin range.
4. The resistance and capacitance adjustment system according to claim 3, characterized in that: The damping coefficient calculation formula includes: Among them, C l is the capacitance value of the filter capacitor inside the filter; fin is the frequency of the signal to be processed input to the pre-divider, ζ is the damping coefficient, Pdiv is the division coefficient of the pre-divider, and the signal to be processed input to the pre-divider comes from the crystal oscillator.
5. The resistance and capacitance adjustment system according to claim 4, characterized in that: The method of the circuit parameter regulator adjusting the filter capacitor inside the filter according to the damping coefficient calculation formula includes: In the circuit parameter regulator configuration fo, K d 、f in And Pdiv remains unchanged, if K o Increase the resistance value of the filter resistor R l decreases, the circuit parameter adjuster will reduce the capacitance value C of the filter capacitor l Increase so that the damping coefficient is within a second preset margin range and the bandwidth ratio is within a first preset margin range; In the circuit parameter regulator configuration fo, K d , fin and Pdiv remain unchanged, if K o Reduce the resistance value of the filter resistor R l increases, the circuit parameter adjuster will increase the capacitance value C of the filter capacitor l Decrease so that the damping coefficient is within a second preset margin range and the bandwidth ratio is within a first preset margin range; The loop parameters generated by the phase-locked loop circuit include a bandwidth ratio and a damping coefficient, and the preset margin range includes a first preset margin range and a second preset margin range.
6. The resistance and capacitance adjustment system according to claim 5, characterized in that: A circuit parameter regulator, used for reducing the resistance value of the filter resistor inside the filter when the gain value of the voltage-controlled oscillator increases, so as to control the bandwidth ratio to be within a first preset margin range; and then increasing the capacitance value of the filter capacitor inside the filter, so as to control the damping coefficient to be within a second preset margin range; wherein the increase multiple of the gain value of the voltage-controlled oscillator is equal to the increase multiple of the capacitance value of the filter capacitor, so that the capacitance value of the filter capacitor inside the filter is not adjusted to increase in square multiples when participating in the calculation of the damping coefficient; The circuit parameter regulator is also used to increase the resistance value of the filter resistor inside the filter when the gain value of the voltage-controlled oscillator decreases, so as to control the bandwidth ratio to be within a first preset margin range; and then reduce the capacitance value of the filter capacitor inside the filter to control the damping coefficient to be within a second preset margin range; wherein the reduction multiple of the gain value of the voltage-controlled oscillator is equal to the reduction multiple of the capacitance value of the filter capacitor.
7. The resistance and capacitance adjustment system according to claim 6, characterized in that: The filter is set with a preset number of resistance gears and a preset number of capacitance gears, each resistance gear has a matching capacitance gear, connected in series to form a filter resistor and a filter capacitor; A circuit parameter regulator, used for outputting a control code to the filter; The circuit parameter regulator is coupled to the filter, and is used to switch the resistance gear to change the resistance value of the filter resistor inside the filter, and / or switch the capacitance gear to change the capacitance value of the filter capacitor inside the filter when receiving the control code.
8. The resistance and capacitance adjustment system according to claim 7, characterized in that: The control code includes a capacitance control code corresponding to the capacitance value and a resistance control code corresponding to the resistance value; The filter comprises a preset number of capacitors to be selected, a preset number of resistors to be selected, a reference capacitor and twice the preset number of switch circuits; The first end of each resistor to be selected is coupled to the output end of the charge pump through a switch circuit, the second end of each resistor to be selected is coupled to the first end of a corresponding capacitor to be selected through a switch circuit, and the second ends of the capacitors to be selected are coupled to ground, wherein the first end of the reference capacitor is coupled to the output end of the charge pump, and the second end of the reference capacitor is coupled to ground; The resistance control code corresponding to the resistance value output by the circuit parameter adjuster is used to control the opening and closing of the switch circuit coupled between the first end of the resistor to be selected and the output end of the charge pump, and when the switch circuit coupled between the first end of the resistor to be selected and the output end of the charge pump is closed, it indicates that a resistor to be selected connected to the closed switch circuit is selected, and the selected resistor to be selected is determined to become a filter resistor in the filter, and the filter is determined to switch to the resistance gear corresponding to the resistance control code; The capacitance control code corresponding to the capacitance value output by the circuit parameter adjuster is used to control the opening and closing of the switch circuit coupled between the first end of the selected capacitor and the second end of the selected resistor. When the switch circuit coupled between the first end of the selected capacitor and the second end of the selected resistor is closed, it indicates that a selected capacitor connected to the closed switch circuit is selected, and it is determined that the selected capacitor becomes the filter capacitor in the filter, and it is determined that the filter switches to the capacitance gear corresponding to the capacitance control code.
9. The resistance and capacitance adjustment system according to claim 8, characterized in that: In the filter, among all the switch circuits coupled between the first end of each resistor to be selected and the output end of the charge pump, under the control of the resistance control code currently output by the circuit parameter adjuster, there is a switch circuit that changes from open to closed, and there is a switch circuit that changes from closed to open, and the other switch circuits remain open, and it is determined that the filter switches from the resistance gear corresponding to the resistance control code output in advance to the resistance gear corresponding to the resistance control code currently output, so as to increase or decrease the resistance value of the filter resistor inside the filter; Inside the filter, among all the switch circuits coupled between the first end of each filter capacitor and the second end of the corresponding filter resistor, under the control of the capacitance control code currently output by the circuit parameter adjuster, there is a switch circuit that changes from open to closed, and there is a switch circuit that changes from closed to open, and the other switch circuits remain open, and it is determined that the filter switches from the capacitance gear corresponding to the capacitance control code output in advance to the capacitance gear corresponding to the capacitance control code currently output, so as to increase or decrease the capacitance value of the filter capacitor inside the filter.
10. The resistance and capacitance adjustment system according to claim 9, characterized in that: In the filter, a preset number of resistors to be selected are arranged in sequence in a predetermined direction, and the resistance values of the preset number of resistors to be selected decrease in sequence according to equal multiples in the predetermined direction; A preset number of capacitors to be selected are arranged in sequence in a predetermined direction, and the capacitance values of the preset number of capacitors to be selected are increased in sequence in equal multiples in the predetermined direction; Each time the resistance gear and the capacitance gear are switched, a resistor to be selected and a capacitor to be selected connected to the same switch circuit are turned on, and it is determined that each time the resistance gear and the capacitance gear are switched, the capacitance value of the filter capacitor inside the filter is adjusted up by a factor equal to the filter resistance inside the same filter, or the capacitance value of the filter capacitor inside the filter is adjusted down by a factor equal to the filter resistance inside the same filter, so that the bandwidth ratio is within a first preset margin range, and the damping coefficient is within a second preset margin range; The capacitance value of the reference capacitor is smaller than the capacitance value of the capacitor to be selected.
