An RC time constant correction circuit using a CMOS chip
By using RC time constant correction circuits such as switching capacitors and mirror current sources in the CMOS process chip, the variable capacitance is automatically adjusted by using equivalent resistance characteristics, the problem of complexity of RC constant correction in the prior art is solved, and the problem of RC constant correction in the current technology is realized. Stable correction and simplified circuit design under different PVT conditions.
Patent Information
- Application Number
- CN201810593643.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-06-11
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2038-06-11
AI Technical Summary
Existing RC constant correction circuits are complex in CMOS process chips and require additional comparators, reference voltages, reference clocks and frequency dividers, resulting in implementation and testing difficulties.
The RC time constant correction circuit inside the CMOS process chip is adopted, including switching capacitor circuit, mirror current source, operational amplifier and variable capacitance control logic circuit. The control of variable capacitance is automatically adjusted by using the equivalent resistance characteristics of switching capacitors and polysilicon resistance. bits, causing RC to be corrected to the target value under different PVT conditions without requiring additional clocks.
Automatic correction of RC constants under different environmental conditions is achieved, circuit design is simplified, stability and reliability are improved, and the use of additional components is avoided.
Smart Images

Figure CN108566173B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an RC time constant correction circuit in a CMOS process chip. Background Art
[0002] In the design of analog filters or continuous-time analog-to-digital converters inside CMOS process chips, RC is often used to set parameters such as zeros, poles or bandwidth of the filter module transfer function. Therefore, the RC constant remains stable, which has a great impact on the performance of the system, especially in the case of changes in the circuit environment, such as PVT (process, voltage and temperature).
[0003] A circuit that automatically corrects the RC constant can ensure that the circuit system can still work stably under changing environments. However, the current RC constant correction circuit often requires additional settings such as comparators, reference voltages, reference clocks and dividers, and input signal excitation, which makes it more difficult to implement and test, and requires more external signals and modules.
[0004] Therefore, a new RC time constant correction circuit is needed to solve the above problems. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide an RC time constant correction circuit with better effect in a CMOS process chip.
[0006] In order to solve the above technical problems, the technical solution adopted by the RC time constant correction circuit in the CMOS process chip of the present invention is as follows.
[0007] An RC time constant correction circuit using an internal CMOS process chip includes a switch capacitor circuit, a first mirror current source, a second mirror current source, an operational amplifier, and a variable capacitance control logic circuit;
[0008] The switched capacitor circuit includes a first circuit and a clock-controlled charging switch SW1, wherein the first circuit includes a variable capacitor Cx and a clock-controlled discharging switch SW2 connected in parallel, and the clock-controlled switch SW1 is connected in series with the first circuit;
[0009] The first mirror current source includes a first PMOS transistor P1 and a second PMOS transistor P2, the G pole of the first PMOS transistor P1 is connected to the G pole of the second PMOS transistor P2, the S pole of the first PMOS transistor P1 and the S pole of the second PMOS transistor P2 are both connected to the VBAT terminal, the G pole and the D pole of the second PMOS transistor P2 are connected, the D pole of the second PMOS transistor P2 is connected to the VGND terminal through the resistor Rx, the D pole of the first PMOS transistor P1 is connected to the N1 terminal and is connected to the VGND terminal through the capacitor C1 and the clock control switch SW3 connected in parallel;
[0010] The second mirror current source includes a fourth PMOS transistor P4 and a third PMOS transistor P3, the G pole of the fourth PMOS transistor P4 is connected to the G pole of the third PMOS transistor P3, the S pole of the fourth PMOS transistor P4 and the S pole of the third PMOS transistor P3 are both connected to the VBAT terminal, the G pole and the D pole of the third PMOS transistor P3 are connected, the D pole of the third PMOS transistor P3 is connected to the VGND terminal through the switch capacitor circuit, and the D pole of the fourth PMOS transistor P4 is connected to the N2 terminal and connected to the VGND terminal through the capacitor C2 and the clock control switch SW4 connected in parallel;
[0011] The operational amplifier includes a positive input terminal, an inverting input terminal, a positive output terminal and a negative output terminal, the positive input terminal is connected to the N1 terminal, the inverting input terminal is connected to the N2 terminal, and the positive output terminal and the negative output terminal are connected to the variable capacitor Cx through a variable capacitor control logic circuit.
[0012] Furthermore, the variable capacitor Cx includes N capacitors Cxi, and the N capacitors Cxi are connected in parallel, wherein i=0, 1...N-1.
[0013] Furthermore, the ratio of the capacitance value of capacitor Cxi to the capacitance value of capacitor Cxi-1 is 2. N=4, the control switches of each channel are K3, K2, K1, K0, and the values of capacitors Cx3, Cx2, Cx1, Cx0 are 8x, 4x, 2x, x, respectively, where 8x is the value corresponding to the normal capacitance, and the values of other capacitors are taken in proportion.
[0014] Furthermore, the resistor Rx is a CMOS process polysilicon resistor.
[0015] Furthermore, the operational amplifier is a differential operational amplifier, and the output of the operational amplifier is two signals, a plus signal and a minus signal.
[0016] Furthermore, the capacitor C1 and the capacitor C2 are fixed capacitors. The capacitor C1 and the capacitor C2 are fixed capacitors, and the clock is a system negative clock signal.
[0017] Furthermore, the capacitor C1 is the same as the capacitor C2.
[0018] Furthermore, the variable capacitor control logic circuit includes N control switches Ki, the i-th control switch Ki is connected in series with the i-th capacitor Cxi, where i=0,1…N-1. The variable capacitor control logic circuit uses the control switch Ki connected in series with the capacitor Cxi to control the size of the variable capacitor Cx.
[0019] Furthermore, N is 4, 5 or 6. The control logic bit of the variable capacitance control logic circuit is selected to be 4, 5 or 6, thereby controlling the accuracy of the variable capacitance Cx.
[0020] Beneficial effect: The RC time constant correction circuit in the CMOS process chip of the present invention utilizes the equivalent resistance characteristic of the switch capacitor to generate the voltage after the fixed capacitor is charged by the equivalent average current, and compares it with the voltage after the fixed capacitor is charged by the fixed current through the polysilicon resistor to adjust the control bit of the variable capacitor, so that the RC is automatically corrected to the designed target value under different PVT conditions. This method does not require an additional clock, and the circuit is simple and reliable, which is a very useful RC time constant correction circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a schematic diagram of the structure of the RC time constant correction circuit inside the CMOS process chip;
[0022] Figure 2 is the internal structure of the variable capacitor (N=4);
[0023] Figure 3 It is the system clock and its reverse clock waveform used to control the switch;
[0024] Figure 4 It is the variable capacitor control logic correction process;
[0025] Figure 5 It is the RC time constant correction circuit where the voltage at the input of the operational amplifier changes with the variable capacitor control bit. DETAILED DESCRIPTION
[0026] The following is a detailed description of the embodiments with the help of drawings, but the embodiments provided are not intended to limit the scope of the present invention, and the description of the structural operation is not intended to limit the order of its execution. Any structure recombined by components to produce a device with equal efficacy is within the scope of the present invention.
[0027] See also Figure 1 , Figure 2 , Figure 3 , Figure 4 and Figure 5 As shown, the RC time constant correction circuit of the present invention adopts the internal CMOS process chip, including a switch capacitor circuit, a first mirror current source, a second mirror current source, an operational amplifier, and a variable capacitance control logic circuit;
[0028] The switched capacitor circuit includes a first circuit and a clock-controlled charging switch SW1, the first circuit includes a variable capacitor Cx and a clock-controlled discharging switch SW2 connected in parallel, and the clock-controlled switch SW1 is connected in series with the first circuit;
[0029] The first mirror current source includes a first PMOS transistor P1 and a second PMOS transistor P2, the G pole of the first PMOS transistor P1 is connected to the G pole of the second PMOS transistor P2, the S pole of the first PMOS transistor P1 and the S pole of the second PMOS transistor P2 are both connected to the VBAT terminal, the G pole and the D pole of the second PMOS transistor P2 are connected, the D pole of the second PMOS transistor P2 is connected to the VGND terminal through the resistor Rx, the D pole of the first PMOS transistor P1 is connected to the N1 terminal and is connected to the VGND terminal through the capacitor C1 and the clock control switch SW3 connected in parallel;
[0030] The second mirror current source includes a fourth PMOS transistor P4 and a third PMOS transistor P3, the G pole of the fourth PMOS transistor P4 is connected to the G pole of the third PMOS transistor P3, the S pole of the fourth PMOS transistor P4 and the S pole of the third PMOS transistor P3 are both connected to the VBAT terminal, the G pole and the D pole of the third PMOS transistor P3 are connected, the D pole of the third PMOS transistor P3 is connected to the VGND terminal through a switch capacitor circuit, and the D pole of the fourth PMOS transistor P4 is connected to the N2 terminal and connected to the VGND terminal through a capacitor C2 and a clock control switch SW4 connected in parallel;
[0031] The operational amplifier includes a positive input terminal, an inverting input terminal, a positive output terminal and a negative output terminal. The positive input terminal is connected to the N1 terminal, the inverting input terminal is connected to the N2 terminal, and the positive output terminal and the negative output terminal are connected to the variable capacitor Cx through a variable capacitor control logic circuit.
[0032] Preferably, the variable capacitor Cx includes N capacitors Cxi, and the N capacitors Cxi are connected in parallel, wherein i=0,1…N-1. The capacitor is a CMOS capacitor to be calibrated. <n-1:0>A total of N bits are used to control the capacitance value, and the control signals are the digital signals corresponding to the clock and the corresponding negative clock.
[0033] Preferably, the ratio of the capacitance value of capacitor Cxi to the capacitance value of capacitor Cxi-1 is 2. N=4, the control switches of each channel are K3, K2, K1, K0, and the values of capacitors Cx3, Cx2, Cx1, Cx0 are 8x, 4x, 2x, x, respectively, where 8x is the value corresponding to the normal capacitance, and the values of other capacitors are taken in proportion.
[0034] Preferably, the resistor Rx is a polysilicon resistor of CMOS process. The resistor Rx is a polysilicon resistor. The resistor Rx is a resistor in the RC constant, and is connected to the power supply through PMOS to provide a reference current.
[0035] Preferably, the operational amplifier is a differential operational amplifier, and the output of the operational amplifier is two signals, a plus signal and a minus signal.
[0036] Preferably, the capacitor C1 and the capacitor C2 are fixed capacitors. The capacitor C1 and the capacitor C2 are fixed capacitors, and the clock is a system negative clock signal.
[0037] Preferably, the capacitor C1 is the same as the capacitor C2.
[0038] Preferably, the variable capacitor control logic circuit includes N control switches Ki, the i-th control switch Ki is connected in series with the i-th capacitor Cxi, where i=0,1…N-1. The variable capacitor control logic circuit uses the control switch Ki connected in series with the capacitor Cxi to control the size of the variable capacitor Cx. That is, the variable capacitor control logic circuit is an N-bit control logic circuit. <n-1:0>.
[0039] Preferably, N is 4, 5 or 6. The control logic bit of the variable capacitance control logic circuit is selected to be 4, 5 or 6, thereby controlling the accuracy of the variable capacitance Cx.
[0040] The RC time constant correction circuit of the present invention, which uses the equivalent resistance characteristic of the switch capacitor, generates a voltage after the fixed capacitor is charged by an equivalent average current, and compares it with the voltage after the fixed capacitor is charged by the fixed current through the polysilicon resistor to adjust the control bit of the variable capacitor, so that the RC is automatically corrected to the designed target value under different PVT conditions. This method does not require an additional clock, and the circuit is simple and reliable, and is a very useful RC time constant correction circuit. Example
[0041] like Figure 1 As shown, the RC time constant correction circuit inside the CMOS process chip of the present invention includes a switching capacitor circuit, a first mirror current source, a second mirror current source, an operational amplifier, a variable capacitor control logic circuit, a resistor Rx, a variable capacitor Cx, a fixed capacitor C1, a fixed capacitor C2, a clock control switch SW1, a clock control switch SW2, a clock control switch SW3 and a clock control switch SW4.
[0042] exist Figure 1 In the example, the clock-controlled switch SW1, the clock-controlled switch SW2 and the variable capacitor Cx form a switched capacitor circuit to simulate an equivalent resistor, and the final resistance is equal to the resistor Rx at a suitable frequency. The frequency is equal to:
[0043] f =1 / RxCx
[0044] According to the target RxCx constant value, select the appropriate frequency f. In the usual case, Rx is fixed, and the appropriate Cx is selected and proportionally transformed so that the obtained frequency value is the existing clock frequency of the system. In this way, the system does not need to generate additional clocks to calibrate RxCx. In addition, when calibrating RxCx, choose to calibrate Cx while Rx remains unchanged. The calibration of Cx is completed by gradually adjusting the N-bit control bit, such as Figure 2 As shown, when the corresponding control bit is 1 and the control switch K is closed, the capacitor is incorporated; when the control bit is 0, the control switch is disconnected and the corresponding capacitor does not work.
[0045] Select the clock CK with frequency f, and generate its reverse clock CKB, such as Figure 3 shown.
[0046] At the initial stage of system power-on, reset the system so that all logics are cleared. In addition, the default value of the variable capacitor control bit is set to 1 for the highest bit and 0 for the other bits, that is, 1000... (N bits).
[0047] After the system starts working, in the negative clock cycle, the capacitor C1 and the capacitor C2 are short-circuited to the ground through the switches SW3 and SW4 respectively; in the positive clock cycle, the power supply voltage VBAT charges the capacitor C1 and the capacitor C2 through the first PMOS transistor P1 of the first mirror current source and the fourth PMOS transistor P4 of the second mirror current source respectively; the left current of the first mirror current source is twice that of the right current, which is determined by the resistor Rx, and the average current of the second mirror current source is determined by the switch capacitor circuit composed of the clock control switch SW1, the clock control switch SW2 and the variable capacitor Cx, and the left current is equal to the right current.
[0048] If Cx>1 / (fRx), the average current through the switched capacitor circuit is greater than the current through Rx, causing capacitor C2 to charge faster so that its voltage is higher than C1 voltage at the end of charging, making the amplifier output SUB high, thereby reducing the variable capacitor control bit and Cx value; on the contrary, if Cx<1 / (fRx), the amplifier output ADD is high, thereby increasing the variable capacitor control bit and Cx value; in both cases, after N / 2 clocks, the variable capacitor control bit makes the value of Cx approach 1 / (fRx).
[0049] At the end of N / 2 clock cycles, the value of the variable capacitor control bit is the final value of the RxCx constant correction; this value is recorded and maintained in the register, and the correction circuit current and clock are turned off to save power consumption.
[0050] Figure 4 The calibration process of the variable capacitor control logic is shown (taking N=4 as an example). At the beginning, after the system is reset, the control bits K3, K2, K1, and K0 are set to 1000, that is, the value of Cx=8x is set; in the next clock cycle, the variable capacitor control logic enters the calibration process. If ADD=1 and SUB=0, the value of the control logic K3K2K1K0 is increased by 1; if ADD=0 and SUB=1, the value of the control logic K3, K2, K1, and K0 is decreased by 1; this process is repeated until the change of K3, K2, K1, and K0 in three clock cycles does not exceed 1, and then the value is saved and the calibration process ends.
[0051] Figure 5 The voltage at the input of the operational amplifier of the RC time constant correction circuit changes with the change of the variable capacitor control bit. Under normal process conditions, as the variable capacitor control logic output returns to 1000, the input level difference between the positive input and negative input of the operational amplifier gradually approaches zero.
[0052] For two identical capacitors C1 and C2, after the discharge is completed in the negative half cycle of the system clock, the potentials on the two capacitors are equal to zero; in the positive half cycle of the system, the power supply charges the two capacitors; the charging current depends on the current provided by the first mirror current source and the second mirror current source; for the first mirror current source, in the positive half cycle of the system, the current is equal to
[0053] I1= Vbat / Rx
[0054] Wherein, Vbat is the voltage of the VBAT terminal, and Rx is the resistance of the resistor Rx.
[0055] For the second mirror current source, since the equivalent resistance of the switched capacitor is equal to
[0056] Re=1 / fCx
[0057] Wherein, f is the system clock frequency, and Cx is the capacitance of the variable capacitor Cx.
[0058] Therefore, I2=Vbat / Re=Vbat*fCx
[0059] At the final balance, the average current of the first mirror current source is equal to the average current of the second mirror current source.
[0060] I1=I2
[0061] so
[0062] Vbat / Rx = Vbat*fCx
[0063] therefore,
[0064] RxCx=1 / f
[0065] That is, the corrected RC time constant is equal to the period of the system clock.
[0066] When working, the system clock cycle T is selected as RxCx, and the value of the variable capacitance control bit obtained after starting N / 2 clock cycles is the final required correction value.
[0067] The present invention discloses a simple and reliable resistor and capacitor RC constant correction circuit implemented by CMOS technology. In continuous time circuits such as filters and analog-to-digital converters, the RC constant often determines key parameters such as zeros, poles and bandwidth of the transmission function. Therefore, it is very important to maintain the stability of the RC constant relative to PVT (process, voltage and temperature), resulting in various RC constant correction circuits. However, most of the current RC constant correction circuits are too complicated and require additional excitation circuits, clocks and frequency dividers. The RC constant correction circuit of the present invention includes a switched capacitor circuit, a first mirror current source, a second mirror current source, an operational amplifier, a variable capacitor control logic circuit, a resistor Rx, a variable capacitor Cx, a fixed capacitor C1, a fixed capacitor C2 and clock control switches SW1, SW2, SW3 and SW4.
[0068] The RC time constant correction circuit of the present invention, which uses the equivalent resistance characteristic of the switch capacitor, generates a voltage after the fixed capacitor is charged by an equivalent average current, and compares it with the voltage after the fixed capacitor is charged by the fixed current through the polysilicon resistor to adjust the control bit of the variable capacitor, so that the RC is automatically corrected to the designed target value under different PVT conditions. This method does not require an additional clock, and the circuit is simple and reliable, and is a very useful RC time constant correction circuit.
Claims
1. An RC time constant correction circuit using an internal CMOS process chip, characterized in that: It includes a switched capacitor circuit, a first mirror current source, a second mirror current source, an operational amplifier, and a variable capacitor control logic circuit; The switched capacitor circuit includes a first circuit and a clock-controlled charging switch SW1, wherein the first circuit includes a variable capacitor Cx and a clock-controlled discharge switch SW2 connected in parallel, and the clock-controlled charging switch SW1 is connected in series with the first circuit; The first mirror current source includes a first PMOS transistor P1 and a second PMOS transistor P2, the G pole of the first PMOS transistor P1 is connected to the G pole of the second PMOS transistor P2, the S pole of the first PMOS transistor P1 and the S pole of the second PMOS transistor P2 are both connected to the VBAT terminal, the G pole and the D pole of the second PMOS transistor P2 are connected, the D pole of the second PMOS transistor P2 is connected to the VGND terminal through the resistor Rx, the D pole of the first PMOS transistor P1 is connected to the N1 terminal and is connected to the VGND terminal through the capacitor C1 and the clock control switch SW3 connected in parallel; The second mirror current source includes a fourth PMOS transistor P4 and a third PMOS transistor P3, the G pole of the fourth PMOS transistor P4 is connected to the G pole of the third PMOS transistor P3, the S pole of the fourth PMOS transistor P4 and the S pole of the third PMOS transistor P3 are both connected to the VBAT terminal, the G pole and the D pole of the third PMOS transistor P3 are connected, the D pole of the third PMOS transistor P3 is connected to the VGND terminal through the switch capacitor circuit, and the D pole of the fourth PMOS transistor P4 is connected to the N2 terminal and connected to the VGND terminal through the capacitor C2 and the clock control switch SW4 connected in parallel; The capacitor C1 and the capacitor C2 are fixed capacitors; The operational amplifier comprises a positive input terminal, an inverting input terminal, a positive output terminal and a negative output terminal, the positive input terminal is connected to the N1 terminal, the inverting input terminal is connected to the N2 terminal, and the positive output terminal and the negative output terminal are connected to the variable capacitor Cx through the variable capacitor control logic circuit; The variable capacitor Cx includes N capacitors Cxi, and the N capacitors Cxi are connected in parallel, wherein i=0, 1...N-1, and the ratio of the capacitance value of the capacitor Cxi to the capacitance value of the capacitor Cxi-1 is 2.
2. The RC time constant correction circuit in a CMOS chip as claimed in claim 1, characterized in that: The resistor Rx is a CMOS process polysilicon resistor.
3. The RC time constant correction circuit in a CMOS chip according to claim 1, characterized in that: The operational amplifier is a differential operational amplifier.
4. The RC time constant correction circuit in a CMOS chip as claimed in claim 1, characterized in that: The capacitor C1 is the same as the capacitor C2.
5. The RC time constant correction circuit in a CMOS chip as claimed in claim 1, characterized in that: The variable capacitance control logic circuit includes N control switches Ki, the i-th control switch Ki is connected in series with the i-th capacitor Cxi, wherein i=0, 1...N-1.
6. The RC time constant correction circuit in a CMOS chip as claimed in claim 5, characterized in that: N is 4, 5 or 6.
