0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
DAC8512FS-REEL

DAC8512FS-REEL

  • 厂商:

    AD(亚德诺)

  • 封装:

    SOIC8_150MIL

  • 描述:

    IC ADC 12BIT 8SOIC

  • 数据手册
  • 价格&库存
DAC8512FS-REEL 数据手册
+5 V, Serial Input Complete 12-Bit DAC DAC8512 a FEATURES Space Saving SO-8 or Mini-DIP Packages Complete, Voltage Output with Internal Reference 1 mV/Bit with 4.095 V Full Scale Single +5 Volt Operation No External Components 3-Wire Serial Data Interface, 20 MHz Data Loading Rate Low Power: 2.5 mW FUNCTIONAL BLOCK DIAGRAM REF CLR 6 LD 5 CS 2 SDI Coding for the DAC8512 is natural binary with the MSB loaded first. The output op amp can swing to either rail and is set to a range of 0 V to +4.095 V—for a one-millivolt-per-bit resolution. It is capable of sinking and sourcing 5 mA. An on-chip reference is laser trimmed to provide an accurate full-scale output voltage of 4.095 V. 8 VOUT 7 GND DAC REGISTER 12 SERIAL REGISTER CLK 3 The DAC8512 is a complete serial input, 12-bit, voltage output digital-to-analog converter designed to operate from a single +5 V supply. It contains the DAC, input shift register and latches, reference and a rail-to-rail output amplifier. Built using a CBCMOS process, these monolithic DACs offer the user low cost, and ease of use in +5 V only systems. VDD 12 APPLICATIONS Portable Instrumentation Digitally Controlled Calibration Servo Controls Process Control Equipment PC Peripherals GENERAL DESCRIPTION 12-BIT DAC 1 4 Serial interface is high speed, three-wire, DSP compatible with data in (SDI), clock (CLK) and load strobe (LD). There is also a chip-select pin for connecting multiple DACs. A CLR input sets the output to zero scale at power on or upon user demand. The DAC8512 is specified over the extended industrial (–40°C to +85°C) temperature range. DAC8512s are available in plastic DIPs and SO-8 surface mount packages. 1.0 LINEARITY ERROR – LSB 0.75 0.5 0.25 0 –0.25 –0.5 –0.75 –1.0 0 1024 2048 3072 4096 DIGITAL INPUT CODE – Decimal Linearity Error vs. Digital Input Code REV. A 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 World Wide Web Site: http://www.analog.com Fax: 617/326-8703 © Analog Devices, Inc., 1996 DAC8512–SPECIFICATIONS ELECTRICAL CHARACTERISTICS (@ V DD = +5.0 V 6 5%, –408C ≤ TA ≤ +858C, unless otherwise noted) Parameter Symbol Condition Min STATIC PERFORMANCE Resolution Relative Accuracy N INL Note 2 Differential Nonlinearity Zero-Scale Error Full-Scale Voltage DNL VZSE VFS No Missing Codes Data = 000H Data = FFFH3 Full-Scale Tempco TCVFS Notes 3, 4 ANALOG OUTPUT Output Current Load Regulation at Full Scale Capacitive Load IOUT LREG CL Data = 800H RL = 402 Ω to ∞, Data = 800H No Oscillation4 LOGIC INPUTS Logic Input Low Voltage Logic Input High Voltage Input Leakage Current Input Capacitance VIL VIH IIL CIL E Grade F Grade 12 –1 –2 –1 E Grade F Grade 4.087 4.079 SUPPLY CHARACTERISTICS Positive Supply Current Max Units ± 1/4 ± 3/4 ± 3/4 +1/2 4.095 4.095 16 +1 +2 +1 +3 4.103 4.111 Bits LSB LSB LSB LSB V V ppm/°C ±7 1 500 3 mA LSB pF 0.8 2.4 10 10 INTERFACE TIMING SPECIFICATIONS1, 4 Clock Width High tCH Clock Width Low tCL Load Pulse Width tLDW Data Setup tDS Data Hold tDH Clear Pulse Width tCLRW Load Setup tLD1 Load Hold tLD2 Select tCSS Deselect tCSH AC CHARACTERISTICS4 Voltage Output Settling Time DAC Glitch Digital Feedthrough ±5 Typ 30 30 20 15 15 30 15 10 30 20 10 10 To ± 1 LSB of Final Value5 16 15 15 IDD VIH = 2.4 V, VIL = 0.8 V, No Load VDD = 5 V, VIL = 0 V, No Load VIH = 2.4 V, VIL = 0.8 V, No Load VDD = 5 V, VIL = 0 V, No Load ∆VDD = ± 5% 1.5 0.5 7.5 2.5 0.002 Power Dissipation PDISS Power Supply Sensitivity PSS ns ns ns ns ns ns ns ns ns ns 10 5 20 tS V V µA pF µs nV s nV s 2.5 1 12.5 5 0.004 mA mA mW mW %/% NOTES 1 All input control signals are specified with tr = tf = 5 ns (10% to 90% of +5 V) and timed from a voltage level of 1.6 V. 2 1 LSB = 1 mV for 0 V to +4.095 V output range. 3 Includes internal voltage reference error. 4 These parameters are guaranteed by design and not subject to production testing. 5 The settling time specification does not apply for negative going transitions within the last 6 LSBs of ground. Some devices exhibit double the typical settling time in this 6 LSB region. Specifications subject to change without notice. –2– REV. A DAC8512 WAFER TEST LIMITS (@ V DD = +5.0 V 6 5%, TA = +258C, applies to part number DAC8512GBC only, unless otherwise noted) Parameter Symbol Condition STATIC PERFORMANCE Relative Accuracy Differential Nonlinearity Zero-Scale Error Full-Scale Voltage INL DNL VZSE VFS No Missing Codes Data = 000H Data = FFFH LOGIC INPUTS Logic Input Low Voltage Logic Input High Voltage Input Leakage Current VIL VIH IIL SUPPLY CHARACTERISTICS Positive Supply Current IDD Power Dissipation PDISS Power Supply Sensitivity PSS Min Typ Max Units ± 3/4 +2 ± 0.7 +1 +1/2 +3 4.085 4.095 4.105 –2 –1 LSB LSB LSB V 0.8 10 V V µA 2.5 1 12.5 5 0.004 mA mA mW mW %/% 2.4 VIH = 2.4 V, VIL= 0.8 V, No Load VDD = 5 V, VIL = 0 V, No Load VIH = 2.4 V, VIL = 0.8 V, No Load VDD = 5 V, VIL = 0 V, No Load ∆VDD = ± 5% 1.5 0.5 7.5 2.5 0.002 NOTE Electrical tests are performed at wafer probe to the limits shown. Due to variations in assembly methods and normal yield loss, yield after packaging is not guaranteed for standard product dice. Consult factory to negotiate specifications based on dice lot qualifications through sample lot assembly and testing. ABSOLUTE MAXIMUM RATINGS* VDD to GND . . . . . . . . . . . . . . . . . . . . . . . . . . . –0.3 V, +10 V Logic Inputs to GND . . . . . . . . . . . . . . . –0.3 V, VDD + 0.3 V VOUT to GND . . . . . . . . . . . . . . . . . . . . . –0.3 V, VDD + 0.3 V IOUT Short Circuit to GND . . . . . . . . . . . . . . . . . . . . . . 50 mA Package Power Dissipation . . . . . . . . . . . . . . (TJ max – TA)/θJA Thermal Resistance θJA 8-Pin Plastic DIP Package (P) . . . . . . . . . . . . . . . . 103°C/W 8-Lead SOIC Package (S) . . . . . . . . . . . . . . . . . . . 158°C/W Maximum Junction Temperature (TJ max) . . . . . . . . . +150°C Operating Temperature Range . . . . . . . . . . . . . –40°C to +85°C Storage Temperature Range . . . . . . . . . . . . . –65°C to +150°C Lead Temperature (Soldering, 10 secs) . . . . . . . . . . . . +300°C *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 indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability . 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 DAC8512 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. ORDERING GUIDE REV. A Model INL Temperature (LSB) Range Package Package Description Option DAC8512EP DAC8512FP DAC8512FS DAC8512GBC ±1 ±2 ±2 ±2 8-Pin P-DIP N-8 8-Pin P-DIP N-8 8-Lead SOIC SO-8 Dice –40°C to +85°C –40°C to +85°C –40°C to +85°C +25°C –3– WARNING! ESD SENSITIVE DEVICE DAC8512 D11 SDI D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 CLK tcss tcsh CS tld1 tld2 LD SDI t ds t dh tcl CLK tch tldw LD tclrw ts CLR VOUT FS ±1 LSB ERROR BAND ZS tS Figure 1. Timing Diagram ESD PROTECTION DIODES TO VDD AND GND CS SHIFT REGISTER CLK DATA SDI Figure 2. Equivalent Clock Input Logic Table I. Control-Logic Truth Table CS2 CLK2 CLR LD Serial Shift Register Function DAC Register Function H L L L ↑+ H H H H X L H ↑+ L X X X X H H H H H H H L ↑+ H H H H H ↓– L X H No Effect No Effect No Effect Shift-Register-Data Advanced One Bit Shift-Register-Data Advanced One Bit No Effect No Effect No Effect No Effect Latched Latched Latched Latched Latched Updated with Current Shift Register Contents Transparent Loaded with All Zeros Latched All Zeros NOTES l ↑+ positive logic transition; ↓– negative logic transition; X = Don’t Care. 2 CS and CLK are interchangeable. 3 Returning CS HIGH avoids an additional “false clock” of serial data input. 4 Do not clock in serial data while LD is LOW. –4– REV. A DAC8512 PIN CONFIGURATIONS SO-8 P-DIP-8 & Cerdip-8 VDD 1 CS 2 CLK 3 SDI 4 OPERATION 8 VOUT DAC8512 VDD 1 7 GND TOP VIEW 6 CLR (Not to Scale) 5 LD 8 VOUT CS 2 DAC8512 7 GND CLK 3 TOP VIEW (Not to Scale) 6 CLR SDI 4 5 LD PIN DESCRIPTIONS Pin Name Description 1 2 3 4 VDD CS CLK SDI 5 6 7 8 The DAC8512 is a complete ready to use 12-bit digital-to-analog converter. It contains a voltage-switched, 12-bit, laser-trimmed DAC, a curvature-corrected bandgap reference, a rail-to-rail output op amp, a DAC register, and a serial data input register. The serial data interface consists of a CLK, serial data in (SDI), and a load strobe (LD). This basic 3-wire interface offers maximum flexibility for interface to the widest variety of serial data input loading requirements. In addition a CS select is provided for multiple packaging loading and a power on reset CLR pin to simplify start or periodic resets. D/A CONVERTER SECTION Positive Supply. Nominal value +5 V, ± 5%. Chip Select. Active low input. Clock input for the internal serial input shift register. Serial Data Input. Data on this pin is clocked into the internal serial register on positive clock edges of the CLK pin. The Most Significant Bit (MSB) is loaded first. LD Active low input which writes the serial register data into the DAC register. Asynchronous input. CLR Active low digital input that clears the DAC register to zero, setting the DAC to minimum scale. Asynchronous input. GND Analog ground for the DAC. This also serves as the digital logic ground reference voltage. VOUT Voltage output from the DAC. Fixed output voltage range of 0 V to 4.095 V with 1 mV/LSB. An internal temperature stabilized reference maintains a fixed full-scale voltage independent of time, temperature and power supply variations. The DAC is a 12-bit voltage mode device with an output that swings from GND potential to the 2.5 volt internal bandgap voltage. It uses a laser trimmed R-2R ladder which is switched by N channel MOSFETs. The output voltage of the DAC has a constant resistance independent of digital input code. The DAC output is internally connected to the rail-to-rail output op amp. AMPLIFIER SECTION The DAC’s output is buffered by a low power consumption precision amplifier. This amplifier contains a differential PNP pair input stage which provides low offset voltage and low noise, as well as the ability to amplify the zero-scale DAC output voltages. The rail-to-rail amplifier is configured in a gain of 1.6384 (= 4.095 V/2.5 V) in order to set the 4.095 volt full-scale output (1 mV/LSB). See Figure 3 for an equivalent circuit schematic of the analog section. VOLTAGE SWITCHED 12-BIT R-2R D/A CONVERTER BANDGAP REFERENCE RAIL-TO-RAIL OUTPUT AMPLIFIER 2R R VOUT BUFFER 2R DICE CHARACTERISTICS CS VDD VOUT 1 8 R2 R 2.5V 2R 7 GND 7 GND 6 CLR SPDT N-CH FET SWITCHES R1 AV = 4.095/2.5 = 1.638V/V 2R 2R 2 Figure 3. Equivalent DAC8512 Schematic of Analog Portion CLK 3 4 5 SDI LD The op amp has a 16 µs typical settling time to 0.01%. There are slight differences in settling time for negative slowing signals vs. positive. See the oscilloscope photos in the typical performances section of this data sheet. SUBSTRATE IS COMMON WITH V DD . NUMBER OF TRANSISTORS : 642 DIE SIZE: 0.055 inch × 0.106 inch; 5830 sq mils REV. A –5– DAC8512 As with any analog system, it is recommended that the DAC8512 power supply be bypassed on the same PC card that contains the chip. Figure 10 shows the power supply rejection versus frequency performance. This should be taken into account when using higher frequency switched mode power supplies with ripple frequencies of 100 kHz and higher. OUTPUT SECTION The rail-to-rail output stage of this amplifier has been designed to provide precision performance while operating near either power supply. VDD P-CH One advantage of the rail-to-rail output amplifier used in the DAC8512 is the wide range of usable supply voltage. The part is fully specified and tested over temperature for operation from +4.75 V to +5.25 V. If reduced linearity and source current capability near full scale can be tolerated, operation of the DAC8512 is possible down to +4.3 volts. The minimum operating supply voltage versus load current plot, in Figure 11, provides information for operation below VDD = +4.75 V. VOUT N-CH AGND TIMING AND CONTROL Figure 4. Equivalent Analog Output Circuit The DAC8512 has a separate serial input register from the 12-bit DAC register that allows preloading of a new data value into the serial register without disturbing the present DAC output voltage. After the new value is fully loaded in the serial input register it can be asynchronously transferred to the DAC register by strobing the LD pin. The DAC register uses a level sensitive LD strobe that should be returned high before any new data is loaded into the serial input register. At any time the contents of the DAC register can be reset to zero by strobing the CLR pin which causes the DAC output voltage to go to zero volts. All of the timing requirements are detailed in Figure 1 along with the Table I Control-Logic Truth Table. Figure 4 shows an equivalent output schematic of the rail-to-rail amplifier with its N channel pull down FETs that will pull an output load directly to GND. The output sourcing current is provided by a P channel pull up device that can supply GND terminated loads, especially at the low supply tolerance values of 4.75 volts. Figures 5 and 6 provide information on output swing performance near ground and full-scale as a function of load. In addition to resistive load driving capability the amplifier has also been carefully designed and characterized for up to 500 pF capacitive load driving capability. POWER SUPPLY The very low power consumption of the DAC8512 is a direct result of a circuit design optimizing use of the CBCMOS process. By using the low power characteristics of the CMOS for the logic, and the low noise, tight matching of the complementary bipolar transistors good analog accuracy is achieved. For power consumption sensitive applications it is important to note that the internal power consumption of the DAC8512 is strongly dependent on the actual logic input voltage levels present on the SDI, CS, LD, and CLR pins. Since these inputs are standard CMOS logic structures they contribute static power dissipation dependent on the actual driving logic VOH and VOL voltage levels. The graph in Figure 9 shows the effect on total DAC8512 supply current as a function of the actual value of input logic voltage. Consequently use of CMOS logic vs. TTL minimizes power dissipation in the static state. A VIL = 0 V on the SDI, CS and CLR pins provides the lowest standby power dissipation of 2.5 mW (500 µA × 5 V). –6– REV. A Typical Performance Characteristics — DAC8512 100 VDD = +5V TA = +25 8C OUTPUT VOLTAGE – Volts 4 RL TIED RL TIED TO TO AGND AGND D DATA = FFFH = FFF H 3 2 1 R L TIED TO +5V DATA = 000H 10 100 1k 10k LOAD RESISTANCE – V 10 T A = +85 8C 1 T A = +25 8C 0.1 TA = –40 8C 1 10 100 OUTPUT SINK CURRENT – mA 1000 –20 –40 –60 SUPPLY CURRENT – mA 90 CODE = FFFH = 409510 BW = 630kHz SCALE = 100X TA = +25 8C TIME = 2ms/DIV VDD = +5V 3.2 1 2 3 OUTPUT VOLTAGE – Volts TA = +258 C NO LOAD 2.4 1.6 0.8 V DD = +5V 6200mV AC 0 1 2 3 4 LOGIC VOLTAGE VALUE – Volts 60 40 20 0 5 Figure 9. Supply Current vs. Logic Input Voltage T A = +25 8C DATA = FFF H 80 0.0 Figure 8. Broadband Noise NEG CURRENT LIMIT 100 POWER SUPPLY REJECTION – dB 100 2mS DATA = 800 H RL TIED TO +2V 0 Figure 7. Short Circuit Current 4.0 0% 20 –100 Figure 6. Pull-Down Voltage vs. Output Sink Current Capability 50mV 10 40 –80 100k Figure 5. Output Swing vs. Load POS0 CURRENT0 LIMIT0 60 DATA = 000H 0.01 0 OUTPUT NOISE VOLTAGE – 500µV/DIV 80 VDD = +5V OUTPUT CURRENT – mA OUTPUT PULL-DOWN VOLTAGE – mV 5 10 100 1k 10k FREQUENCY – Hz 100k Figure 10. Power Supply Rejection vs. Frequency 5.0 LD PROPER OPERATION WHEN V DD SUPPLY VOLTAGE ABOVE CURVE 90 2048 10 TO 204710 2.048 R L = NO LOAD CL = 110pF 2.038 10 0% 2.028 4.2 1V/DIV 4.6 4.4 100 0 VOUT – Volts VDD MIN – Volts 4.8 1V 5 ∆VFS ≤ 1 LSB DATA = FFF H TA = +25 8C TA = +258 C VDD = 5V TA = +258C 2.018 20µs TIME = 20µs/DIV 4.0 0.01 0.04 0.1 0.4 4.0 1.0 OUTPUT LOAD CURRENT – mA 10 Figure 11. Minimum Supply Voltage vs. Load REV. A TIME – 200ns/DIV Figure 12. Midscale DAC Glitch Performance –7– Figure 13. Large Signal Settling Time DAC8512 — Typical Performance Characteristics 2.0 VDD = +5V TA = –408C, +258C, +858C OUTPUT VOLTAGE 1mV/DIV 16µs V DD = +5V T A = +258 C R L = NO LOAD LINEARITY ERROR – LSB LD 0 5 0 OUTPUT VOLTAGE 1mV/DIV LD 1.5 5 V DD = +5V T A = +25 8C R L = NO LOAD –408C 0.5 0.0 –0.5 +258C & +858C –1.0 –1.5 –2.0 TIME – 10µs/DIV TIME – 10µs/DIV 1.0 0 512 1024 1536 2048 2560 3072 3584 4096 DIGITAL INPUT CODE – Decimal Figure 14. Rise Time Detail 40 30 20 10 VDD = +5V NO LOAD SS = 300 PCS 4.110 4.105 AVG + 3σ 4.100 4.095 AVG 4.090 AVG – 3σ 4.085 DATA = 000 H NO LOAD VDD = +5.0V 2 1 0 4.080 0 –12 4.075 –50 –8 –4 0 +4 +8 +12 TOTAL UNADJUSTED ERROR – mV Figure 17. Total Unadjusted Error Histogram –25 0 25 50 75 TEMPERATURE – 8C 100 –1 –50 125 Figure 18. Full-Scale Voltage vs. Temperature –25 0 25 50 75 TEMPERATURE – 8C 0.1 0.01 10 VLOGIC = 2.4V DATA = FFF H 4 3 SUPPLY CURRENT – mA OUTPUT VOLTAGE CHANGE – mV 1 2 1 0 AVERAGE –1 –2 –3 1k 10k FREQUENCY – Hz 100k Figure 20. Output Voltage Noise vs. Frequency NO LOAD 3 VDD = +5.0V 2 VDD = +5.25V 1 VDD = +4.75V READINGS NORMALIZED TO ZERO HOUR TIME POINT –4 –5 100 125 4 135 UNITS TESTED VDD = +5V TA = +258C DATA = FFF H 100 Figure 19. Zero-Scale Voltage vs. Temperature 5 10 OUTPUT NOISE DENSITY – µV/√ Hz 3 4.115 RANGE NUMBER OF UNITS 50 Figure 16. Linearity Error vs. Digital Code ZERO-SCALE – mV TUE = ∑INL + ZS + FS SS = 300 UNITS T A = +25 8C FULL-SCALE OUTPUT – Volts 60 Figure 15. Fall Time Detail 0 200 400 600 800 1000 1200 HOURS OF OPERATION AT +1258C Figure 21. Long Term Drift Accelerated by Burn-In –8– 0 –50 –25 0 25 50 75 TEMPERATURE – 8C 100 125 Figure 22. Supply Current vs. Temperature REV. A Typical Performance Characteristics— DAC8512 APPLICATIONS SECTION Power Supplies, Bypassing, and Grounding All precision converter products require careful application of good grounding practices to maintain full rated performance. Because the DAC8512 has been designed for +5 V applications, it is ideal for those applications under microprocessor or microcomputer control. In these applications, digital noise is prevalent; therefore, special care must be taken to assure that its inherent precision is maintained. This means that particularly good engineering judgment should be exercised when addressing the power supply, grounding, and bypassing issues using the DAC8512. The power supply used for the DAC8512 should be well filtered and regulated. The device has been completely characterized for a +5 V supply with a tolerance of ± 5%. Since a +5 V logic supply is almost universally available, it is not recommended to connect the DAC directly to an unfiltered logic supply without careful filtering. Because it is convenient, a designer might be inclined to tap a logic circuit’s supply for the DAC’s supply. Unfortunately, this is not wise because fast logic with nanosecond transition edges induce high current pulses. The high transient current pulses can generate glitches hundreds of millivolts in amplitude due to wiring resistances and inductances. This high frequency noise will corrupt the analog circuits internal to the DAC and cause errors. Even though their spike noise is lower in amplitude, directly tapping the output of a +5 V system supply can cause errors because these supplies are of the switching regulator type that can and do generate a great deal of high frequency noise. Therefore, the DAC and any associated analog circuitry should be powered directly from the system power supply outputs using appropriate filtering. Figure 23 illustrates how a clean, analog-grade supply can be generated from a +5 V logic supply using a differential LC filter with separate power supply and return lines. With the values shown, this filter can easily handle 100 mA of load current without saturating the ferrite cores. Higher current capacity can be achieved with larger ferrite cores. For lowest noise, all electrolytic capacitors should be low ESR (Equivalent Series Resistance) type. FERRITE BEADS: 2 TURNS, FAIR-RITE #2677006301 TTL/CMOS LOGIC CIRCUITS 100µF ELECT . the ground connection of the DAC8512 be connected to a high quality analog ground, such as the one described above. Generous bypassing of the DAC’s supply goes a long way in reducing supply line-induced errors. Local supply bypassing consisting of a 10 µF tantalum electrolytic in parallel with a 0.1 µF ceramic is recommended. The decoupling capacitors should be connected between the DAC’s supply pin (Pin 1) and the analog ground (Pin 7). Figure 24 shows how the ground and bypass connections should be made to the DAC8512. +5V 1 VDD CLR 6 DAC8512 LD 5 SCLK 3 SDI 4 VOUT VOUT Figure 24. Recommended Grounding and Bypassing Scheme for the DAC8512 Unipolar Output Operation This is the basic mode of operation for the DAC8512. As shown in Figure 24, the DAC8512 has been designed to drive loads as low as 2 kΩ in parallel with 500 pF. The code table for this operation is shown in Table II. +5V 10µF 0.1µF CS 2 CLR 6 LD 5 SCLK 3 SDI 4 1 VDD DAC8512 0V ≤ VOUT ≤ 4.095V VOUT 8 2kΩ 500pF GND 7 Figure 25. Unipolar Output Operation +5V POWER SUPPLY In order to fit the DAC8512 in an 8-pin package, it was necessary to use only one ground connection to the device. The ground connection of the DAC serves as the return path for supply currents as well as the reference point for the digital input thresholds. The ground connection also serves as the supply rail for the internal voltage reference and the output amplifier. Therefore, to minimize any errors, it is recommended that 8 GND 0.1µF CER. Figure 23. Properly Filtering a +5 V Logic Supply Can Yield a High Quality Analog Supply 0.1µF TO ANALOG GROUND +5V RETURN REV. A 2 7 +5V 10-22µF TANT. 10µF CS Table II. Unipolar Code Table Hexadecimal Number in DAC Register Decimal Number in DAC Register Analog Output Voltage (V) FFF 801 800 7FF 000 4095 2049 2048 2047 0 +4.095 +2.049 +2.048 +2.047 0 –9– DAC8512 Operating the DAC8512 on +12 V or +15 V Supplies Only Although the DAC8512 has been specified to operate on a single, +5 V supply, a single +5 V supply may not be available in many applications. Since the DAC8512 consumes no more than 2.5 mA, maximum, then an integrated voltage reference, such as the REF02, can be used as the DAC8512 +5 V supply. The configuration of the circuit is shown in Figure 26. Notice that the reference’s output voltage requires no trimming because of the REF02’s excellent load regulation and tight initial output voltage tolerance. Although the maximum supply current of the DAC8512 is 2.5 mA, local bypassing of the REF02’s output with at least 0.1 µF at the DAC’s voltage supply pin is recommended to prevent the DAC’s internal digital circuits from affecting the DAC’s internal voltage reference. +12V OR +15V 0.1µF 2 REF02 6 0.1µF By adding a pull-down resistor from the output of the DAC8412 to a negative supply as shown in Figure 27, offset errors can now be read at zero code. This configuration forces the output p-channel MOSFET to source current to the negative supply thereby allowing the designer to determine in which direction the offset error appears. The value of the resistor should be such that, at zero code, current through the resistor is 200 µA, maximum. Bipolar Output Operation Although the DAC8512 has been designed for single-supply operation, bipolar operation is achievable using the circuit illustrated in Figure 28. The circuit uses a single-supply, rail-to-rail OP295 op amp and the REF03 to generate the –2.5 V reference required to level-shift the DAC output voltage. Note that the – 2.5 V reference was generated without the use of precision resistors. The circuit has been configured to provide an output voltage in the range –5 V ≤ VOUT ≤ +5 V and is coded in complementary offset binary. Although each DAC LSB corresponds to 1 mV, each output LSB has been scaled to 2.44 mV. Table III provides the relationship between the digital codes and output voltage. 4 The transfer function of the circuit is given by: 1 CS 2 VDD CLR 6 DAC8512 LD 5 SCLK 3 SDI 4 VO = –1 mV × Digital Code × 8 VOUT R4 R4 + 2.5 × R1 R2 and, for the circuit values shown, becomes: VO = –2.44 mV × Digital Code + 5 V GND +5V 7 0.1µF 10µF + FULL SCALE ADJUST R4 23.7kΩ Figure 26. Operating the DAC8512 on +12 V or +15 V Supplies Using a REF02 Voltage Reference Measuring Offset Error One of the most commonly specified endpoint errors associated with real world nonideal DACs is offset error. In most DAC testing, the offset error is measured by applying the zero-scale code and measuring the output deviation from 0 volt. There are some DACs where offset errors may be present but not observable at the zero scale because of other circuit limitations (for example, zero coinciding with single-supply ground). In these DACs, nonzero output at zero code cannot be read as the offset error. In the DAC8512, for example, the zero-scale error is specified to be ± 3 LSBs. Since zero scale coincides with zero volt, it is not possible to measure negative offset error. 0.1µF CLR 6 LD 5 CS 2 SCLK 3 SDI 4 1 VDD P3 +5V 500Ω R1 10kΩ DAC8512 R2 12.7k R3 247kΩ A2 5 7 4 –5V ≤ V O ≤ +5V GND 7 –2.5V –5V P2 10kΩ ZERO SCALE ADJUST +5V 0.1µF 0.01µF 2 2.5V TRIM 100Ω 6 +5V 8 6 8 REF03 5 2 P1 10kΩ A1 1 –2.5V 3 4 1 CS 2 VDD CLR 6 DAC8512 LD 5 SCLK 3 SDI 4 A1, A2 = 1/2 OP295 8 Figure 28. Bipolar Output Operation VOUT 200µA, MAX R GND 7 V– SET CODE = 000H AND MEASURE V OUT Figure 27. Measuring Zero-Scale or Offset Error –10– REV. A DAC8512 Generating a Negative Supply Voltage Table III. Bipolar Code Table Hexadecimal Number in DAC Register Decimal Number in DAC Register Analog Output Voltage (V) FFF 801 800 7FF 000 4095 2049 2048 2047 0 –4.9976 –2.44E–3 0 +2.44E–3 +5 To maintain monotonicity and accuracy, R1, R2, and R4 should be selected to match within 0.01% and must all be of the same (preferably metal foil) type to assure temperature coefficient matching. Mismatching between R1 and R2 causes offset and gain errors while an R4 to R1 and R2 mismatch yields gain errors. For applications that do not require high accuracy, the circuit illustrated in Figure 29 can also be used to generate a bipolar output voltage. In this circuit, only one op amp is used and no potentiometers are used for offset and gain trim. The output voltage is coded in offset binary and is given by: Some applications may require bipolar output configuration but only have a single power supply rail available. This is very common in data acquisition systems using microprocessor-based systems. In these systems, +12 V, +15 V, and/or +5 V are only available. Shown in Figure 30 is a method of generating a negative supply voltage using one CD4049, a CMOS hex inverter, operating on +12 V or +15 V. The circuit is essentially a charge pump where two of the six are used as an oscillator. For the values shown, the frequency of oscillation is approximately 3.5 kHz and is fairly insensitive to supply voltage because R1 > 2 × R2. The remaining four inverters are wired in parallel for higher output current. The square wave output is level translated by C2 to a negative-going signal, rectified using a pair of 1N4001s, and then filtered by C3. With the values shown, the charge pump will provide an output voltage of –5 V for current loadings in the range 0.5 mA ≤ IOUT ≤ 10 mA with a +15 V supply and 0.5 mA ≤ IOUT ≤ 7 mA with a +12 V supply.  R4   R2 VO = 1 mV × Digital Code ×  R3 + R4 × 1+ R1     –2.5 × 3 R1 510kΩ R2 R1 6 2 5 9 10 11 12 14 15 4 C2 47µF D2 1N4001 R3 470Ω –5V R2 5.1kΩ D1 1N4001 C3 47µF 1N5231 5.1V ZENER C1 0.02µF +5V Figure 30. Generating a –5 V Supply When Only +12 V or +15 V Is Available 0.1µF 2 6 A High-Compliance, Digitally Controlled Precision Current Source R2 R1 REF03 +2.5V +5V 4 8 2 +5V A1 0.1µF 1 VO 4 3 1 CS 2 CLR 6 LD 5 SCLK 3 SDI 4 –5V VDD The circuit in Figure 31 shows the DAC8512 controlling a high-compliance precision current source using an AMP05 instrumentation amplifier. The AMP05’s reference pin becomes the input, and the “old” inputs now monitor the voltage across a precision current sense resistor, RCS. Voltage gain is set to unity, so the transfer function is given by the following equation: A1 = 1/2 OP295 DAC8512 R3 V IN 8 IOUT = R CS R4 GND 7 VOUT RANGE R1 R2 R3 R4 62.5V 10k 10k 10k 15.4k + 274 65V 10k 20k 10k 43.2k + 499 Figure 29. Bipolar Output Operation without Trim For the ± 2.5 V output range and the circuit values shown in the table, the transfer equation becomes: If RCS equals 100 Ω, the output current is limited to +10 mA with a 1 V input. Therefore, each DAC LSB corresponds to 2.4 µA. If a bipolar output current is required, then the circuit in Figure 28 can be modified to drive the AMP05’s reference pin with a ± 1 V input signal. Potentiometer P1 trims the output current to zero with the input at 0 V. Fine gain adjustment can be accomplished by adjusting R1 or R2. VO = 1.22 mV × Digital Code – 2.5 V Similarly, for the ± 5 V output range, the transfer equation becomes: VO = 2.44 mV × Digital Code – 5 V REV. A 7 INVERTERS = CD4049 –11– DAC8512 R2 5kΩ 7 17 OP295’s feedback loop. For the circuit values shown, the fullscale output current is 1 mA which is given by the following equation: +15V 0.1µF 6 18 12 R1 100k AMP05 10 9 1 where DW = DAC8512’s binary digital input code. 0mA ≤ I OUT 2.4µA/ BIT 8 DW × 4.095V R1 IOUT = RCS 100Ω ≤ 10mA +5V 0.1µF 11 VS 5 2 1 4 P1 100kΩ 0.1µF –15V 0.1µF CS 2 CLR 6 LD 5 SCLK 3 SDI 4 LOAD DAC8512FP +5V 3 8 A1 1 7 +15V A1 = 1/2 OP295 2 REF02 2N2222 2 P1 200Ω FULL-SCALE ADJUST 0.1µF 6 4 R1 4.02kΩ 1 CS 2 CLR 6 LD 5 SCLK 3 SDI 4 Figure 32. A Single-Supply, Programmable Current Source R3 3k DAC8512FZ 8 The usable output voltage range of the current sink is +5 V to +60 V. The low limit of the range is controlled by transistor saturation, and the high limit is controlled by the collector-base breakdown voltage of the 2N2222. R4 1k 7 A Digitally Programmable Window Detector A digitally programmable, upper/lower limit detector using two DAC8512s is shown in Figure 33. The required upper and lower limits for the test are loaded into each DAC individually by controlling HDAC/LDAC. If a signal at the test input is not within the programmed limits, the output will indicate a logic zero which will turn the red LED on. Figure 31. A High-Compliance, Digitally Controlled Precision Current Source A Single-Supply, Programmable Current Source The circuit in Figure 32 shows how the DAC8512 can be used with an OP295 single-supply, rail-to-rail output op amp to provide a digitally programmable current sink from VSOURCE that consumes less than 3.8 mA, maximum. The DAC’s output voltage is applied across R1 by placing the 2N2222 transistor in the +5V 0.1µF +5V VIN +5V 1 1kΩ +5V 6 2 DAC8512 4 RED LED T1 3 7 2 GREEN LED T1 5 +5V 1/6 74HC05 R2 604Ω 0.1µF 8 3 R1 604Ω +5V 5 0.1µF C1 2 C2 1 PASS/FAIL 4 1 1 CLR 6 HDAC/LDAC 2 LD 5 SCLK 3 SDI 4 7 3 6 DAC8512 4 1/6 74HC05 12 8 C1, C2 = 1/4 CMP-404 7 Figure 33. A Digitally Programmable Window Detector –12– REV. A DAC8512 Opto-Isolated Interfaces for Process Control Environments HIGH VOLTAGE ISOLATION In many process control type applications, it is necessary to provide an isolation barrier between the controller and the unit being controlled. Opto-isolators can provide isolation in excess of 3 kV. The serial loading structure of the DAC8512 makes it ideal for opto-isolated interfaces as the number of interface lines is kept to a minimum. +5V REG +5V POWER +5V Illustrated in Figure 34 is an opto-isolated interface using the DAC8512. In this circuit, the CS line is always LOW to enable the DAC, and the 10 kΩ/1 µF combination connected to the DAC’s CLR pin sets a turn-on time constant of 10 ms to reset the DAC upon application of power. Three opto-couplers are then used for the SDI, SCLK, and LD lines. 10kΩ LD LD +5V +5V 0.1µF 10kΩ Often times reducing the number of interface lines to two lines is required in many control environments. The circuit illustrated in Figure 35 shows how to convert a two-line interface into the three control lines required to control the DAC8512 without using one shots. This technique uses a counter to keep track of the clock cycles and, when all the data has been input to the DAC, the external logic generates the LD pulse. 1 0.1µF +5V 6 10kΩ SCLK 5 DAC8512 3 SCLK 8 4 2 CS 7 +5V 10kΩ SDI SDI Figure 34. An Opto-Isolated DAC Interface HIGH VOLTAGE ISOLATION +5V REG +5V +5V POWER 10kΩ +5V +5V 1µF 74HC161 10kΩ SCLK +5V 10kΩ 0.1µF 1 CLR VCC 16 2 CLK RCO 15 NC 1 3 A QA 14 NC 2 4 B QB 13 NC 5 C QC 12 QD 11 ENP ENT 10 GND LOAD 9 6 D 7 8 +5V 1/4 74HCOO X 3 +5V +5V 4 10kΩ 5 1/4 74HCOO Y 6 SDI 5 LD 6 1 CLR VDD 8 3 SCLK 4 SDI 2 CS DAC8512 GND 7 Figure 35. A Two-Wire, Opto-lsolated DAC Interface REV. A 0.1µF 10kΩ –13– VOUT VOUT DAC8512 LOAD DAC COUNTER CLK QD QC QB QA LOAD (X) DAC8512 CLK (Y) LOAD = QC · QD DAC8512 CLK = LOAD · SCLK Figure 36. Opto-lsolated Two-Wire Serial Interface Timing Diagram The timing diagram of Figure 36 can be used to understand the operation of the circuit. Only two opto-couplers are used in the circuit; one for SCLK and one for SDI. The 74HC161 counter in incremented on every rising edge of the clock. Additionally, the data is loaded into the DAC8512 on the falling edge of the clock by inverting the serial clock using gate “Y.” The timing diagram shows that after the twelfth bit has been clocked the output of the counter is binary 1011. On the very next rising clock edge, the output of the counter changes to binary 1100 upon which the output of gate “X” goes LOW to generate the LD pulse. The LD signal is connected to both the DAC’s LD and the counter’s LOAD pins to prevent the thirteenth rising clock edge from advancing the DAC’s internal shift register. This prevents false loading of data into the DAC8512. Inverting the DAC’s serial clock allows sufficient time from the CLK edge to the LD edge, and from the LD edge to the next clock pulse all of which satisfies the timing requirements for loading the DAC8512. ENABLE input while the coded address inputs are changing. A simple timing circuit, R1 and C1, connected to the DACs’ CLR pins resets all DAC outputs to zero during power-up. After loading one address of the DAC, the entire process can repeated to load another address. If the loading is complete, then the clock must stop after the thirteenth pulse of the final load. The DAC’s clock input will be pulled high and the counter reset to zero. As was shown in Figure 35, both the 74HC161’s and the DAC8512’s CLR pins are connected to a simple R-C timing circuit that resets both ICs when the power in turned on. The circuit’s time constant should be set longer than the power supply turn-on time and, in this circuit, is set to 10 ms, which should be adequate for most systems. This same two-wire interface can be used for other three-wire serial input DACs. Decoding Multiple DAC8512s +5V 6 SCLK 3 SDI 4 LD 5 DAC8512 #1 VOUT1 8 2 6 3 +5V 4 74HC139 16 1 ENABLE 2 CODED ADDRESS +5V 3 15 1kΩ 14 13 The CS function of the DAC8512 can be used in applications to decode a number of DACs. In this application, all DACs receive the same input data; however, only one of the DAC’s CS input is asserted to transfer its serial input register contents into the destination DAC register. In this circuit, shown in Figure 37, the CS timing is generated by a 74HC139 decoder and should follow the DAC8512’s standard timing requirements. To prevent timing errors, the 74HC139 should not be activated by its C1 0.1µF R1 1k 8 VCC 1Y0 1G 1Y1 1A 1Y2 1B 1Y3 2G 2Y0 2A 2Y1 2B 2Y2 GND 2Y3 DAC8512 #2 5 4 VOUT2 8 2 5 6 6 7 12 11 10 9 3 NC NC NC 4 DAC8512 #3 5 VOUT3 8 2 NC 6 3 4 5 DAC8512 #4 VOUT4 8 2 Figure 37. Decoding Multiple DAC8512s Using the CS Pin –14– REV. A DAC8512 R1 619Ω R2 4.32kΩ V+ AD600JN +625mV 1 16 2 15 3 14 R3 402Ω R5 806Ω 0.1µF 4 VI N 13 V+ 12 V– 0.1µF V+ 0.1µF REF 5 6 11 7 10 8 9 R4 49.9Ω 2 AD844 R4 402Ω 6 VOUT 0.01dB/BIT 3 0.1µF V– V+ SUPPLY DECOUPLING NETWORK 0.1µF +5V 10µF 1 CS 2 CLR 6 LD 5 SCLK 3 SDI 4 R6 2.26kΩ DAC8512FZ V– 0 ≤ V G ≤ 1.25V 8 1µF FB = FAIR RITE #2743001111 V+ R7 1kΩ 10µF –5V 7 Figure 38. A Digitally Controlled, Ultralow Noise VCA A Digitally Controlled, Ultralow Noise VCA +70 +60 +50 4095 SYSTEM GAIN – dB The circuit in Figure 38 illustrates how the DAC8512 can be used to control an ultralow noise VCA, using the AD600/ AD602. The AD600/AD602 is a dual, low noise, wideband, variable gain amplifier based on the X-AMP topology.* Both channels of the AD600 are wired in parallel to achieve a wideband VCA which exhibits an RTI (Referred To Input) noise voltage spectral density of approximately 1 nV/√Hz. The output of the VCA requires an AD844 configured in a gain of 4 to account for signal loss due to input and output 50 Ω terminations. As configured, the total gain in the circuit is 40 dB. +40 3072 +30 2048 +20 1024 +10 0 0 –10 Since the output of the DAC8512 is single quadrant, it was necessary to offset the AD600’s gain control voltage so that the gain of the circuit is 0 dB for zero scale and 40 dB at full scale. This was achieved by setting C1LO and C2LO to +625 mV using R1 and R2. Next, the output of the DAC8512 was scaled so that the gain of the AD600 equaled 20 dB when the digital input code equaled 800H. The frequency response of the VCA as a function of digital code is shown in Figure 39. *For more details regarding the AD600 or AD602, please consult the AD600/ AD602 data sheet. REV. A –15– –20 –30 10k 100k 1M 10M 100M FREQUENCY – Hz Figure 39. VCA Frequency Response vs. Digital Code DAC8512 Table IV. SSM-2018 VCA Attenuation vs. DAC8512 Input Code A Serial DAC, Audio Volume Control The DAC8512 is well suited to control digitally the gain or attenuation of a voltage controlled amplifier. In professional audio mixing consoles, music synthesizers, and other audio processors, VCAs, such as the SSM2018, adjust audio channel gain and attenuation from front panel potentiometers. The VCA provides a clean gain transition control of the audio level when the slew rate of the analog input control voltage, VC, is properly chosen. The circuit in Figure 40 illustrates a volume control application using the DAC8512 to control the attenuation of the SSM2018. Hexadecimal Number in DAC Register Control Voltage (V) VCA Attenuation (dB) 000 400 800 C00 FFF 0 +0.56 +1.12 +1.68 +2.24 0 20 40 60 80 +15V digital code equals FFFH. Therefore, every DAC LSB corresponds to 0.02 dB of attenuation. Table IV illustrates the attenuation vs. digital code of the volume control circuit. 10MΩ P1 100kΩ OFFSET TRIM P2 500kΩ SYMMETRY TRIM 470kΩ 10pF –15V 18kΩ VOUT +15V 0.1µF 1 16 2 15 3 14 4 13 SSM2018 5 18kΩ VIN +15V 0.1µF 30kΩ +15V 12 6 11 7 10 8 9 –15V To compensate for the SSM2018’s gain constant temperature coefficient of –3300 ppm/°C, a 1 kΩ, temperature-sensitive resistor (R7) manufactured by the Precision Resistor Company with a temperature coefficient of +3500 ppm/°C is used. A CCON of 1 µF provides a control transition time of 1 ms which yields a click-free change in the audio channel attenuation. Symmetry and offset trimming details of the VCA can be found in the SSM2018 data sheet. Information regarding the PT146 1 kΩ “Compensator” can be obtained by contacting: Precision Resistor Company, Incorporated 10601 75th Street North Largo, Fl 34647 (813) 541-5771 0.1µF 47pF 2 REF02 +5V 0.1µF 6 4 An Isolated, Programmable, 4-20 mA Process Controller 1 CS 2 CLR 6 LD 5 SCLK 3 SDI 4 R6 825Ω DAC8512 0V ≤ V C ≤ +2.24V 8 R7 1kΩ * C CON 1µF 7 * – PRECISION RESISTOR PT146 1kΩ COMPENSATOR Figure 40. A Serial DAC, Audio Volume Control Since the supply voltage available in these systems is typically ± 15 V or ± 18 V, a REF02 is used to supply the +5 V required to power the DAC. No trimming of the reference is required because of the reference’s tight initial tolerance and low supply current consumption of the DAC8512. The SSM2018 is configured as a unity-gain buffer when its control voltage equals 0 volt. This corresponds to a 000H code from the DAC8512. Since the SSM2018 exhibits a gain constant of –28 mV/dB (typical), the DAC’s full-scale output voltage has to be scaled down by R6 and R7 to provide 80 dB of attenuation when the In many process control system, applications, two-wire current transmitters are used to transmit analog signals through noisy environments. These current transmitters use a “zero-scale” signal current of 4 mA that can be used to power the transmitter’s signal conditioning circuitry. The “full-scale” output signal in these transmitters is 20 mA. The converse approach to process control can also be used; a low-power, programmable current source can be used to control remotely located sensors or devices in the loop. A circuit that performs this function is illustrated in Figure 41. Using the DAC8512 as the controller, the circuit provides a programmable output current of 4 mA to 20 mA, proportional to the DAC’s digital code. Biasing for the controller is provided by the REF02 and requires no external trim for two reasons: (1) the REF02’s tight initial output voltage tolerance and (2) the low supply current consumption of both the OP90 and the DAC8512. The entire circuit, including opto-couplers, consumes less than 3 mA from the total budget of 4 mA. The OP90 regulates the output current to satisfy the current summation at the noninverting node of the OP-90. The KCL equation at Pin 3 is given by: 1 1 mV × Digital Code × R3 V REF × R3 +  IOUT = R7 ×  R2 R1   –16– REV. A DAC8512 6 R2 976kΩ 6 LD 5 SCLK 3 SCI +12 TO +40V R1 200kΩ DAC8512 8 4 7 D1 R6 150Ω 7 3 P1 10kΩ 20mA ADJUST OP90 2 Q1 2N1711 6 4 4–20mA R5 100k R4 54.9k R3 80.6k VLOOP 4 P2 50Ω 4mA ADJUST 1 CLR 2 REF02 RL D1 = HP5082-2810 100Ω R7 100Ω +5V 10kΩ SCLK 360Ω REPEAT FOR SDI, LD, & CLR ILQ-1 CLK Figure 41. An Isolated, Programmable, 4-20 mA Process Controller For the values shown in Figure 41, MC68HC11* IOUT = 3.9 µA × Digital Code + 4 mA giving a full-scale output current of 20 mA when the DAC8512’s digital code equals FFFH. Offset trim at 4 mA is provided by P2, and P1 provides the circuit’s gain trim at 20 mA. These two trims do not interact because the noninverting input of the OP90 is at virtual ground. The Schottky diode, D1, is required in this circuit to prevent loop supply power-on transients from pulling the noninverting input of the OP90 more than 300 mV below its inverting input. Without this diode, such transients could cause phase reversal of the OP90 and possible latchup of the controller. The loop supply voltage compliance of the circuit is limited by the maximum applied input voltage to the REF02 and is from +12 V to +40 V. MICROPROCESSOR INTERFACING DAC8512–MC68HC11 Interface The circuit illustrated in Figure 42 shows a serial interface between the DAC8512 and the MC68HC11 8-bit microcontroller. SCK of the 68HC11 drives SCLK of the DAC8512, while the MOSI output drives the serial data line, SDI, of the DAC8512. The DAC’s CLR, LD, and CS signals are derived from port lines PC1, PD5, and PC0, respectively, as shown. For correct operation of the serial interface, the 68HC11 should be configured such that its CPOL bit is set to 1 and its CPHA bit is also set to 1. When the serial data is to be transmitted to the DAC, PC0 is taken low, asserting the DAC’s CS input. When the 68HC11 is configured in this manner, serial data on REV. A DAC8512* PC1 CLR PC0 CS SS LD SCK CLK MOSI SDI *ADDITIONAL PINS OMITTED FOR CLARITY Figure 42. DAC8512–MC68HC11 Interface MOSI is valid on the rising edge of SCLK. The 68HC11 transmits its serial data in 8-bit bytes (MSB first), with only eight rising clock edges occurring in the transmit cycle. To load data to the DAC8512’s input serial register, PC0 is left low after the first eight bits are transferred, and a second byte of data is then transferred serially to the DAC8512. During the second byte load, the first four most significant bits of the first byte are pushed out of the DAC’s input shift register. At the end of the second byte load, PC0 is then taken high. To prevent an accidental advancing of the internal shift register, SCLK must already be asserted before PC0 is taken high. To transfer the contents of the input shift register to the DAC register, PD5 is taken low, asserting the DAC’s LD input. The DAC’s CLR input, controlled by the 68HC11’s PC1 port, provides an asynchronous clear function, setting the DAC output to zero. Included in this section is the source code for operating the DAC8512—M68HC11 interface. –17– DAC8512 DAC8512–M68HC11 Interface Program Source Code * PORTC * DDRC PORTD * DDRD SPCR * SPSR * SPDR * EQU $1003 EQU EQU $1007 $1008 EQU EQU $1009 $1028 EQU $1029 EQU $102A * SDI RAM variables: * * * * SDI1 EQU SDI2 EQU * ORG INIT LDS * LDAA * STAA LDAA STAA * LDAA * STAA LDAA STAA * LDAA STAA * BSR JMP * UPDATE PSHX PSHY PSHA * LDAA STAA * LDAA STAA * LDX LDY * BCLR Port C control register “0,0,0,0;0,0,CLR/,CS/” Port C data direction Port D data register “0,0,LD/,SCLK;SDI,0,0,0 Port D data direction SPI control register “SPIE,SPE,DWOM,MSTR;CPOL,CPHA,SPRl,SPR0” SPI status register “SPIF,WCOL,0,MODF;0,0,0,0” SPI data register; Read-Buffer; Write-Shifter SDI1 is encoded from 0 (Hex) to F (Hex) SDI2 is encoded from 00 (Hex) to FF (Hex) DAC requires two 8-bit loads; upper 4 bits of SDI1 are ignored. $00 $01 SDI packed byte 1 “0,0,0,0;MSB,DB10,DB9,DB8” SDI packed byte 2 “DB7,DB6,DB5,DB4;DB3,DB2,DB1,DB0” $C000 #$CFFF Start of user’s RAM in EVB Top of C page RAM #$03 0,0,0,0;0,0,1,1 CLR/-Hi, CS/-Hi Initialize Port C Outputs 0,0,0,0;0,0,1,1 CLR/ and CS/ are now enabled as outputs PORTC #$03 DDRC #$30 PORTD #$38 DDRD 0,0,1,1;0,0,0,0 LDI-Hi,SCLK-Hi,SDI-Lo Initialize Port D Outputs 0,0,1,1;1,0,0,0 LD/,SCLK, and SDI are now enabled as outputs #$5F SPCR SPI is Master,CPHA=1,CPOL=1,Clk rate=E/32 UPDATE $E000 Xfer 2 8-bit words to DAC8512 Restart BUFFALO Save registers X, Y, and A BSET #$0A SDI1 0,0,0,0;1,0,1,0 SDI1 is set to 0A (Hex) #$AA SDI2 1,0,1,0;1,0,1,0 SDI2 is set to AA (Hex) #SDI1 #$1000 Stack pointer at 1st byte to send via SDI Stack pointer at on-chip registers PORTC,Y $02 Assert CLR/ PORTC,Y $02 De-assert CLR/ * BCLR PORTC,Y $01 Assert CS/ * –18– REV. A DAC8512 TFRLP * WAIT LDAA STAA 0,X SPDR Get a byte to transfer via SPI Write SDI data reg to start xfer LDAA BPL SPSR WAIT INX CPX BNE #SDI2+1 TFRLP Loop to wait for SPIF SPIF is the MSB of SPSR (when SPIF is set, SPSR is negated) Increment counter to next byte for xfer Are we done yet ? If not, xfer the second byte * * *Update DAC output with contents of DAC register * BCLR PORTD,Y $20 Assert LD/ BSET PORTD,Y $20 Latch DAC register * BSET PORTC,Y $01 De-assert CS/ PULA When done, restore registers X, Y & A PULY PULX RTS ** Return to Main Program ** REV. A –19– DAC8512 OUTLINE DIMENSIONS Dimensions shown in inches and (mm). 8 5 1 4 C1734–xx–11/96 8-Pin Plastic DIP (P Suffix) 0.280 (7.11) 0.240 (6.10) 0.070 (1.77) 0.045 (1.15) 0.430 (10.92) 0.348 (8.84) 0.325 (8.25) 0.300 (7.62) 0.015 (0.381) TYP 0.210 (5.33) MAX 0.195 (4.95) 0.115 (2.93) 0.130 (3.30) MIN 0.160 (4.06) 0.115 (2.93) 0.022 (0.558) 0.014 (0.356) SEATING PLANE 0.100 (2.54) BSC 0.015 (0.381) 0.008 (0.204) 0°- 15° 8-Pin Cerdip (Z Suffix) 0.005 (0.13) MIN 0.055 (1.4) MAX 8 5 0.310 (7.87) 0.220 (5.59) 4 1 0.070 (1.78) 0.030 (0.76) 0.405 (10.29) MAX 0.200 (5.08) MAX 0.320 (8.13) 0.290 (7.37) 0.060 (1.52) 0.015 (0.38) 0.150 (3.81) MIN 0.200 (5.08) 0.125 (3.18) 0.023 (0.58) 0.014 (0.36) 0.015 (0.38) 0.008 (0.20) 0°-15° 0.100 (2.54) BSC SEATING PLANE 8-Lead SOIC (S Suffix) 8 5 0.1574 (4.00) 0.1497 (3.80) PIN 1 4 1 0°- 8° 0.2440 (6.20) 0.2284 (5.80) 0.0500 (1.27) 0.0160 (0.41) 0.1968 (5.00) 0.1890 (4.80) PRINTED IN U.S.A. 0.0098 (0.25) 0.0040 (0.10) 0.0196 (0.50) × 45° 0.0099 (0.25) 0.0688 (1.75) 0.0532 (1.35) 0.0500 (1.27) BSC 0.0192 (0.49) 0.0138 (0.35) 0.0098 (0.25) 0.0075 (0.19) SEE DETAIL ABOVE SEATING PLANE –20– REV. A
DAC8512FS-REEL 价格&库存

很抱歉,暂时无法提供与“DAC8512FS-REEL”相匹配的价格&库存,您可以联系我们找货

免费人工找货