The DS1802 is a dual audio taper-potentiometer with logarithmic resistive characteristics over the device range. Each potentiometer provides 65 wiper positions with a 1dB increment per step and device mute with at least 90dB of attenuation. The specifications given in this datasheet only refer to decibel measurements. If a designer wishes to calculate these values in ratiometric terms, a conversion is necessary. This application note reviews the conversion from decibel to ratiometric. The formula is given in Excel as an example, for engineers wishing to build Excel tables depicting gain calculations for the DS1802 and other audio potentiometers. While the DS1802 is given as an example, this application note pertains to any audio taper potentiometer.
The DS1802 is a dual audio taper-potentiometer with logarithmic resistive characteristics over the device range. Each potentiometer provides 65 wiper positions with a 1dB increment per step and device mute with at least 90dB of attenuation. Table 1 shows the dB output as a function of the potentiometer wiper setting.
Table 1. DS1802 Gain (dB) as a Function of Wiper Setting - Resistance Characteristics
|POSITION||OUTPUT LEVEL (dB)|
|64 (mute)||< -90|
This chart only gives the output as a function of dB attenuation with reference to 0dB attenuation at the wiper 0 position. If the ratiometric output is desired, the ratio of the output signal relative to the input signal, a conversion must be made to convert dB to a ratiometric attenuation value.
dB attenuation is defined as 20 X LOG(VOUT/VIN).
The desired ratiometric output is defined as:
RL/REE = RL/(RL + RH) = VOUT/VIN
with RH = defined as the high-side of the DS1802, RL defined as the low side of the DS1802, REE defined as the end-to-end resistance, and VOUT and VIN defined as the output and input signals, respectively, as shown in Figure 1.
Figure 1. DS1802 block diagram (one potentiometer shown).
If we know the dB attenuation for a given potentiometer setting, we can calculate the ratiometric output by solving for VOUT/VIN or:
the Ratiometric Output = INVERSE LOG10(dB attenuation/20). If one wanted to calculate the output signal ratiometrically as a function of the input in a spreadsheet like Excel, no function for the inverse log function exists. As the INVERSE LOG function of X can be calculated as 10X, in Excel the power function can be used as follows: = (10)^(dB/20), where dB can be a value stored in another cell in the spreadsheet.
Table 2 below summarizes the ratiometric outputs available for the DS1802. While this example is given for the DS1802, it may be used in calculations to determine the ratiometric output of any LOG potentiometer.
Table 2. Ratiometric output of the DS1802 as a function of dB (Wiper) setting
|dB Attenuation||Ratiometric Output||dB Attenuation||Ratiometric Output|
This ratiometric output can also be expressed as the ration of RL to REE (=RL/REE) so, as an example, the value of RL at a wiper setting of -21 dB would be 0.08913 x REE.