ANALOG DEVICES +2.] V to +5.5 V, Serial Input, Dual Voltage Output 8-Bit DAC AD7303 FEATURES Two 8-Bit DACs in One Package 8-Pin DIP/SOIC and microSOlC Packages +2.7 V to +5.5 V Operation Internal & External Reference Capability Individual DAC Power-Down Function Three-Wire Serial Interface QSPI", SPI and Microwire Compatible On-Chip Output Buffer Rail-to-Rail Operation On-Chip Control Register Low Power Operation: 2.3 mA @ 3.3 V Full Power-Down to 1 pA max, typically 80 nA APPLICATIONS Portable Battery Powered Instruments Digital Gain and Offset Adjustment Programmable Voltage and Current Sources Programmable Attenuators GENERAL DESCRIPTION The AD7303 is a dual, 8-bit voltage out DAC that operates from a single +2.7 V to +5.5 V supply. Its on-chip precision out- put buffers allow the DAC outputs to swing rail to rail. This de- vice uses a versatile 3-wire serial interface that operates at clock rates up to 30 MHz, and is compatible with QSPI, SPI, microwire and digital signal processor interface standards. The serial input register is sixteen bits wide; 8 bits act as data bits for the DACs, and the remaining eight bits make up a control register. The on-chip control register is used to address the relevant DAC, to power down the complete device or an individual DAC, to select internal or external reference and to provide a synchronous loading facility for simultaneous update of the DAC outputs with a software LDAC function. The low power consumption of this part makes it ideally suited to portable battery operated equipment. The power consump- tion is 7.5 mW max at 3 V, reducing to less than 3 uW in full power-down mode. The AD7303 is available in an 8-pin plastic dual in-line pack- age, 8-lead SOIC and microSOIC packages. QSPI and SPI are trademarks of Motorola. Microwire is a trademark of National Semiconductor. REV.0 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. FUNCTIONAL BLOCK DIAGRAM AD7303 hy LN hy INPUT DAC IDAC A ) VoutA [ REGISTER | J REGISTER Hy] > OUT AN Hh ) i INPUT DAC IDAC B ) Vout B [ REGISTER LJ REGISTER |_ DATA (8) CONTROL (8) mux | | POWER ON oN@oT TTT RESET SCLK > 16-BIT SHIFT REGISTER SYNC 2 Al baad GND REF Vbp PRODUCT HIGHLIGHTS 1. Low power, single supply operation. This part operates from asingle +2.7 V to +5.5 V supply and consumes typically 15 mW at 5.5 V, making it ideal for battery powered applications. i) The on-chip output buffer amplifiers allow the outputs of the DACs to swing rail to rail with a setdling time of cypically 1.2 us. 3. Internal or external reference capabilicy. 4. High speed serial interface with clock rates up to 30 MHz. 5. Individual power-down of each DAC provided. When com- pletely powered down, the DAC consumes typically 80 nA. One Technology Way, P.O. Box 9106, Nonvood, MA 02062-9106, U.S.A. Tel: 617/329-4700 World Wide Web Site: http://www.analog.com Fax: 617/326-8703 Analog Devices, Inc., 1997AD7303-SPECIFICATIONS (Voo = +2.7 V to +5.5 V, Internal Reference; R, = 10 kK to Vp, and GND; C, = 100 pF to GND; all specifications Ty to Tmax unless otherwise noted) Parameter B Versions" Units Conditions/Comments STATIC PERFORMANCE Resolution 8 Bits Relative Accuracy +1 LSB max Note 2 Differential Nonlinearity +1 LSB max Guaranteed Monotonic Zero-Code Error @ +25C 3 LSB max All Zeros Loaded to DAC Register Full-Scale Error 0.5 LSB typ All Ones Loaded to DAC Register Gain Error +1 % FSR typ Zero-Code Temperature Coefficient 100 HV/C typ DAC REFERENCE INPUT REFIN Input Range 1 to Vpp/2 VY min to max REFIN Input Impedance 10 MO typ Internal Voltage Reference Error* +1 % max OUTPUT CHARACTERISTICS Gurput Voltage Range 0 to Vpp V min to max Curput Voltage Settling Time 2 is max Typically 1.2 ps Slew Rate 7.5 Vius typ Digital to Analog Glitch Impulse 0.5 nV-s typ 1 LSB Change Around Major Carry Digital Feedthrough 0.2 nV-s typ Digital Crosstalk 0.2 nV-s typ Analog Crosstalk +0.2 LSB typ DC Output Impedance 40 QO typ Short Circuit Current 14 mA typ Power Supply Rejection Ratio 0.0001 %o/% max AVpp = 110% LOGIC INPUTS Input Current +10 HA max Via Input Low Voltage 0.8 V max Vop = +i V 0.6 V max Vpp = +3 V Vine; Input High Voltage 2.4 V min Vpp = +5 V 2.1 V min Vpp = +3 V Pin Capacitance 5 pF max POWER REQUIREMENTS Vop 2.7/5.5 VY min/max Ipp (Normal Mode) Both DACs Active and Excluding Load Currents, Vop =3,.3V Vin = Von Vir = GND (@ +25C l mA max See Figure 8 Tin _ TMAX 2.3 mA max Vop =5.5V (@ +25C 2.7 mA max TIN _ Tax 3.5 mA max Ipp (Full Power-Down) @ 425C 80 nA typ Vin = Von; Vin = GND Twin Taax 1 HA max See Figure 19 NOTES Temperature ranges are as follows: B Version, 40C to +105C. *Relative Accuracy is calculated using a reduced digital code range of 15 to 245. 3Gain Error is specified between Codes 15 and 245. The actual error at Code 15 is typically 3 LSB. Intemal Voltage Reference Error = (Actual Vggp Ideal VagpIdeal Vag) + 100. Ideal Vagp = Vpp/2, actual Vee = voltage on reference pin when intemal reference is selected. Specifications subject to change without notice. ORDERING GUIDE Temperature Package Model Range Options* AD7303BN 40C to +105C N-8 AD7303BR 40C to +105C S0-8 AD7303BRM 40C to +105C RM-8 *N = Plastic DIP; R = SOIC; RM = microSOIC. -9- REV. 0AD7303 9 (Von = +2.7 V to +5.5 V; GND =0 V; Reference = Internal V,,/2 Reference; all specifications TIMI NG CHARACTERISTICS: Trin tO Tyax Unless otherwise noted) Parameter Limit at Tyo, Taax (B Version) Units Conditions/Comments t; 33 ns min SCLE Cycle Time ta 13 ns min SCLK High Time 3 13 ns min SCLK Low Time lg 5 ns min SYNC Setup Time ls 5 ns min Data Setup Time ly 4.5 ns min Data Hold Time ly 4.5 ns min SYNC Hold Time Ig 33 ns min Minimum SYNC High Time NOTES Sample tested at +25C to ensure compliance. All input signals are specified with tr = tf = 5 ns (10% to 90% of Vpp) and timed from a voltage level of (Vz, + Vix 2, tr and tf should not exceed 1 Us on any input. *See Figures 1 and 2. sax TILA | TVA tp) ta At SYNG (I) ts > te DIN (I) pais CX X X 080 } , Figure 7. Timing Diagram for Continuous 16-Bit Write SCLK (I) AWAY ___ te ts ty el ty be ty SYNC (I) te te DIN (I) DBO Figure 2. Timing Diagram for 2x 8-Bit Writes REV. 0 -3-AD7303 ABSOLUTE MAXIMUM RATINGS* SOIC Package, Power Dissipation ............... 450 mW (T, = +25C unless otherwise noted) Ora Thermal Impedance eae 157C/W Vpp tOGND 2.0.0... ccc cece eee 0.3 Vio +7 V Lead Temperature, Soldering Reference Input Voltageto GND .... -0.3 Vto Vpp + 0.3V Vapor Phase (60 sec) .........2000000200 0s +215C Digital Input Voltage to GND ....... 0.3 Vito Vpp + 0.3. V Infrared (15 sec) .. 2.2.0.0 202 eee eee +220C Vour As Vout Bto GND ........... 0.3 Vito Vpp +: 0.3 V MicroSOIC Package, Power Dissipation .......... 450 mW Operating Temperature Range 64 Thermal Impedance ................0.05. 206C/W Commercial (B Version) ............. 40C to +105C Lead Temperature, Soldering Storage Temperature Range ............ -65C to +150C Vapor Phase (60 sec)... 1... 0s. sess eeeae, +215C Junction Ternperature 2.0.0.0... 0000. +150C Infrared (15 sec)... . 2 eee eee eee tenes +220C Plastic DIP Package, Power Dissipation tates 800 mW *Stresses above those listed under Absolute Maximum Ratings may cause Oa Thermal Impedance Cede bbb bbb bbb bn ns 117C/w permanent damage to the device. This is a stress rating only; functional operation Lead Temperature (Soldering, 10 sec) ........... +260C of the device at these or any other conditions above those listed in the operational CAUTION ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. accumulate on the human body and test equipment and can discharge without detection. WARNING! Although the AD7303 features proprietary ESD protection circuitry, permanent damage may Ah: 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 PIN CONFIGURATIONS (DIP, SOIC and microSOIC) PIN FUNCTION DESCRIPTIONS Pin No. | Mnemonic | Function 1 VourA Analog Output Voltage from DAC A. The output amplifier swings rail to rail on its ourput. 2 Von Power Supply Input. These parts can be operated from +2.7 V to +5.5 V and should be decoupled to GND. 3 GND Ground reference point for all circuitry on the part. 4 REF External Reference Inpur. Vhis can be used as the reference for both DACs, and is selected by setting rhe INT/EXT bit in the control register to a logic one. The range on this reference input is 1 V to Vpp/2. When the internal reference is selected, this voltage will appear as an output for decoupling purposes at the REF Pin. When using the internal reference, external voltages should not be connected to the REF Pin, see Figure 21. 5 SCLE Serial Clock. Logic Input. Data is clocked into the input shift register on the rising edge of the serial clock input. Data can be transferred at rates up to 30 MHz. 6 DIN Serial Data Input. This device has a 16-bit shift register, 8 bits for data and 8 bits for control. Data is clocked into the register on the rising edge of the clock input. 7 SYNC 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 rising edges of the following clocks. The rising edge of the SYNC causes the relevant registers to be updated. 8 VourB Analog output voltage from DAC B. The ourput amplifier swings rail to rail on its output. 4- REV. 0AD7303 TERMINOLOGY INTEGRAL NONLINEARITY For the DACs, relative accuracy or endpoint nonlinearity is a measure of the maximum deviation, in LSBs, from a straight line passing through the endpoints of the DAC transfer func- tion. A graphical representation of the transfer curve is shown in Figure 15. DIFFERENTIAL NONLINEARITY Differential nonlineariry is the difference berween the measured change and the ideal 1 LSB change of any two adjacent codes. A specified differential nonlinearity of +1 LSB maximum ensures monotonicity. ZERO CODE ERROR Zero code error is the measured output voltage from Voyr of either DAC when zero code (all zeros) is loaded to the DAC latch. It is due to a combination of the offset errors in the DAC and output amplifier. Zero-scale error is expressed in LSBs. GAIN ERROR This is a measure of the span error of the DAC. It is the devia- tion in slope of the DAC transfer characteristic from ideal expressed as a percent of the full-scale value. Gain error is calcu- lated between Codes 15 and 245. FULL-SCALE ERROR Full-Scale Error is a measure of the output error when the DAC latch is loaded with FF Hex. Full-scale error includes the offset error. REV. 0 DIGITAL-TO-ANALOG GLITCH IMPULSE Digital-to-analog glitch impulse is the impulse injected into the analog ourput when the digital inputs change state with the DAC selected and the software LDAC used to update the DAC. It is normally specified as the area of the glitch in nV-s and is measured when the digital input code is changed by 1 LSB at the major carry transition. DIGITAL FEEDTHROUGH Digital feedthrough is a measure of the impulse injected into the analog output of a DAC from the digital inputs of the same DAC, but is measured when the DAC is not updated. It is specified in nV-s and measured with a full-scale code change on the data bus, i.e., from all 0s to all 1s and vice versa. DIGITAL CROSSTALK Digital crosstalk is the glitch impulse transferred to the ourput of one converter due to a digital code change to another DAC. It is specified in nV-s. ANALOG CROSSTALK Analog crosstalk is a change in ourput of any DAC in response to a change in the output of the other DAC. It is measured in LSBs. POWER SUPPLY REJECTION RATIO (PSRR) This specification indicates how the output of the DAC is affected by changes in the power supply voltage. Power supply rejection ratio is quoted in terms of % change in output per % of change in Vpp for full-scale ourput of the DAC. Vpp is varied + 10%. This specification applies to an external reference only because the output voltage will track the Vpp voltage when in- ternal reference is selected.AD7303Typical Performance Characteristics 800 720 L Von = +5V AND +3 INTERNAL REFERENCE 840 tT, = 25e 560 |_ DAC LOADED WITH OOHEX 480 400 LZ - WA all 160 al al 80 oe Oo | o 2 4 6 8 SINK CURRENT-mA Vourm Figure 3. Output Sink Current Capa- bility with Vpp = 3 V and Von = 5 V 05 0.45 o4 0.35 o cs) INL ERROR 0.25 ERROR LSBs oa ha o on =~ ua 0.05 1121.4 146 48 2 22 24 2.6 2.8 REFERENCE VOLTAGE Volts Figure 6. Relative Accuracy vs. External Reference = o hoa | = o | a Vpp = +5 - EXTERNAL SINE WAVE REFERENCE Ni DAC REGISTER LOADED WITH FFHEX . Ta = 25C ry b o ATTENUATION - dB th a B 8 & 10 100 1000 10000 FREQUENCY kHz Figure 9. Large Scale Signal Frequency Response 4.92 4.84 4.76 4.68 4.6 Volts 5452 a * aaa Vpp= 4.36 | INTERNAL R DAC REGISTER LOADED WITH FFHEX 4.28 5, Ta = 25C 4.2 o 2 4 6 8 SOGURCE CURRENT mA Figure 4. Output Source Current Capability with Vop = 5 V LOGIC INPUTS = Vjy OR Yip lbp - mA LOGIC INPUTS = Vpp OR 2 60-40-20 0 20 40 60 80 100120 140 TEMPERATURE C Figure 7. Supply Current vs. Temperature DD = 1 VOLTAGE R CE FULL SCALE CODE CHANGE 0DH-FFH Ta = 25C Your CH1 5V, CH21, CH3 20mV TIME BASE = 200ns/div Figure 10. Full-Scale Settling Time 3.5 3.25 8 el 2.75 DAC B BIAS PDB i REF SELECTOR PDA LATCH & CLK 1 DRIVERS ira AB INT 16 REF REFERENCE E CRI CURRENT | RESISTOR So SWITCH SWITCH i | cro CLOCK BUS f DB7 = | pee _ pe) NUT 8 atosz Loe DAC au m recisteR PP) peconen PM] Recister [DACA Vout A = | oes DB4 8 i 7 DB3 DB2 8 INPUT 8 stosz Le DAC 3c DBt Laaptaalioes yl plan nt REGISTER DECODER REGISTER DAC B Vout B LsB] DBO ra Figure 23. Logic Interface on the AD7303 REV. 0AD7303 DB15 (MSB) JINT/EXT x LDAC PDB _ Control Bits | Data Bits DBO (LSB) PBA AB CRI CRO | DB7 DB6 DB5 DB4 DB3 DB2 DBI Figure 24, Input Shift Register Contents DBO | Bit Location Mnemonic Description DB15 INT/EXT Selects between internal and external reference. DB14 x Uncommitted bit. DB13 LDAC Load DAC bit for synchronous update of DAC outputs. DB12 PDB Power-down DAC B. DB11 PDA Power-down DAC A. DB10 A/B Address bit to select either DAC A or DAC B. DBS CR1 Control Bit 1 used in conjunction with CRO co implement the various data loading functions. DB8 CRO Control Bit 0 used in conjunction with CR1 co implement the various data loading functions. DB7-DB0 Data These bits contain the data used to update the output of the DACs. DB7 is the MSB and DBo the LSB of the 8-bit data word. CONTROL BITS LDAC AIB CRI CRO Function Implemented 0 x 0 0 Both DAC registers loaded from shift register. 0 0 0 1 Update DAC A input register from shift register. 0 1 0 1 Update DAC B input register from shift register. 0 0 1 0 Update DAC A DAC register from input register. 0 1 1 0 Update DAC BDAC register from input register. 0 0 1 1 Update DAC A DAC register from shift register. 0 1 1 1 Update DAC B DAC register from shift register. 1 0 xX xX Load DAC A input register from shift register and update both DAC A and DAC B DAC registers. 1 1 x x Load DAC B input register from shift register and update both DAC A and DAC B DAC registers outputs. INT/EXT Function 0 Internal Vpp/2 reference selected. 1 External reference selected; this external reference is applied at the REF pin and ranges from 1Vto Vpp/2. PDA PDB Function 0 0 Both DACs active. 0 1 DAC A active and DAC B in power-down mode. 1 0 DAC A in power-down mode and DAC B active. 1 1 Both DACs powered down. -10- REV. 0AD7303 POWER-ON RESET The AD7303 has a power-on reset circuit designed to allow output stabiliry during power-up. This circuit holds rhe DACs in a reser state until a write takes place to the DAC. In the reset state all zeros are latched into the input registers of each DAC, and the DAC reg- isters are in transparent mode. Thus the output of both DACs are held at ground potential until a write takes place to the DAC. POWER-DOWN FEATURES Two bits in the control section of the 16-bit input word are used to put the AD7303 mto low power mode. DAC A and DAC B can be powered down separately. When both DACs are powered down, the current consumption of the device is reduced to less than 1 A, making the device suitable for use in portable battery powered equipment. The reference bias servo loop, the ourput amplifiers and associated lear circuitry are all shut down when the power- down is activated. The output sees a load of approximately 23 kQ to GND when in power-down mode as shown in Figure 25. The contents of the data registers are unaffected when in power-down mode. The time to exit power-down is determined by the nature of the power-down, if the device is fully powered down the bias gen- erator is also powered down and the device takes typically 13 us to exit power-down mode. If the device is only partially powered down, i.e., only one channel powered down, in this case the bias generator is active and the time required for the power-down chan- nel to exit this mode is typically 1.6 us. See Figures 11 and 12. Vop 11.7kQ Vo A/B Figure 25. Output Stage During Power-Down MICROPROCESSOR INTERFACING AD7303 to ADSP-2101/ADSP-2103 Interface Figure 26 shows a serial interface berween the AD7303 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. The data is clocked out on each falling edge of the serial clock and clocked into the AD7303 on the rismg edge of the SCLK. ADSP-2101/ AD7303* ADSP-2103* TFS #7 SYNC DOT 7] DIN SCLK >> SCLK ADDITIONAL PINS OMITTED FOR CLARITY Figure 26. AD7303 to ADSP-2101/ADSP-2103 interface REV. 0 AD7303 to 68HGC11/68L11 Interface Figure 27 shows a serial interface between the AD7303 and the 68HC11/68L11 microcontroller. SCK of the 68HC11/68L11 drives the CLKIN of the AD7303, while the MOSI ourput drives the serial data line of the DAC. The SYNC signal is derived from a port line (PC7). The setup conditions for cor- rect 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 0. 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 rising 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 AD7303, PC7 is left low after the first eight bits are transferred, and a second serial write op- eration is performed to the DAC and PC? is taken high at the end of this procedure. 68HC11/68L11* AD7303* PC7 e) SYNC sck tH SCLK MOoSsI DIN ADDITIONAL PINS OMITTED FOR CLARITY Figure 27. AD7303 to 68HC11/68L1T Interface AD7303 to 80C51/80L51 Interface Figure 28 shows a serial interface berween the AD7303 and the 80C51/80L51 microcontroller. The setup for the interface is as follows: TXD of the 80C51/80L51 drives SCLK of the AD7303, while RXD drives the serial data line of the part. The SYNC signal is again derived from a bit programmable pin on the port. Tn this case port line P3.3 is used. When data is to be transmit- ted to the AD7303, P3.3 is taken low. The 80C51/80L51 trans- mits 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 AD7303 requires its data with the MSB as the first bit received. The 80C51/80L51 transmit routine should take this into account. 80C51/80L51* AD7303* P33 1 SYNC TXD #1 SCLK RXD #1 SDIN ADDITIONAL PINS OMITTED FOR CLARITY Figure 28. AD7303 to 80C51/80L451 Interface -11-AD7303 AD7303 to Microwire Interface Figure 29 shows an interface between the AD7303 and any microwire compatible device. Serial dara is shifted out on the falling edge of the serial clock and is clocked into the AD7303 on the rising edge of the SK. MICROWIRE* AD7303* cs we SYNC SK #1 SCLK so #) DIN ADDITIONAL PINS OMITTED FOR CLARITY Figure 29. AD7303 to Microwire Interface APPLICATIONS Typical Application Circuit Figure 30 shows a typical setup for the AD7303 when using an external reference. The reference range for the AD7303 is from 1V to Vpp/2 V. Higher values of reference can be incorporated but will saturate the output at both the top and bottom end of the transfer function. From input to output on the AD7303 there is a gain of two. Suitable references for 5 V operation are the AD780 and REF192. For 3 V operation, a suitable external reference would be the AD589, a 1.23 V bandgap reference. Vop = +3V TO +5V 6 = z VIN EXT Vout REF Yoo REF ad our VoutA FO GND TH AD7303 Vv SCLK AD780/ REF192 DIN Yours f-O WITH Vpp = +5 SYNC OR GND ADS589 WITH Vpp = +3 Vv SERIAL INTERFACE Figure 30. AD7303 Using External Reference The AD7303 can also be used with its own internally derived Vopp/2 reference. Reference selection is through the INT/EXT bit of the 16-bit input word. The internal reference, when selected, is also provided as an output at the REF pin and can be decoupled at this point with a 0.1 uF capacitor for noise reduction purposes. AC references can also be applied as exter- nal references to the AD7303. The AD7303 has limited multi- plying capability, and a multiplying bandwidth of up to 10 kHz is achievable. -12- Bipolar Operation Using the AD7303 The AD7303 has been designed for single supply operation, but bipolar operation is achievable using the circuit shown in Figure 31. The circuit shown has been configured to achieve an output voltage range of -5 V< Vg < +5 V. Rail-to-rail operation at the amplifier output is achievable using an AD820 or OP295 as the output amplifier. V VIN O15 Vop EXT - Vout REF REF L O.1pF GND u B AD7303 V SCLK VouTa AD780/ REF192 DIN WITH pp = +5 SN OR GND ADS89 WITH Vpp = +3 y SERIAL INTERFACE Figure 31. Bipolar Operation Using the AD7303 The output voltage for any input code can be calculated as follows: Vo = [CL +R4/R3) (R24 R1+R2) *(2 *Vanp*D/256)] R4*VapelR3 where D is the decimal equivalent of the code loaded to the DAC and Veer 18 the reference voltage input. With Vag = 2.5 V, Rl = R3 = 10 kQ and R2 = R4 = 20K and Vop= 5. Four = (10 x D/256) -5 Opto-Isolated Interface for Process Control Applications The AD7303 has a versatile 3-wire serial interface making it ideal for generating accurate voltages in process control and industrial applications. Due to noise, safety requirements or dis- tance, it may be necessary to isolate the AID7303 from the con- troller. This can easily be achieved by using opto-isolators, which will provide isolation in excess of 3 kV. The serial loading structure of the AD7303 makes it ideally suited for use in opto- isolated applications. Figure 32 shows an opto-isolated interface to the AD7303 where DIN, SCLK and SYNC are driven from opto-couplers. In this application the reference for the AD7303 is the internal Vpp/2 reference. It is being decoupled at the REF pin with a 0.1 WF ceramic capacitor for noise reduction purposes. REV. 0AD7303 10pF 0.1pF : DD 10kQ Vpb sclk O- SCLK REF PL O.1pF AD7303 vu VoutA F-O VourB F-O pATAO DIN >= AGND Figure 32. AD7303 in Opto-lsolated interface Decoding Multiple AD7303 The SYNC pin on the AD7303 can be used in applications to decode a number of DACs. In this application, all DACs in the system receive the same serial clock and serial data, but only the SYNC to one of the DACs will be active at any one time allow- ing access to two channels in this eight-channel system. The 74HC139 is used as a 2- to 4-line decoder to address any of the DACs in the system. To prevent ming errors from occurring, the enable input should be broughr to its inactive state while the coded address inputs are changing state. Figure 33 shows a dia- gram of a typical setup for decoding multiple AD7303 devices in a system. AD7303 SYNC DING DIN Yop @4] ScLK sCclhk Oo veo ENABLE O-7 14 10 CODED oT 1A 11 ADDRESS O 1B 12 AD7303 SYNC DIN ry t | 74HC139 178 Pscik BGND = AD7303 SYNC DIN @] SCLK 4D7303 SYNC DIN Lt SCLK Figure 33. Decoding Multiple AD7303 Devices in a System REV. 0 AD7303 as a Digitally Programmable Window Detector A digitally programmable upper/lower limit detector using the two DACs in the AD7303 is shown in Figure 34. The upper and lower limits for the test are loaded to DACs A and B which, in turn, set the limits on the CMP04. Ifa signal at the Vz input is not within the programmed window, a led will indicate the fail condition. +5V & t t G O.1pF t 10yF Yop TD REF 0.1 pF G VouTA AD7303 SYNC O-] SYNC DIN GO-} DIN scLK O] SCLK VourB 4g 7aHODS GND Vv Figure 34. Window Detector Using AD7303 Programmable Current Source Figure 35 shows the AD7303 used as the control element of a programmable current source. In this circuit, the full-scale cur- rent is set to 1 mA. The output voltage from the DAC is applied across the current setting resistor of 4.7 k2 in series with the full-scale setting resistor of 470 Q. Suitable transistors to place in the feedback loop of the amplifier include the BC107 and the 2N3904, which enable the current source to operate from a min Vsaurce of 6 V. The operating range is determined by the oper- ating characteristics of the transistor. Suitable amplifiers in- clude the AD820 and the OP295, both having rail-to-rail operation on their outputs. The current for any digital input code can be calculated as follows: f=2x Veer X DI5E + 3x 256) mA Yop =+5 o VSOURCE () VIN Vop Exe Vout T REF VouTA GND O.1pF U AD7303 Vv SCLK AD780/ REFIS2 DIN WITH Vpp = +5V SERIAL INTERFACE Figure 35. Programmable Current Source -13-AD7303 Power Supply Bypassing and Grounding In any circuit where accuracy is important, careful consideration of the power supply and ground return layout helps to ensure the rated performance. The printed circuit board on which the AD7303 is mounted should be designed so that the analog and digital sections are separated, and confined to certain areas of the board. If the AD7303 is in a system where multiple devices require an AGND to DGND connection, the connec- tion should be made at one point only. The star ground point should be established as closely as possible to the AD7303. The AD7303 should have ample supply bypassing of 10 WF in paral- lel with 0.1 WF on the supply located as closely to the package as possible, ideally right up against the device. The 10 UF capaci- tors are the tantalum bead type. The 0.1 uF capacitor should have low Effective Series Resistance (ESR) and Effective Series Inductance (ESI), like the common ceramic types that provide a low impedance path to ground at high frequencies to handle transient currents due co internal logic switching. The power supply lines of the AD7303 should use as large a trace as possible to provide low impedance paths and reduce the effects of glitches on the power supply line. Fast switching sig- nals such as clocks should be shielded with digital ground to avoid radiating noise to other parts of the board, and should never be run near the reference inputs. Avoid crossover of digi- tal and analog signals. Traces on opposite sides of the board should run at right angles to each other. This reduces the effects of feedthrough through the board. A microstrip technique is by far the best, but not always possible with a double-sided board. In this technique, the component side of the board is dedicated to ground plane while signal traces are placed on the solder side. AD7303 to 68HC11 Interface Program Source Code * PORTC EQU $1003 Port C Control Register * "SYNC, 0, 0, 0, 0, 0, 0, 0" DDRC EQU $1007 Port C Data Direction PORTD EQU $1008 Port D Data Register * "0, 0, 0, SCLK, DIN, 0, 0, 0" DDRD EQU $1009 Port D Data Direction SPCR EQU $1028 SPI Control Register * "SPIE, SPE, DWOM, MSTR, CPOL, CPHA, SPR1, SPRO" SPSR EQU $1029 SPI Status Register * "SPIF, WCOL, 0, MCDF, 0, 0, 0, 0" SPDR EQU $102A SPI Data Register, Read Buffer, Write Shifter * * SDI RAM Variables: DIN 1 is eight MSBs, Control BYTE DIN 2 is eight LSBs, Data BYTE DAC requires 2*8-bit Writes DIN1 EQU $00 DIN2 EQU $01 * ORG $C000 INIT LDS #$CFFF * LDAA #YSO * STAA PORTC LDAA #$80 STAA DDRC * LDAA #GOO * STAA PORTD DIN BYTE 1: " INT/EXT, X, LDAC, PDB, PBA, A/B, CR1, CRO" DIN BYTE 2: * DB7, DB6, DBS, DB4, DB3, DB2, DB1, DBO" Start of users ram Top of C page Ram 1, 0, 0, 0, 0,0, 0, 0 SYNC is High Initialize Port C Outputs 1, 0, 0, 0, 0,0, 0, 0 SYNC enabled as ourput 0, 0, 0, 0, 0,0, 0, 0 SCLKE is low, DIN is low Initialize Port D outputs -14- REV. 0AD7303 UPDATE TRANSFER WAIT LDAA STAA BSR JMP PSHX PSHY PSHA LDAA STAA LDAA STAA LDAA BPL INX CPX BNE *Execute instruction REV. 0 BSET PULA PULY PULX RTS #918 #$53 SPCR UPDATE #$EO00 #00 DIN 1 #RAA DIN 2 #DIN1 #91000 PORTC,Y $80 0,X SPDR SPSR WAIT #DIN 2+1 TRANSFER PORTC,Y $80 0, 0,0, 1, 1, 0, 0,0 SCLK and DIN enabled as outputs SPI on, Master mode, CPOL=0, CPHA=0, Clock rate =E/32 Update AD7303 ourput. Restart. Save relevant registers. Control Word "0, 0, 0, 0, 0, 0, 0, 0" Load both DAC A and DAC B DAC registers from shift register with internal reference selected. Data Word "1, 0, 1, 0, 1, 0, 1, 0 Stack pointer at first first byte to send via DIN 1. Stack pointer at on chip registers. Assert SYNC. Get BYTE co transfer via SPI. Write co DIN register to start transfer. Wait for SPIF to be set to indicate that transfer has been completed. SPIF is the MSB of the SPCR. SPIF is automatically reset if in a set state when the status register is read. Increment counter for transfer of second byte. 16 bits transferred? Tf not, transfer second BYTE. Bring SYNC back high. Restore registers. Return to main program. -15-AD7303 OUTLINE DIMENSIONS Dimensions shown in inches and (mm). 8-Pin Plastic DIP (N-8) 0.430 (10.92) oaaa(eea) [* 8 5 0.280 (7.11) 1 0.240 (6.10) s! 4 0.825 (8.25) PIN " 0.060 (1.52) 0-300 (7.62) 0.015 (0.38 0.210 (5.33) me \faretan MAX _ 0.130 15 283) 0.160 (4.06) le ea) 0.115 (2.93) ig -_ 0.015 (0.381) 0.022 (0.558) 0.100 0.070 (1.77) SEATING 0.008 (0.204) .074 (0.366) 2-54) 0 04s (7.15) 8-Lead SOIC (SO-8) 0.1968 (5.00) 0.1890 (4.80) Hiii + i 0.1574 (4.00) 0.2440 (6.20) 0.1497 (2.80)/71 41] 0.2284 (5.80) modo PIN4 0.0888 (1.75) 0.0196 (0.50) 0.0098 (0.25) 0.0532 (1.35) *| [* 0.0008 (0.25) ~ 0.0040 (0.10) erent y tf fa tote Ao ly 0.0500 0.0192 (0.49) SEATING (4.27) ee 0.0088 (0.25) 7 o.oso0 (1.27) PLANE gg 7-9198 (0-35) oz (0.15) 0.0760 (0.41) 8-Lead microSOIC (RM-8) 0.122 (3.10) 0.114 (2.90) i 0.122 (3.10) 0.190 (5.05) 0.114 (2.90) 0.187 (4.75) ATT a. 256 { (0. s) BSC 0.120 (3.05) 0.120 (3.05) *| a2 (284) 0.112 (2.84) 0.043 (1.09) o.ons (0.15) TOS 0.037 (0.94) Hi 0.002 (0.05) & at al on 0.018 (0.46) 27 ot le SEATING 5 996 (9.20) 0.011 (0.28) 0.028 (0.71) PLANE ~ , 0.003 (0.08) 0.076 (0.41) -16- C2224-12-1/97 PRINTED IN U.S.A.