Consists of a DAC. Analog-to-digital and digital-to-analog converters. Static characteristics of the DAC

Ministry of Education and Science of Ukraine

Odessa National Maritime Academy

Department of Marine Electronics

in the discipline "Systems for collecting and processing telemetric information"

"Digital-to-analog converters"

Completed:

set of FEM and RE

groups 3131

Strukov S.M.

Checked: Art. teacher

Kudelkin I.N.

Odessa – 2007


1. Introduction

2. General information

3. Serial DACs

4. Parallel DACs

5. Application of DAC

6. DAC parameters

7. List of references

INTRODUCTION

Recent decades have been driven by widespread implementation in the national economy sector of microelectronics and computer technology, information exchange with which is provided by linear analog and digital converters(ADC and DAC).

The modern stage is characterized by large and extra-large integrated circuits DACs and ADCs with high performance parameters: speed, small errors, multi-bit. The inclusion of LSI DAC and ADC as a single, functionally complete unit greatly simplified their implementation in devices and installations used both in scientific research and in industry and made it possible quick exchange information between analog and digital devices.


General information

A digital-to-analog converter (DAC) is designed to convert a number, usually defined as a binary code, into a voltage or current proportional to the value of the digital code. Circuit design digital-to-analog converters very diverse. In Fig. Figure 1 shows a classification scheme of the DAC according to circuit characteristics. In addition, ICs of digital-to-analog converters are classified according to the following criteria:

o By type of output signal: with current output and voltage output.

o By type digital interface: with serial input and with parallel input input code.

o By the number of DACs on the chip: single-channel and multi-channel.

o By speed: moderate and high speed.

Rice. 1. DAC classification

SERIAL DACs

DAC with pulse width modulation

Very often the DAC is included in microprocessor systems. In this case, if high speed is not required, digital-to-analog conversion can be very easily accomplished using pulse width modulation (PWM). The DAC circuit with PWM is shown in Fig. 1a.


Rice. 1. DAC with pulse width modulation

Digital-to-analog conversion is most simply organized if the microcontroller has a built-in pulse-width conversion function (for example, AT90S8515 from Atmel or 87C51GB from Intel). PWM output controls the switch S. Depending on the specified conversion bit depth (for the AT90S8515 controller, 8, 9 and 10 bit modes are possible), the controller, using its timer/counter, generates a sequence of pulses, the relative duration of which g = t And / T is determined by the relation

Where N- conversion bit depth, and D- converted code. A low-pass filter smooths out the pulses, highlighting the average voltage value. As a result, the output voltage of the converter

The considered circuit provides almost ideal linearity of the conversion and does not contain precision elements (except for the reference voltage source). Its main drawback is low performance.

Serial switched capacitor DAC

The PWM DAC circuit discussed above first converts digital code into a time interval, which is formed using a binary counter quantum by quantum, so to obtain N- 2 bit conversions required N time quanta (cycles). The serial DAC circuit shown in Fig. 2 allows digital-to-analog conversion to be performed in significantly fewer clock cycles.

In this circuit, the capacitor capacities are WITH 1 and WITH 2 are equal. Before the conversion cycle begins, the capacitor WITH 2 is discharged with a key S 4 . The input binary word is specified as a serial code. Its conversion is carried out sequentially, starting from the least significant digit d 0 . Each conversion cycle consists of two half-cycles. In the first half-cycle the capacitor WITH 1 charges to reference voltage U op at d 0 =1 by closing the key S 1 or discharges to zero at d 0 =0 by closing the key S 2. In the second half-cycle with the keys open S 1 ,S 2 and S 4 key closes S 3, which causes the charge to divide in half between WITH 1 and WITH 2. As a result we get

U 1 (0)=U out (0)=( d 0 /2)U op

While on the capacitor WITH 2 charge is maintained, capacitor charging procedure WITH 1 must be repeated for the next digit d 1 input word. After a new recharge cycle, the voltage on the capacitors will be

The transformation is performed in the same way for the remaining bits of the word. As a result for N-bit DAC output voltage will be equal to

If you need to save the result of the transformation in some way long time, a UVH should be connected to the output of the circuit. After the end of the conversion cycle, you should carry out a sampling cycle, switch the UVH to storage mode and start the conversion again.

Thus, the presented circuit transforms the input code in 2 N quanta, which is significantly less than that of a PWM DAC. Here, only two matched small capacitors are required. The configuration of the analog part of the circuit does not depend on the bit depth of the converted code. However, in terms of performance, a serial DAC is significantly inferior to parallel digital-to-analog converters, which limits its scope of application.

Most parallel DAC circuits are based on the summation of currents, the strength of each of which is proportional to the weight of the digital binary bit, and only the bit currents whose value is equal to 1 should be summed. For example, suppose you want to convert a four-bit binary code into an analog current signal. The weight of the fourth, most significant digit (MSD) will be 2 3 =8, the third digit - 2 2 =4, the second - 2 1 =2 and the least significant (LSB) - 2 0 =1. If the weight of the SZR I MZR = 1 mA, then I SZR = 8 mA, and the maximum output current of the converter I out.max = 15 mA and corresponds to code 1111 2. It is clear that code 1001 2, for example, will correspond to I out = 9 mA, etc. Consequently, it is necessary to construct a circuit that ensures generation and switching of precise weighing currents according to given laws. The simplest scheme, implementing this principle, is shown in Fig. 3.

The resistance of the resistors is chosen so that when the switches are closed, a current corresponding to the weight of the discharge flows through them. The key must be closed when the corresponding bit of the input word equal to one. The output current is determined by the relation


With a high bit capacity of the DAC, the current-setting resistors must be matched with high accuracy. The most stringent accuracy requirements are imposed on resistors of the highest digits, since the spread of currents in them should not exceed the current of the low-order digit. Therefore, the resistance spread in k-th digit should be less than

From this condition it follows that the spread of the resistor resistance, for example, in the fourth digit should not exceed 3%, and in the 10th digit - 0.05%, etc.

The considered scheme, for all its simplicity, has a whole bunch of disadvantages. Firstly, for different input codes, the current consumed from the reference voltage source (RPS) will be different, and this will affect the value of the output voltage RES. Secondly, the resistance values ​​of weight resistors can differ by thousands of times, and this makes it very difficult to implement these resistors in semiconductor ICs. In addition, the resistance of the high-order resistors in multi-bit DACs can be comparable to the resistance of the closed switch, and this will lead to a conversion error. Thirdly, in this circuit, significant voltage is applied to the open switches, which complicates their construction.

These shortcomings were eliminated in the AD7520 DAC circuit (domestic analogue of 572PA1), developed by Analog Devices in 1973, which is now essentially an industry standard (many production models DAC). The indicated diagram is shown in Fig. 4. MOS transistors are used here as switches.



    DAC with pulse width modulation

    Serial switched capacitor DAC

Parallel DACs

  • DAC with summation of weight currents

    DAC on current sources

    Formation of the output signal in the form of voltage

    Parallel switched capacitor DAC

    DAC with voltage summation

D/A Converter Interfaces

DAC application

  • Handling signed numbers

    Multipliers and dividers of functions

    Attenuators and integrators on DACs

    Direct digital signal synthesis systems

DAC parameters

Digital-to-analog converters

A digital-to-analog converter (DAC) is designed to convert a number, usually defined as a binary code, into a voltage or current proportional to the value of the digital code. The circuitry of digital-to-analog converters is very diverse. In Fig. Figure 1 shows a classification scheme of the DAC according to circuit characteristics. In addition, ICs of digital-to-analog converters are classified according to the following criteria:

  • By type of output signal: with current output and voltage output

    By type of digital interface: with serial input and with parallel input of input code

    By number of DACs on the chip: single-channel and multi-channel

    By speed: moderate and high speed

Rice. 1. DAC classification

DAC with summation of weight currents

Most parallel DAC circuits are based on the summation of currents, the strength of each of which is proportional to the weight of the digital binary bit, and only the bit currents whose value is equal to 1 should be summed. For example, suppose you want to convert a four-bit binary code into an analog current signal. The fourth, most significant digit (MSB) will have a weight of 2 3 =8, the third digit will have 2 2 =4, the second will have 2 1 =2, and the least significant digit will have 2 0 =1. If the weight of the MZR I MZR =1 mA, then I SZR =8 mA, and the maximum output current of the converter I output max = 15 mA and corresponds to code 1111 2. It is clear that the code 1001 2, for example, will correspond to I out =9 mA, etc. Consequently, it is necessary to construct a circuit that ensures generation and switching of precise weighing currents according to given laws. The simplest diagram that implements this principle is shown in Fig. 3.

WITH The resistances of the resistors are chosen so that when the switches are closed, a current corresponding to the weight of the discharge flows through them. The key must be closed when the corresponding bit of the input word is equal to one. The output current is determined by the relation

With a high bit capacity of the DAC, the current-setting resistors must be matched with high accuracy. The most stringent accuracy requirements are imposed on resistors of the highest digits, since the spread of currents in them should not exceed the current of the low-order digit. Therefore, the resistance spread in k-th digit must be less than

R/R=2 – k

From this condition it follows that the spread of the resistor resistance, for example, in the fourth digit should not exceed 3%, and in the 10th digit – 0.05%, etc.

The considered scheme, for all its simplicity, has a whole bunch of disadvantages. Firstly, for different input codes, the current consumed from the reference voltage source (RPS) will be different, and this will affect the value of the output voltage RES. Secondly, the resistance values ​​of weight resistors can differ by thousands of times, and this makes it very difficult to implement these resistors in semiconductor ICs. In addition, the resistance of the high-order resistors in multi-bit DACs can be comparable to the resistance of the closed switch, and this will lead to a conversion error. Thirdly, in this circuit, significant voltage is applied to the open switches, which complicates their construction.

These shortcomings were eliminated in the AD7520 DAC circuit (domestic analogue of 572PA1), developed by Analog Devices in 1973, which is now essentially an industry standard (many serial DAC models are made according to it). The indicated diagram is shown in Fig. 4. MOS transistors are used here as switches.

Rice. 4. DAC circuit with switches and constant impedance matrix

In this circuit, the setting of the weighting coefficients of the converter stages is carried out by sequentially dividing the reference voltage using a resistive matrix of constant impedance. The main element of such a matrix is ​​a voltage divider (Fig. 5), which must satisfy the following condition: if it is loaded with resistance R n, then its input impedance R inx must also take the value R n. Chain weakening coefficient = U 2 /U 1 at this load must have the specified value. When these conditions are met, we obtain the following expressions for resistances:

in accordance with Fig. 4.

Since in any position of the switches S k they connect the lower terminals of the resistors to the common circuit bus, the reference voltage source is loaded with a constant input impedance R in = R. This ensures that the reference voltage remains unchanged for any DAC input code.

According to Fig. 4, the output currents of the circuit are determined by the relations

and the input current

Since the lower terminals of the resistors 2 R matrices for any switch state S k connected to the common circuit bus through the low resistance of the closed switches, the voltages on the switches are always small, within a few millivolts. This simplifies the construction of switches and their control circuits and allows the use of a reference voltage from wide range, including different polarities. Since the DAC output current depends on U op linear (see (8)), converters of this type can be used for multiplication analog signal(applying it to the reference voltage input) to the digital code. Such DACs are called multiplying(MDAC).

The accuracy of this circuit is reduced by the fact that for high-bit DACs, it is necessary to match the resistance R 0 switches with discharge currents. This is especially important for high-order keys. For example, in the 10-bit AD7520 DAC, the key MOSFETs of the six most significant bits are made different in area and their resistance R 0 increases according to binary code(20, 40, 80, …, 640 Ohm). In this way, the voltage drops across the switches of the first six bits are equalized (up to 10 mV), which ensures monotonicity and linearity of the DAC transient response. The 12-bit DAC 572PA2 has a differential nonlinearity of up to 0.025% (1 LSB).

Sometimes it seems that digital world almost completely merges with the real. But despite the emergence of such systems as “gigaFLOPS”, “22 nm” and many others real world stubbornly remains analog and not digital, and we still have to work with our digital systems, which in modern world are present almost everywhere.

The DAC digital-to-analog converter converts the input digital signal on analogue weekend. The definition of "accuracy" may vary (depending on the manufacturer), but we will describe digital-to-analog converters with resolutions from 8 to 16 bits and speeds up to 10 MSa/s. These DAC digital-to-analog converters are used in various systems– audio and video equipment, processor control, measuring instruments, automation systems, electric drive systems and many others. Each individual system has individual DAC requirements, such as resolution, static and dynamic characteristics, power consumption and others.

In parameters and technical description specifies offset error, differential non-linearity (DNL), integral non-linearity (INL) and other parameters necessary to ensure good performance in systems direct current, for example, such as controlling an electric drive or some technological process.

Some applications, such as display signal generation, emphasize the need for good AC performance, which is specified in the datasheet in terms of lag time, noise, and bandwidth. Making the device itself using a DAC is much more difficult than choosing a digital-to-analog converter from a catalog, because in addition to the DAC, the system will include many more electronic components, the influence of which must also be taken into account. Below we will try to consider this.
Content:

Three Basic Architectures for Precision DACs

When selecting the accuracy of the D/A converter for your system, it is important that the DAC specification matches the system requirements. Compared to the abundance of architectures analog-to-digital converters ADC Choosing a D/A converter may seem like an easy task since there are only three main DAC architectures. But this only seems like an easy task, because the differences in the performance of each architecture are quite significant.

The DAC uses three main architectures - string (serial), R-2R, multiplying DAC (MDAC).

String digital-to-analog converter

The concept behind the string digital-to-analog converter comes from Lord Kelvin from the mid-1800s:

The input decoder has several switches, one for each bit combination. Each digital input is connected to the corresponding output voltage amplifier.

The N bit DAC consists of a sequence of 2 N matching resistors, as well as a voltage source at one end, and ground at the other. A three-bit DAC (picture above) requires eight resistors and seven switches, but these numbers grow very much with increasing bit depth and for a 16-bit DAC you already need 65536 resistors!!! This number is very large, even for modern systems. To reduce the number of resistors, interpolating amplifiers and taps to individual resistors are used.

String or serial digital-to-analog converters are quite suitable for most precision applications such as motion control systems automatic control(in servos and when controlling an electric drive).

Output voltage string DACs are initially monotonic with good differential nonlinearity (DNL), but its integral nonlinearity (INL) is not very good, since it directly depends on the resistor error. From an AC system perspective, string DACs exhibit lower performance than other architectures because they have relatively high noise levels due to high resistor impedances, and the switching structure causes signal processing to slow down during transitions, limiting the rate of updates.

R-2R architecture

This architecture is the most common among digital-to-analog converters and its diagram is shown below:

This architecture uses only resistors with two different resistances, the ratio between which is defined as 2 to 1.

When a particular bit is set, the corresponding 2R resistor is switched to the V REF - H position, otherwise it is set to the V REF - L (ground) position. As a result, we obtain an output voltage that will be the sum of all 2R ladder voltages.

The R-2R architecture is well suited for use in industrial installations and devices. They are more accurate than string D/A converters, have lower noise levels due to the presence of less resulting resistance, and have better INL and DNL performance.

Signal conversion in a converter with R-2R architecture involves switching the 2R pin between V REF - H and V REF - L. The internal resistors and switches inside the device do not line up perfectly, which can lead to certain glitches in the switching process.

Multiplying digital-to-analog converter MDAC

The MDAC multiplying converter also uses the R-2R architecture, but with a reference voltage of V REF. Diagram below:

When the bit is set, the corresponding 2R resistor is connected to virtual ground - the summing operational amplifier. That is why the multiplying digital-to-analog converter produces not voltage, but current, while the reference voltage V REF can exceed the nominal one or be completely negative.

The V REF source is “seen” in MDAC constant resistance, equal to R, therefore always has a constant output current, which improves performance during fast transitions, since there is no need to wait until the value of the reference voltage is restored. Depending on the digital code, the current flow is divided into an output contact and a ground contact. This means that the output impedance will be different, which makes selecting an external op amp somewhat difficult.

To improve output performance, MDACs include an internal resistor as feedback, with a thermal response roughly corresponding to the stage's internal resistor. Internal noise from a multiplying digital-to-analog converter comes from both stage resistances and feedback resistance. Since the output impedance is code-dependent, the noise gain also depends on it, although the noise level of MDAC is much lower than that of serial (string) DACs. It is worth noting that the external operational amplifier op-amp can be with low level noise

One of the disadvantages is that input signal is the inverse of the output, which in turn requires an additional inversion operation.

Understanding AC Performance Parameters

To get maximum performance from an AC D/A converter, you need to understand certain intricacies, as well as possible steps, which can be done for optimization.

The time it takes for an op-amp to reach its final value is one of the main indicators of DAC quality. The response times of the digital-to-analog converter are shown below:

  • Dead time ( Dead time): this is the time required to achieve 10% of the required value of the analog output signal, starting from the moment the digital code arrives at the digital-to-analog converter;
  • Output rise time( Slew time): the time required for the analog output signal to increase from 10% to 90%;
  • Recovery and settling time( Recovery time linear settlement time): overshoot and establishment of an analog signal of a given shape;

Once the analog output signal is within the acceptable error range, the process is complete, even if the signal still fluctuates but is within the acceptable error range.

Below is the transient response of a real 18-bit, single-channel, R-2R DAC988 digital-to-analog converter:

Settling time is measured from the moment the LDAC signal goes low, after which the system transient begins. Please note that the signal decay process is the longest, with long process recovery and the insignificant influence of the static signal on it.

Switching errors

The ideal change in the DAC output signal is a monotonous rise or fall, but in reality this is not the case, and the signal changes occur abruptly. Unlike settling time, switching error is caused by mismatched internal switching (the dominant factor), or by capacitive coupling between the digital input and analog output signals:

The error is characterized by the area under the positive and negative false pulse and is measured in volt-seconds (most often in µV∙s or nV∙s).

As the number of parallel switches increases, the error also increases. This is one of the disadvantages of the R-2R architecture. Errors in the R-2R architecture are most noticeable when changing all the bits or when switching the most significant bits, when switching from 0x7FFF to 0x8000 (for 16-bit DACs).

If it is impossible to reduce the number of switching series resistors, then they are used at the output of the converter, the circuits are shown below:

Figure a) shows the simplest RC filter, which is installed at the output and allows you to slightly reduce the amplitude level of the output error, but thereby it delays the rate of rise of the signal, thereby increasing the lag time. Figure b) shows an option with adding a sample and holding the circuit. Yes, this allows you to reduce the error to almost zero, but it is extremely difficult to implement such a scheme, since it imposes strict requirements on response timing, as well as strict synchronization with the DAC refresh rate.

Sources of noise

Noise is one of the most important performance components of a modern AC D/A converter. There are three main sources of noise − internal circuit resistors, internal and external amplifiers, reference voltage sources. The effect of internal resistors on converter noise was discussed earlier in this article, so let's look at the other two sources of noise.

External op amp noise

The DAC amplifier output is another source of noise. MDAC uses an external op-amp, but other architectures use an internal op-amp, which affects the overall output noise figure.

Noise in an op-amp circuit has three main components:

  • 1/f noise or flicker noise;
  • Broadband voltage noise or white noise;
  • Noise of voltages and currents on resistors;

The first two are considered internal properties of the op amp itself, and the bandwidth is limited by the D/A converter itself, greatly reducing the impact of wideband noise. For better performance On AC, you should pay attention to op-amps with low 1/f noise.

Noise from external reference voltage V REF

The output noise of the DAC directly depends on the noise in the reference voltage, which can be either external or internal. To ensure maximum performance and minimal noise, it is necessary to use high-quality reference voltage sources. Exists huge selection reference voltage sources from several manufacturers.

Conclusion

Getting maximum AC performance from a precision DAC is a combination of understanding the specifications, choosing the right architecture, and adding the right external components, and, of course, following proven methods for selecting and calculating electronic components.

Ministry of Education and Science of Ukraine

Odessa National Maritime Academy

Department of Marine Electronics

in the discipline "Systems for collecting and processing telemetric information"

"Digital-to-analog converters"

Completed:

set of FEM and RE

groups 3131

Strukov S.M.

Checked: Art. teacher

Kudelkin I.N.

Odessa – 2007


1. Introduction

2. General information

3. Serial DACs

4. Parallel DACs

5. Application of DAC

6. DAC parameters

7. List of references

INTRODUCTION

Recent decades have been due to the widespread introduction of microelectronics and computer technology into the national economy, the exchange of information with which is ensured by linear analog and digital converters (ADC and DAC).

The modern stage is characterized by large and ultra-large integrated circuits DACs and ADCs with high performance parameters: speed, small errors, multi-bit. The inclusion of an LSI DAC and ADC as a single, functionally complete unit greatly simplified their implementation in devices and installations used both in scientific research and in industry and made it possible to quickly exchange information between analog and digital devices.


General information

A digital-to-analog converter (DAC) is designed to convert a number, usually defined as a binary code, into a voltage or current proportional to the value of the digital code. The circuitry of digital-to-analog converters is very diverse. In Fig. Figure 1 shows a classification scheme of the DAC according to circuit characteristics. In addition, ICs of digital-to-analog converters are classified according to the following criteria:

o By type of output signal: with current output and voltage output.

o By type of digital interface: with serial input and with parallel input of the input code.

o By the number of DACs on the chip: single-channel and multi-channel.

o By speed: moderate and high speed.

Rice. 1. DAC classification

SERIAL DACs

DAC with pulse width modulation

Very often, a DAC is part of microprocessor systems. In this case, if high speed is not required, digital-to-analog conversion can be very easily accomplished using pulse width modulation (PWM). The DAC circuit with PWM is shown in Fig. 1a.

Rice. 1. DAC with pulse width modulation

Digital-to-analog conversion is most simply organized if the microcontroller has a built-in pulse-width conversion function (for example, AT90S8515 from Atmel or 87C51GB from Intel). PWM output controls the switch S. Depending on the specified conversion bit depth (for the AT90S8515 controller, 8, 9 and 10 bit modes are possible), the controller, using its timer/counter, generates a sequence of pulses, the relative duration of which g = t And / T is determined by the relation

Where N- conversion bit depth, and D- converted code. A low-pass filter smooths out the pulses, highlighting the average voltage value. As a result, the output voltage of the converter

The considered circuit provides almost ideal linearity of the conversion and does not contain precision elements (except for the reference voltage source). Its main drawback is low performance.

Serial switched capacitor DAC

The PWM DAC circuit discussed above first converts the digital code into a time interval, which is generated using a binary counter quantum by quantum, so to obtain N- 2 bit conversions required N time quanta (cycles). The serial DAC circuit shown in Fig. 2 allows digital-to-analog conversion to be performed in significantly fewer clock cycles.

In this circuit, the capacitor capacities are WITH 1 and WITH 2 are equal. Before the conversion cycle begins, the capacitor WITH 2 is discharged with a key S 4 . The input binary word is specified as a serial code. Its conversion is carried out sequentially, starting from the least significant digit d 0 . Each conversion cycle consists of two half-cycles. In the first half-cycle the capacitor WITH 1 charges to reference voltage U op at d 0 =1 by closing the key S 1 or discharges to zero at d 0 =0 by closing the key S 2. In the second half-cycle with the keys open S 1 ,S 2 and S 4 key closes S 3, which causes the charge to divide in half between WITH 1 and WITH 2. As a result we get

U 1 (0)=U out (0)=( d 0 /2)U op

While on the capacitor WITH 2 charge is maintained, capacitor charging procedure WITH 1 must be repeated for the next digit d 1 input word. After a new recharge cycle, the voltage on the capacitors will be

The transformation is performed in the same way for the remaining bits of the word. As a result for N-bit DAC output voltage will be equal to

If you want to save the result of the conversion for any long time, a UVH should be connected to the output of the circuit. After the end of the conversion cycle, you should carry out a sampling cycle, switch the UVH to storage mode and start the conversion again.

Thus, the presented circuit transforms the input code in 2 N quanta, which is significantly less than that of a PWM DAC. Here, only two matched small capacitors are required. The configuration of the analog part of the circuit does not depend on the bit depth of the converted code. However, in terms of performance, a serial DAC is significantly inferior to parallel digital-to-analog converters, which limits its scope of application.

Most parallel DAC circuits are based on the summation of currents, the strength of each of which is proportional to the weight of the digital binary bit, and only the bit currents whose value is equal to 1 should be summed. For example, suppose you want to convert a four-bit binary code into an analog current signal. The weight of the fourth, most significant digit (MSD) will be 2 3 =8, the third digit - 2 2 =4, the second - 2 1 =2 and the least significant (LSB) - 2 0 =1. If the weight of the SZR I MZR = 1 mA, then I SZR = 8 mA, and the maximum output current of the converter I out.max = 15 mA and corresponds to code 1111 2. It is clear that code 1001 2, for example, will correspond to I out = 9 mA, etc. Consequently, it is necessary to construct a circuit that ensures generation and switching of precise weighing currents according to given laws. The simplest diagram that implements this principle is shown in Fig. 3.

The resistance of the resistors is chosen so that when the switches are closed, a current corresponding to the weight of the discharge flows through them. The key must be closed when the corresponding bit of the input word is equal to one. The output current is determined by the relation


With a high bit capacity of the DAC, the current-setting resistors must be matched with high accuracy. The most stringent accuracy requirements are imposed on resistors of the highest digits, since the spread of currents in them should not exceed the current of the low-order digit. Therefore, the spread of resistance in the kth discharge should be less than

From this condition it follows that the spread of the resistor resistance, for example, in the fourth digit should not exceed 3%, and in the 10th digit - 0.05%, etc.

The considered scheme, for all its simplicity, has a whole bunch of disadvantages. Firstly, for different input codes, the current consumed from the reference voltage source (RPS) will be different, and this will affect the value of the output voltage RES. Secondly, the resistance values ​​of weight resistors can differ by thousands of times, and this makes it very difficult to implement these resistors in semiconductor ICs. In addition, the resistance of the high-order resistors in multi-bit DACs can be comparable to the resistance of the closed switch, and this will lead to a conversion error. Thirdly, in this circuit, significant voltage is applied to the open switches, which complicates their construction.

These shortcomings were eliminated in the AD7520 DAC circuit (domestic analogue of 572PA1), developed by Analog Devices in 1973, which is now essentially an industry standard (many serial DAC models are made according to it). The indicated diagram is shown in Fig. 4. MOS transistors are used here as switches.


Rice. 4. DAC circuit with switches and constant impedance matrix

In this circuit, the setting of the weighting coefficients of the converter stages is carried out by sequentially dividing the reference voltage using a resistive matrix of constant impedance. The main element of such a matrix is ​​a voltage divider (Fig. 5), which must satisfy the following condition: if it is loaded with resistance R n, then its input resistance R in must also take the value R n. The chain weakening coefficient a=U 2 /U 1 at this load should have set value. When these conditions are met, we obtain the following expressions for resistances:

At binary coding a =0.5. If we put R n =2R, then R s =R and R p =2R in accordance with Fig.4.

Since in any position of the switches S k they connect the lower terminals of the resistors to the common circuit bus, the reference voltage source is loaded with a constant input resistance Rin =R. This ensures that the reference voltage remains unchanged for any DAC input code.

According to Fig. 4, the output currents of the circuit are determined by the relations

and the input current

Since the lower terminals of the resistors 2R of the matrix, in any state of the switches S k, are connected to the common circuit bus through the low resistance of the closed switches, the voltages on the switches are always small, within a few millivolts. This simplifies the construction of switches and control circuits and allows the use of reference voltages from a wide range, including different polarities. Since the output current of the DAC depends linearly on U op (see (8)), converters of this type can be used to multiply the analog signal (applying it to the reference voltage input) by a digital code. Such DACs are called multiplying DACs (MDACs).

The accuracy of this circuit is reduced by the fact that for DACs with a high bit capacity, it is necessary to match the resistance R 0 of the switches with the bit currents. This is especially important for high-order keys. For example, in the 10-bit AD7520 DAC, the key MOS transistors of the six most significant bits are made different in area and their resistance R0 increases according to the binary code (20, 40, 80, : , 640 Ohms). In this way, the voltage drops across the switches of the first six bits are equalized (up to 10 mV), which ensures monotonicity and linearity of the DAC transient response. The 12-bit DAC 572PA2 has a differential nonlinearity of up to 0.025% (1 LSB).

DACs based on MOS switches have relatively low performance due to the large input capacitance of the MOS switches. The same 572PA2 has a settling time of the output current when changing the input code from 000...0 to 111...1, equal to 15 μs. The Burr-Braun 12-bit DAC7611 has an output voltage settling time of 10 µs. At the same time, DACs based on MOS switches have minimal power consumption. The same DAC7611 consumes only 2.5 mW. IN Lately DAC models of the type discussed above with higher performance appeared. Thus, the 12-bit AD7943 has a current settling time of 0.6 μs and a power consumption of only 25 μW. Low self-consumption allows such micro-power DACs to be powered directly from the reference voltage source. Moreover, they may not even have an output for connecting an ION, for example, AD5321.

DAC on current sources

DACs based on current sources have higher accuracy. Unlike the previous version, in which the weight currents are formed by resistors of relatively low resistance and, as a result, depend on the resistance of the switches and the load, in this case the weight currents are provided by transistor current sources with high dynamic resistance. A simplified circuit of a DAC using current sources is shown in Fig. 6.


Rice. 6. DAC circuit on current sources

The weight currents are generated using a resistive matrix. The potentials of the bases of the transistors are the same, and in order for the potentials of the emitters of all transistors to be equal, the areas of their emitters are made different in accordance with the weighting coefficients. The right resistor of the matrix is ​​not connected to the common bus, as in the diagram in Fig. 4, and to two identical transistors VT 0 and VT n connected in parallel, as a result of which the current through VT 0 is equal to half the current through VT 1. The input voltage for the resistive matrix is ​​created using the reference transistor VT op and the operational amplifier OU1, the output voltage of which is set such that the collector current of the transistor VT op takes the value I op. Output current for N-bit DAC

Typical examples of DACs based on current switches with bipolar transistors as switches are the 12-bit 594PA1 with a settling time of 3.5 μs and a linearity error of no more than 0.012% and the 12-bit AD565, which has a settling time of 0.2 μs with the same linearity error. The AD668 has even higher performance, with a settling time of 90 ns and the same linearity error. Among the new developments, we can note the 14-bit AD9764 with a settling time of 35 ns and a linearity error of no more than 0.01%. Bipolar differential stages are often used as current switches S k, in which transistors operate in active mode. This allows the settling time to be reduced to a few nanoseconds. The current switch circuit for differential amplifiers is shown in Fig. 7.

Differential cascades VT 1 -VT 3 and VT" 1 -VT" 3 are formed from standard ESL valves. The current I k flowing through the collector terminal of the output emitter follower is the output current of the cell. If voltage is applied to digital input D k high level, then transistor VT 3 opens and transistor VT" 3 closes. The output current is determined by the expression

The accuracy increases significantly if the resistor R e is replaced by a direct current source, as in the circuit in Fig. 6. Due to the symmetry of the circuit, it is possible to generate two output currents - direct and inverse. The fastest models of such DACs have ESL input levels. An example is the 12-bit MAX555, which has a settling time of 4 ns to the 0.1% level. Since the output signals of such DACs cover the radio frequency range, they have an output impedance of 50 or 75 ohms, which must be matched to wave impedance cable connected to the converter output.


DAC APPLICATION

Schemes for the use of digital-to-analog converters relate not only to the field of code-to-analog conversion. Using their properties, you can determine the products of two or more signals, build function dividers, analog links controlled by microcontrollers, such as attenuators, integrators. Signal generators are also an important area of ​​application for DACs, including signal generators free form. Below are some signal processing circuits that include D-A converters.

Handling signed numbers

Until now, when describing digital-to-analog converters, the input digital information represented in the form of natural numbers (unipolar). Processing integers (bipolar) has certain features. Typically binary integers are represented using additional code. In this way, using eight digits, you can represent numbers in the range from -128 to +127. When entering numbers into the DAC, this range of numbers is shifted to 0...255 by adding 128. Numbers greater than 128 are considered positive, and numbers less than 128 are considered negative. The average number 128 corresponds to zero. This representation of signed numbers is called a shifted code. Adding a number that is half the full scale of a given bit (in our example it is 128) can be easily done by inverting the most significant (sign) bit. The correspondence of the considered codes is illustrated in Table. 1.


Table 1

Relationship between digital and analog quantities

To obtain an output signal with the correct sign, it is necessary to reverse shift by subtracting the current or voltage that is half the scale of the converter. For various types DAC can do this in different ways. For example, with DACs based on current sources, the range of variation of the reference voltage is limited, and the output voltage has a polarity opposite to the polarity of the reference voltage. In this case bipolar mode This is most simply achieved by including an additional bias resistor Rcm between the DAC output and the reference voltage input (Fig. 8a). Resistor R cm is manufactured on an IC chip. Its resistance is chosen such that the current I cm is half the maximum value of the DAC output current.

In principle, the problem of output current bias can be solved similarly for DACs based on MOS switches. To do this, you need to invert the reference voltage, and then generate a bias current from -U op, which should be subtracted from the DAC output current. However, to maintain temperature stability, it is better to ensure that the bias current is generated directly in the DAC. To do this, in the diagram in Fig. 8a, a second operational amplifier is introduced and the second output of the DAC is connected to the input of this op-amp (Fig. 8b).


Second DAC output current,

At the input of op-amp1, the current I" out is summed with the current I mr, corresponding to the unit of the least significant digit of the input code.

The total current is inverted. The current flowing through the feedback resistor R os OU2 is

Or

At

and when

In the case of N=8, this coincides with the data in table up to a factor of 2. 6, taking into account the fact that for a converter based on MOS switches the maximum output current

.

If resistors R2 are well matched in resistance, then an absolute change in their value with temperature fluctuations does not affect the output voltage of the circuit.

For digital-to-analog converters with an output signal in the form of voltage, built on an inverse resistive matrix (see Fig. 9), the bipolar mode can be more easily implemented (Fig. 8c). Typically, such DACs contain an on-chip output buffer amplifier. To operate the DAC in a unipolar connection, the free terminal of the lower resistor R in the circuit is not connected, or is connected to a common point in the circuit to double the output voltage. To work in bipolar inclusion the free output of this resistor is connected to the reference voltage input of the DAC. In this case, the op-amp operates in differential connection and its output voltage

As mentioned above, D-A converters based on MOS switches allow changes in the reference voltage within a wide range, including a change in polarity. The DAC output voltage is proportional to the product of the reference voltage and the input digital code. This circumstance makes it possible to directly use such DACs to multiply an analog signal by a digital code.

When the DAC is connected unipolarly, the output signal is proportional to the product of a bipolar analog signal and a unipolar digital code. Such a multiplier is called a two-quadrant multiplier. When the DAC is connected bipolarly (Fig. 8b and 8c), the output signal is proportional to the product of a bipolar analog signal and a bipolar digital code. This circuit can work as a four-quadrant multiplier.

Dividing the input voltage by a digital scale M D =D/2 N is performed using a two-quadrant divider circuit (Fig. 9).

In the diagram in Fig. 9a, a MOS switch converter with a current output operates as a voltage-to-current converter controlled by the D code and included in the op-amp feedback circuit. The input voltage is applied to the free terminal of the DAC feedback resistor located on the IC chip.

In this circuit, the output current of the DAC is

,

that when the condition R os = R is fulfilled, it gives

.

It should be noted that with the code "all zeros" the feedback is opened. This mode can be prevented by either disabling such code in software, or by connecting a resistor with a resistance equal to R·2 N+1 between the output and the inverting input of the op-amp.

A divider circuit based on a DAC with a voltage output built on an inverse resistive matrix and including a buffer op-amp is shown in Fig. 9b. The output and input voltages of this circuit are related by the equation

this implies .

In this circuit, the amplifier is covered by both positive and negative feedback. For negative feedback to prevail (otherwise the op-amp will turn into a comparator), condition D must be met<2 N-1 или M D <1/2. Это ограничивает значение входного кода нижней половиной шкалы.


DAC PARAMETERS

With a sequential increase in the values ​​of the input digital signal D(t) from 0 to 2 N -1 through the least significant unit (EMP), the output signal U out (t) forms a stepped curve. This dependence is usually called the DAC conversion characteristic. In the absence of hardware errors, the midpoints of the steps are located on the ideal straight line 1 (Fig. 10), which corresponds to the ideal transformation characteristic. The actual transformation characteristic may differ significantly from the ideal one in terms of the size and shape of the steps, as well as their location on the coordinate plane. There are a number of parameters to quantify these differences.

Rice. 10 Static characteristics of DAC conversion

Static parameters

Resolution - increment U out when converting adjacent values ​​D j, i.e. different on the EMR. This increment is the quantization step. For binary conversion codes, the nominal value of the quantization step is h=U psh /(2 N -1), where U psh is the nominal maximum output voltage of the DAC (full scale voltage), N is the bit capacity of the DAC. The higher the bit depth of the converter, the higher its resolution. Full scale error is the relative difference between the actual and ideal values ​​of the conversion scale limit in the absence of zero offset.

.

It is the multiplicative component of the total error. Sometimes indicated by the corresponding EMP number.

Zero offset error - the value of U out when the DAC input code is zero. It is an additive component of the total error. Typically stated in millivolts or as a percentage of full scale:

.

Nonlinearity is the maximum deviation of the actual conversion characteristic U out (D) from the optimal one (line 2 in Fig. 10). The optimal characteristic is found empirically so as to minimize the value of the nonlinearity error. Nonlinearity is usually defined in relative units, but in the reference data it is also given in the EMP. For the characteristics shown in Fig. 10

.

Differential nonlinearity is the maximum change (taking into account the sign) of the deviation of the actual transformation characteristic U out (D) from the optimal one when moving from one input code value to another adjacent value. Usually defined in relative units or in EMR. For the characteristics shown in Fig. 10,

.

The monotonicity of the conversion characteristic is an increase (decrease) in the output voltage of the DAC U out with an increase (decrease) in the input code D. If the differential nonlinearity is greater than the relative quantization step h/U psh, then the converter characteristic is non-monotonic.

The temperature instability of a DA converter is characterized by the temperature coefficients of full scale error and zero offset error.

Full scale and zero offset errors can be corrected by calibration (tuning). Nonlinearity errors cannot be eliminated by simple means.

The dynamic parameters of the DAC are determined by the change in the output signal when the input code changes abruptly, usually from the value “all zeros” to “all ones” (Fig. 11).


Rice. 11. DAC transient response

Establishment time is the time interval from the moment the input code changes (in Fig. 11 t=0) until the moment when the equality is satisfied for the last time

|U out -U psh |=d/2,

with d/2 usually corresponding to EMP.

Slew rate - the maximum rate of change of U out (t) during the transient process. It is defined as the ratio of the increment DU out to the time Dt during which this increment occurred. Usually specified in the technical specifications of a DAC with a voltage output signal. For a DAC with a current output, this parameter largely depends on the type of output op-amp.

For multiplying DACs with voltage output, the unity gain frequency and power bandwidth are often specified, which are mainly determined by the properties of the output amplifier.


LIST OF REFERENCES USED

1. Federkov B.G., Telets V.A., DAC and ADC microcircuits: operation, parameters, application. M.: Energoizdat, 1990. –320 p.

2. Valakh V.V., Grigoriev V.F., High-speed ADCs for measuring the shape of random signals M.: Instruments and experimental techniques. 1987. No. 4 p.86-90

3. High-speed integrated circuits DAC and ADC and measurement of their parameters. Edited by Marcinkavyuches. M.: Radio and communications. 1988 –224 pp.©