| |
Datasheet Home \ Datasheet Details
Download
PDF Abstract Text:
LC2MOS Complete 14-Bit DAC AD7840
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 617 / 329-4700 Fax: 617 / 326-8703
FEATURES Complete 14-Bit Voltage Output DAC Parallel and Serial Interface Capability 80 dB Signal-to-Noise Ratio Interfaces to High Speed DSP Processors e.g., ADSP-2100, TMS32010, TMS32020 45 ns min WR Pulse Width Low Power - 70 mW typ. Operates from 5 V Supplies
LC2MOS Complete 14-Bit DAC AD7840
FUNCTIONAL BLOCK DIAGRAM
GENERAL DESCRIPTION
PRODUCT HIGHLIGHTS
1. Complete 14-Bit D / A Function The AD7840 provides the complete function for creating ac signals and dc voltages to 14-bit accuracy. The part features an on-chip reference, an output buffer amplifier and 14-bit D / A converter. 2. Dynamic Specifications for DSP Users In addition to traditional dc specifications, the AD7840 is specified for ac parameters including signal-to-noise ratio and harmonic distortion. These parameters along with important timing parameters are tested on every device. 3. Fast, Versatile Microprocessor Interface The AD7840 is capable of 14-bit parallel and serial interfacing. In the parallel mode, data setup times of 21 ns and write pulse widths of 45 ns make the AD7840 compatible with modern 16-bit microprocessors and digital signal processors. In the serial mode, the part features a high data transfer rate of 6 MHz.
REV. B
Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices.
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106, U.S.A. Tel: 617 / 329-4700 Fax: 617 / 326-8703
Parameter DYNAMIC PERFORMANCE2 Signal to Noise Ratio3 (SNR)
K, B1 78 -80 -80
S1 76 -78 -78
Units dB min dB max dB max
Total Harmonic Distortion (THD) -78 Peak Harmonic or Spurious Noise DC ACCURACY Resolution Integral Nonlinearity Differential Nonlinearity Bipolar Zero Error Positive Full Scale Error5 Negative Full Scale Error5 REFERENCE OUTPUT6 REF OUT @ +25°C REF OUT TC Reference Load Change (REF OUT vs. I) REFERENCE INPUT Reference Input Range Input Current LOGIC INPUTS Input High Voltage, VINH Input Low Voltage, VINL Input Current, IIN Input Current (CS Input Only) Input Capacitance, CIN7 ANALOG OUTPUT Output Voltage Range DC Output Impedance Short-Circuit Current AC CHARACTERISTICS7 Voltage Output Settling Time Positive Full-Scale Change Negative Full-Scale Change Digital-to-Analog Glitch Impulse Digital Feedthrough POWER REQUIREMENTS VDD VSS IDD ISS Power Dissipation -78
Bits LSB max LSB max LSB max LSB max LSB max V min V max ppm / °C max mV max V min V max µA max V min V max µA max µA max pF max V nom typ mA typ
Guaranteed Monotonic
µs max µs max nV secs typ nV secs typ V nom V nom mA max mA max mW max
REV. B
AD7840 TIMING CHARACTERISTICS1, 2
Parameter t1 t2 t3 t4 t5 t6 t7 t8 3 t9 t10 t11 Limit at TMIN, TMAX (J, K, A, B Versions) 0 0 45 21 10 40 50 150 30 75 75
Units ns min ns min ns min ns min ns min ns min ns min ns min ns min ns min ns min Conditions / Comments CS to WR Setup Time CS to WR Hold Time WR Pulse Width Data Valid to WR Setup Time Data Valid to WR Hold Time LDAC Pulse Width SYNC to SCLK Falling Edge SCLK Cycle Time Data Valid to SCLK Setup Time Data Valid to SCLK Hold Time SYNC to SCLK Hold Time
Limit at TMIN, TMAX (S Version) 0 0 50 28 15 40 50 200 40 100 100
ABSOLUTE MAXIMUM RATINGS
ORDERING GUIDE
Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those listed in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
Model1 AD7840JN AD7840KN AD7840JP AD7840KP AD7840AQ AD7840ARS AD7840BQ AD7840SQ3
CAUTION ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on the human body and test equipment and can discharge without detection. Although the AD7840 features proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high energy electrostatic discharges. Therefore, proper ESD precautions are recommended to avoid performance degradation or loss of functionality.
ESD SENSITIVE DEVICE
REV. B
AD7840
PIN FUNCTION DESCRIPTION
DIP Pin No. 1
Pin Mnemonic CS / SERIAL
Table I. Serial Data Modes
WR / SYNC
D13 / SDATA
D12 / SCLK D11 / FORMAT
D10 / JUSTIFY D9-D5 DGND D4-D1 D0 VDD AGND VOUT VSS REF OUT
REF IN
REV. B
AD7840
PIN CONFIGURATIONS DIP / SSOP PLCC
D / A SECTION
for external use, it should he decoupled to AGND with a 200 resistor in series with a parallel combination of a 10 µF tantalum capacitor and a 0.1 µF ceramic capacitor.
Figure 2. Internal Reference
EXTERNAL REFERENCE
In some applications, the user may require a system reference or some other external reference to drive the AD7840 reference input. Figure 3 shows how the AD586 5 V reference can be conditioned to provide the 3 V reference required by the AD7840 REF IN. An alternate source of reference voltage for the AD7840 in systems which use both a DAC and an ADC is to use the REF OUT voltage of ADCs such as the AD7870 and AD7871. A circuit showing this arrangement is shown in Figure 20.
Figure 1. DAC Ladder Structure
INTERNAL REFERENCE
Figure 3. AD586 Driving AD7840 REF IN
AD7840
OP AMP SECTION Table II. Ideal Input / Output Code Table
DAC Latch Contents MSB LSB 01111111111111 01111111111110 00000000000001 00000000000000 11111111111111 10000000000001 10000000000000
Analog Output, VOUT +2.999634 V +2.999268 V +0.000366 V 0V -0.000366 V -2.999634 V -3 V
The output voltage can be expressed in terms of the input code, N, using the following expression:
INTERFACE LOGIC INFORMATION
The AD7840 contains two 14-bit latches, an input latch and a DAC latch. Data can be loaded to the input latch in one of two basic interface formats. The first is a parallel 14-bit wide data word the second is a serial interface where 16 bits of data are serially clocked into the input latch. In the parallel mode, CS and WR control the loading of data. When the serial data format is selected, data is loaded using the SCLK, SYNC and SDATA serial inputs. Data is transferred from the input latch to the DAC latch under control of the LDAC signal. Only the data in the DAC latch determines the analog output of the AD7840.
Parallel Data Format
Figure 4. Noise Spectral Density vs. Frequency
TRANSFER FUNCTION
Table III shows the truth table for AD7840 parallel mode operation. The AD7840 normally operates with a parallel input data format. In this case, all 14 bits of data (appearing on data inputs D13 (MSB) through D0 (LSB)) are loaded to the AD7840 input latch at the same time. CS and WR control the loading of this data. These control signals are level-triggered therefore, the input latch can be made transparent by holding both signals at a logic low level. Input data is latched into the input latch on the rising edge of CS or WR. The DAC latch is also level triggered. The DAC output is normally updated on the falling edge of the LDAC signal. However, both latches cannot become transparent at the same time. Therefore, if LDAC is hardwired low, the part operates as follows with LDAC low and CS and WR high, the DAC latch is transparent. When CS and WR go low (with LDAC still low), the input latch becomes transparent but the DAC latch is disabled. When CS or WR return high, the input latch is locked out and the DAC latch becomes transparent again and the DAC output is updated. The write cycle timing diagram for parallel data is shown in Figure 6. Figure 7 shows the simplified parallel input control logic for the AD7840.
Figure 5. AD7840 Basic Connection Diagram
REV. B
AD7840
Table III. Parallel Mode Truth Table Serial Data Format
Function
Input Latch Transparent Input Latch Latched DAC Latch Transparent Analog Output Updated Input Latch Transparent DAC Latch Data Transfer Inhibited Input Latch Is Latched DAC Latch Data Transfer Occurs
The serial data format is selected for the AD7840 by connecting the CS / SERIAL line to -5 V. In this case, the WR / SYNC, D13 / SDATA, D12 / SCLK, D11 / FORMAT and D10 / JUSTIFY pins all assume their serial functions. The unused parallel inputs should not be left unconnected to avoid noise pickup. Serial data is loaded to the input latch under control of SCLK, SYNC and SDATA. The AD7840 expects a 16-bit stream of serial data on its SDATA input. Serial data must be valid on the falling edge of SCLK. The SYNC input provides the frame synchronization signal which tells the AD7840 that valid serial data will be available for the next 16 falling edges of SCLK. Figure 8 shows the timing diagram for serial data format.
Figure 6. Parallel Mode Timing Diagram Figure 8. Serial Mode Timing Diagram
Figure 7. AD7840 Simplified Parallel Input Control Logic
REV. B
AD7840
As in the parallel mode, the LDAC signal controls the loading of data to the DAC latch. Normally, data is loaded to the DAC latch on the falling edge of LDAC. However, if LDAC is held low, then serial data is loaded to the DAC latch on the sixteenth falling edge of SCLK. If LDAC goes low during the transfer of serial data to the input latch, no DAC latch update takes place on the falling edge of LDAC. If LDAC stays low until the serial transfer is completed, then the update takes place on the sixteenth falling edge of SCLK. If LDAC returns high before the serial data transfer is completed, no DAC latch update takes place. Figure 9 shows the simplified serial input control logic for the AD7840. this graph is 81.8 dB. It should be noted that the harmonics are taken into account when calculating the SNR.
Figure 10. AD7840 FFT Plot
Effective Number of Bits
The formula given in (1) relates the SNR to the number of bits. Rewriting the formula, as in (2) it is possible to get a measure of performance expressed in effective number of bits (N).
Figure 9. AD7840 Simplified Serial Input Control Logic
AD7840 DYNAMIC SPECIFICATIONS
SNR - 1.76 6.02
The effective number of bits for a device can be calculated directly from its measured SNR.
Harmonic Distortion
Signal-to-Noise Ratio (SNR)
Harmonic distortion is the ratio of the rms sum of harmonics to the fundamental. For the AD7840, total harmonic distortion (THD) is defined as
SNR is the measured signal-to-noise ratio at the output of the DAC. The signal is the rms magnitude of the fundamental. Noise is the rms sum of all the nonfundamental signals up to half the sampling frequency (fs / 2) excluding dc. SNR is dependent upon the number of quantization levels used in the digitization process the more levels, the smaller the quantization noise. The theoretical signal to noise ratio for a sine wave output is given by
where V1 is the rms amplitude of the fundamental and V2, V3, V4, V5 and V6 are the rms amplitudes of the second through the sixth harmonic. The THD is also derived from the 2048-point FFT plot.
Peak Harmonic or Spurious Noise
Peak harmonic or spurious noise is defined as the ratio of the rms value of the next largest component in the DAC output spectrum (up to fs / 2 and excluding dc) to the rms value of the fundamental. Normally, the value of this specification will be determined by the largest harmonic in the spectrum, but for parts where the harmonics are buried in the noise floor the peak will be a noise peak.
Testing the AD7840
A simplified diagram of the method used to test the dynamic performance specifications is outlined in Figure 11. Data is loaded to the AD7840 under control of the microcontroller and associated logic at a 100 kHz update rate. The output of the AD7840 is applied to a ninth order, 50 kHz, low-pass filter. The output of the filter is in turn applied to a 16-bit accurate digitizer. This digitizes the signal and the microcontroller generates an FFT plot from which the dynamic performance of the AD7840 can be evaluated.
REV. B
AD7840
Performance versus Frequency
Figure 11. AD7840 Dynamic Performance Test Circuit
The digitizer sampling is synchronized with the AD7840 update rate to ease FFT calculations. The digitizer samples the AD7840 after the output has settled to its new value. Therefore, if the digitizer was to sample the output directly it would effectively be sampling a dc value each time. As a result, the dynamic performance of the AD7840 would not be measured correctly. Using the digitizer directly on the AD7840 output would give better results than the actual performance of the AD7840. Using a filter between the DAC and the digitizer means that the digitizer samples a continuously moving signal and the true dynamic performance of the AD7840 is measured. Some applications will require improved performance versus frequency from the AD7840. In these applications, a simple sample-and-hold circuit such as that outlined in Figure 12 will extend the very good performance of the AD7840 to 20 kHz.
Figure 13. Performance vs. Frequency (No Sample-and-Hold)
Figure 12. Sample-and-Hold Circuit
Other applications will already have an inherent sample-andhold function following the AD7840. An example of this type of application is driving a switched-capacitor filter where the updating of the DAC is synchronized with the switched-capacitor filter. This inherent sample-and-hold function also extends the frequency range performance of the AD7840.
Figure 14. Performance vs. Frequency (with Sample-and-Hold)
REV. B
AD7840
MICROPROCESSOR INTERFACING
The AD7840 logic architecture allows two interfacing options for interfacing the part to microprocessor systems. It offers a 14-bit wide parallel format and a serial format. Fast pulse widths and data setup times allow the AD7840 to interface directly to most microprocessors including the DSP processors. Suitable interfaces to various microprocessors are shown in Figures 15 to 23.
Parallel Interfacing
Figure 17. AD7840-TMS32020 Parallel Interface
Some applications may require that the updating of the AD7840 DAC latch be controlled by the microprocessor rather than the external timer. One option (for double-buffered interfacing) is to decode the AD7840 LDAC from the address bus so that a write operation to the DAC latch (at a separate address than the input latch) updates the output. An example of this is shown in the 8086 interface of Figure 18. Note that connecting the LDAC input to the CS input will not load the DAC latch correctly since both latches cannot he transparent at the same time. AD7840-8086 Interface Figure 18 shows an interface between the AD7840 and the 8086 microprocessor. For this interface, the LDAC input is derived from a decoded address. If the least significant address line, A0, is decoded then the input latch and the DAC latch can reside at consecutive addresses. A move instruction loads the input latch while a second move instruction updates the DAC latch and the AD7840 output. The move instruction to load a data word WXYZ to the input latch is as follows:
Figure 15. AD7840-ADSP-2100 Parallel Interface
Figure 16. AD7840-TMS32010 Parallel Interface
Figure 18. AD7840-8086 Parallel Interface
REV. B
AD7840
Figure 19. AD7840-MC68000 Parallel Interface
Serial Interfacing
Figure 20. Complete DAC / ADC Serial Interface
Figures 20 to 23 show the AD7840 configured for serial interfacing with the CS input hardwired to -5 V. The parallel bus is not activated during serial communication with the AD7840. AD7840-ADSP-2101 / ADSP-2102 Serial Interface Figure 20 shows a serial interface between the AD7840 and the ADSP-2101 / ADSP-2102 DSP processor. Also included in the interface is the AD7870, a 12-bit A / D converter. An interface such as this is suitable for modem and other applications which have a DAC and an ADC in serial communication with a microprocessor. The interface uses just one of the two serial ports of the ADSP-2101 / ADSP-2102. Conversion is initiated on the AD7870 at a fixed sample rate (e.g., 9.6 kHz) which is provided by a timer or clock recovery circuitry. While communication takes place between the ADC and the ADSP-2101 / ADSP-2102, the AD7870 SSTRB line is low. This SSTRB line is used to provide a frame synchronization pulse for the AD7840 SYNC and ADSP-2101 / ADSP-2102 TFS lines. This means that communication between the processor and the AD7840 can only take place while the AD7870 is communicating with the processor. This arrangement is desirable in systems such as modems where the DAC and ADC communication should be synchronous. The use of the AD7870 SCLK for the AD7840 SCLK and ADSP-2101 / ADSP-2102 SCLK means that only one serial port of the processor is used. The serial clock for the AD7870 must be set for continuous clock for correct operation of this interface. Data from the ADSP-2101 / ADSP-2102 is valid on the falling edge of SCLK. The LDAC input of the AD7840 is permanently
AD7840-DSP56000 Serial Interface A serial interface between the AD7840 and the DSP56000 is shown in Figure 21. The DSP56000 is configured for normal mode synchronous operation with gated clock. It is also set up for a 16-bit word with SCK and SC2 as outputs and the FSL control bit set to a 0. SCK is internally generated on the DSP56000 and applied to the AD7840 SCLK input. Data from the DSP56000 is valid on the falling edge of SCK. The SC2 output provides the framing pulse for valid data. This line must be inverted before being applied to the SYNC input of the AD7840. The LDAC input of the AD7840 is connected to DGND so the update of the DAC latch takes place on the sixteenth falling edge of SCLK. As with the previous interface, the FORMAT pin of the AD7840 must be tied to +5 V and the JUSTIFY pin tied to DGND.
Figure 21. AD7840-DSP56000 Serial Interface
REV. B
AD7840
AD7840-TMS32020 Serial Interface Figure 22 shows a serial interface between the AD7840 and the TMS32020 DSP processor. In this interface, the CLKX and FSX pin of the TMS32020 are generated from the clock / timer circuitry. The same clock / timer circuitry generates the LDAC signal of the AD7840 to synchronize the update of the output with the serial transmission. The FSX pin of the TMS32020 must be configured as an input. Data from the TMS32020 is valid on the falling edge of CLKX. Once again, the FORMAT pin of the AD7840 must be tied to +5 V while the JUSTIFY pin must be tied to DGND.
APPLYING THE AD7840
Good printed circuit board layout is as important as the overall circuit design itself in achieving high speed converter performance. The AD7840 works on an LSB size of 366 µV. Therefore, the designer must be conscious of minimizing noise in both the converter itself and in the surrounding circuitry. Switching mode power supplies are not recommended as the switching spikes can feed through to the on-chip amplifier. Other causes of concern are ground loops and digital feedthrough from microprocessors. These are factors which influence any high performance converter, and a proper PCB layout which minimizes these effects is essential for best performance.
LAYOUT HINTS
Ensure that the layout for the printed circuit board has the digital and analog lines separated as much as possible. Take care not to run any digital track alongside an analog signal track. Establish a single point analog ground (star ground) separate from the logic system ground. Place this star ground as close as possible to the AD7840 as shown in Figure 24. Connect all analog grounds to this star ground and also connect the AD7840 DGND pin to this ground. Do not connect any other digital grounds to this analog ground point.
Figure 22. AD7840-TMS32020 Serial Interface
AD7840-NEC7720 Serial Interface
A serial interface between the AD7840 and the NEC7720 is shown in Figure 23. The serial clock must be inverted before being applied to the AD7840 SCLK input because data from the processor is valid on the rising edge of SCK. The NEC7720 is programmed for the LSB to be the first bit in the serial data stream. Therefore, the AD7840 is set up with the FORMAT pin tied to DGND and the JUSTIFY pin tied to +5 V.
Figure 24. Power Supply Grounding Practice
Low impedance analog and digital power supply common returns are essential to low noise operation of high performance converters. Therefore, the foil width for these tracks should be kept as wide as possible. The use of ground planes minimizes impedance paths and also guards the analog circuitry from digital noise. The circuit layouts of Figures 27 and 28 have both analog and digital ground planes which are kept separated and only joined at the star ground close to the AD7840.
NOISE
Keep the signal leads on the VOUT signal and the signal return leads to AGND as short as possible to minimize noise coupling. In applications where this is not possible, use a shielded cable between the DAC output and its destination. Reduce the ground circuit impedance as much as possible since any potential difference in grounds between the DAC and its destination device appears as an error voltage in series with the DAC output.
Figure 23. AD7840-NEC7720 Serial Interface
REV. B
AD7840
DATA ACQUISITION BOARD POWER SUPPLY CONNECTIONS
Figure 25 shows the AD7840 in a data acquisition circuit. The corresponding printed circuit board (PCB) layout and silkscreen are shown in Figures 26 to 28. The board layout has three interface ports: one serial and two parallel. One of the parallel ports is directly compatible with the ADSP-2100 evaluation board expansion connector. Some systems will require the addition of a re-construction filter on the output of the AD7840 to complete the data acquisition system. There is a component grid provided near the analog output on the PCB which may be used for such a filter or any other output conditioning circuitry. To facilitate this option, there is a shorting plug (labeled LK1 on the PCB) on the analog output track. If this shorting plug is used, the analog output connects to the output of the AD7840 otherwise this shorting plug can be omitted and a wire link used to connect the analog output to the PCB component grid. The board also contains a simple sample-and-hold circuit which can be used on the output of the AD7840 to extend the very good performance of the AD7840 over a wider frequency range. A second wire link (labelled LK2 on the PCB) connects VOUT (SKT1) to either the output of this sample-and-hold circuit or directly to the output of the AD7840.
INTERFACE CONNECTIONS
The PCB requires two analog power supplies and one 5 V digital supply. Connections to the analog supplies are made directly to the PCB as shown on the silkscreen in Figure 26. The connections are labelled V+ and V- and the range for both of these supplies is 12 V to 15 V. Connection to the 5 V digital supply is made through any of the connectors (SKT4 to SKT6). The -5 V analog supply required by the AD7840 is generated from a voltage regulator on the V- power supply input (IC5 in Figure 25).
SHORTING PLUG OPTIONS
There are eight shorting plug options which must be set before using the board. These are outlined below: LK1 Connects the analog output to SKT1. The analog output may also be connected to a component grid for signal conditioning. Selects either the AD7840 VOUT or the sample-andhold output. Selects either the internal or external reference. Selects the decoded R / W and STRB inputs for TMS32020 interfacing. Configures the D11 / FORMAT input. Configures the D10 / JUSTIFY input. Selects either the inverted or noninverted SYNC. Selects either parallel or serial interfacing.
LK2 LK3 LK4 LK5
LK6 LK7 LK8
COMPONENT LIST
IC1 IC2 IC3 IC4 IC5 IC6 C1, C3, C5, C7, C11, C13, C15, C17 C2, C4, C6, C8, C12, C14, C16, C18 C9 C10 R1, R2 R3 RP1, RP2 LK1, LK2, LK3, LK4, LK5, LK6, LK7, LK8 SKT1, SKT2, SKT3 SKT4 SKT5 SKT6
AD7840 Digital-to-Analog Converter AD711 Op Amp ADG201HS High Speed Switch 74HC221 Monostable 79L05 Voltage Regulator 74HC02 10 µF Capacitors 0.1 µF Capacitors 330 pF Capacitor 68 pF Capacitor 2.2 k Resistors 15 k Resistor 100 k Resistor Packs
Shorting Plugs BNC Sockets 26-Contact (2-Row) IDC Connector 9-Contact D-Type Connector 96-Contact (3-Row) Eurocard Connector
AD7840
Figure 25. Data Acquisition Circuit Using the AD7840
Figure 26. PCB Silkscreen for Figure 25
REV. B
AD7840
Figure 27. PCB Component Side Layout for Figure 25
Figure 28. PCB Solder Side Layout for Figure 25
REV. B
AD7840
OUTLINE DIMENSIONS
Dimensions shown in inches and (mm).
Plastic DIP (N-24)
Ceramic DIP (D-24A)
Figure 29. SKT4, IDC Connector Pinout
Figure 30. SKT5, D-Type Connector Pinout
Cerdip (Q-24)
PLCC (P-28A)
REV. B
PRINTED IN U.S.A.
C1259-10-2 / 89
|