Not Applicable
Not Applicable
1. Technical Field
This invention relates in general to electronic circuits and, more particularly, to RC filters.
2. Description of the Related Art
RC-active filters need calibration because of the poor control on the absolute values of integrated resistors and capacitors. In CMOS technologies, these spreads may produce variations in the RC products as high as ±50%. State-of-the-art processes have high-poly resistance spreads in the range 225-425 Ω/□ (±30%) and the poly1-poly2 capacitance in the range 1.15-1.65 fF/μm2 (±17%).
In general, an RC-active filter must have a fairly precise, and predictable, filtering curve. Variations in the RC products due to technology spreads have a strong impact on the shape of the filter. The possible variation in filter shape due to variations in the RC product is usually not acceptable and thus filter calibration is often mandatory.
A technique for automatically tuning integrated circuit RC-active filters is set forth in J. B. Hughes, N. C. Bird, and R. S. Sohn, Self-Tuned RC-Active Filters for VLSI, Electronic Letters, 11th Sep. 1986, Vol. 22, No. 19, paper 6-6 (hereinafter “Hughes”). This paper proposes a separate on-chip monitor circuit to evaluate and tune the RC product of an RC-active filter using adjustable capacitor arrays. However, this filter has an asymmetrical coverage range (−33% to +100%) that does not cover all the entire theoretical RC product variation range.
Therefore, a need exist for an RC-active filter with a range that covers all product variations.
In the present invention, a calibrated filter comprises an RC filter having tunable capacitors having a capacitive value responsive to a control code, a fully differential calibration circuit and a logic circuit. The calibration circuit comprises a differential operational amplifier, a differential voltage source, a first resistor selectively coupled between a first terminal of the differential voltage source and a first integrating capacitor coupled across a first input and a first output of the differential operational amplifier, and a second resistor selectively coupled between a second terminal of the differential voltage source and a second integrating capacitor coupled across a second input and a second output of the differential operational amplifier. The logic circuit charges the first and second capacitors through the first and second resistors over a first predetermined number of clock periods and discharging the integrating capacitors by a predetermined voltage over a second predetermined number of clock periods. A control code for tuning the tunable capacitors by counting the number of clock periods to needed to discharge the integrating capacitors to a predetermined voltage level.
For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
a illustrates a block diagram of a calibrated fully differential RC filter;
b illustrates a schematic representation of a tunable capacitor array;
a through 4c illustrate the calibration circuit of
The present invention is best understood in relation to
a illustrates a block diagram of a calibrated RC filter 4. An RC filter 6 uses tunable capacitor arrays 7 (see
b illustrates a schematic of a tunable capacitor array 7. Each tunable capacitor array 7 uses a plurality of binary-weighted capacitors 9 that can be selectively enabled or disabled responsive to a control word from the finite state machine 8. Accordingly, the capacitance can be varied from a minimal capacitance (one capacitor 9 enabled) to a maximum capacitance (all capacitors 9 enabled) with a nominal center value equal to the design value of the capacitor. The range of the capacitor array 7 is as great as the combined spread of the resistors and capacitors (i.e., ±47% for the previously specified processing technology).
A capacitor 30 (having value C0, which is equal to C for the embodiment described herein) in parallel with switch 32 (controlled by control signal ΦC) is coupled between inverting input of operational amplifier 24 and the non-inverting differential output of operational amplifier 24. A capacitor 34 in parallel with switch 36 (also controlled by control signal ΦC) is coupled between non-inverting input of operational amplifier 24 and the inverting differential output of operational amplifier 24. The inverting and non-inverting differential outputs of operational amplifier 24 are coupled to latch comparator 38. The output of latch comparator 38 is coupled to finite state machine 8.
The operational amplifier 24 can be, for example, a Miller-compensated structure with NMOS input stage and NMOS output stage.
The latch comparator 38 used in the calibration circuit is a fully differential implementation which doubles the input dynamic of the latch comparator (compared to a single ended solution) and thus reduces the problem of input offset. The fully differential solution acts like an amplification stage, thus reducing the complexity of the comparison stage.
The operation of the calibration circuit 10 is best described in connection with the timing diagram of
Between times t1 and t2 in
Between times t2 and t3 in
During times t3 and t5 in
It is worth noting that, since the analog section of the filter calibration system is fully differential, the reference voltage is also a differential voltage, generated by means of a dedicated operational amplifier. In any case, for simplicity, all the following calculations are made in Single-Ended (SE). The dynamic required by the calibration system is [−2NVREF; (2N+P)VREF]. In an actual design N=5, P=16 and VREF=20 mV; thus the required dynamic results [−640 mV; 960 mV] (SE) is thus well below the maximum dynamic of the operational amplifier.
In addition, the step of the positive-going staircase can be increased (up to 30 mV), thus reducing the influence of the input-offset of the latch comparator. Of course, in this case the constant current producing the negative-going ramp is increased proportionally. Practically, this means increasing the gain of the preamplification stage in front of the latch comparator.
The state of the FSM's counter at the zero-crossing gives the measure of the RC product, which is designed with a nominal value that is 4/3 times the clock period TC (the reason of this choice will be detailed later). The counter is reset at t4 (P clock periods after t3) and, with the binary weighted capacitor array designed according to
The control circuit parameters P and N are chosen according to (a) the expected processing spreads, (b) the required filter accuracy and (c) the maximum allowed calibration time. It can be demonstrated that this technique compensates processing spreads in the range ±100/(1+P/2N−1)% and produces a filter with an accuracy of ±50/(P+1) %.
The calibration time (TCAL) is equal to TSU+2(P+2N−1)TC, where TSU is a start-up time necessary to properly initialize the FSM. Assuming TSU negligible, this means that doubling the accuracy of the algorithm means roughly doubling TCAL.
For P=16 and 2N=32 (i.e. N=5), the filter accuracy is set to less than 3% and allows a maximum RC product spread of ±50% (sufficient for current day technologies with spreads of ±47%).
As previously stated, the default setting for the RC product is fixed to 4/3TC This solution has been adopted to cover the full range of the RC product spreading. In fact, the voltage value at the output of the integrator at the end of the integration phase (t2-t3) results
where R* and C* are the resistor and the capacitor implemented in the design. If the maximum spread is ±50% (as supposed), the value of V0 may vary from ⅔V0* (i.e., V0*/(1+0.5)) up to 2V0* (i.e., V0*/(1−0.5)), where V0* is the value of the integrated voltage with ideal conditions. This means that there is an asymmetry in the integrated voltage between the positive and the negative spread. Thus, if the RC product is equal to TC, there is no chance to correct the case when the integration voltage results 2V0*.
The calibration range results in this case [−33% ;+100%]. In fact, for RC changes in the range ±50%, C array will cover ±({fraction (1/50)}%), which is [−33% ;+100%]. If the RC product is set to 4/3TC, the voltage range at the output of the integrator results
and this allows to perform the calibration covering the full range. Of course, in this case, there is an asymmetry in the nominal case digital code, which controls the capacitor array.
The code can be calculated as follows. Using
as the coverage of the calibration algorithm, where x1,2 are the minimum and maximum spread of the RC product, and this range has to be ±50%, the corresponding range of variation of the RC product can be calculated as:
Accordingly, a symmetrical correction range needs an asymmetrical correction code for the nominal case.
Thus, in the first case, no spread gives the code 10000 (assuming N=5), while in the second case, in the same condition, the driving code will be 01000 (since the RC product is greater than TC). With this configuration, the maximum RC product (which corresponds to ½V0*) will give the minimum digital code (00000), while the minimum RC product (3/2 V0*) will give the maximum digital code (11111).
The following relationship gives the value of the output code since it calculates the number of discharging steps by equating the integrated voltage on the integrator capacitor with the product of the single discharging step by the number of steps required to completely discharge the capacitor.
With N=5 and P=16 (as in the illustrated case), nNOM=8 and thus the corresponding digital code for the switches is 01000.
The same operation can be performed both for the maximum and minimum RC product. For the maximum RC product:
Thus, nmax=0 and then the corresponding digital code for the switches is 00000.
For the minimum RC product:
Thus, nMIN=32 and then the corresponding digital code for the switches is 11111.
In summary, by setting RC=4/3TC, it is possible to cover the whole spreading range of ±47% for a current processing technology.
The calibration system 10 presents a fully differential architecture instead of a single ended solution as proposed in Hughes. This choice has been made, even if the architecture of the integrator is more complicated, since it doubles the number of passive elements (R, C) and requires a fully differential operational amplifier, because it allows simplification of the architecture of the latch comparator, since the fully differential solution acts like a pre-amplification stage for the comparison stage. Thus a simple latch comparator, without any pre-amplification stage, can be used.
From an area point of view, the two solutions are comparable, but the fully differential solution proposed herein presents some key advantages: (1) the result of the calibration process is independent from any error in the reference signals (both for the integrator and for the latch comparator), and (2) the clock-feedthrough and the charge injection caused by the switches in the switched capacitor integrator does not influence the result. It is worth noting that in this case no delayed phases have to be used since the input signal (reference voltage) is constant.
The tunable capacitors of the filter are made adjustable by using programmable binary-weighted capacitor arrays, as shown in
The number of bits composing the code driving each capacitor array 7 (and hence the resolution of the capacitor array 7) determines the accuracy of the calibration; it is worth noting that this number influences also the calibration time. In other words, this means that increasing the filter accuracy means increasing the calibration time: in particular, one more bit means doubling the time required for the calibration. The choice of the code length is then a trade-off between these two issues.
Although the Detailed Description of the invention has been directed to certain exemplary embodiments, various modifications of these embodiments, as well as alternative embodiments, will be suggested to those skilled in the art. The invention encompasses any modifications or alternative embodiments that fall within the scope of the claims.