1. Field of Invention
The present invention relates to resistor and capacitor monolithic process calibration and, more particularly, to an RC calibration circuit with filter cut-off frequency programmability for filters that include resistors and capacitors in their structures.
2. Description of Related Art
The on chip resistors (R) and capacitors (C) can vary over a huge range even in most updated monolithic process. The variation of the RC directly causes the deviation of the filter cut-off frequency. One way of compensating the filter cut-off frequency deviation is through the use of a set of tunable capacitor array controlled by an RC calibration circuit. The RC calibration circuit simply adjusts the capacitance in the filter capacitor array to bring the cut-off frequency back to the desired value.
From EQ. 1, by tuning Carray, the capacitance of an array of addressable parallel binary-weighted capacitors as in a charge-redistribution D/A converter, the filter cut-off frequency can be adjusted.
Nevertheless, one severe issue in
The RC calibration circuit in
In some applications, filter cut-off frequency programmability is required. From the example in
Thus, there is a need for a RC calibration circuit that is immune from DC offset, allows variable reference clock rates, and provides filter cut-off frequency programmability.
An object of the present invention is to provide a self-tuned RC calibration circuit to be immune from DC offset voltages. Another object of the present invention is to provide a method for the self-tuned RC calibration circuit allowing for changeable reference clock rates. A further object of the present invention is to have the filter cut-off frequency programmability being included into the self-tuned RC calibration circuit.
The self-tuned RC calibration circuit of the present invent comprises switches for multiplexing two input reference signals through programmable resistors in parallel with switched capacitor resistors to a differential amplifier with feedback capacitors. Using the two input reference signals, the feedback capacitors are first charged through the programmable resistors and then discharged through the switched capacitor resistors in the first calibration cycle. The second calibration cycles are sequentially executed with swapped input reference signals to the differential amplifier. Briefly, the impact of the DC offset in the calibration circuit is cancelled by applying swapped input reference signals for two successive calibration cycles. The total duration when the difference of the differential amplifier outputs starts to reverse ramping direction and the time when the difference crosses zero in the two calibration cycles is counted in terms of reference clock cycles by a binary counter. The final count is directly utilized to set the capacitor array capacitance in an (active- and passive-) RC filter for RC time constant calibration.
In according with the present invent, if different reference clock rate is applied, the calibration result is still valid once the programmable resistors in the calibration circuit is tuned according to the ratio of the new reference clock period to the original based period.
Moreover, by tuning the resistance of the programmable resistors with the ratio of the changed cut-off frequency to the default cut-off frequency, the calibration circuit further provides the capability of changing the cut-off frequency of an (active- and passive-) RC filter circuit to another predetermined value.
The calibration circuit is additionally capable of dealing with the case of different calibration reference clock rate plus changed filter cut-off frequency, by tuning the resistance of the programmable resistors according to the reference clock period changing ratio times the filter cut-off frequency changing ratio.
(Vref1+Vref2)/(R1*C0*τ)*2N*Tclk=(Vref1+Vref2)*C1/(C0*Tclk)*η1
η1=2N*T2clk/(R1*C1*τ). EQ. 2
Similarly, by swapping the two input reference signals, Vcm+Vref1 and Vcm−Vref2, through {overscore (Ph4)} for the 2nd calibration cycle, (Vop−Von) is generated as a second dual-slope ramp signal in opposite direction as the previous dual-slope ramp signal and
η2=2N*T2clk/(R1*C1*τ). EQ. 3
Note that, ideally, η1 and η2 have the same expression and the reason of using two calibration cycles will be clear later. For simplicity, the 1st calibration cycle is used to illustrate the algorithm. The Ti duration on the cntEN signal enables the (N+1)-bit counter in the control logic block to count the cycles of the reference clock. The (N+1)-bit counter, pre-loaded with an integer P, counts up from −P and gets a count n at the end of η1 duration. Therefore,
η1=(n+P+0.5±φ)*Tclk, EQ. 4
where, −0.5≦φ≦0.5 is the quantization error due to the stepped procession of (Vop−Von) in this period. The count n can be obtained by equating EQ. 2 and EQ. 4,
n=2N*Tclk/(R1*C1*τ)−(P+0.5)±φ. EQ. 5
On the other hand, the filter capacitor array tuning range needs to be defined to cover not only the process and temperature variation but also the filter cut-off frequency programmable range. For simplicity and clarity, through the description of the algorithm, numbers will be sequentially assigned to parameters but not limited to those given numbers. For instance, +−5% is assumed for the targeted calibration accuracy. (Certainly, any different numbers assigned in the algorithm will result in different consequences.)
The first step of the algorithm is to find out the RC variation range due to process and temperature changes. To cover (say) three standard deviations, the RC process plus temperature variation locates between (say) 0.61 and 1.5 (RC time constant varies from 39% less to 50% more compared with the nominal one). In addition, for default filter cut-off frequency of (say) 7 MHz, to include the filter cut-off frequency programmable range of (say) 7 MHz˜10 MHz into the covered calibration range, the total variation should extend to 0.61*7M/7M=0.61˜1.5*10M/7M=2.143. Therefore, the filter capacitor should cover the tuning range of 1/2.143=0.46˜1/0.61=1.64. For convenience, the covered tuning range of, say, 0.45 (−55%) ˜1.65 (+65%) is assumed for the following calculation.
The filter capacitor is implemented by an array of addressable parallel binary weighted capacitors to cover the mentioned tuning range:
Carray=Cmin+n*δ, EQ. 6
where, Cmin is a fixed capacitance, δ is the unit capacitance, n is an integer in the range of [0˜2N−1] with N for N-bit capacitor array, and Carray is the total array capacitance associated with n. Using Carray to represent a nominal capacitance of Cnom and a tuning range of (say) −55% ˜+65% around Cnom, the relationship of Cnom, Carray, and quantization level is illustrated in
From
The array has a maximum quantization error approximately
εmax˜+−δ/2/[Cnom*(1−55%)]
˜+−δ/2/[2N/1.2*δ*0.45]
˜+−1/2N*4/3. EQ. 9
If maximum quantization error of (say) +−5% is tolerable, from EQ. 9, N=5 is chosen and εmax˜+−4.17%. Therefore, δ=0.0375*Cnom and Cmin=12.5*δ.
The ratio of nominal to ideal on-chip RC time constant is defined as τ; thereafter, the required nominal time constant is equated to the tuned fabricated time constant as
R*Cnom=R(Cmin+n*δ)τ, EQ. 10
where, from EQ. 7, Cnom=2N*δ/1.2. The relationship between code n and RC time constant variation ratio τ is then
If the count n in EQ. 5 (from calibration circuit) equals the code n in EQ. 12 (from filter capacitor array), then the number from calibration circuit self-tunes the filter capacitor array. By comparing EQ. 5 with EQ. 12 and assuming φ=0, the following conditions satisfy the previous statement:
R1*C1=1.2*Tclk, EQ. 13
P=12. EQ. 14
Note that, Tclk, one reference clock period, comes from an accurate source, for example, a crystal clock. For selected Vref1 and Vref2, the choices of C, and C0 depend on the (Vop−Von) ramping step, which should be much larger than the integrated noise from the differential amplifier output. Once C1 is decided, R1 is available from EQ. 13. In addition, R1*C0*τ decides the peak magnitude of (Vop−Von).
In real circuit implementation, if DC offset voltage appears at the inputs of differential amplifier, the slope of (Vop−Von) changes and results in the η1 duration to be incorrect (as shown in
To maximize the applications of a chip, the RC calibration circuitry should also tolerate various reference clock rates. From EQ. 13, the reference clock rate can be different because R1a and R1b in
To even extend the flexibility of this self-tuned calibration circuit, the filter cut-off frequency changing ratio can also be obtained from the resistance changing ratio of the programmable resistors R1a and R1b in
In general, by referring to
Followed by the first fixed time duration, {overscore (PhA)} is on for a second fixed time duration (2nd calibration cycle) comprising sub-duration 4, sub-duration 5, and sub-duration 6. {overscore (PhA)} selects the second input reference signal of Vcm−Vref2 for the inverting input path of the differential amplifier and the first input reference signal of Vcm+Vref1 for the non-inverting input path of the differential amplifier. Similarly, PhB is on for sub-duration 4 to short-circuit the individual two ends of C0a and C0b (auto-zeroing) and to settle whole circuitry. Thereafter, PhC is on for sub-duration 5 (say, 2N*Tclk) to charge C0a through R1a and charge C0b through R1b. Then PhD is on and non-overlapping signals ΦD and {overscore (Φ)}D operate for sub-duration 6 (say, P*Tclk+2N*Tclk) to discharge C0a through C1a and discharge C0b through C1b. The inverting output result of the differential comparator is passed to cntEN in this calibration cycle. cntEN is high to enable the (N+1)-bit counter again, counting up following the count from previous calibration cycle, between Vop−Von reversing ramp direction and crossing zero. At the end of the 2nd calibration cycle, the most significant N bits of the (N+1)-bit counter are directly applied to set the capacitance of filter capacitor arrays.
In one embodiment, the programmable resistors, R1a and R1b, provides the flexibility for variable reference clock rates if EQ. 13 and EQ. 14 are still satisfied (assuming for the previously assigned parameters.) In addition, the programmable resistors, R1a and R1b, also provides the filter cut-off frequency programmability by tuning the R1a and R1b resistance with the same ratio as cut-off frequency changed. The merit of this approach is that, through the calibrated number, the Carray capacitance is changed to the reciprocal ratio and causes the filter cut-off frequency to change this ratio.
In yet another embodiment, by swapping the two input reference signals, Vcm+Vref1 and Vcm−Vref2, on the 1st and the 2nd calibration cycles, the impact of the DC offsets from the differential amplifier and the differential comparator are all cancelled, making this calibration circuitry immune from DC offset. Note that the symmetry of the two reference signals to Vcm is not compulsory, which means Vref1 can be different from Vref2. The swap of the reference signals on the two calibration cycles also cancels the affection of shifted reference signals. In summary, running two calibration cycles with swapped reference signals gains not only DC offset immunity but also the relaxation of reference signal generation.
The scope of the invention should not be restricted to the described particular embodiments for illustration Instead, it should cover all modifications and equivalents within the appended claims.