MENU

Adjusting and calibrating out offset and gain error in a precision DAC

Adjusting and calibrating out offset and gain error in a precision DAC

Technology News |
By eeNews Europe



Overview

All digital/analog converter (DAC) systems experience gain and offset error. These are analog errors caused by many factors in the DAC and in the external signal path. Gain and offset error should, therefore, be specified in the data sheet for a precision DAC.

This application note describes these DAC errors and their sources, and then describes methods for calibrating out that error in both the analog and digital domains.

Gain and offset errors

An ideal 14-bit DAC has the characteristic shown in Figure 1.

 

 

Figure 1. Ideal 14-bit DAC characteristic.

 

At code 0, the output voltage is exactly 0V, and at code 16383 the output voltage is exactly VREF. The line is perfectly linear. If a DAC like this could be made at an affordable price, someone would be a millionaire.

Unfortunately, nothing in engineering is perfect. There is offset error, which is the error from the ideal at minimum output voltage. Zero error is the deviation from the ideal at code zero. In a unipolar DAC, offset and zero code error are defined at the same point. In a bipolar DAC, they are defined at different points. A DAC that can be used in both unipolar and bipolar modes often has both offset error and zero code error specified. Many DACs just have offset error specified.

At code 0, the output voltage is never exactly what it should be. The deviation from the ideal code 0 voltage is the offset error. Offset errors are normally bipolar and often expressed in a DAC data sheet in terms of millivolts.

The gain of a DAC is the slope of the output characteristic. Gain is generally specified in DAC data sheets in terms of %FSR (full-scale range), and measured between code zero and maximum code or, in some cases, between codes close to zero and maximum. The deviation from the ideal over the full output range is known as the gain error. Since the characteristic is never a straight line, the end points (or a point close to each end) are used in calculating gain error. If the offset error is removed from a real characteristic, then what remains at maximum code is the gain error. An exaggerated but still linear DAC characteristic is shown in Figure 2.

 

 

Figure 2. Offset and gain errors.

 

Integral nonlinearity error (INL)

This application note does not discuss how to calibrate out INL. However, INL is defined since it needs to be considered when using digital calibration.

All of the characteristics shown in Figure 2 above are perfectly linear; they are never exactly linear, as shown in Figure 3. INL is a measure of how far the characteristic deviates from the ideal. It is measured in two ways: end to end and best fit. To measure INL, the offset and gain errors are first removed.

 

Figure 3. Integral nonlinearity (INL) error.

 

Most DACs are specified using the end-to-end method. The measurement is expressed in LSBs.

Causes of errors

Given the multiple types of DAC errors, it is virtually a “given” that the DAC’s output will only be used if the signal is run through some kind of conditioning circuitry. This circuitry can range from a simple transistor or op amp to a more complex IC like the MAX15500 output conditioner. Still, it is important to realize that all stages through which the signal passes will add some amount of offset and change the gain to some degree.

In many DAC systems an external voltage reference is used to set the gain. An imperfect voltage reference will also introduce gain error.

Calibrating out the errors

Systems must either be designed to perform with the required gain and offset errors without calibration, or they must be calibrated. High-accuracy systems most often require calibration which can be done in the analog domain, the digital domain, or a combination of both.

There is an important advantage to calibrating offset and gain errors in the digital domain: most systems already have some form of digital processing in the digital domain. The process requires little, if any, hardware overhead. The disadvantage to digital calibration, however, is the introduction of ±0.5LSB of INL (Figure 4).

The advantage of calibrating in the analog domain is that it does not incur the INL penalty. The downside is that it often requires more hardware. Digital calibration is normally implemented by either a lookup table or a mathematical function (Figure 4).

 

 

Figure 4. Typical mathematical calibration block.

 

First, the gain error is corrected, and then an offset to correct for the offset error is added or subtracted. The effect of this is shown in Figure 5.

There is a two-fold advantage of this method versus the lookup-table method: it is simple to implement, and it is simple to calibrate with ATE at final test. This approach is linear, but that is a disadvantage. Hence, any nonlinear effects of the DAC cannot be calibrated out.

This calibration can, however, be done with a lookup table, but final test calibration is very time consuming since many more points must be calibrated and that adds cost. If ultimate linearity is required, a suitable more-linear DAC is a better alternative.

 

 

Figure 5. INL introduced by calibrating digitally.

Figure 5 shows that the original noncalibrated characteristic exhibits a gain error less than 1. So, initially the calibrated DAC code follows the input code, until the gain error results in -0.5LSB of error. At this point one code is missed and the output jumps to +0.5LSB of error.

This can be repeated as many times as necessary to calibrate the gain error. Once this is done, a simple offset is applied to correct for the offset error. If the gain error resulted in a steeper curve, codes would be missed. The effect in INL would be the same.

Practical solution to the problem

The Maxim® MAX5774 is a 14-bit, 32-channel DAC with integrated gain and offset calibration registers for each DAC channel. Using its global offset register, both device and system gain and offset errors can be calibrated out and each channel set to output a specific range. The MAX5774 is just one of several parts offered by Maxim with these functions.

If the MAX5774’s gain calibration registers are set to 1 and the offset calibration registers (Figure 6) are set to 0, the typical gain error will be 0.1% and the typical offset error will be 8mV. Calibrating the device results in an improved gain error of 0.05% and an offset error of an impressive 300 µV.

 


Figure 6. Block diagram of the MAX5774.

(Click here to enlarge image.)

Summary

This article has defined DAC offset and gain errors and looked at some of the sources for that error in DAC systems. Ways to calibrate out these errors in both the analog and digital domains were demonstrated. Finally, the article presented an integrated solution to this DAC calibration problem with the MAX5774.

About the Author

David Fry is the Strategic Applications Manager for the DACs, Digital Potentiometers, and Voltage References product line at Maxim Integrated Products. He has over 25 years experience in the electronics industry, with the last 13 years working in semiconductor field applications, market development, and product-line applications. Prior to joining Maxim, David spent 11 years as a board-level designer working on RF designs and several years designing high-end broadcast video equipment. He earned a BSc in Electronics in 1984 from the University of Manchester Institute of Science and Technology in the UK.

If you enjoyed this article, you will like the following ones: don't miss them by subscribing to :    eeNews on Google News

Share:

Linked Articles
10s