An RC calibration circuit
By using an op amp and an adjustable capacitor array in the RC calibration circuit, it ensures that the charging current flows through the adjustable capacitor, solving the error problem caused by parasitic capacitors and improving the accuracy of RC calibration.
Patent Information
- Application Number
- CN202411075810.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-08-07
AI Technical Summary
In integrated circuits, the RC calibration circuit has a large error during charging and discharging due to the presence of parasitic capacitors, which affects the accuracy.
An RC calibration circuit is designed to generate reset and calibration signals through an operational amplifier and an adjustable capacitor array, using logic control circuits to ensure that all charging current flows through the adjustable capacitor array, avoiding parasitic capacitor charging and discharging, thereby improving accuracy.
The impact of parasitic capacitors on charging time is effectively avoided, the accuracy of RC calibration is improved, and the charging time is only related to the adjustable capacitor array, reducing errors.
Smart Images

Figure CN118611594B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of integrated circuits, and in particular relates to an RC calibration circuit. Background Art
[0002] In continuous-time systems, such as active filters and resistor-capacitor (RC) oscillators, the design of the circuit depends on the resistors and capacitors on the chip. The precise cutoff frequency and RC time constant have a significant impact on the stability and accuracy of the system. In the actual semiconductor chip manufacturing process, the deviation of the integrated resistors and capacitors can reach up to 20%, and RC calibration circuits are usually set on the chip.
[0003] In the prior art, the design of the RC calibration circuit depends on the charge and discharge strategy of the RC circuit. By continuously adjusting the charge and discharge time constant of the RC circuit, the charge and discharge time constant of the RC circuit under different process corners is made to be a certain time, thereby obtaining a relatively accurate RC discharge time constant.
[0004] Since the capacitors manufactured in the integrated circuit have large parasitic capacitance to the substrate, the parasitic capacitance will be charged and discharged simultaneously during RC charging and discharging, resulting in large errors in the RC calibration results. Summary of the invention
[0005] The object of the present invention is to provide an RC calibration circuit to improve the accuracy of RC calibration and solve the problems raised in the above background technology.
[0006] To achieve the above object, the present invention adopts the following technical solution: an RC calibration circuit, comprising:
[0007] A current source, used to generate a first current I1 and a second current I2, wherein a ratio of I1 to I2 is N:1;
[0008] A first resistor R1 and a second resistor R2, wherein the first current I1 flows through the first resistor R1 and the second resistor R2 to generate a first reference voltage VREF1 and a second reference voltage VREF2;
[0009] An operational amplifier OPA, whose positive input terminal is connected to a first reference voltage VREF1, and whose negative input terminal V1 is connected to a path of a second current I2;
[0010] An adjustable capacitor array C1 is connected between the negative input terminal V1 and the output terminal V2 of the operational amplifier OPA and is used for integration operation. The adjustable capacitor array C1 includes a parasitic capacitor Cp1 and a parasitic capacitor Cp2.
[0011] The switch S1 is controlled by the reset control signal RST, and is closed when the reset control signal RST is 1, so that the negative input terminal V1 and the output terminal V2 of the OPA are short-circuited to clear the charge on the adjustable capacitor array C1;
[0012] A comparator COMP, whose positive input terminal is connected to the second reference voltage VREF2 and whose negative input terminal is connected to the output terminal V2 of the OPA, is used to detect whether the output terminal V2 of the OPA reaches the second reference voltage VREF2;
[0013] A logic control circuit is used to receive the output signal of COMP and generate a reset control signal RST and a calibration signal TUNE <k:0>, to control the switch S1 and adjust the capacitance value of the adjustable capacitor array C1 to achieve the goal of Tint=Ttarget.
[0014] Preferably, the current source mirrors the current through the transistor M1 and the transistor M2, and the ratio of the width to length of the transistor M1 to the transistor M2 is N:1.
[0015] Preferably, the first reference voltage VREF1 is determined by the first current I1*(the first resistor R1+the second resistor R2), and the second reference voltage VREF2 is determined by the first current I1*the second resistor R2.
[0016] Preferably, the adjustable capacitor array C1 is reset in the reset phase, and is charged by the second current I2 in the integration phase until the output terminal V2 is equal to the second reference voltage VREF2.
[0017] Preferably, the comparison between the output terminal V2 and the second reference voltage VREF2 is completed by a comparator COMP, and when the output terminal V2 ≤ the second reference voltage VREF2, VCOMP outputs a high level to trigger a reset process.
[0018] Preferably, the logic control circuit starts timing from the falling edge of RST to the rising edge of VCOMP, calculates the integral time Tint, and compares it with a preset target time Ttarget.
[0019] Preferably, the logic control circuit outputs TUNE based on the difference between the integration time Tint and the target time Ttarget <k:0>signal to adjust the capacitance value of the adjustable capacitor array C1.
[0020] Preferably, the adjustment process of the adjustable capacitor array C1 is iterative until the integration time Tint matches the target time Ttarget.
[0021] Technical effects and advantages of the present invention: Compared with the prior art, the RC calibration circuit proposed by the present invention has the following advantages:
[0022] The present invention connects the positive input terminal of the operational amplifier OPA to the first reference voltage VREF1, and the negative input terminal V1 to the path of the second current I2; the adjustable capacitor array C1 is connected between the negative input terminal V1 and the output terminal V2 of the operational amplifier OPA for integration operation, and the logic control circuit is used to receive the output signal of the comparator COMP and generate a reset control signal RST and a calibration signal TUNE <k:0>, in order to control the switch S1 and adjust the capacitance value of the adjustable capacitor array C1, to achieve the goal of Tint=Ttarget. Since the voltage of the negative input terminal V1 of the OPA is fixedly equal to the first reference voltage VREF1, the parasitic capacitor Cp1 will not be charged or discharged, and the charging current and the second current I2 will not be divided, so that the charging current and the second current I2 all flow through the adjustable capacitor array C1, so that the charging time is only related to the adjustable capacitor array C1, and has nothing to do with the parasitic capacitors Cp1 and Cp2, thereby improving the accuracy of RC calibration. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A circuit diagram of an RC calibration circuit of the present invention;
[0024] Figure 2 This is a circuit diagram of the circuit of the present invention in the integration stage when it is working. DETAILED DESCRIPTION
[0025] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0026] The present invention provides an RC calibration circuit as shown, comprising:
[0027] A current source is used to generate a first current I1 and a second current I2, wherein the ratio of I1 to I2 is N:1; the current source mirrors the current through transistors M1 and M2, and the ratio of the width to length of transistors M1 and M2 is N:1.
[0028] A first resistor R1 and a second resistor R2, the first current I1 flows through the first resistor R1 and the second resistor R2 to generate a first reference voltage VREF1 and a second reference voltage VREF2; the first reference voltage VREF1 is determined by the first current I1*(first resistor R1+second resistor R2), and the second reference voltage VREF2 is determined by the first current I1*second resistor R2.
[0029] An operational amplifier OPA, whose positive input terminal is connected to a first reference voltage VREF1, and whose negative input terminal V1 is connected to a path of a second current I2;
[0030] The adjustable capacitor array C1 is connected between the negative input terminal V1 and the output terminal V2 of the operational amplifier OPA for integration operation, and the adjustable capacitor array C1 includes a parasitic capacitor Cp1 and a parasitic capacitor Cp2; the adjustable capacitor array C1 is cleared in the reset phase, and is charged by the second current I2 in the integration phase until the output terminal V2 is equal to the second reference voltage VREF2.
[0031] The switch S1 is controlled by the reset control signal RST, and is closed when the reset control signal RST is 1, so that the negative input terminal V1 and the output terminal V2 are short-circuited to clear the charge on the adjustable capacitor array C1;
[0032] A comparator COMP, whose positive input terminal receives the second reference voltage VREF2 and whose negative input terminal is connected to the output terminal V2 of the OPA, is used to detect whether the output terminal V2 of the OPA reaches the second reference voltage VREF2;
[0033] A logic control circuit is used to receive the output signal of COMP and generate a reset control signal RST and a calibration signal TUNE <k:0>, to control the switch S1 and adjust the capacitance value of the adjustable capacitor array C1 to achieve the goal of Tint=Ttarget.
[0034] Furthermore, the comparison between the output terminal V2 and the second reference voltage VREF2 is completed by the comparator COMP. When the output terminal V2 ≤ the second reference voltage VREF2, VCOMP outputs a high level to trigger the reset process. The logic control circuit starts timing from the falling edge of RST to the rising edge of VCOMP, calculates the integration time Tint, and compares it with the preset target time Ttarget. The logic control circuit outputs TUNE based on the difference between the integration time Tint and the target time Ttarget. <k:0>The signal is used to adjust the capacitance value of the adjustable capacitor array C1. The adjustment process of the adjustable capacitor array C1 is iterative until the integration time Tint matches the target time Ttarget. The details are as follows:
[0035] like Figure 1 As shown, M1 and M2 are two currents mirrored by the same current source, and their width-to-length ratio is N:1, so I1:I2=N:1.
[0036] I1 flows through R1 and R2 to ground, obtaining two reference voltages VREF1 and VREF2, VREF1=I1*(R1+R2), VREF2=I1*R2.
[0037] The positive input terminal of the operational amplifier OPA is connected to VREF1, the negative input terminal of the OPA is connected to the drain of M2, the switch S1 and the adjustable capacitor array C1 are connected across the negative input terminal V1 and the output terminal V2 of the OPA, and Cp1 and Cp2 are parasitic capacitors.
[0038] The positive and negative input terminals of the comparator COMP are connected to VREF2 and V2 respectively. The comparator output VCOMP is connected to the logic control circuit.
[0039] The logic control circuit outputs a reset control signal RST to control the switch of S1. When RST is 1, S1 is closed, and when RST is 0, S1 is disconnected. The logic control circuit also outputs a capacitor array calibration signal TUNE. <k:0>Control the capacitance value of the capacitor array C1.
[0040] The working principle and process are as follows: when the circuit works, there are a reset phase and an integration phase.
[0041] In the reset stage, RST is 1 and S1 is closed. At this time, the negative input and output of the OPA are short-circuited, forming a unity gain buffer connection. The charge on C1 is reset, V2=V1=VREF1, and the VCOMP output is low.
[0042] When the logic control circuit controls RST to change from 1 to 0, the reset phase ends and the integration phase begins. At this time, S1 is disconnected, and I2 begins to flow through the capacitor array C1 to charge C1. Due to the negative feedback of the OPA, the positive terminal voltage V1 of the capacitor C1 is always equal to VREF1, while the negative terminal voltage of C1, that is, the output terminal voltage V2 of the OPA, begins to decrease. Figure 2 As shown, the relationship between the voltage drop Δv of V2 and the integration time Δt is Δv=I2*Δt / C1. The logic control circuit starts timing from the beginning of the integration phase, that is, the falling edge of RST.
[0043] When V2 drops to the VREF2 voltage, the comparator COMP output VCOMP changes from low to high. The timing of the logic control circuit ends, and the timing duration is Tint. VCOMP becomes high, triggering RST to become high, and the circuit enters the reset phase.
[0044] The logic control circuit compares the timing duration Tint with the target duration Ttarget and outputs TUNE according to the comparison result. <k:0>Adjust the value of the C1 capacitor array, and use the adjusted C1 capacitance for the next integration and timing. Repeat this process until Tint = Ttarget.
[0045] According to the above working principle, the following relationship exists: VREF1-VREF2=I2*Traget / C1, and thus it can be concluded that R1*C1= Ttarget / N.
[0046] In summary, since the voltage of V1 is fixed to VREF1, the parasitic capacitor Cp1 will not be charged or discharged, and the charging current I2 will not be divided, so that the charging current I2 flows entirely through C1, and the charging time is only related to C1, and has nothing to do with the parasitic capacitors Cp1 and Cp2, thereby improving the accuracy of RC calibration.
[0047] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An RC calibration circuit, characterized in that: include: A current source, used to generate a first current I1 and a second current I2, wherein a ratio of I1 to I2 is N:1; A first resistor R1 and a second resistor R2, wherein the first current I1 flows through the first resistor R1 and the second resistor R2 to generate a first reference voltage VREF1 and a second reference voltage VREF2; An operational amplifier OPA, whose positive input terminal is connected to a first reference voltage VREF1, and whose negative input terminal V1 is connected to a path of a second current I2; An adjustable capacitor array C1 is connected between the negative input terminal V1 and the output terminal V2 of the operational amplifier OPA and is used for integration operation. The adjustable capacitor array C1 includes a parasitic capacitor Cp1 and a parasitic capacitor Cp2. The switch S1 is controlled by the reset control signal RST, and is closed when the reset control signal RST is 1, so that the negative input terminal V1 and the output terminal V2 of the OPA are short-circuited to clear the charge on the adjustable capacitor array C1; A comparator COMP, whose positive input terminal is connected to the second reference voltage VREF2 and whose negative input terminal is connected to the output terminal V2 of the OPA, is used to detect whether the output terminal V2 reaches the second reference voltage VREF2; A logic control circuit is used to receive the output signal of COMP and generate a reset control signal RST and a calibration signal TUNE <k:0> , to control the switch S1 and adjust the capacitance value of the adjustable capacitor array C1 to achieve the goal of integration time Tint=target time Ttarget.< / k:0> 2. An RC calibration circuit according to claim 1, characterized in that: The current source mirrors the current through the transistor M1 and the transistor M2, and the ratio of the width to length of the transistor M1 to the transistor M2 is N:
1.
3. The RC calibration circuit according to claim 1, characterized in that: The first reference voltage VREF1 is determined by the first current I1*(the first resistor R1+the second resistor R2), and the second reference voltage VREF2 is determined by the first current I1*the second resistor R2.
4. The RC calibration circuit according to claim 1, characterized in that: The adjustable capacitor array C1 is reset in the reset phase and is charged by the second current I2 in the integration phase until the output terminal V2 is equal to the second reference voltage VREF2.
5. The RC calibration circuit according to claim 4, characterized in that: The comparison between the output terminal V2 and the second reference voltage VREF2 is completed by the comparator COMP. When the output terminal V2 ≤ the second reference voltage VREF2, VCOMP outputs a high level to trigger the reset process.
6. The RC calibration circuit according to claim 5, characterized in that: The logic control circuit starts timing from the falling edge of RST to the rising edge of VCOMP, calculates the integration time Tint, and compares it with the preset target time Ttarget.
7. The RC calibration circuit according to claim 6, characterized in that: The logic control circuit outputs TUNE based on the difference between the integration time Tint and the target time Ttarget <k:0> signal to adjust the capacitance value of the adjustable capacitor array C1.< / k:0> 8. The RC calibration circuit according to claim 7, characterized in that: The adjustment process of the adjustable capacitor array C1 is iterative until the integration time Tint matches the target time Ttarget.
