Logarithmic resistor ladder

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

A logarithmic resistor ladder is an electronic circuit, composed of a series of resistors and switches, designed to create an attenuation from an input to an output signal, where the logarithm of the attenuation ratio is proportional to a binary number that represents the state of the switches.

The logarithmic behavior of the circuit is its main differentiator in comparison with digital-to-analog converters (DACs) in general, and traditional R-2R Ladder networks specifically. Logarithmic attenuation is desired in situations where a large dynamic range needs to be handled. The circuit described in this article is applied in audio devices, since humans perceive sound on a logarithmic scale.

Logarithmic input/output behavior

[edit | edit source]

As in digital-to-analog converters, a binary number is applied to the ladder network, whose N bits are treated as representing an integer value:

CodeValue=i=1Nsi2i1

where si is 0 or 1 depending on the state of the ith switch.

For comparison, recall a conventional linear DAC or R-2R network produces an output voltage signal of:

Vout=Vinc(CodeValue+d)

where c and d are design constants and where Vin typically is a constant reference voltage (or is a variable input voltage for a multiplying DAC.[1])

In contrast, the logarithmic ladder network discussed in this article creates a behavior as:

log(Vout/Vin)=cCodeValue

which can also be expressed as Vin multiplied by some base α raised to the power of the code value:

Vout=VinαCodeValue

where c=log(α).

Circuit implementation

[edit | edit source]

Schematic diagram

This example circuit is composed of 4 stages, numbered 1 to 4, and includes a source resistance Rsource and load resistance Rload.

Each stage i has a designed input-to-output voltage attenuation Ratioi as:

Ratioi=ifswithenα2i1else1

For logarithmic scaled attenuators, it is common practice to equivalently express their attenuation in decibels:

dB(Ratioi)=20log10α2i1=2i120log10α for i=1..N and swi=1

This reveals a basic property: dB(Ratioi+1)=2dB(Ratioi)

To show that this Ratioi satisfies the overall intention:

log(Vout/Vin)=log(i=1NRatioi)=i=1Nlog(Ratioi)=log(α)CodeValue=cCodeValue

The different stages 1 .. N should function independently of each other, as to obtain 2N different states with a composable behavior. To achieve an attenuation of each stage that is independent of its surrounding stages, either one of two design choices is to be implemented: constant input resistance or constant output resistance. Because the stages operate independently, they can be inserted in the chain in any order.

Constant input resistance

[edit | edit source]

The input resistance of any stage shall be independent of its on/off switch position, and must be equal to Rload.

This leads to:

{Ri,parr=(Ri,bRload)/(Ri,b+Rload)Ri,a+Ri,parr=RloadRi,parr/(Ri,a+Ri,parr)=Ratioi

With these equations, all resistor values of the circuit diagram follow easily after choosing values for N, α and Rload. (The value of Rsource does not influence the logarithmic behavior)

Constant output resistance

[edit | edit source]

The output resistance of any stage shall be independent of its on/off switch position, and must be equal to Rsource.

This leads to:

{Ri,ser=Ri,a+RsourceRi,serRi,b/(Ri,ser+Ri,b)=RsourceRi,b/(Ri,ser+Ri,b)=Ratioi

Again, all resistor values of the circuit diagram follow easily after choosing values for N, α and Rsource. (The value of Rload does not influence the logarithmic behavior).

For example, with a Rload of 1 kΩ, and 1 dB attenuation, the resistor values would be: Ra = 108.7 Ω, Rb = 8195.5 Ω.

The next step (2 dB) would use: Ra = 369.0 Ω, Rb = 1709.7 Ω.

Circuit variations

[edit | edit source]
  • The circuit as depicted above, can also be applied in reverse direction. That correspondingly reverses the role of constant-input and constant-output resistance equations.
  • Since the stages do not significantly influence each other's attenuation, the stage order can be chosen arbitrarily. Such reordering can have a significant effect on the input resistance of the constant output resistance attenuator and vice versa.

Background

[edit | edit source]

R-2R ladder networks used for linear digital-to-analog conversion are old (Resistor ladder § History mentions a 1953 article and a 1955 patent).

Multiplying DACs with logarithmic behavior were not known for a long time after that. An initial approach was to map the logarithmic code to a much longer code word, which could be applied to the classical (linear) R-2R based DAC. Lengthening the codeword is needed in that approach to achieve sufficient dynamic range. This approach was implemented in a device from Analog Devices Inc.,[2] protected through a 1981 patent filing.[3]

See also

[edit | edit source]

References

[edit | edit source]
  1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  3. ^ US patent 4521764, Burton, David P., "Signal-controllable attenuator employing a digital-to-analog converter", issued Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value). 
[edit | edit source]