A novel filter bandwidth self-calibration method and circuit
By configuring the frequency calibration array software, adjusting the resistance or capacitance value of the filter for calibration, solving the problem of adding calibration circuits to existing filters in bandwidth calibration, achieving a smaller chip area and a simplified calibration process.
Patent Information
- Application Number
- CN202411080841.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-08
AI Technical Summary
Existing filters require additional calibration circuits during bandwidth calibration, resulting in increased chip area and complex calibration process.
The frequency calibration array is configured using software, and the resistance or capacitance value is adjusted through the parallel software frequency calibration unit, the initial cutoff frequency is generated and the calibration signal is preprocessed, to determine whether the target cutoff frequency is reached, to form the calibration array analysis results, and output the frequency calibration configuration scheme to perform calibration.
No additional resistor or capacitor array is required, reducing filter chip area and enabling a simpler calibration process through software control.
Smart Images

Figure CN118590030B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of filters, and in particular to a novel filter bandwidth self-calibration method and circuit. Background Art
[0002] Active RC filters have filtering functions such as low-pass, high-pass, band-pass or band-stop, and can provide gain. They are constructed by resistors, capacitors and at least one active component (usually an operational amplifier). For a simple RC low-pass filter, its cutoff frequency (usually -3dB frequency) can be calculated using the following formula: , where R is the resistance value and C is the capacitance value; for more complex second-order active RC filters, such as the Sallen-Key topology, the bandwidth frequency will also be determined by the values of the resistance and capacitance, but the specific calculation formula will be more complicated because it is necessary to consider factors such as the quality factor, center frequency and gain of the filter.
[0003] During the design process, engineers will select appropriate resistance and capacitance values through calculation according to the required filtering characteristics, such as cutoff frequency, bandwidth, passband gain, etc. However, with the changes in process-voltage-temperature (PVT) and the influence of parasitic parameters, there will be large deviations in resistance and capacitance. Under this deviation, when calibrating the bandwidth of the filter, the existing methods mainly use integral and exponential methods to achieve calibration. However, both methods require the addition of additional resistor arrays or capacitor arrays inside the filter, which not only complicates the calibration process, but also increases the area of the filter chip. Summary of the invention
[0004] The present invention aims at the shortcomings of the prior art and provides a novel filter bandwidth self-calibration method and circuit, which solves the problem that an additional calibration circuit needs to be added during the bandwidth calibration process of the prior art filter, thereby increasing the filter chip area.
[0005] In order to solve the above technical problems, the present invention is solved by the following technical solutions:
[0006] A novel filter bandwidth self-calibration method comprises the following steps:
[0007] A frequency calibration array is configured by software, wherein the frequency calibration array includes more than three sets of software frequency calibration units connected in parallel, the software frequency calibration unit is a resistor array for adjusting frequency based on resistance, or a capacitor array for adjusting frequency based on capacitance, and the resistor array or capacitor array is a resistor array or capacitor array in a low-pass filter;
[0008] Generating a plurality of groups of initial cutoff frequencies based on the frequency calibration array, and performing calibration signal preprocessing on each group of the initial cutoff frequencies to generate a corresponding stable square wave signal;
[0009] Based on each group of the stable square wave signals, judging whether the initial cutoff frequency corresponding to each group of the stable square wave signals reaches the target cutoff frequency, and combining all the judgment results to form a calibration array analysis result;
[0010] Constructing a mapping relationship between the calibration array analysis result and the frequency calibration configuration scheme, and outputting the frequency calibration configuration scheme based on the mapping relationship and the formed calibration array analysis result;
[0011] The filter to be calibrated is calibrated based on the frequency calibration array configuration scheme.
[0012] Optionally, configuring a frequency calibration array comprises the following steps:
[0013] Based on more than three sets of software frequency calibration units, a switch control program is generated, and the switch control program is burned into the controller;
[0014] The controller is connected to the filter to be calibrated, and each group of software frequency calibration units is configured through a switch control program to obtain a frequency calibration array.
[0015] Optionally, when the software frequency calibration unit is set to three groups, the frequency calibration array configured by the switch control program includes a primary calibration array, a secondary calibration array and a tertiary calibration array, wherein the primary calibration array, the secondary calibration array and the tertiary calibration array are respectively processed corresponding to the process angle ff, the process angle tt and the process angle ss.
[0016] Optionally, when the software frequency calibration unit is set to four groups, the frequency calibration array configured by the switch control program includes a primary calibration array, a secondary calibration array, a tertiary calibration array and a quaternary calibration array.
[0017] Optionally, performing calibration signal preprocessing on each group of the initial cutoff frequencies to generate a corresponding stable square wave signal comprises the following steps:
[0018] Inputting each group of the initial cutoff frequencies into the filter to be calibrated to obtain a filter voltage corresponding to each group of the initial cutoff frequencies;
[0019] The filtered voltage is amplified by an amplifier to obtain a frequency square wave signal;
[0020] The frequency square wave signal is processed for data stability through a counter to obtain a stable square wave signal.
[0021] Optionally, data stability processing specifically includes the following steps:
[0022] The frequency square wave signal is added by a counter so that the frequency square wave signal maintains a stable square wave within a preset time.
[0023] Optionally, determining whether the initial cutoff frequency corresponding to each group of stable square wave signals reaches the target cutoff frequency includes the following steps:
[0024] Determine whether each group of stable square wave signals is "1", and if so, determine that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency;
[0025] If not, it is determined whether each group of stable square wave signals is "0", and if so, it is determined that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
[0026] Optionally, combining all judgment results includes the following steps:
[0027] According to the judgment order, all the judgment results are encoded in sequence to form a calibration array analysis result represented by a sequence code, wherein a stable square wave signal judged to have reached the target cutoff frequency is encoded as "1", and a stable square wave signal judged not to have reached the target cutoff frequency is encoded as "0".
[0028] Optionally, the frequency calibration configuration scheme is obtained based on a frequency calibration array.
[0029] A novel filter bandwidth self-calibration circuit is provided, wherein the novel filter bandwidth self-calibration circuit executes any one of the novel filter bandwidth self-calibration methods described above.
[0030] Compared with the prior art, the technical solution provided by the present invention has the following beneficial effects:
[0031] By configuring the frequency calibration array through software, when calibrating the filter bandwidth, it is only necessary to control the number of software frequency calibration units connected to the filter through software, so as to adjust the input calibration frequency value, and then calibrate the filter bandwidth. The frequency calibration array is a resistor array based on resistor frequency adjustment, or a capacitor array based on capacitor frequency adjustment. The resistor array or capacitor array is a resistor array or capacitor array in a low-pass filter. It is only necessary to configure the frequency calibration array through the resistor array or capacitor array of the low-pass filter itself, and there is no need to add a resistor array or capacitor array inside the filter, thereby reducing the area of the filter chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0033] Figure 1 This is a flow chart of a novel filter bandwidth self-calibration method proposed in the first embodiment;
[0034] Figure 2 This is a circuit diagram of a novel filter bandwidth self-calibration circuit proposed in the fourth embodiment. DETAILED DESCRIPTION
[0035] The present invention is further described in detail below in conjunction with embodiments. The following embodiments are for explanation of the present invention but the present invention is not limited to the following embodiments.
[0036] Example 1
[0037] like Figure 1 As shown, a novel filter bandwidth self-calibration method includes the following steps: first, a frequency calibration array is configured through software, wherein the frequency calibration array includes more than three groups of software frequency calibration units connected in parallel, and the frequency calibration array is configured, specifically including the following steps: based on more than three groups of software frequency calibration units, a switch control program is generated, and the switch control program is burned into a controller; the controller is connected to the filter to be calibrated, and each group of software frequency calibration units is configured through the switch control program to obtain a frequency calibration array.
[0038] Specifically, the software frequency calibration unit is a resistor array based on resistor adjustment frequency, or a capacitor array based on capacitor adjustment frequency, and the resistor array or capacitor array is a resistor array or capacitor array in a low-pass filter. When the frequency calibration array is a resistor array based on resistor adjustment frequency, the frequency calibration array is an array comprising multiple resistors in parallel, and the resistor is the resistor of the low-pass filter. At this time, each resistor forms a software frequency calibration unit, and each resistor can be connected or disconnected from the circuit through a switch. On the other hand, in this embodiment, the switch is implemented through a switch control program, so that one resistor corresponds to a switch control program, that is, one resistor corresponds to an array switch, and then all switch control programs are burned into the controller, and the number of resistors connected to the filter in the frequency calibration array is controlled by the controller, thereby achieving the purpose of frequency calibration of the filter through software, wherein the controller can be a microcontroller or a digital signal processor (DSP).
[0039] Furthermore, when the software frequency calibration unit is set to three groups, the frequency calibration array configured by the switch control program includes a primary calibration array, a secondary calibration array and a tertiary calibration array. Taking the frequency calibration array as an example of a resistor array based on resistor frequency adjustment, the initial cutoff frequency generated based on the frequency calibration array is three groups, namely, the initial cutoff frequency corresponding to the primary calibration array, the initial cutoff frequency corresponding to the secondary calibration array and the initial cutoff frequency corresponding to the tertiary calibration array.
[0040] Among them, the initial cutoff frequency corresponding to the configuration of the first-level calibration array refers to the cutoff frequency obtained when only any one group of resistors in the three parallel resistor arrays is connected through the array switch set by the software; the initial cutoff frequency corresponding to the configuration of the second-level calibration array refers to the cutoff frequency obtained when any two groups of resistors in the three parallel resistor arrays are connected through the array switch set by the software; and the initial cutoff frequency corresponding to the configuration of the third-level calibration array refers to the cutoff frequency obtained when all three groups of resistors in the three parallel resistor arrays are connected through the array switch.
[0041] Next, calibration signal preprocessing is performed on each group of initial cutoff frequencies to generate corresponding stable square wave signals, which specifically include the following steps: each group of initial cutoff frequencies is input into the filter to be calibrated to obtain the filter voltage corresponding to each group of initial cutoff frequencies; the filter voltage is amplified by an amplifier to obtain a frequency square wave signal; and because when the filter voltage is greater than the reference voltage of the amplifier, the output frequency square wave signal will fluctuate, it is necessary to perform data stability processing on the frequency square wave signal through a counter to obtain a stable square wave signal, so that the output stable square wave signal remains stable for a period of time.
[0042] Specifically, each group of initial cutoff frequencies is input into the filter to be calibrated for filtering to obtain a corresponding filter voltage, and then the filter voltage is compared with a reference voltage to output a frequency square wave signal. Finally, the frequency square wave signal is added through a counter to obtain a stable square wave signal that keeps the square wave stable within a preset time, wherein the preset time can be 1 microsecond.
[0043] Further, based on each group of stable square wave signals, it is judged whether the initial cutoff frequency corresponding to each group of stable square wave signals reaches the target cutoff frequency, and all the judgment results are combined to form a calibration array analysis result, wherein the judgment whether the initial cutoff frequency corresponding to each group of stable square wave signals reaches the target cutoff frequency includes the following steps: judging whether each group of stable square wave signals is "1", if so, judging that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency; if not, judging whether each group of stable square wave signals is "0", if so, judging that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
[0044] Specifically, the initial cutoff frequency corresponding to the configuration as a first-level calibration array is first input into the filter to be calibrated, and the counter is reset. At this time, the input initial cutoff frequency is the minimum. After 1 microsecond, the stable square wave signal a output by the counter is read. If the read stable square wave signal a is "1", it means that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency. If the read stable square wave signal a is "0", it means that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
[0045] Next, the initial cutoff frequency corresponding to the configuration of the secondary calibration array is input into the filter to be calibrated, and the counter is reset. At this time, the initial cutoff frequency input is larger than the initial cutoff frequency corresponding to the primary calibration array, and smaller than the initial cutoff frequency corresponding to the tertiary calibration array. Then, after 1 microsecond, the stable square wave signal b output by the counter is read. If the read stable square wave signal b is "1", it means that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency. If the read stable square wave signal b is "0", it means that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
[0046] Finally, the initial cutoff frequency corresponding to the configuration of the three-level calibration array is input into the filter to be calibrated, and the counter is reset. At this time, the input initial cutoff frequency is the largest. After 1 microsecond, the stable square wave signal c output by the counter is read. If the read stable square wave signal c is "1", it means that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency. If the read stable square wave signal c is "0", it means that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
[0047] Furthermore, all judgment results are combined, including the following steps: according to the judgment order, all judgment results are encoded in sequence to form a calibration array analysis result represented by a sequence code, wherein a stable square wave signal judged to have reached the target cutoff frequency is encoded as "1", and a stable square wave signal judged not to have reached the target cutoff frequency is encoded as "0".
[0048] Specifically, when configured as a first-level calibration array, the judgment result is a; when configured as a second-level calibration array, the judgment result is b; when configured as a third-level calibration array, the judgment result is c. At this time, according to the judgment order, all the judgment results are encoded, and the obtained calibration array analysis result is expressed as {a, b, c}. For example, when {a, b, c}=001, the calibration array analysis result means that the initial cutoff frequencies corresponding to the first-level calibration array and the second-level calibration array have not reached the target cutoff frequency, and the initial cutoff frequency corresponding to the third-level calibration array has reached the target cutoff frequency.
[0049] Furthermore, a mapping relationship between the calibration array analysis results and the frequency calibration configuration scheme is constructed, and the mapping relationship is as follows: when {a, b, c}=000, it means that the initial cutoff frequency corresponding to the three-level calibration array cannot reach the target cutoff frequency, so only the three-level calibration array with the largest initial cutoff frequency can be configured. Therefore, the frequency calibration configuration scheme is to configure the frequency calibration array as a three-level calibration array; when {a, b, c}=001, it means that the initial cutoff frequency corresponding to the two-level calibration array cannot reach the target cutoff frequency, while the initial cutoff frequency corresponding to the three-level calibration array can reach the target cutoff frequency. Therefore, the frequency calibration configuration scheme is to configure the frequency calibration array as a three-level calibration array; when {a, b, c} =011, it means that the initial cutoff frequency corresponding to the calibration arrangement cannot reach the target cutoff frequency, while the initial cutoff frequency corresponding to the secondary calibration array can reach the target cutoff frequency, so the frequency calibration configuration scheme is to configure the frequency calibration array as a secondary calibration array; when {a, b, c}=111, it means that the initial cutoff frequency corresponding to the primary calibration array can reach the target cutoff frequency, so the frequency calibration configuration scheme is to configure the frequency calibration array as a primary calibration array; when {a, b, c}=other, the frequency calibration configuration scheme is to configure the frequency calibration array as a tertiary calibration array, where others here refer to the calibration array analysis results other than "000, 001, 011, 111".
[0050] Compared with a single judgment through a primary calibration array, a secondary calibration array, or a tertiary calibration array, the method of successive approximation judgment in this embodiment compares the initial cutoff frequency with the target cutoff frequency in various situations, thereby making the output final frequency calibration configuration scheme more accurate and the algorithm simple, wherein the method of successive approximation judgment refers to a method of judging in sequence through a primary calibration array, a secondary calibration array, and a tertiary calibration array.
[0051] Then, based on the mapping relationship and the formed calibration array analysis result, a frequency calibration configuration scheme can be output, and then the filter to be calibrated can be calibrated based on the frequency calibration array configuration scheme.
[0052] It should be noted that setting the software frequency calibration unit to three groups is the optimal number of groups. This is because, in the semiconductor processing process, the ff process angle, tt process angle and ss process angle of the semiconductor have a greater impact on the change of resistance, among which the resistance value of the resistor under the ff process angle is 80% of that under the tt process angle, and the resistance value of the resistor under the ss process angle is 120% of that under the tt process angle. In order to reduce the influence of parasitic parameters on the circuit while calibrating the filter (the fewer the resistance settings, the smaller the influence of parasitic parameters), three groups of software frequency calibration units are set, and the three groups of software frequency calibration units correspond to the ff process angle resistance, the tt process angle resistance and the ss process angle resistance, respectively, which can respectively correspond to the influence of different process angles and realize frequency calibration.
[0053] On the other hand, this embodiment configures the frequency calibration array through software, so that when calibrating the filter bandwidth, it is only necessary to control the number of software frequency calibration units connected to the filter through software, thereby adjusting the input calibration frequency value, and then calibrating the filter bandwidth. The resistance of the software frequency calibration unit connected to the filter is the resistance of the low-pass filter, and there is no need to add an additional resistor array, thereby reducing the area of the filter chip.
[0054] Example 2
[0055] The difference between this embodiment and the first embodiment is that when the software frequency calibration unit is set to four groups, the frequency calibration array configured by the switch control program includes a primary calibration array, a secondary calibration array, a tertiary calibration array and a quaternary calibration array.
[0056] At this time, taking the frequency calibration array as a resistor array based on resistor-adjusted frequency as an example, the initial cutoff frequencies generated based on the frequency calibration array are four groups, namely, the initial cutoff frequencies corresponding to when configured as a first-level calibration array, the initial cutoff frequencies corresponding to when configured as a second-level calibration array, the initial cutoff frequencies corresponding to when configured as a third-level calibration array, and the initial cutoff frequencies corresponding to when configured as a fourth-level calibration array.
[0057] Among them, the initial cutoff frequency corresponding to the configuration of the first-level calibration array refers to the cutoff frequency obtained when only any one group of resistors in the four-group parallel resistor array is connected through the array switch set by the software; the initial cutoff frequency corresponding to the configuration of the second-level calibration array refers to the cutoff frequency obtained when any two groups of resistors in the four-group parallel resistor array are connected through the array switch set by the software; the initial cutoff frequency corresponding to the configuration of the third-level calibration array refers to the cutoff frequency obtained when any three groups of resistors in the four-group parallel resistor array are connected through the array switch; the initial cutoff frequency corresponding to the configuration of the fourth-level calibration array refers to the cutoff frequency obtained when all four groups of resistors in the four-group parallel resistor array are connected through the array switch.
[0058] Next, calibration signal preprocessing is performed on each group of initial cutoff frequencies to generate corresponding stable square wave signals, which specifically include the following steps: each group of initial cutoff frequencies is input into the filter to be calibrated to obtain the filter voltage corresponding to each group of initial cutoff frequencies; the filter voltage is amplified by an amplifier to obtain a frequency square wave signal; and because when the filter voltage is greater than the reference voltage of the amplifier, the output frequency square wave signal will fluctuate, it is necessary to perform data stability processing on the frequency square wave signal through a counter to obtain a stable square wave signal, so that the output stable square wave signal remains stable for a period of time.
[0059] Further, based on each group of stable square wave signals, it is judged whether the initial cutoff frequency corresponding to each group of stable square wave signals reaches the target cutoff frequency, and all the judgment results are combined to form a calibration array analysis result, wherein the judgment whether the initial cutoff frequency corresponding to each group of stable square wave signals reaches the target cutoff frequency includes the following steps: judging whether each group of stable square wave signals is "1", if so, judging that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency; if not, judging whether each group of stable square wave signals is "0", if so, judging that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
[0060] Specifically, the initial cutoff frequency corresponding to the configuration as a first-level calibration array is first input into the filter to be calibrated, and the counter is reset. At this time, the input initial cutoff frequency is the minimum. After 1 microsecond, the stable square wave signal a output by the counter is read. If the read stable square wave signal a is "1", it means that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency. If the read stable square wave signal a is "0", it means that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
[0061] Next, the initial cutoff frequency corresponding to the configuration of the secondary calibration array is input into the filter to be calibrated, and the counter is reset. At this time, the initial cutoff frequency input is larger than the initial cutoff frequency corresponding to the primary calibration array, and smaller than the initial cutoff frequency corresponding to the tertiary calibration array. Then, after 1 microsecond, the stable square wave signal b output by the counter is read. If the read stable square wave signal b is "1", it means that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency. If the read stable square wave signal b is "0", it means that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
[0062] Then, the initial cutoff frequency corresponding to the configuration of the three-level calibration array is input into the filter to be calibrated, and the counter is reset. At this time, the initial cutoff frequency input is larger than the initial cutoff frequency corresponding to the input of the two-level calibration array, and smaller than the initial cutoff frequency corresponding to the input of the driver calibration array. After 1 microsecond, the stable square wave signal c output by the counter is read. If the read stable square wave signal c is "1", it means that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency. If the read stable square wave signal c is "0", it means that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
[0063] Finally, the initial cutoff frequency corresponding to the configuration of the four-level calibration array is input into the filter to be calibrated, and the counter is reset. At this time, the input initial cutoff frequency is the largest. After 1 microsecond, the stable square wave signal d output by the counter is read. If the read stable square wave signal d is "1", it means that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency. If the read stable square wave signal d is "0", it means that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
[0064] Furthermore, all judgment results are combined, including the following steps: according to the judgment order, all judgment results are encoded in sequence to form a calibration array analysis result represented by a sequence code, wherein a stable square wave signal judged to have reached the target cutoff frequency is encoded as "1", and a stable square wave signal judged not to have reached the target cutoff frequency is encoded as "0".
[0065] Specifically, when configured as a first-level calibration array, the judgment result is a; when configured as a second-level calibration array, the judgment result is b; when configured as a third-level calibration array, the judgment result is c; when configured as a fourth-level calibration array, the judgment result is d. At this time, according to the judgment order, all the judgment results are encoded, and the obtained calibration array analysis result is expressed as {a, b, c, d}. For example, when {a, b, c, d}=0001, the calibration array analysis result means that the initial cutoff frequencies corresponding to the first-level calibration array, the second-level calibration array and the third-level calibration array all do not reach the target cutoff frequency, and the initial cutoff frequency corresponding to the fourth-level calibration array reaches the target cutoff frequency.
[0066] Further, a mapping relationship between the calibration array analysis result and the frequency calibration configuration scheme is constructed, and the mapping relationship is as follows: when {a, b, c, d}=0000, the frequency calibration configuration scheme is to configure the frequency calibration array as a four-level calibration array; when {a, b, c, d}=0001, the frequency calibration configuration scheme is to configure the frequency calibration array as a four-level calibration array; when {a, b, c, d}=0011, the frequency calibration configuration scheme is to configure the frequency calibration array as a three-level calibration array; when {a, b, c, d}=0111, the frequency calibration configuration scheme is to configure the frequency calibration array as a secondary calibration array; when {a, b, c, d}=1111, the frequency calibration configuration scheme is to configure the frequency calibration array as a primary calibration array; when {a, b, c, d}=other, the frequency calibration configuration scheme is to configure the frequency calibration array as a fourth-level calibration array, wherein "other" here refers to the calibration array analysis results other than "0000, 0001, 0011, 0111, 1111".
[0067] Then, based on the mapping relationship and the formed calibration array analysis result, a frequency calibration configuration scheme can be output, and then the filter to be calibrated can be calibrated based on the frequency calibration array configuration scheme.
[0068] It should be noted that, in this embodiment, compared with setting three sets of software frequency calibration units, the method of successive approximation judgment of setting four sets of software frequency calibration units can make the output final frequency calibration configuration scheme more accurate.
[0069] Example 3
[0070] The difference between this embodiment and the first embodiment is that, in this embodiment, when the software frequency calibration unit is set to three groups, the frequency calibration array configured by the switch control program includes a primary calibration array, a secondary calibration array and a tertiary calibration array, and the frequency calibration array is described as a capacitor array based on capacitor frequency adjustment as an example.
[0071] At this time, the initial cutoff frequencies generated based on the frequency calibration array are also three groups, namely the initial cutoff frequencies corresponding to when configured as a first-level calibration array, the initial cutoff frequencies corresponding to when configured as a second-level calibration array, and the initial cutoff frequencies corresponding to when configured as a third-level calibration array.
[0072] Among them, the initial cutoff frequency corresponding to the configuration of the first-level calibration array refers to the cutoff frequency obtained when only any one group of capacitors in the three parallel capacitor arrays is connected through the array switch set by the software; the initial cutoff frequency corresponding to the configuration of the second-level calibration array refers to the cutoff frequency obtained when any two groups of capacitors in the three parallel capacitor arrays are connected through the array switch set by the software; and the initial cutoff frequency corresponding to the configuration of the third-level calibration array refers to the cutoff frequency obtained when all three groups of capacitors in the three parallel capacitor arrays are connected through the array switch.
[0073] Example 4
[0074] like Figure 2 As shown, a novel filter bandwidth self-calibration circuit includes a low-pass filter, an amplifier, a level converter and a counter. The input end of the low-pass filter receives the initial cutoff frequency obtained by configuring the frequency calibration array through software, and outputs a filter voltage. The positive input end of the amplifier receives the filter voltage, the negative input end of the amplifier inputs a reference voltage, and the output end of the amplifier outputs a frequency square wave signal. After the frequency square wave signal passes through the counter, a stable square wave signal is obtained.
[0075] It should be noted that, since the novel filter bandwidth self-calibration circuit of this embodiment executes the novel filter bandwidth self-calibration method as described in the first embodiment, the process of calibrating the bandwidth of the novel filter bandwidth self-calibration circuit will not be repeated in this embodiment.
[0076] The above is only a preferred embodiment of the present invention, and is not any formal or substantial limitation of the present invention. It should be pointed out that ordinary technicians in this technical field can make several improvements and supplements without departing from the method of the present invention, and these improvements and supplements should also be regarded as the protection scope of the present invention. Any technician familiar with this profession, without departing from the spirit and scope of the present invention, can make some changes, modifications and evolutions of the technical content disclosed above, which are equivalent embodiments of the present invention; at the same time, any changes, modifications and evolutions of any equivalent changes made to the above embodiments based on the essential technology of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A novel filter bandwidth self-calibration method, characterized in that: The following steps are involved: The frequency calibration array is configured by software, wherein the frequency calibration array includes more than three groups of software frequency calibration units connected in parallel, and the software frequency calibration units are resistor arrays based on resistor adjustment frequency, or capacitor arrays based on capacitor adjustment frequency, and the resistor array or capacitor array is a resistor array or capacitor array in a low-pass filter. When the software frequency calibration units are resistors, the frequency calibration array is a resistor array based on resistor adjustment frequency, and the resistors are resistors of the low-pass filter; when the software frequency calibration units are capacitors, the frequency calibration array is a capacitor array based on capacitor adjustment frequency, and the capacitors are capacitors of the low-pass filter; wherein, configuring the frequency calibration array by software specifically includes the following steps: generating a switch control program based on more than three groups of software frequency calibration units, and burning the switch control program into a controller; connecting the controller to the filter to be calibrated, and configuring each group of software frequency calibration units through the switch control program to obtain a frequency calibration array; Generating a plurality of groups of initial cutoff frequencies based on the frequency calibration array, and performing calibration signal preprocessing on each group of the initial cutoff frequencies to generate a corresponding stable square wave signal; Based on each group of the stable square wave signals, judging whether the initial cutoff frequency corresponding to each group of the stable square wave signals reaches the target cutoff frequency, and combining all the judgment results to form a calibration array analysis result; Constructing a mapping relationship between the calibration array analysis result and the frequency calibration configuration scheme, and outputting the frequency calibration configuration scheme based on the mapping relationship and the formed calibration array analysis result; The filter to be calibrated is calibrated based on the frequency calibration array configuration scheme.
2. A novel filter bandwidth self-calibration method according to claim 1, characterized in that: When the software frequency calibration unit is set to three groups, the frequency calibration array configured by the switch control program includes a primary calibration array, a secondary calibration array and a tertiary calibration array, wherein the primary calibration array, the secondary calibration array and the tertiary calibration array are processed corresponding to the process angle ff, the process angle tt and the process angle ss respectively.
3. A novel filter bandwidth self-calibration method according to claim 1, characterized in that: When the software frequency calibration unit is set to four groups, the frequency calibration array configured by the switch control program includes a primary calibration array, a secondary calibration array, a tertiary calibration array and a quaternary calibration array.
4. A novel filter bandwidth self-calibration method according to claim 1, characterized in that: Performing calibration signal preprocessing on each group of the initial cutoff frequencies to generate a corresponding stable square wave signal includes the following steps: Inputting each group of the initial cutoff frequencies into the filter to be calibrated to obtain a filter voltage corresponding to each group of the initial cutoff frequencies; The filtered voltage is amplified by an amplifier to obtain a frequency square wave signal; The frequency square wave signal is processed for data stability through a counter to obtain a stable square wave signal.
5. A novel filter bandwidth self-calibration method according to claim 4, characterized in that: The data stability processing specifically includes the following steps: The frequency square wave signal is added by a counter so that the frequency square wave signal maintains a stable square wave within a preset time.
6. A novel filter bandwidth self-calibration method according to claim 1, characterized in that: Determining whether the initial cutoff frequency corresponding to each group of stable square wave signals reaches the target cutoff frequency includes the following steps: Determine whether each group of stable square wave signals is "1", and if so, determine that the initial cutoff frequency corresponding to the group of stable square wave signals reaches the target cutoff frequency; If not, it is determined whether each group of stable square wave signals is "0", and if so, it is determined that the initial cutoff frequency corresponding to the group of stable square wave signals does not reach the target cutoff frequency.
7. A novel filter bandwidth self-calibration method according to claim 6, characterized in that: Combining all the judgment results includes the following steps: According to the judgment order, all the judgment results are encoded in sequence to form a calibration array analysis result represented by a sequence code, wherein a stable square wave signal judged to have reached the target cutoff frequency is encoded as "1", and a stable square wave signal judged not to have reached the target cutoff frequency is encoded as "0".
8. A novel filter bandwidth self-calibration circuit, characterized in that: The novel filter bandwidth self-calibration circuit executes the novel filter bandwidth self-calibration method as claimed in any one of claims 1 to 7.
