a +2.7 V to +5.5 V, 140 A, Rail-to-Rail Output 12-Bit DAC in a SOT-23 AD5320* FEATURES Single 12-Bit DAC 6-Lead SOT-23 and 8-Lead SOIC Packages Micropower Operation: 140 A @ 5 V Power-Down to 200 nA @ 5 V, 50 nA @ 3 V +2.7 V to +5.5 V Power Supply Guaranteed Monotonic by Design Reference Derived from Power Supply Power-On-Reset to Zero Volts Three Power-Down Functions Low Power Serial Interface with Schmitt-Triggered Inputs On-Chip Output Buffer Amplifier, Rail-to-Rail Operation SYNC Interrupt Facility APPLICATIONS Portable Battery Powered Instruments Digital Gain and Offset Adjustment Programmable Voltage and Current Sources Programmable Attenuators FUNCTIONAL BLOCK DIAGRAM VDD GND AD5320 POWER-ON RESET REF (+) REF (–) DAC REGISTER INPUT CONTROL LOGIC SYNC SCLK 12-BIT DAC OUTPUT BUFFER POWER-DOWN CONTROL LOGIC VOUT RESISTOR NETWORK DIN GENERAL DESCRIPTION PRODUCT HIGHLIGHTS The AD5320 is a single, 12-bit buffered voltage out DAC that operates from a single +2.7 V to +5.5 V supply consuming 115 µA at 3 V. Its on-chip precision output amplifier allows rail-to-rail output swing to be achieved. The AD5320 utilizes a versatile three-wire serial interface that operates at clock rates up to 30 MHz and is compatible with standard SPI™, QSPI™, MICROWIRE™ and DSP interface standards. 2. Low power, single supply operation. This part operates from a single +2.7 V to +5.5 V supply and typically consumes 0.35 mW at 3 V and 0.7 mW at 5 V, making it ideal for battery powered applications. The reference for AD5320 is derived from the power supply inputs and thus gives the widest dynamic output range. The part incorporates a power-on-reset circuit that ensures that the DAC output powers up to zero volts and remains there until a valid write takes place to the device. The part contains a power-down feature that reduces the current consumption of the device to 200 nA at 5 V and provides software selectable output loads while in power-down mode. The part is put into power-down mode over the serial interface. 1. Available in 6-lead SOT-23 and 8-lead µSOIC packages. 3. The on-chip output buffer amplifier allows the output of the DAC to swing rail-to-rail with a slew rate of 1 V/µs. 4. Reference derived from the power supply. 5. High speed serial interface with clock speeds up to 30 MHz. Designed for very low power consumption. The interface only powers up during a write cycle. 6. Power-down capability. When powered down, the DAC typically consumes 50 nA at 3 V and 200 nA at 5 V. The low power consumption of this part in normal operation makes it ideally suited to portable battery operated equipment. The power consumption is 0.7 mW at 5 V reducing to 1 µW in power-down mode. The AD5320 is one of a family of pin-compatible DACs. The AD5300 is the 8-bit version and the AD5310 is the 10-bit version. The AD5300/AD5310/AD5320 are available in 6-lead SOT-23 packages and 8-lead µSOIC packages. SPI and QSPI are trademarks of Motorola, Inc. MICROWIRE is a trademark of National Semiconductor Corporation. *Patent pending; protected by U.S. Patent No. 5684481. 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: 781/329-4700 World Wide Web Site: http://www.analog.com Fax: 781/326-8703 © Analog Devices, Inc., 2000 (VDD = +2.7 V to +5.5 V; RL = 2 k⍀ to GND; CL = 200 pF to GND; all specifications MIN to TMAX unless otherwise noted) AD5320–SPECIFICATIONS T B Version1 Min Typ Max Parameter Unit Conditions/Comments 2 STATIC PERFORMANCE Resolution Relative Accuracy Differential Nonlinearity Zero Code Error Full-Scale Error Gain Error Zero Code Error Drift Gain Temperature Coefficient OUTPUT CHARACTERISTICS 3 Output Voltage Range Output Voltage Settling Time 12 +5 –0.15 –20 –5 0 8 Digital-to-Analog Glitch Impulse Digital Feedthrough DC Output Impedance Short Circuit Current Power-Up Time POWER REQUIREMENTS VDD IDD (Normal Mode) VDD = +4.5 V to +5.5 V VDD = +2.7 V to +3.6 V IDD (All Power-Down Modes) VDD = +4.5 V to +5.5 V VDD = +2.7 V to +3.6 V VDD 10 Bits LSB LSB mV % of FSR % of FSR µV/°C ppm of FSR/°C V µs µs V/µs pF pF nV-s nV-s Ω mA mA µs µs 12 1 470 1000 20 0.5 1 50 20 2.5 5 Slew Rate Capacitive Load Stability LOGIC INPUTS3 Input Current VINL, Input Low Voltage VINL, Input Low Voltage VINH, Input High Voltage VINH, Input High Voltage Pin Capacitance ± 16 ±1 +40 –1.25 ± 1.25 ±1 0.8 0.6 See Figure 2. Guaranteed Monotonic by Design. See Figure 3. All Zeroes Loaded to DAC Register. See Figure 6. All Ones Loaded to DAC Register. See Figure 6. 1/4 Scale to 3/4 Scale Change (400 Hex to C00 Hex). RL = 2 kΩ; 0 pF < CL < 200 pF. See Figure 16. RL = 2 kΩ; CL = 500 pF RL = ∞ RL = 2 kΩ 1 LSB Change Around Major Carry. See Figure 19. VDD = +5 V VDD = +3 V Coming Out of Power-Down Mode. V DD = +5 V Coming Out of Power-Down Mode. V DD = +3 V 3 µA V V V V pF 5.5 V 140 115 250 200 µA µA DAC Active and Excluding Load Current VIH = VDD and VIL = GND VIH = VDD and VIL = GND 0.2 0.05 1 1 µA µA VIH = VDD and VIL = GND VIH = VDD and VIL = GND % ILOAD = 2 mA. VDD = +5 V 2.4 2.1 2.7 VDD = +5 V VDD = +3 V VDD = +5 V VDD = +3 V POWER EFFICIENCY IOUT/IDD 93 NOTES 1 Temperature ranges are as follows: B Version: –40°C to +105°C. 2 Linearity calculated using a reduced code range of 48 to 4047. Output unloaded. 3 Guaranteed by design and characterization, not production tested. Specifications subject to change without notice. –2– REV. B AD5320 TIMING CHARACTERISTICS1, 2 (V DD Parameter t1 t2 t3 t4 t5 t6 t7 t8 3 = +2.7 V to +5.5 V; all specifications TMIN to TMAX unless otherwise noted) Limit at TMIN, TMAX VDD = 2.7 V to 3.6 V VDD = 3.6 V to 5.5 V Unit Conditions/Comments 50 13 22.5 0 5 4.5 0 50 ns min ns min ns min ns min ns min ns min ns min ns min SCLK Cycle Time SCLK High Time SCLK Low Time SYNC to SCLK Rising Edge Setup Time Data Setup Time Data Hold Time SCLK Falling Edge to SYNC Rising Edge Minimum SYNC High Time 33 13 13 0 5 4.5 0 33 NOTES 1 All input signals are specified with tr = tf = 5 ns (10% to 90% of V DD) and timed from a voltage level of (V IL + VIH)/2. 2 See Figure 1. 3 Maximum SCLK frequency is 30 MHz at V DD = +3.6 V to +5.5 V and 20 MHz at V DD = +2.7 V to +3.6 V. Specifications subject to change without notice. t1 SCLK t8 t3 t4 t2 t7 SYNC t6 t5 DIN DB15 DB0 Figure 1. Serial Write Operation µSOIC Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 mW Power Dissipation . . . . . . . . . . . . . . . . . . . (TJ Max–TA)/θJA θJA Thermal Impedance . . . . . . . . . . . . . . . . . . . . 206°C/W θJC Thermal Impedance . . . . . . . . . . . . . . . . . . . . . 44°C/W Lead Temperature, Soldering Vapor Phase (60 sec) . . . . . . . . . . . . . . . . . . . . . . +215°C Infrared (15 sec) . . . . . . . . . . . . . . . . . . . . . . . . . . +220°C ABSOLUTE MAXIMUM RATINGS* (TA = +25°C unless otherwise noted) VDD to GND . . . . . . . . . . . . . . . . . . . . . . . . . . –0.3 V to +7 V Digital Input Voltage to GND . . . . . . . . –0.3 V to VDD + 0.3 V VOUT to GND . . . . . . . . . . . . . . . . . . . –0.3 V to VDD + 0.3 V Operating Temperature Range Industrial (B Version) . . . . . . . . . . . . . . . –40°C to +105°C Storage Temperature Range . . . . . . . . . . . . –65°C to +150°C Junction Temperature (TJ Max) . . . . . . . . . . . . . . . . . +150°C SOT-23 Package Power Dissipation . . . . . . . . . . . . . . . . . . . (TJ Max–TA)/θJA θJA Thermal Impedance . . . . . . . . . . . . . . . . . . . . 240°C/W Lead Temperature, Soldering Vapor Phase (60 sec) . . . . . . . . . . . . . . . . . . . . . . +215°C Infrared (15 sec) . . . . . . . . . . . . . . . . . . . . . . . . . .+220°C *Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; 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. ORDERING GUIDE Model Temperature Range Branding Package Information Options* AD5320BRT AD5320BRM –40°C to +105°C –40°C to +105°C D4B D4B RT-6 RM-8 *RT = SOT-23; RM = µSOIC. 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 AD5320 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. REV. B –3– WARNING! ESD SENSITIVE DEVICE AD5320 PIN CONFIGURATIONS SOIC SOT-23 SYNC VDD 1 5 SCLK TOP VIEW VDD 3 (Not to Scale) 4 DIN NC 2 VOUT 1 GND 2 6 AD5320 8 AD5320 GND DIN TOP VIEW NC 3 (Not to Scale) 6 SCLK VOUT 4 7 5 SYNC NC = NO CONNECT PIN FUNCTION DESCRIPTIONS SOT-23 Pin Numbers Pin No. Mnemonic Function 1 2 3 VOUT GND VDD 4 DIN 5 SCLK 6 SYNC Analog output voltage from DAC. The output amplifier has rail-to-rail operation. Ground reference point for all circuitry on the part. Power Supply Input. These parts can be operated from +2.5 V to +5.5 V and VDD should be decoupled to GND. Serial Data Input. This device has a 16-bit shift register. Data is clocked into the register on the falling edge of the serial clock input. Serial Clock Input. Data is clocked into the input shift register on the falling edge of the serial clock input. Data can be transferred at rates up to 30 MHz. Level triggered control input (active low). This is the frame synchronization signal for the input data. When SYNC goes low, it enables the input shift register and data is transferred in on the falling edges of the following clocks. The DAC is updated following the 16th clock cycle unless SYNC is taken high before this edge in which case the rising edge of SYNC acts as an interrupt and the write sequence is ignored by the DAC. –4– REV. B AD5320 TERMINOLOGY Relative Accuracy Gain Error This is a measure of the span error of the DAC. It is the deviation in slope of the DAC transfer characteristic from ideal expressed as a percent of the full-scale range. For the DAC, relative accuracy or Integral Nonlinearity (INL) is a measure of the maximum deviation, in LSBs, from a straight line passing through the endpoints of the DAC transfer function. A typical INL vs. code plot can be seen in Figure 2. Total Unadjusted Error Total Unadjusted Error (TUE) is a measure of the output error taking all the various errors into account. A typical TUE vs. code plot can be seen in Figure 4. Differential Nonlinearity Differential Nonlinearity (DNL) is the difference between the measured change and the ideal 1 LSB change between any two adjacent codes. A specified differential nonlinearity of ± 1 LSB maximum ensures monotonicity. This DAC is guaranteed monotonic by design. A typical DNL vs. code plot can be seen in Figure 3. Zero-Code Error Drift This is a measure of the change in zero-code error with a change in temperature. It is expressed in µV/°C. Gain Error Drift This is a measure of the change in gain error with changes in temperature. It is expressed in (ppm of full-scale range)/°C. Zero-Code Error Zero-code error is a measure of the output error when zero code (000 Hex) is loaded to the DAC register. Ideally the output should be 0 V. The zero-code error is always positive in the AD5320 because the output of the DAC cannot go below 0 V. It is due to a combination of the offset errors in the DAC and output amplifier. Zero-code error is expressed in mV. A plot of zero-code error vs. temperature can be seen in Figure 6. Digital-to-Analog Glitch Impulse Digital-to-analog glitch impulse is the impulse injected into the analog output when the input code in the DAC register changes state. It is normally specified as the area of the glitch in nV secs and is measured when the digital input code is changed by 1 LSB at the major carry transition (7FF Hex to 800 Hex). See Figure 19. Full-Scale Error Digital Feedthrough Full-scale error is a measure of the output error when full-scale code (FFF Hex) is loaded to the DAC register. Ideally the output should be VDD – 1 LSB. Full-scale error is expressed in percent of full-scale range. A plot of full-scale error vs. temperature can be seen in Figure 6. REV. B Digital feedthrough is a measure of the impulse injected into the analog output of the DAC from the digital inputs of the DAC but is measured when the DAC output is not updated. It is specified in nV secs and measured with a full-scale code change on the data bus, i.e., from all 0s to all 1s and vice versa. –5– AD5320–Typical Performance Characteristics 16 DNL @ 3V DNL @ 5V TA = +25ⴗC INL @ 3V 4 0 –4 INL @ 5V 8 0.5 DNL ERROR – LSBs 8 TA = +25ⴗC TUE – LSBs 12 INL ERROR – LSBs 16 1.0 TA = +25ⴗC 0 0 TUE @ 5V –8 –0.5 –8 TUE @ 3V –12 –16 0 800 1600 2400 CODE 3200 4000 –1.0 –16 0 1000 2000 CODE 3000 4000 Figure 3. Typical DNL Plot Figure 2. Typical INL Plot 16 0 1600 2400 CODE VDD = +5V 20 2000 MIN DNL –4 MIN INL VDD = +3V 10 FREQUENCY MAX DNL 0 ERROR – mV 8 MAX INL 4000 2500 VDD = +5V 4 3200 Figure 4. Typical Total Unadjusted Error Plot 30 12 ERROR – LSBs 800 ZS ERROR 0 FS ERROR 1500 1000 –10 –8 500 –20 –12 –16 –40 0 40 80 TEMPERATURE – ⴗC 120 Figure 5. INL Error and DNL Error vs. Temperature –30 –40 0 0 40 80 TEMPERATURE – ⴗC 120 Figure 6. Zero-Scale Error and FullScale Error vs. Temperature IDD – A Figure 7. IDD Histogram with VDD = 3 V and VDD = 5 V 5 3 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 500 TA = +25ⴗC DAC LOADED WITH FFF HEX 4 400 DAC LOADED WITH FFF HEX 3 IDD – A VOUT – V VOUT – V 2 TA = +25ⴗC 2 300 200 1 VDD = +5V DAC LOADED WITH 000 HEX 1 100 VDD = +3V DAC LOADED WITH 000 HEX 0 0 0 10 ISOURCE/SINK – mA 5 15 Figure 8. Source and Sink Current Capability with VDD = 3 V 0 5 10 ISOURCE/SINK – mA 15 Figure 9. Source and Sink Current Capability with VDD = 5 V –6– 0 0 800 1600 2400 CODE 3200 4000 Figure 10. Supply Current vs. Code REV. B AD5320 300 1.0 300 0.9 250 200 200 150 100 THREE-STATE CONDITION 0.8 0.7 IDD – A 250 IDD – A IDD – A VDD = +5V 150 100 0.6 0.5 0.4 +105ⴗC 0.3 +25ⴗC –40ⴗC 50 0.2 50 0.1 0 –40 0 40 80 TEMPERATURE – ⴗC 0 2.7 120 3.2 3.7 4.2 VDD – V 4.7 Figure 12. Supply Current vs. Supply Voltage Figure 11. Supply Current vs. Temperature 0 2.7 5.2 3.7 3.2 4.2 VDD – V 4.7 5.2 Figure 13. Power-Down Current vs. Supply Voltage 800 TA = +25ⴗC CH 2 IDD – A 600 CH 2 CLK CLK 400 VOUT 200 VDD = +5V CH1 VDD = +3V 0 VOUT VDD = +5V FULL-SCALE CODE CHANGE 000 HEX – FFF HEX TA = +25ⴗC OUTPUT LOADED WITH 2k⍀ AND 200pF TO GND CH 1 CH1 1V, CH2 5V, TIME BASE = 1s/DIV CH1 1V, CH 2 5V, TIME BASE = 1s/DIV 0 2 3 VLOGIC – V 1 4 VDD = +5V HALF-SCALE CODE CHANGE 400 HEX – C00 HEX TA = +25ⴗC OUTPUT LOADED WITH 2k⍀ AND 200pF TO GND 5 Figure 14. Supply Current vs. Logic Input Voltage Figure 15. Full-Scale Settling Time Figure 16. Half-Scale Settling Time 2.56 2k⍀ LOAD TO VDD LOADED WITH 2k⍀ AND 200pF TO GND VDD = +5V CH2 2.54 VOUT – V CLK VDD CH1 VOUT CODE CHANGE: 800 HEX TO 7FF HEX 2.52 2.50 VOUT CH2 2.48 CH1 CH1 1V, CH 2 1V, TIME BASE = 20s/DIV CH1 1V, CH 2 5V, TIME BASE = 5s/DIV 2.46 500ns/DIV Figure 17. Power-On Reset to 0 V REV. B Figure 18. Exiting Power-Down (800 Hex Loaded) –7– Figure 19. Digital-to-Analog Glitch Impulse AD5320 GENERAL DESCRIPTION D/A Section Resistor String The resistor string section is shown in Figure 21. It is simply a string of resistors, each of value R. The code loaded to the DAC register determines at which node on the string the voltage is tapped off to be fed into the output amplifier. The voltage is tapped off by closing one of the switches connecting the string to the amplifier. Because it is a string of resistors, it is guaranteed monotonic. The AD5320 DAC is fabricated on a CMOS process. The architecture consists of a string DAC followed by an output buffer amplifier. Since there is no reference input pin, the power supply (VDD) acts as the reference. Figure 20 shows a block diagram of the DAC architecture. VDD Output Amplifier The output buffer amplifier is capable of generating rail-to-rail voltages on its output which gives an output range of 0 V to VDD. It is capable of driving a load of 2 kΩ in parallel with 1000 pF to GND. The source and sink capabilities of the output amplifier can be seen in Figures 8 and 9. The slew rate is 1 V/µs with a half-scale settling time of 8 µs with the output unloaded. REF (+) RESISTOR STRING DAC REGISTER VOUT REF (–) OUTPUT AMPLIFIER GND Figure 20. DAC Architecture Since the input coding to the DAC is straight binary, the ideal output voltage is given by: SERIAL INTERFACE The AD5320 has a three-wire serial interface (SYNC, SCLK and DIN), which is compatible with SPI, QSPI and MICROWIRE interface standards as well as most DSPs. See Figure 1 for a timing diagram of a typical write sequence. D V OUT =V DD × 4096 The write sequence begins by bringing the SYNC line low. Data from the DIN line is clocked into the 16-bit shift register on the falling edge of SCLK. The serial clock frequency can be as high as 30 MHz, making the AD5320 compatible with high speed DSPs. On the sixteenth falling clock edge, the last data bit is clocked in and the programmed function is executed (i.e., a change in DAC register contents and/or a change in the mode of operation). At this stage, the SYNC line may be kept low or be brought high. In either case, it must be brought high for a minimum of 33 ns before the next write sequence so that a falling edge of SYNC can initiate the next write sequence. Since the SYNC buffer draws more current when VIN = 2.4 V than it does when VIN = 0.8 V, SYNC should be idled low between write sequences for even lower power operation of the part. As is mentioned above, however, it must be brought high again just before the next write sequence. where D = decimal equivalent of the binary code that is loaded to the DAC register; it can range from 0 to 4095. R R R TO OUTPUT AMPLIFIER Input Shift Register The input shift register is 16 bits wide (see Figure 22). The first two bits are “don’t cares.” The next two are control bits that control which mode of operation the part is in (normal mode or any one of three power-down modes). There is a more complete description of the various modes in the Power-Down Modes section. The next twelve bits are the data bits. These are transferred to the DAC register on the sixteenth falling edge of SCLK. R R Figure 21. Resistor String DB0 (LSB) DB15 (MSB) X X PD1 PD0 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 DATA BITS 0 0 NORMAL OPERATION 0 1 1k⍀ TO GND 1 0 100k⍀ TO GND 1 1 THREE-STATE POWER-DOWN MODES Figure 22. Input Register Contents –8– REV. B AD5320 SYNC Interrupt In a normal write sequence, the SYNC line is kept low for at least 16 falling edges of SCLK and the DAC is updated on the 16th falling edge. However, if SYNC is brought high before the 16th falling edge this acts as an interrupt to the write sequence. The shift register is reset and the write sequence is seen as invalid. Neither an update of the DAC register contents or a change in the operating mode occurs—see Figure 23. RESISTOR STRING DAC AMPLIFIER POWER-DOWN CIRCUITRY VOUT RESISTOR NETWORK Power-On-Reset The AD5320 contains a power-on-reset circuit that controls the output voltage during power-up. The DAC register is filled with zeros and the output voltage is 0 V. It remains there until a valid write sequence is made to the DAC. This is useful in applications where it is important to know the state of the output of the DAC while it is in the process of powering up. Figure 24. Output Stage During Power-Down The bias generator, the output amplifier, the resistor string and other associated linear circuitry are all shut down when the power-down mode is activated. However, the contents of the DAC register are unaffected when in power-down. The time to exit power-down is typically 2.5 µs for VDD = 5 V and 5 µs for VDD = 3 V. See Figure 18 for a plot. Power-Down Modes The AD5320 contains four separate modes of operation. These modes are software-programmable by setting two bits (DB13 and DB12) in the control register. Table I shows how the state of the bits corresponds to the mode of operation of the device. MICROPROCESSOR INTERFACING AD5320 to ADSP-2101/ADSP-2103 Interface Figure 25 shows a serial interface between the AD5320 and the ADSP-2101/ADSP-2103. The ADSP-2101/ADSP-2103 should be set up to operate in the SPORT Transmit Alternate Framing Mode. The ADSP-2101/ADSP-2103 SPORT is programmed through the SPORT control register and should be configured as follows: Internal Clock Operation, Active Low Framing, 16-Bit Word Length. Transmission is initiated by writing a word to the Tx register after the SPORT has been enabled. Table I. Modes of Operation for the AD5320 DB13 DB12 Operating Mode 0 0 0 1 1 1 0 1 Normal Operation Power-Down Modes 1 kΩ to GND 100 kΩ to GND Three-State ADSP-2101/ ADSP-2103* When both bits are set to 0, the part works normally with its normal power consumption of 140 µA at 5 V. However, for the three power-down modes, the supply current falls to 200 nA at 5 V (50 nA at 3 V). Not only does the supply current fall but the output stage is also internally switched from the output of the amplifier to a resistor network of known values. This has the advantage that the output impedance of the part is known while the part is in power-down mode. There are three different options. The output is connected internally to GND through a 1 kΩ resistor, a 100 kΩ resistor or it is left open-circuited (Three-State). The output stage is illustrated in Figure 24. AD5320* TFS DT DIN SCLK SCLK *ADDITIONAL PINS OMITTED FOR CLARITY Figure 25. AD5320 to ADSP-2101/ADSP-2103 Interface SCLK SYNC DIN DB15 DB15 DB0 VALID WRITE SEQUENCE, OUTPUT UPDATES ON THE 16TH FALLING EDGE INVALID WRITE SEQUENCE: SYNC HIGH BEFORE 16TH FALLING EDGE Figure 23. SYNC Interrupt Facility REV. B DB0 –9– AD5320 AD5320 to 68HC11/68L11 Interface AD5320 to Microwire Interface Figure 26 shows a serial interface between the AD5320 and the 68HC11/68L11 microcontroller. SCK of the 68HC11/68L11 drives the SCLK of the AD5320, while the MOSI output drives the serial data line of the DAC. The SYNC signal is derived from a port line (PC7). The setup conditions for correct operation of this interface are as follows: the 68HC11/ 68L11 should be configured so that its CPOL bit is a 0 and its CPHA bit is a 1. When data is being transmitted to the DAC, the SYNC line is taken low (PC7). When the 68HC11/68L11 is configured as above, data appearing on the MOSI output is valid on the falling edge of SCK. Serial data from the 68HC11/ 68L11 is transmitted in 8-bit bytes with only eight falling clock edges occurring in the transmit cycle. Data is transmitted MSB first. In order to load data to the AD5320, PC7 is left low after the first eight bits are transferred, and a second serial write operation is performed to the DAC and PC7 is taken high at the end of this procedure. Figure 28 shows an interface between the AD5320 and any microwire compatible device. Serial data is shifted out on the falling edge of the serial clock and is clocked into the AD5320 on the rising edge of the SK. 68HC11/68L11* AD5320* PC7 SCK MOSI SCLK DIN *ADDITIONAL PINS OMITTED FOR CLARITY Figure 26. AD5320 to 68HC11/68L11 Interface AD5320 to 80C51/80L51 Interface Figure 27 shows a serial interface between the AD5320 and the 80C51/80L51 microcontroller. The setup for the interface is as follows: TXD of the 80C51/80L51 drives SCLK of the AD5320, while RXD drives the serial data line of the part. The SYNC signal is again derived from a bit programmable pin on the port. In this case port line P3.3 is used. When data is to be transmitted to the AD5320, P3.3 is taken low. The 80C51/80L51 transmits data only in 8-bit bytes; thus only eight falling clock edges occur in the transmit cycle. To load data to the DAC, P3.3 is left low after the first eight bits are transmitted, and a second write cycle is initiated to transmit the second byte of data. P3.3 is taken high following the completion of this cycle. The 80C51/ 80L51 outputs the serial data in a format which has the LSB first. The AD5320 requires its data with the MSB as the first bit received. The 80C51/80L51 transmit routine should take this into account. MICROWIRE* AD5320* CS SK SCLK SO DIN *ADDITIONAL PINS OMITTED FOR CLARITY Figure 28. AD5320 to MICROWIRE Interface APPLICATIONS Using REF19x as a Power Supply for AD5320 Because the supply current required by the AD5320 is extremely low, an alternative option is to use a REF19x voltage reference (REF195 for 5 V or REF193 for 3 V) to supply the required voltage to the part—see Figure 29. This is especially useful if the power supply is quite noisy or if the system supply voltages are at some value other than 5 V or 3 V (e.g., 15 V). The REF19x will output a steady supply voltage for the AD5320. If the low dropout REF195 is used, the current it needs to supply to the AD5320 is 140 µA. This is with no load on the output of the DAC. When the DAC output is loaded, the REF195 also needs to supply the current to the load. The total current required (with a 5 kΩ load on the DAC output) is: 140 µA + (5 V/5 kΩ) = 1.14 mA The load regulation of the REF195 is typically 2 ppm/mA, which results in an error of 2.3 ppm (11.5 µV) for the 1.14 mA current drawn from it. This corresponds to a 0.009 LSB error. +15V REF195 +5V 140A SYNC THREE-WIRE SERIAL INTERFACE SCLK AD5320 VOUT = 0V TO 5V DIN Figure 29. REF195 as Power Supply to AD5320 80C51/80L51* AD5320* P3.3 SYNC TXD SCLK RXD DIN *ADDITIONAL PINS OMITTED FOR CLARITY Figure 27. AD5320 to 80C51/80L51 Interface –10– REV. B AD5320 Bipolar Operation Using the AD5320 +5V REGULATOR The AD5320 has been designed for single-supply operation but a bipolar output range is also possible using the circuit in Figure 30. The circuit below will give an output voltage range of ± 5 V. Rail-to-rail operation at the amplifier output is achievable using an AD820 or an OP295 as the output amplifier. 10F POWER 0.1F VDD 10k⍀ SCLK The output voltage for any input code can be calculated as follows: SCLK AD5320 VDD D R1+ R2 R2 × –V DD × V O = V DD × 4096 R1 R1 VDD 10k⍀ VOUT SYNC SYNC where D represents the input code in decimal (0–4095). With VDD = 5 V, R1 = R2 = 10 kΩ: VDD 10k⍀ 10 × D VO = – 5V 4096 DATA GND This is an output voltage range of ± 5 V with 000 Hex corresponding to a –5 V output and FFF Hex corresponding to a +5 V output. Figure 31. AD5320 with An Opto-Isolated Interface Power Supply Bypassing and Grounding R2 = 10k⍀ +5V +5V R1 = 10k⍀ AD820/ OP295 VOUT VDD 10F 0.1F ⴞ5V –5V AD5320 THREE-WIRE SERIAL INTERFACE Figure 30. Bipolar Operation with the AD5320 Using AD5320 with an Opto-Isolated Interface In process-control applications in industrial environments it is often necessary to use an opto-isolated interface to protect and isolate the controlling circuitry from any hazardous commonmode voltages that may occur in the area where the DAC is functioning. Opto-isolators provide isolation in excess of 3 kV. Because the AD5320 uses a three-wire serial logic interface, it requires only three opto-isolators to provide the required isolation (see Figure 31). The power supply to the part also needs to be isolated. This is done by using a transformer. On the DAC side of the transformer, a +5 V regulator provides the +5 V supply required for the AD5320. REV. B DIN When accuracy is important in a circuit it is helpful to carefully consider the power supply and ground return layout on the board. The printed circuit board containing the AD5320 should have separate analog and digital sections, each having its own area of the board. If the AD5320 is in a system where other devices require an AGND to DGND connection, the connection should be made at one point only. This ground point should be as close as possible to the AD5320. The power supply to the AD5320 should be bypassed with 10 µF and 0.1 µF capacitors. The capacitors should be physically as close as possible to the device with the 0.1 µF capacitor ideally right up against the device. The 10 µF capacitors are the tantalum bead type. It is important that the 0.1 µF capacitor has low Effective Series Resistance (ESR) and Effective Series Inductance (ESI), e.g., common ceramic types of capacitors. This 0.1 µF capacitor provides a low impedance path to ground for high frequencies caused by transient currents due to internal logic switching. The power supply line itself should have as large a trace as possible to provide a low impedance path and reduce glitch effects on the supply line. Clocks and other fast switching digital signals should be shielded from other parts of the board by digital ground. Avoid crossover of digital and analog signals if possible. When traces cross on opposite sides of the board, ensure that they run at right angles to each other to reduce feedthrough effects through the board. The best board layout technique is the microstrip technique where the component side of the board is dedicated to the ground plane only and the signal traces are placed on the solder side. However, this is not always possible with a two-layer board. –11– AD5320 OUTLINE DIMENSIONS Dimensions shown in inches and (mm). C3193b–2.5–6/00 (rev. B) 00934 6-Lead SOT-23 (RT-6) 0.122 (3.10) 0.106 (2.70) 0.071 (1.80) 0.059 (1.50) 6 5 4 1 2 3 0.118 (3.00) 0.098 (2.50) PIN 1 0.037 (0.95) BSC 0.075 (1.90) BSC 0.051 (1.30) 0.035 (0.90) 0.057 (1.45) 0.035 (0.90) 10° 0.020 (0.50) SEATING 0.009 (0.23) 0° 0.010 (0.25) PLANE 0.003 (0.08) 0.006 (0.15) 0.000 (0.00) 0.022 (0.55) 0.014 (0.35) 8-Lead SOIC (RM-8) 0.122 (3.10) 0.114 (2.90) 8 0.122 (3.10) 0.114 (2.90) 5 0.199 (5.05) 0.187 (4.75) 1 4 PIN 1 0.0256 (0.65) BSC 0.120 (3.05) 0.112 (2.84) 0.006 (0.15) 0.002 (0.05) 0.120 (3.05) 0.112 (2.84) 0.043 (1.09) 0.037 (0.94) 0.018 (0.46) SEATING 0.008 (0.20) PLANE 33° 27° 0.028 (0.71) 0.016 (0.41) PRINTED IN U.S.A. 0.011 (0.28) 0.003 (0.08) –12– REV. B