0% found this document useful (0 votes)
143 views6 pages

R2R Ladder Networks for Engineers

This document discusses R2R resistor ladder networks and their applications in digital to analog conversion. It provides details on 3-sentence summaries of 3 examples that use R2R ladder networks: 1. An automatic circuit calibration DAC uses an R2R ladder network controlled by a microprocessor to adjust for errors in an air pressure sensor system. 2. An LCD backlight dimmer uses a digital up/down counter and R2R ladder network as a slope generator DAC to provide 256 brightness levels for controlling an LCD backlight. 3. A function generator DAC design uses a microcontroller and R2R ladder to generate analog signals such as multiplexed frequencies for telephone dialing or variable
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
143 views6 pages

R2R Ladder Networks for Engineers

This document discusses R2R resistor ladder networks and their applications in digital to analog conversion. It provides details on 3-sentence summaries of 3 examples that use R2R ladder networks: 1. An automatic circuit calibration DAC uses an R2R ladder network controlled by a microprocessor to adjust for errors in an air pressure sensor system. 2. An LCD backlight dimmer uses a digital up/down counter and R2R ladder network as a slope generator DAC to provide 256 brightness levels for controlling an LCD backlight. 3. A function generator DAC design uses a microcontroller and R2R ladder to generate analog signals such as multiplexed frequencies for telephone dialing or variable
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

BI Technologies R2R Resistor Ladder Networks

8-Bit and 10-Bit R2R resistor ladder networks for DAC and ADC applications. Auto calibration circuits Slope generators Function generators Motor speed control

Model
Body Style Number of Leads / Terminals Resistance Range, Ohms Temp. Coefficient, ppm/oC Operating Temperature Range oC Ladder Accuracy Power Rating Resistor Power

BCN31Ladder
2512 10 Terminal 1K to 100K 100 -40oC to +125oC 8 Bit: 1/2 LSB 25mW

628 Ladder
SO-M 16 Leads 1K to 100K 100 -55oC to +125oC 8 Bit: 1/2 LSB 40mW 640mW

Package Power 400mW 8-Bit Ladder Networks in dual in line and single in line packages. 10-Bit Ladder Networks in dual in line, single in line and moulded surface mount packages. Please consult factory.

Ordering Information

BCN 31 Ladder

628 Ladder

Schematics

BCN 31 Ladder

628 Ladder

Introduction Real world signals are analogue. Digital systems that interface with the real world do so using analogue-to-digital converters (ADC). Conversion back to analogue is accomplished using digital-toanalogue converters (DAC). The R2R ladder network is commonly used for Digital to Analogue conversion and Analogue to Digital conversion by successive approximations. This application note discusses the important parameters that should be considered when implementing DAC designs using an R2R resistor ladder. R2R ladder functional description A basic N bit R2R resistor ladder network is shown in Figure 1. The digital inputs or bits range from the most significant bit (MSB) to the least significant bit (LSB). The bits are switched between either 0V or VREF and depending on the state and location of the bits VOUT will vary between 0V and VREF. The MSB causes the greatest change in output voltage and the LSB causes the smallest. The R2R ladder is inexpensive and relatively easy to manufacture since only two resistor values are required. It is fast and has fixed output impedance R. The R2R ladder operates as an array of voltage dividers whose output accuracy is solely dependent on how well each resistor is matched to the others. The resistors in the R2R network are printed directly onto a single substrate using a single film so they share similar electrical characteristics they are also laser trimmed to provide the necessary precision. These monolithic networks have an inherent accuracy advantage over discrete solutions because of the tight ratio tolerances and low temperature coefficient of resistance tracking.
LSB
Bit N
2R R

MSB
Bit N - 1
2R R

Bit N - 2
2R R

Bit 3
2R R

Bit 2
2R R

Bit 1
2R

2R

R term ination

V out

Figure 1. N Bit R2R Resistor Ladder The termination resistor is always connected to ground and insures that the Thevenin resistance of the network, as measured to ground looking towards the LSB (with all bits grounded), is R. The Thevenin resistance of an R/2R ladder is always R regardless of the number of bits in the ladder. Figure 2 shows a common implementation of the R2R resistor ladder network as a Digital to Analogue Converter using an op amp output.This type of DAC is know as a multiplying converter. The output voltage is linearly proportional to the digital input and the range can be adjusted by changing the reference voltage VREF. The source impedance as seen by the op amp is always constant and equal to R regardless of the digital input. The value of R can be made low to charge up the op amp input capacitance quickly and achieve

V ref D0 D1 D2 D3 D4 D5 D6 D7 Rf
2R R 2R 2R 2R R 2R R 2R R 2R R 2R R 2R

V out

2R

R term ination

V out

=-

Rf R

D0 2

D1 4

D2 8

D3 16

D4 32

D5 64

D6 128

D7 256

= 0 or 1

Figure 2. Multiplying converter

the required bandwidth. As a general rule the op amp bandwidth should be as small as possible (i.e. a low pass filter) to pass only the expected changes in the digital input, any excess bandwidth only adds noise to the output. The op amp should have good stability against temperature changes and supply voltage variations. The digital input is connected to the 2R resistances sometimes by means of a high-speed analogue switch. The digital input voltage at D7 has twice the gain of the digital input at D6, and so on. This can be demonstrated by using a repeated application of Thevenins theorem as follows. Consider an input of 1 LSB that is D7 D6 D5 D4 D3 D2 D1 D0 = 00000001 and VREF = 5V. Neglecting the source resistance of the 5V input, Thevenins theorem applied to the 5V source and the bottom two 2R resistors replaces them with a 2.5V source in series with a single (Thevenin) resistance of R as shown in Figure 3. Repeated application of Thevenins theorem yields the result. The 8-bit resistor ladder network used in this example has an output voltage of 0.0039V for a digital input of 1 LSB.

D7

2R

2R

2R

2R

R 2R 2R

R 2R

D6

2R

R 2R 2R

R 2R

D5

2R

R 2R 2R

R 2R

D4

2R

R 2R 2R

2R

D3

2R

R 2R 2R

D2

2R

0.625V
R

R 2R 2R

D1

2R

R R

2R

D0 5V

2R

2R

2.5V

2.5V

Figure 3. Repeated application of Thevenins theorem Resolution Resolution is the smallest standard incremental change in output voltage of a DAC. An n-bit DAC can decode 1 part in 2n, therefore the LSB carries a weight of 2-n. For example, a DAC with 10-bit resolution can resolve 1 part in 210 or 0.097% of the full-scale output voltage when the binary input code is incremented by one LSB. Accuracy The accuracy of an R2R ladder is the percentage error in the output voltage and is usually expressed in terms of least significant bits. For example, a +/- LSB.specification on an 8-bit ladder is the same as +/- 0.195% full scale accuracy. We define output error as the deviation from an ideal output voltage that would be provided by a perfect reference and DAC. We address absolute accuracy in this application note, this means that everything is referenced to an ideal DAC output-voltage range. For example, a 10 bit DAC code 1023 should produce an output of 1.023V with a reference voltage of 1.024V and any deviation from this is an error.

1. Automatic Circuit Calibration DAC Air pressure sensor


Electronic air pressure sensors are Microprocessor CH1 available at very reasonable cost and are D4 D2 D6 D7 D0 D5 D1 D3 used in numerous commercial Error Adjustment Test Point applications. Air pressure sensors are sensitive strain gauges configured as resistor bridges. One leg of the bridge is a Resistor Ladder Network diaphragm that compresses and expands with fluctuations in air pressure resulting in small resistance changes. Since the resistance change is small the system is required to have a very large gain. For Instrumentation Amplifier systems with a single power supply the instrumentation amplifier configuration provides good common-mode rejection Resistor Bridge ratio CMRR and minimises the number of passive components required to set the gain. The gain is set so that it provides maximum output voltage swing while avoiding amplifier saturation. System errors such as temperature drift and sensor offset can cause the output voltage to saturate and as a result it is necessary to provide a calibration mechanism. Calibration can be realised using potentiometers however they are undesirable in production designs. The part cost is higher than a fixed resistor and a pot requires human intervention thus it is preferable for adjustments to be made in software. Provided the current air pressure is known, then it is possible for the microprocessor to determine the calibration constants automatically and store them to memory. An R2R resistor ladder network controlled by the microprocessor forms a DAC that adjusts for the errors as shown in this example.
20K 20K 20K 20K 20K 20K 20K 20K 20K 10K 10K 10K 10K 10K 10K 10K R 15 R 14 R 13 R 12 R1 R6 R7 R3 C1 20K 20K R 11 R4 20K 20K R5 C2 R 10 R8 R9 R2

2. LCD Backlight Dimmer Slope generator DAC


Backlighting is a key element in many liquid crystal display (LCD) applications. Due to the relatively low overall transmission of a typical LCD, the backlight is sometimes required to have extreme brightness. It should also possess a wide dimming range to facilitate use, depending on the amount of ambient light. LCD backlight controller ICs require a brightness adjustment signal in the form of a linear control voltage. There are several ways of generating the Brightness Adjust voltage. The simplest is by using a potentiometer. Another method, shown in this example, is by using a digital UP/DOWN counter. In this method two push button switches are used to generate a logic level 1 for an UP count and a logic level 0 for a DOWN count. The UP/DOWN counters provide a digital output signal that is converted into an analogue signal using the R2R resistor ladder network. There are 256 brightness levels and setting the UP/DOWN counters pre-set inputs configures the brightness level at turn on.
V CC Bright 1 = UP 0 = DOWN To Brightness Adjust

Dim

100K

CLK P3

U/D

C O UT Q3

200K

UP / DOWN Push Button Control

100K 100K

P2
100K

200K

Q2
100K 200K

M.S.B UP / DOWN Counter

P1
100K

Q1 Q0 C IN

P0

100K 200K

MC14516B
R

PE

100K 200K

CLOCK
100K

Ladder Network
100K

200K

CLK P3

U/D

C O UT Q3
200K 100K

100K

P2
100K

Q2
200K

100K

L.S.B

P1
100K

Q1 UP / DOWN Counter Q0 C IN

200K

P0

MC14516B
R

PE

3. Sine and DTMF Waveform Generation - Function generator DAC


Many embedded applications require the generation of analogue signals. For example the generation of multiplexed frequencies (DTMF) for telephone dialling, controlling the speed of a motor, the generation of sound and complex waveforms as well as the generation of variable voltages in power supplies. Although separate digital to analogue converter ICs exist the extra expense makes them prohibitive in cost sensitive designs. The example shown here demonstrates a DAC design using an R2R ladder and a microcontroller. To generate a single sine wave, the user creates a lookup table with the correct number of sample points. The software steps through each sample point and moves this value to the I/O port. The R2R ladder converts the digital signal to an analogue one. It is important that every sample point uses the same timing interval. Many telecomm applications, such as auto diallers, telephone keypads and security systems require DTMF for dialling and data transfer. Using the R2R ladder and seven sine lookup tables an entire 12-key keypad of DTMF patterns can be generated using a 3.579545 crystal.
3.57945 MHz

22pF C2

X1

22pF C1

Analogue Output V DD OSC 1 OSC 2


200K

V DD

RB

7
200K

100K

MCLR

RB

6
100K 200K

RA

RB

5
100K 200K

RA

PIC16C620
2

PIC Microcontroller

RB

4
100K 200K

RA

RB

3
100K 200K

Ladder Network

RA

RB

2
100K 200K

TOCLI

RB

1
100K 200K

GND

RB

0
200K

4. Non-Linear Digital Dimmer - ADC


The digital dimmer box is intended for stage illumination in theatres. It is simple and inexpensive to implement using a microcontroller and an R2R ladder. It is compatible with older analogue dimmer boxes and supports 4400-Watt loads. In stage illumination, dimming of each incandescent lamp is controlled by an analogue voltage (ranging from 0 to 10 volts) and is supplied by a remote console. To achieve linear perception, a dimmer box should exhibit a non-linear response to the control voltage. Older dimmer boxes employ analogue processing for the task of compensation. The digital approach uses a simple software look-up table concept to implement response compensation. As a result, a dedicated external analogue circuit is not required. The system control uses a microcontroller running at 12MHz and an 8-bit R2R resistor ladder network on port 2 as a digital to analogue converter. The R2R output provides a reference voltage (pin 33) for the analogue comparator on port P3. The analogue control voltage is connected to another comparator input (pin 31) and the analogue to digital conversion is completed by software using a successive approximation technique. The counter/timer generates a time delay between the zero crossing of the line voltage and the TRIACs trigger pulse. As a result, power is delivered to the load. At 12 MHz, it is possible to achieve delays from 0 to 8.33ms with the correct settings of the counter/timer prescaler, which corresponds to the phase-triggering range for an AC line frequency of 60Hz.
Control Voltage 0 to 10V V cc
R1 20k D1 1N 4148

12.0000 MHz

R6 20k

D2 1N 4148

100nF C3

22pF C2

X1

22pF C1

R7 1k

11

XTAL2

15

20K

P 00

20K

LOAD

P 20

10K

LED

12

4400 W

V cc

P 01

P 21

16

20K

10K

13

R 10 180R

R 11 330R

P 02

P 22

17

20K

Q1

10K

U1

P 23

18

20K

MAC 224A10

4 2 MO C 3020N

10K

Resistor Ladder

P 24

Network

20K

10K

6+6V/100mA

R 14 18k

P 31

P 25

20K

10K

AC LINE 230VAC

Microprocessor Z86E0812PSC

R 19 10k

D4 1N 4148

D3 1N 4148

P 32

P 26

20K

10K

D6 1N 4007

10

78L05

D5 1N 4007

P 33

P 27

20K

V1

V0

100nF C5

10uF C4

1000uF C6

5. R2R Analogue to Digital Converter - ADC


This is an example of an 8-bit analogue to digital converter built using two cascaded binary up/down counters an op-amp and an R2R resistor ladder network. The analogue signal that needs to be converted into a digital signal is fed into the inverting input of the opamp. The op-amp output drives the up/down or direction pin of the binary counters until the R2R ladder output on the non-inverting opamp input equals the analogue input, at that point the counter state represents the digital equivalent of the analogue input. Adjusting the clock frequency sets the system resolution.

P0 R

P1

P2

P3 CLK R

P0

P1

P2

P3 CLK

MC14516B
PE C IN Q0 D0 D1 D2 Digital Output D3 D4 D5 D6 D7 L.S.B UP / DOWN Counter Q1 Q2 U/D C O UT Q3 PE C IN Q0

MC14516B
M.S.B UP / DOWN Counter Q1 Q2 U/D C O UT Q3

Analogue Input

200K

200K

200K

200K

200K

200K

200K

200K

200K

100K

100K

100K

100K

100K

100K

100K

Resistor Ladder Network

You might also like