APPLICATION BULLETIN Mailing Address: PO Box 11400 • Tucson, AZ 85734 • Street Address: 6730 S
Total Page:16
File Type:pdf, Size:1020Kb
®APPLICATION BULLETIN Mailing Address: PO Box 11400 • Tucson, AZ 85734 • Street Address: 6730 S. Tucson Blvd. • Tucson, AZ 85706 Tel: (602) 746-1111 • Twx: 910-952-111 • Telex: 066-6491 • FAX (602) 889-1510 • Immediate Product Info: (800) 548-6132 FAST SETTLING LOW-PASS FILTER By Rod Burt and R. Mark Stitt (602) 746-7445 Noise reduction by filtering is the most commonly used V method for improving signal-to-noise ratio. The increase in IN 1 settling time, however, can be a serious disadvantage in some applications such as high-speed data acquisition sys- R1 tems. The nonlinear filter described here is a simple way to 10kΩ 2 get a four-to-one improvement in settling time as compared VOUT to a conventional filter. C1* 3 To understand the circuit, first consider the dynamics of a single-pole RC filter (Figure 1). Filtering reduces broadband or “white” noise by the square root of the bandwidth reduc- * For 10kHz, C1 = 1592pF. tion as shown by the following calculation: f = 1/(2 • π • R • C ) 4 –3dB 1 1 f f 2 2 FIGURE 1. Conventional Single-Pole RC Filter. e 2 = e 2 df = e 2 • f n B B f f 1 1 VIN 1/2 en = eB (f2 – f1) Diodes Where: R1 10kΩ 1N4148 en = total noise (Vrms) e = broadband noise (V/√Hz) 6 B VOUT f1, f2 = frequency range of interest (Hz) C1* In other words, if the frequency range (f2 – f1) is reduced by a factor of 100, the total noise would be reduced by a factor 7 of 10. * For 10kHz, C1 = 1592pF. π Unfortunately, settling time depends on bandwidth. The f–3dB = 1/(2 • • R1 • C1) penalty for the noise reduction is increased settling time. For 8 a single-pole filter, the time needed for the signal to settle to FIGURE 2. Diode-Clamped Nonlinear Filter (can improve any given accuracy can be calculated as follows: 0.01% settling time for a conventional filter by 9 2/1 for a 20V step). For VO/VIN at time = tS VO = 1 – e–(tS/[R1 • C1]) NONLINEAR FILTER V IN To understand how a nonlinear filter can improve settling 10 time, consider the simple diode clamped nonlinear filter, VO – ( – 1) • 100 = % shown in Figure 2. Settling time is improved because the VIN 11 filter capacitor, C1, is charged faster through the low forward therefore biased diode impedance (RON) during the initial portion of a tS = –ln(%/100) • R1 • C1 large input step change. When the difference between the 12 Where: input and output voltage becomes less than the forward biased diode drop (about 0.6V), the diode turns off and C t = settling time (s) 1 S 13 reacts with R1 alone. At this point, the circuit behaves like a % = percent accuracy at tS Ω normal single-pole RC filter. R1 • C1 = RC time constant ( • F) or (s) Assuming diode R is negligible, the improvement in 14 For example, if a settling to 0.01% is needed, ON settling time depends on the ratio of the input step voltage to ln(0.01/100) = –9.2 the forward biased diode voltage. For a step of –10V to +10V (a 20V step), the improvement is ln(0.60/20) or 3.5 15 In other words, it takes 9.2 R1 • C1 time constants for an input step to settle to within 0.01% of its final value. time constants. In other words, for a 20V step, the simple 16 ©1991 Burr-Brown Corporation AB-022 Printed in U.S.A. January, 1991 SBOA011 R VIN 4 Ω VIN 10k OPA627 OPA627 C R2 3 300kΩ (C1/10) Diodes C2 1N4148 R1 10kΩ (C1/50) R3 100Ω VOUT C1* R2 300kΩ Diodes 1N4148 * For 10kHz, C1 = 1592pF. R f = 1/(2 • π • R • C ) 1 –3dB 1 1 10kΩ V FIGURE 3. Improved Nonlinear Filter (can improve 0.01% OUT settling time for a conventinal filter by 4/1 for C1* a 20V step). * For 10kHz, C1 = 1592pF. diode clamped nonlinear filter can improve 0.01% settling π f–3dB = 1/(2 • • R1 • C1) time from 9.2 time constants to (9.2) – (3.5) = 5.7 time constants. FIGURE 4. Improved Nonlinear Filter with R4, C3 Prefilter For smaller differences between the input step change, and and R3, C2 Network to Assure Op Amp Stability the forward biased diode voltage, the simple diode-clamped in Driving C1. nonlinear filter affords less improvement. As the step change approaches the forward biased diode voltage, the simple threshold of ten times this peak (20mV) is an arbitrary but nonlinear filter offers no improvement. ample threshold. The component values shown in Figure 3 set the filter’s threshold to 20mV. For a 20V step as before, IMPROVED NONLINEAR FILTER the improvement in settling time is ln(0.02/20) = 6.9 time By reducing the threshold to below one diode drop, the constants. In other words, for a 20V step, the improved settling time can be improved for smaller inputs. The im- nonlinear filter can improve 0.01% settling time from 9.2 proved nonlinear filter shown in Figure 3 lets you adjust the time constants to (9.2) – (6.9) = 2.3 time constants—a four- threshold to a small arbitrary value by adjusting the ratio of to-one improvement. R1 and R2. SOME SIGNALS REQUIRE PREFILTERING To see how the improved nonlinear filter works, notice that the op amp forces the voltage at its inverting input to be the In some instances, the input signal may have noise peaks same as at the noninverting input. For small differences above the 20mV threshold of the nonlinear filter. If the noise between the output voltage and the input voltage, the differ- of the input signal to the nonlinear filter is greater than the ence is dropped across the 10kΩ resistor, R , and the filter 20mV threshold, the filter will mistake the noise for a step 1 input and fail to filter it out. To prevent this situation an behaves like a single-pole filter with an R1 • C1 time con- stant. The voltage divider formed by R and R amplifies the input prefilter can be added to the nonlinear filter as shown 1 2 in Figure 4. voltage difference across R1, as seen at the top of R2, by (1 + R /R ). As the voltage across the R , R divider becomes 2 1 1 2 The prefilter’s bandwidth is set by R4 and C3. To minimize larger, one of the diodes (which one depends on signal the prefilter’s effect on settling time, its bandwidth is set ten polarity) begins to conduct, and the capacitor is rapidly times higher than the bandwidth of the nonlinear filter. At charged through it. This occurs at a voltage difference this higher bandwidth, the prefilter’s effect on settling time √ between the input and output of about 0.6V/(1 + R2/R1) or is negligible, and the noise at the prefilter’s output is 10 about 20mV with the values shown. With the diode forward times greater than 2mV (a little over 6mV peak). A noise biased, the time constant of the filter becomes very small, level of 6mV provides a comfortable margin for a 20mV limited only by op amp slew rate or current limit. threshold. To determine the component values for the improved non- linear filter, consider the noise-reduction requirements of the ASSURE OP AMP STABILITY filter. For example, if you want to filter the noise of a 20V Op amps tend to become unstable and oscillate when driving full-scale signal to 0.01% resolution, the peak noise must be large capacitive loads. The C2, R3 network, shown in Figure filtered to less than 0.01% of 20V, i.e. 2mV peak. A clamp 4, assures op amp stability when driving large values of C1 2 ± Traces 1 to 3 show settling response for the various filters. Gain of the Trace 1 shows 10kHz single-pole filter response for a 10mV input signals is 100V/V, so each division of the scope graticule represents step. 2mV (i.e. each division = 0.01%). Trace 2 shows fast response for a ±10V input step. Trace 1 is a standard 10kHz single-pole RC filter. Trace 2 is a diode-clamped 10kHz nonlinear filter. FIGURE 6. Comparison of Large and Small Signal Step Trace 3 is the improved 10kHz nonlinear filter shown in Figure 4. Response of the Improved Nonlinear Filter. Trace 4 is the ±10V input signal at 5V/division. THEORETICAL THEORETICAL FIGURE 5. Settling-Time Response of Standard and Non- FILTER SETTLING TIME SETTLING TIME µ (1) linear Filters. TYPE (time constants) ( s) Single-Pole RC 9.2 147 through the low impedance of the forward biased diode Diode-Clamped 5.7 91 network. The C , R network may not be needed if C is Nonlinear 2 3 1 Improved 2.3 37 small. Nonlinear When choosing the op amp for the improved filter, make NOTE: (1) Settling to 0.01% of final value for a 10kHz filter. sure it has high output drive capability for charging C1, and that its slew rate, settling time, and DC precision are ad- TABLE I. Theoretical Settling Times for Various Filters. equate for the necessary filter response. The OPA627 shown has an excellent combination of DC precision, high slew of the base grid. rate, fast settling time and high output drive capability. The For a 10kHz filter, one RC time constant is 15.9µs. Ignoring 16MHz bandwidth of the OPA627 gives excellent results for input slew rate, and diode forward resistance (good approxi- filters with –3dB bandwidths up to 100kHz.