T H AT Corporation IC RMS-Level Detector THAT 2252 FEATURES APPLICATIONS · True RMS Response · Meters · Wide Dynamic Range: >80 dB · Spectrum Analyzers · High Crest Factor: 8 (1 dB error) · Compressors · Wide Bandwidth: to > 20 kHz · Expanders · Logarithmic Output Scaling · Oscillators · Low Cost: $2.20 in ’000s · Psychoacoustic Modeling · Single In-Line Package · Noise Measurement · Matches 2180 and 2181 Series VCAs Description ricated in a super low-noise process, the 2252 combines wide dynamic range with frequency response to beyond 20 kHz. The logarithmic output is especially convenient for audio applications requiring decibel-linear scaling. The integration time is adjustable via an external R/C pair. With some external circuitry, response to dc is also possible. The THAT 2252 integrated-circuit rms-level detector is designed to convert an ac input current into a dc output voltage. The output is proportional to the log of the true rms value of the input signal. The parts are housed in a space-efficient plastic 8-pin single-in-line (SIP) package, and require minimal support circuitry. Based on dbx technology and fab- PIN 1 MODEL NO. 8 H THAT BIAS CURRENT COMP 1 BIAS CURRENT COMP 2 N B D C E TYP. G J M F I A 1 3 7 + - V 4 2 5 6 Figure 1. 2252 Equivalent Circuit Diagram L K ITEM MILLIMETERS INCHES A B C D E F G H I J K L M N 20.32 MAX. 1.1 MIN. 0.5 ± 0.1 0.25 2.54 1.27 MAX. 0.51 MIN. 5.08 MAX. 2.8 ± 0.2 5.75 MAX. 1.5 MAX. 0.25 +0.10 -0.04 3.2 ± 0.5 1.1 MIN. 0.8 MAX. 0.043 MIN. 0.02 ± 0.004 0.01 0.1 0.05 MAX. 0.02 MIN. 0.2 MAX. 0.11 ± 0.008 0.227 MAX. 0.058 MAX. 0.01 +0.004 -0.002 0.126 ± 0.02 0.043 MIN. Figure 2. 2252 Physical Outline dbx is a registered trademark of Carillon Electronics Corporation THAT Corporation; 45 Sumner Street; Milford, Massachusetts 01757-1656; USA Tel: +1 508 478 9200; Fax: +1 508 478 0990; Web: www.thatcorp.com Page 2 THAT 2252 RMS-Level Detector SPECIFICATIONS 1 Absolute -Maximum Ratings (TA = 25°C) Positive Supply Voltage (VCC) +18 V Power Dissipation (PD) Negative Supply Voltage (VEE) -18 V Operating Temperature Range (TOP) Supply Current (ICC) 10 mA 330 Storage Temperature Range (TST) mW -20 to +75°C -40 to +125°C Recommended Operating Conditions Parameter Min Typ Max Units Positive Supply Voltage Symbol VCC +4 +12 +15 V Negative Supply Voltage VEE -4 -12 -15 V Bias Set Current IBIAS 15 24 50 mA — — 1 mA 1 7.5 50 mA Signal Current Iin Timing Current IT Conditions IBIAS = 24 mA Electrical Characteristics 2 Parameter Supply Current Equiv. Input Bias Current Input Offset Voltage Symmetry Voltage Symbol Conditions Min Typ Max ICC No Signal — 1 3 mA IB No Signal — 5 8 nA VOFF(IN) No Signal 0 +8 +16 mV -2 8 +18 mV 6.0 6.1 6.2 mV/dB VSYM EO/20log(Iin / Iin0) 31.6nA<IIN<1mA TA=25°C (TCHIP »35°C) Output Scale Factor Input Current for 0V Output I BIAS×I T 3.5 Iin0 Output Linearity Crest Factor — — — 0.1 0.5 1.0 — — — 1ms pulse repetition rate 0.2 dB error 0.5 dB error 1.0 dB error — — — 3.5 5 8 — — — — 80 74 30 4 — — — — Iin ³ 100mA Iin ³ 10mA Iin ³ 1mA Iin ³ 100nA (.026) Filtering Time Constant D E0 / D TCHIP I BIAS ×I T 2.4 fIN = 1kHz 1mA < Iin < 100mA 100nA < Iin < 316mA 31.6nA < Iin < 1mA Maximum Frequency for 1 dB additional error Output TempCo I BIAS ×I T 2.9 Re: TCHIP = 27°C — CT IT 0.33 Units dB dB dB kHz kHz kHz kHz s — %/°C 1. All specifications subject to change without notice. 2. Unless otherwise noted, TA=25°C, VCC = +15V, VEE= -15V. Test circuit is as shown in Figure 4. SYM is adjusted for minimum ripple at Vout with Vin=1 VRMS, 100 Hz. THAT Corporation; 45 Sumner Street; Milford, Massachusetts 01757-1656; USA Tel: +1 508 478 9200; Fax: +1 508 478 0990; Web: www.thatcorp.com 600032 Rev 01 Page 3 Theory of Operation The THAT 2252 RMS-Level Detector is designed for high performance in audio-frequency applications requiring logarithmic output, rms response, and wide dynamic range. The parts compute rms level by rectifying input current signals, converting the resulting current waveform to a logarithmic voltage, and applying this voltage to a log-domain filter. reverses the positive input currents so that they add to the negative input currents in Q4. The current in Q4, therefore, is equal to the absolute value of the input current. Mathematically, I C3 = { - I in , I in £ 0 0, I in > 0 , and I C1 = I C2 = 0, I in £ 0 I in , I in > 0 . But, I C4 = I C3 + I C2 = I C3 + I C1 Current Rectification = Figure 3 presents a simplified internal circuit diagram of the 2252. The input signal current, Iin, flows in pin 1, the input pin. OA1 drives the base of Q3 and the emitter of Q1 (through V1) to maintain pin 1 at virtual ground potential. A negative input current (flowing out of pin 1) will tend to drive the inverting input of OA1 negative, driving OA1’s output positive, turning on Q3. V1 is designed to cut off Q1 while Q3 is on. Therefore, negative input currents are forced to flow through the collector-emitter of Q3. - I in , I in < 0 I in , I in > 0 See Figure 3 for definitions of these currents. Logging Action OA2, together with Q4 and Q5, forms a log amplifier. By using two diode-connected transistors in the feedback loop of OA2, the 2252 produces a voltage proportional to twice the log of IC4 at the output of OA2. This voltage, Vlog, is therefore proportional to the log of the square of the input current, plus a bias voltage (V2). Mathematically, æI Vlog = 2 VT1nçç IC4 ö÷ + V2 è S ø = 2 VT 1n ( I C4 ) - 2 VT 1n ( I S ) + V2 = VT 1n ( I C4 ) - 2 VT 1n ( I S ) + V2 2 = VT 1n I in 2 - 2 VT 1n ( I S ) + V2, Where VT is the thermal voltage, Since the input impedance of OA2 is high, the current in the emitter of Q4 (IC4), is the sum of the currents IC2 and IC3. The mirror action of Q1/Q2 V3 OA2 + + V2 Q4 Q3 IC1 IC2 20 Q1 + V1 Q2 and IS is the Vlog + IC3 1 kT , q reverse-saturation current of Q4 and Q5 (assumed to be the same in each). + OA1 { = I in . Positive Iin will drive OA1’s output negative, cutting off Q3 and turning on diode-connected transistor Q1. Positive input current is thereby forced to flow through the collector-emitter of Q1. Pin 4 is normally connected through a 20 W resistor to ground (see Figure 4, Typical Application Circuit, Page 4, and Symmetry Adjustment, Page 6), so the base-emitter potential of Q2 is the same as that of Q1. Therefore, the current in the collector of Q2 (IC2) will mirror that in the collector of Q1 (IC1), which equals the positive input current. Iin { Q5 + Q6 OA3 IC4 I T 6 V6 4 Figure 3. Simplified Internal Schematic THAT Corporation; 45 Sumner Street; Milford, Massachusetts 01757-1656; USA Tel: +1 508 478 9200; Fax: +1 508 478 0990; Web: www.thatcorp.com - 7 Vout Page 4 THAT 2252 RMS-Level Detector Computing the Mean In the classic mathematical definition of rms value, the time integral of the square of the signal must be evaluated over infinite time. Obviously, for a practical measurement, only a finite time is available, which leads to the question of how to weight events occuring at various times. Traditionally, the simplest and most meaningful weighting is exponential in time, giving highest weight to the most recent history, and exponentially less weight to increasingly older events. This weighting corresponds to convolution in time with the famil-t iar exponential weighting function, e t . To accomplish this weighting, Pin 6 is normally connected to a capacitor and a negative current source. (Refer to the Typical Application Circuit in Figure 4. In this circuit, CT is the capacitor and RT together with V- form the current source.) This current source establishes a quiescent dc bias current, IT, through Q6. Over time, the capacitor charges to 1 VBE below Vlog (the potential at the output of OA2). The instantaneous emitter current in Q6 is proportional to the antilog of its VBE, which is the difference between Q6’s base voltage and the voltage at pin 6. The potential at the base of Q6 represents the log of the square of the input current, while the emitter of Q6 is held at ac ground via the capacitor. Since Q6’s emitter current is proportional to the antilog of its VBE, the current in Q6 is proportional to the square of the instantaneous input current. Note that this antilogging only takes place for dynamic signals. For a dc input, the output of OA2 represents the square of the input current. After charging, the external timing capacitor voltage again approaches one diode drop below Vlog. The exact value of the diode drop will be determined by VSYM 50k V+ Rb 560k 1u 1k 10u 24k V+ 4 47k 1 20 IN 8 2252 OUT 7 OUT V- GND CAP 5 3 6 RT 2M2 IN Cin 20u 2 SYM IBIAS V+ Rin 10k CT 10u VRf 22M Figure 4. Typical Application Circuit (±15V) the bias current IT. However, for sudden increases in the input current Iin, the current available to charge the capacitor CT is proportional to the square of the short-term increase in input current. The “dynamic” antilogging causes the capacitor voltage to represent the log of the mean of the square of the input current. Time Constants Another way of looking at this situation is to consider the action of Q6 and CT as a first-order filter in the log domain. Q6 and CT establish a single pole at a frequency determined by a) the impedance of Q6 at the bias current IT and b) the value of CT. The time constant t is given below. t = CT = CT VT IT 0.0259 IT , at 300° Kelvin. The result is that the voltage at pin 6 represents the average (or mean) of the square of the input signal, averaged over the time constant t. The averaging corresponds to convolution with the time weighting of a simple RC circuit. Mathematically, this is as follows: -t æ ö÷ 2 t V 6 a 1nçç 12 ò T 0 I in e dt ÷ , where T is the time at T ø è which the average level is computed. Note that æ -t ö ç e t ÷ represents the exponential time weighting ç ÷ø è imposed by the log-domain filter. How fast the 2252 acquires a signal (the “attack”), and how fast it returns to rest following a signal (the “release”), are locked in relationship to each other by the nature of the exponential time-weighting imposed by this log-domain filter. Separate attack and release adjustments are not possible within the constraint of rms response. The time response for typical values of IT and CT (the circuit of Figure4 ) is shown in Figure 5, which shows the 2252’s response to a 100 ms, 1 kHz tone burst at ~+10 dBV followed by ~500 ms of 1 kHz at ~–30 dBV. The top trace is the input tone burst (at 10 V/div), the bottom trace is the output at 50 mV/div. The time scale is 50 ms/div. The shape of the attack and release waveforms is determined by the interaction of the exponential response of the log-domain filter with the log-representation of the signal. The straight-line decay follows from the fact that the natural release of the exponential time weighting is a decaying exponential in the linear world. This maps to a straight line in the log representation. The attack in the photo appears exponential, but actually fol- THAT Corporation; 45 Sumner Street; Milford, Massachusetts 01757-1656; USA Tel: +1 508 478 9200; Fax: +1 508 478 0990; Web: www.thatcorp.com 600032 Rev 01 Page 5 Output Buffering and Level Shifting The voltage at pin 6 is buffered by OA3, and level shifted down by the bias voltage V3. Level shifting is required so that the output voltage will be zero when the rms input current reaches a predetermined value, Iin0. This current is often called level match, and represents the 0 dB reference of the circuit. The various level shifts throughout the 2252 are as follows: V2 represents one diode drop, so the voltage at the emitter of Q4 is +1VBE. The output of OA2 is two diode drops higher than this, or +3VBE. Q6 will subtract one diode drop from the output of OA2, so the voltage at pin 6 will be +2VBE. Finally, V3 represents two diode drops, setting the voltage at pin 7 to 0 V. Figure 5. Tone Burst Response lows the (1- e -t ) shape of the attack curve. The transformation from the linear to the log world steepens the apparent attack shape. The time constant, t, also determines the amount of ripple (at frequency 2fin) in the output for any given input frequency, fin. Larger values of t reduce ripple at the expense of longer attack and release times. For fin >> 4 1p t , the ripple voltage at the output is given by: VR » 4p VT , 2 f int where VR is the rms Of course, the actual value of all these level shifts is dependent on the currents through the transistors responsible for each VBE. These currents, in turn, are dependent on the bias programming current in pin 2 (IBIAS) and the timing current pulled from pin 6 (IT). This dependence may be given as follows: I in0 = I BIAS I T , 2.9 where Iin0 is the input current causing 0 V output, IT is the current in pin 6, and IBIAS is the current in pin 2. The factor 2.9 derives from the geometry of the transistors involved. ripple voltage. Taking the Square Root The square root portion of the Root-Mean Square is implied by the constant of proportionality for the output voltage: it is not computed explicitly. This is because, in the log representation, taking the square root is equivalent to division by two. The voltage at pin 6 is proportional to the mean of the square at approximately 3 mV/dB, and proportional to the square root of the mean of the square at approximately 6 mV/dB. Figure 7. 2252 DC Output Vs. Frequency at Various Levels Figure 6 plots output voltage versus input level for a 2252 in its recommended circuit configuration (Figure 4). In this plot, 0 dBr » 43 mV. Figure 7 plots output voltage for several different constant-amplitude frequency sweeps for the same circuit. The vertical divisions are 60 mV apart, representing approximately 10 dB increments. Full audio bandwidth is maintained over a 60 dB dynamic range. Current Programming Figure 6. 2252 DC Output Vs. AC Input Level All the internal current sources in the 2252 are slaved to the current in pin 2, IBIAS. As mentioned above, the choice of this current affects Iin0. IBIAS THAT Corporation; 45 Sumner Street; Milford, Massachusetts 01757-1656; USA Tel: +1 508 478 9200; Fax: +1 508 478 0990; Web: www.thatcorp.com Page 6 THAT 2252 RMS-Level Detector is normally set by a resistor from pin 2 to ground (VCC would do also). Note that the voltage at pin 2 is normally VEE + 2.1 V, where VEE is the negative supply voltage. Symmetry Adjustment The rectifier (Q1 through Q3 and OA1) depends on the matching between Q1 and Q2 for accurate reproduction of positive-half input signals. The base of Q2 is brought out to pin 4 in order to allow adjustment for mismatches between these transistors and for the input offset voltage of OA1. Pin 4 should be connected to a variable low-impedance voltage source capable of supplying a few millivolts (VSYM). The base of Q1 is connected to its collector through a 20W resistor to allow matching between the base impedances of Q1 and Q2. A 20W source should be used at pin 4 for optimum matching. Rf is responsible for the flattening of the low-level response shown in Figure 6 (Page 5). The feedback current provided enforces a lower limit to the resolvable input current. Without this feedback, those 2252s where the OA2 input bias is overcorrected will exhibit a sharp downward swing in output level at low input signals (see Figure 8). For many applications, such low-level response is not necessary. In such cases, Rf may be deleted, as shown in Figure 11. See further discussion of this subject in Output Considerations, (Page 8). Input Bias Currents and Voltages OA1 will rectify any currents flowing in its feedback network, including the bias current of OA1 itself. Input signals below OA1’s bias current will be obscured, with a steady dc output “floor” the result. The input bias compensation for OA1 largely cancels OA1’s bias current, improving low-level performance. Even if overcompensated, any uncorrected bias current (positive or negative) in OA1 results in a limit to the low-level resolution of the 2252. Any dc offset voltage at pin 1 will cause dc input currents to flow if the input is dc coupled. The dc offset at pin 1 is typically 8 mV, so the input should be ac coupled (as shown in Figure 4) for most applications. If low-level performance is not required, dc coupling may be used without further modifications to the application circuits. However, dc coupling and good low-level performance are possible with additional external circuitry, as described in the section on DC Measurements on Page 9. Positive equivalent input bias current in OA2 (after correction) will also add to the output level reading. This is because the equivalent input bias current is supplied through Q4 and Q5, which adds to the dc level at the output of OA2. OA2, like OA1, has input bias compensation. While generally extending low-level performance, the compensation can cause OA2’s net input bias requirement to become negative, tending to reverse bias Q4 and Q5. The circuit of Figure 4 uses a 22 MW resistor, Rf, to supply increasing dc input current as the 2252 output drops. This forces current to flow in Q2, which overwhelms any negative input bias at OA2 and prevents the current in Q4 and Q5 from reversing. Figure 8. Low Level Output from Several 2252s (no Rf) V- V+ 1k Rb 750k 1u 10u 4 20 1 2 8 SYM IBIAS V+ IN 2252 OUT 7 OUT V- GND CAP 5 Rin 10k 3 6 RT 2M2 CT 10u IN Cin 20u VRf 22M Figure 9. Application Circuit Without Symmetry Control THAT Corporation; 45 Sumner Street; Milford, Massachusetts 01757-1656; USA Tel: +1 508 478 9200; Fax: +1 508 478 0990; Web: www.thatcorp.com 600032 Rev 01 Page 7 Applications The intended purpose of the 2252 is to compute the log of the time-weighted root-mean-square of an input current signal. Several practical considerations apply when attempting to make full use of the 100 dB dynamic range of the device. Input Considerations The 2252 input is intended to accept a current: as is clear from Figure 3 (page 3), pin 1 is a summing junction supplied with internal negative feedback. Maximum input current is on the order of 1 mA, limited by internal device characteristics. The minimum practical input current is determined by the effects of internal bias currents (whether from OA1, OA2, or the effect of V1). At currents as low as 31 nA, approximately 1 dB error in reading will result from interal bias currents. The gain of the input op amp (OA1) is sufficient to provide effective logging for Rin ³ 10 kW. However, with Rin < 10 kW., low level and high frequency performance will suffer due to the finite open-loop gain of OA1. This is because OA1 is required to swing across a “dead zone” between turning on Q1 and Q3. The dead zone is reduced by V1. But, V1 is small (»0.5 V) to maintain low-level tracking, so OA1 must still swing through several tenths of a volt at each reversal of the input polarity. The smaller the value of Rin, the higher the loop gain demanded from OA1 for accurate rectification. Therefore, for good high-frequency performance, Rin should be 10 kW or larger. Otherwise, choose Rin based on the desired input voltage at level match, Ein0, and Iin0 as follows: R in = Ein 0 I in 0 The negative input of OA1 typically rests at +8 mV. If dc coupled, this will cause an input current to flow which will effectively set a low-level “floor” below which readings will be obscured. Therefore, ac coupling is required if low level signals are to be accurately observed. Choose the value of the ac coupling capacitor (Cin in Figure 4) based on the value of Rin and the desired low-frequency limit. Cin = 2p R1 F , where FC is the desired 3 dB-down in C point. (For dc coupling, see the section on page 9, DC Measurements.) Symmetry Adjustment As noted earlier, the rectifier relies on the matching of Q1 and Q2 for precise reproduction of positive-half input currents. Q2’s base is brought out to pin 4 to allow adjustment of this match. Pin 4 should be connected to a 20 W voltage source capable of supplying from –4 mV to +20 mV. The appli- cation circuits in Figure 4 (page 4) and Figure 11 (page 6) are typical. To set the symmetry, apply a low-frequency sine wave to the input. Neither the frequency nor the level are critical: 100 Hz at near level match is usually a good choice. Observe the output waveform with a ‘scope while adjusting the symmetry trim. With proper adjustment, the ripple in the output will be almost pure second harmonic of the input frequency. No fundamental frequency should be present in the output. Another method would be to sense ripple in the output via a narrow bandpass filter centered at the fundamental feeding an ac voltmeter: adjust the trim for minimum voltage reading. The actual voltage required for proper symmetry depends on the input offset voltage of OA1 (typically +8 mV), and the VBE mismatch between Q1 and Q2 (< ±6 mV). For less critical applications where precise rectification is not required, pin 4 may be connected to a voltage matching the input offset voltage of OA1, preferably through a 20 W resistor (to match the 20 W in Q1’s base). The simplest circuit connects pin 4 to pin 1 through a 20 W resistor, as shown in Figure 9. This connection ensures that the VBE of Q1 will equal that of Q2, but does not allow for adjustment for any mismatch in the two devices. When using this configuration, one should try to keep the bias programming current below 20 mA, to ensure stable operation. Time Constants Both the capacitor (CT) and current source (IT) connected to pin 6 control the time constant over which the rms value of the input current is evaluated. Either may be varied, but a few practical considerations influence the choice of values. First, the input bias current of OA3 in Figure 3 will add to the charging current IT. For small values of IT, this will affect the accuracy of the resulting time constant. The input bias current for OA3 is typically 100nA, so IT should be kept above 1 mA. At the other extreme, IT flows from OA2 and through Q6 under steady-state conditions. Dynamically, as was mentioned on page 4 in Computing the Mean, the current which charges CT is proportional to the square of the short-term increase in Iin. A sudden 30 dB increase in input causes a 60 dB increase in charging current. For example, if IT is 10 mA, the peak charging current will be 10 mA. However, if IT were 100 mA, the peak charging current called for would be 100 mA. The devices within the 2252 will not support this THAT Corporation; 45 Sumner Street; Milford, Massachusetts 01757-1656; USA Tel: +1 508 478 9200; Fax: +1 508 478 0990; Web: www.thatcorp.com Page 8 THAT 2252 RMS-Level Detector high a current demand, so timing will be less accurate under this condition. (The steady-state output voltage will be accurate, since over time the error will be “forgotten” due to the time-weighting e -tt . However, the dynamic response will be incorrect.) The best performance normally results when 5 mA < IT < 50 mA. CT is usually chosen to be a convenient value which results in the desired time constant t, and an IT within these limits. See Time Constants (page 4) for the relationship between t, IT and CT. good results. The application circuits show a 1 kW resistor in series with the positive supply pin (pin 8), and a 10 mf capacitor bypassing this pin to ground. The ground end of this capacitor is intended to be connected directly to the ground end of CT. One (and only one) point on this trace should be connected to the circuit ground system, since high currents flow in this trace during input signal transients. Figure 8 illustrates the flow of current, ICHARGE, during an input transient. Note that ICHARGE is confined to a local loop, flowing from CB through OA2 8 and Q6 (within the PART OF 2252) into CT, and I CHARGE CB OA2 returning directly to CB. By keeping WITHIN the return trace Q6 6 2252 short, and conCT necting it to system ground at Figure 10. only one point, Decoupling Supply Transients high currents are kept out of the overall ground system, while CT maintains its reference to ground potential through the single connection to ground. 1k Since CT is commonly 1mf or larger, this capacitor is often a polarized electrolytic or tantalum. V6 is normally positive approximately 2Vbe (»1.4 V), which determines the polarity of CT. Leakage in CT will add to IT, so low-leakage electrolytics or tantalums are preferred. Tantalum, once preferred for long-term stability and low leakage, has been largely superceded by premium electrolytic types which are available in low-leakage, high-stability versions. When using an electrolytic, however, it is good practice to select a voltage rating higher than absolutely necessary (at least 15 V is recommended). When a resistor to the negative supply is used as the IT current source (as in the circuits shown here), determine its value by the equation: RT = VEE + 1.4 , IT where VEE is the negative supply voltage. Bias Programming As shown in Figure 1 (page 1), pin 2 is connected to the negative supply through three diodes in series. Its typical voltage is VEE + 2.1 V. The current in these diodes, IBIAS, controls the current sources throughout the 2252, and therefore affects the bandwidth of the device, as well as Iin0. Because it is responsible for programming so many currents, IBIAS should be restricted to a relatively narrow range about the nominal 24 mA. Normally, IBIAS is chosen to fine-tune Iin0, the 0 dB reference point. IBIAS = 8.4 I in0 2 . IT The factor 8.4 de- V+ Another bypass capacitor is required at pin 2 (the IBIAS pin). Typically, with IBIAS » 24 mA, the impedance at pin 2 is approximately 3 kW to V–. If the input signal capacitively couples into pin 2, IBIAS will be modulated at the input signal frequency. This modulation adds signal voltage (as ripple) to the output at pin 7. (Recall that, ideally, the 2252 produces ripple only at the second harmonic of the input signal.) When the 2252 is used to control the gain of a voltage-controlled amplifier (VCA) such as the THAT 2180 or 2181, this fundamental-frequency ripple will cause second harmonic distortion in the VCA. Bypassing pin 2 to the negative supply shunts any signal-related currents around the 2252 bias system, preventing this ripple from occuring. Output Considerations rives from the geometry of the devices in the 2252. As with the value of RT, Rb is determined by the desired IBIAS and the negative supply voltage, as follows: R b = VEE - 2.1 . I BIAS Power Supply Bypassing The 2252 is not particularly sensitive to power supply impedances, but the high charging currents which are possible in CT must be kept out of the PC board ground and voltage supply system for The output of the 2252 (pin 7) presents a low source impedance, but it is somewhat limited in available current drive. Referring to Figure 1 (page 1), the negative current source at the output pin is approximately 10 IBIAS. Therefore, for the typical IBIAS of 24 mA, the maximum current sink at pin 7 is 240 mA. (The 2252 will source considerably more than this current if required.) Since the output voltage normally swings between ±300 mV, the 2252 will directly drive loads of greater than 1.5 kW without difficulty. THAT Corporation; 45 Sumner Street; Milford, Massachusetts 01757-1656; USA Tel: +1 508 478 9200; Fax: +1 508 478 0990; Web: www.thatcorp.com 600032 Rev 01 Page 9 In the section on Input Bias Currents and Voltages (page 6), it was noted that the 2252 output is generally proportional to the log of the ac rms input current. But, at low levels (<20 nA input current), the input bias compensation in internal opamp OA2 in Figure 3 (page 3) can cause a sharp increase in the output change with input, as shown in Figure 8, (page 6). Since this effect is dependent on the accuracy of the bias compensation, some 2252s will exhibit this behavior, but most will not. For most applications, where consistent low-level response is desireable, the 2252 should be configured to supply its own “correction” signal to prevent this discontinuity from occuring, as shown in the circuit of Figure 4, (page 4). In this circuit, a 22 MW resistor (Rf) is connected from the output of the 2252 back to the input. When the output voltage is near 0 V, Rf contributes negligible current to the input of the detector. For positive output voltages, the current in Rf is very small compared to the ac input signal which causes a positive output, so its effect is again negligible. However, as the ac input signal drops in level, the dc output goes negative, supplying more and more input current through Rf, which tends to drive the dc output positive. The point at which the two effects will balance is dependent on IBIAS, IT, and the size of the feedback resistor. In the circuit of Figure 4, the output will “bottom out” at approximately -300 mV, where Rf supplies ~14 nA of dc current to the input. Rf establishes a stable “floor” in the 2252’s response. However, this self-supplied lower limit will obscure very low-level input signals which could be measured by those 2252s with good input-bias correction at OA2 of Figure 3. If accurate low-level response is quite important, the 2252s may be selected, and Rf may be omitted, as shown in Figure 11. The 2252s should be selected on the basis of accurate low-level, low-frequency performance (see Figure 8, page 6). The circuit of Figure 11 may also be used with unselected 2252s for applications where accurate low-level performance is unnecessary. However, the relatively low cost of a 5% 22 MW resistor usually argues in favor of its use. V- V+ 1u SYM 50k 1k Rb 560k 10u 24k 2 4 V+ 47k 8 SYM IBIAS V+ 1 IN 20 2252 7 OUT 6 3 5 RT 2M2 IN CT 10u Rin 10k Cin 20u OUT GND CAP V- V- Figure 11. Extended Low-Level Range with Selected 2252s For typical values of Rin » 10 kW, this dc input current would be 800 nA, upsetting rectification for ac signals below approximately 8 mA, and almost completely obscuring signals below 800 nA peak. Cin in Figures 4 and 11 blocks this dc current, extending low-level performance to well below 100 nA. However, as shown in Figure 12, with a few added parts, it is possible to extend response to dc with little loss in low-level accuracy. The essential purpose of the added circuitry (OA1, OA2 and associated parts) is to buffer the input offset voltage (at pin 1) and add it to the input signal. The circuit of Figure 12 operates as follows. V- V+ Rb 560k 1u IN SYM 50k 10u 24k V+ R3 10k 4 47k R4 1 20 10k OA1 + R2 10k 2 8 SYM IBIAS V+ IN 2252 OUT 7 OUT V- GND CAP 5 3 6 Rin OA1 R1 1u 1k 10k 10k OA2 + OA2 - RT 2M2 CT 10u VRf 22M DC Measurements As noted earlier, the 2252 is primarily intended for measuring the rms value of ac signals. This follows from the 2252’s relatively high input offset voltage (typically +8 mV). If the input is dc coupled, the input offset voltage will cause a dc current to flow in the input, which will interfere with precise low-level rectification, ultimately producing a “floor” below which input signals will be obscured. Figure 12. Measuring DC and AC Signals As has been noted, pin 1 is a virtual ground. Theoretically, the voltage at pin 1 is only the dc offset of the 2252’s internal input amplifier, VOFF(IN). Practically, the voltage at pin 1 will consist of this offset plus a small ac signal determined by the value of THAT Corporation; 45 Sumner Street; Milford, Massachusetts 01757-1656; USA Tel: +1 508 478 9200; Fax: +1 508 478 0990; Web: www.thatcorp.com Page 10 THAT 2252 RMS-Level Detector Rin and the loop gain of the internal amplifier. OA2 is intended to buffer VOFF(IN) without drawing any additional current from the pin 1 node. For the output of OA2 to be an accurate representation of VOFF(IN), OA2 must be a low drift, low input bias current opamp, and should have either low input offset voltage (< 0.1 mV) or be trimmed to have low input offset. Typical choices would include an OP07 or an LM108A with a trim for offset voltage. The voltage at OA2’s output is divided by 2 through the two 10 kW resistors R1 and R2. The 1 mf capacitor bypasses any ac signal at the output of OA2 so that only dc is present at the noninverting input of OA1. Assuming that the input to the entire circuit is connected to a 0 W voltage source, the voltage gain from the noninverting input of OA1 to its output will be 2.0, so the combined gain from the output of OA2 to the output of OA1 is unity. In this fashion, the dc voltage at the output of OA1 is equal to VOFF(IN) plus the input voltage. Under no-signal conditions, no current flows in Rin. With signal, this current is Vin . R in Of course, OA1 must also be a low-offset opamp, though its input current is not as critical as that for OA2. Typical choices here would include an OP27 or an LM308A type with offset-voltage trimming. An additional consideration is that R1, R2, R3 and R4 should be precision tolerance types, or the voltage applied to Rin will not accurately represent VOFF(IN). The source impedance of the voltage to be measured will also affect the gain to VOFF(IN). For well-defined, but non-zero source impedances, reduce the value of R3 by the value of the source. For uncontrolled, non-zero source impedances, the input signal should be buffered. With this technique, the frequency response is extended to dc, while a slight loss in low-level accuracy results from the additional bias current drawn by OA2. Temperature-Compensated Measurements In certain applications, the 2252 may be used for high-precision measurements where the 0.33% / °C variation in output scaling may be unacceptable. For these situations, the output should be temperature compensated through the use of a 3300ppm / °C resistor. Such resistors are available from RCD Components, Inc., 3301 Bedford St., Manchester, NH, USA [(603)-669-0054] and KOA/Speer Electronics, PO Box 547, Bradford, PA, 16701 USA [(814)-362-5536]. Figure 13 shows a typical circuit. For good results, R1 should be lo- cated physically close to the 2252 to optimize temperature tracking. Unusual Applications Since the 2252 contains lowed by a logging stage, other ways to apply the tional use as an rms-level a precision rectifier folit is possible to think of part beyond its convendetector. Log Amplifier In applications where precision logging is re- V1u SYM 50k V+ Rb 560k 1k 10u 24k V+ 47k 20 4 2 8 1 SYM IBIAS V+ 2252 OUT IN V- Cin 20u Rin 10k 7 GND CAP 5 IN R2 2k 3 6 RT 2M2 R1 2k +3300ppm OUT OA1 CT 10u VRf 22M Figure 13. Temperature Compensating the 2252 quired, the rectifier can be entirely bypassed by driving the input with a single-sided dc signal, and the logged output used directly. In such cases, the timing capacitor (CT) connected to the pin 6 should be reduced to a small value (1~10 nf) to quiet noise in the output while avoiding significant delay in the response. Log-Responsive Peak Detector Where peak detection is desired, the 2252 may be configured with very fast time constants (as in the Log Amplifier above), and followed by a peak hold amplifier. The advantage of using the 2252 for this application is that the 2252 provides rectification and logging before the peak detector, which allows extremely wide dynamic range in the resulting signal. Closing Thoughts THAT Corporation welcomes comments, questions and suggestions regarding this device, its design and application. Our engineering staff has extensive experience in applying this part to commercial circuits. We are pleased to offer assistance in optimizing your circuitry to adapt the 2252 to your particular application. Please feel free to contact us with your thoughts and questions. THAT Corporation; 45 Sumner Street; Milford, Massachusetts 01757-1656; USA Tel: +1 508 478 9200; Fax: +1 508 478 0990; Web: www.thatcorp.com