|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
nonvolatile memory, dual 1024-position digital potentiometer ad5235 rev. e 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 that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent rights of analog devices. trademarks and registered trademarks are the property of their respective owners. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781.329.4700 www.analog.com fax: 781.461.3113 ?2004C2011 analog devices, inc. all rights reserved. features dual-channel, 1024-position resolution 25 k, 250 k nominal resistance maximum 8% nominal resistor tolerance error low temperature coefficient: 35 ppm/c 2.7 v to 5 v single supply or 2.5 v dual supply spi-compatible serial interface nonvolatile memory stores wiper settings power-on refreshed with eemem settings permanent memory write protection resistance tolerance stored in eemem 26 bytes extra nonvolatile memory for user-defined information 1m programming cycles 100-year typical data retention applications dwdm laser diode driver, optical supervisory systems mechanical potentiometer replacement instrumentation: gain, offset adjustment programmable voltage-to-current conversion programmable filters, delays, time constants programmable power supply low resolution dac replacement sensor calibration general description the ad5235 is a dual-channel, nonvolatile memory, 1 digitally controlled potentiometer 2 with 1024-step resolution, offering guaranteed maximum low resistor tolerance error of 8%. the device performs the same electronic adjustment function as a mechanical potentiometer with enhanced resolution, solid state reliability, and superior low temperature coefficient per- formance. the versatile programming of the ad5235 via an spi?-compatible serial interface allows 16 modes of operation and adjustment including scratchpad programming, memory storing and restoring, increment/decrement, 6 db/step log taper adjustment, wiper setting readback, and extra eemem 1 for user- defined information such as memory data for other components, look-up table, or system identification information. functional block diagram addr decode ad5235 rdac1 serial interface cs clk sdi sdo pr wp rdy rdac1 register eemem1 rdac2 register eemem2 26 bytes rtol* user eemem power-on reset w1 b1 rdac2 w2 b2 a1 v dd a2 v ss gnd 02816-001 eemem control *rab tolerance figure 1. in the scratchpad programming mode, a specific setting can be programmed directly to the rdac 2 register, which sets the resist ance b etween ter minal w and ter mina l a and ter mina l w and terminal b. this setting can be stored into the eemem and is restored automatically to the rdac register during system power-on. the eemem content can be restored dynamically or through external pr strobing, and a wp function protects eemem contents. to simplify the programming, the independent or simultaneous linear-step increment or decrement commands can be used to move the rdac wiper up or down, one step at a time. for logarithmic 6 db changes in the wiper setting, the left or right bit shift command can be used to double or halve the rdac wiper setting. the ad5235 patterned resistance tolerance is stored in the eemem. the actual end-to-end resistance can, therefore, be known by the host processor in readback mode. the host can execute the appropriate resistance step through a software routine that simplifies open-loop applications as well as precision calibration and tolerance matching applications. the ad5235 is available in a thin, 16-lead tssop package. the part is guaranteed to operate over the extended industrial temperature range of ?40c to +85c. 1 the terms nonvolatile memory an d eemem are used interchangeably. 2 the terms digital potentiometer and rdac are used interchangeably.
ad5235 rev. e | page 2 of 32 table of contents features .............................................................................................. 1 applications....................................................................................... 1 general description ......................................................................... 1 functional block diagram .............................................................. 1 revision history ............................................................................... 3 specifications..................................................................................... 4 electrical characteristics25 k, 250 k versions ............... 4 interface timing and eemem reliability characteristics 25 k, 250 k versions ............................................................... 6 absolute maximum ratings............................................................ 8 esd caution.................................................................................. 8 pin configuration and function descriptions............................. 9 typical performance characteristics ........................................... 10 test circuits................................................................................. 14 theory of operation ...................................................................... 16 scratchpad and eemem programming.................................. 16 basic operation .......................................................................... 16 eemem protection.................................................................... 17 digital input and output configuration................................. 17 serial data interface................................................................... 17 daisy-chain operation ............................................................. 18 terminal voltage operating range.......................................... 18 advanced control modes ......................................................... 20 rdac structure.......................................................................... 21 programming the variable resistor......................................... 22 programming the potentiometer divider............................... 22 programming examples ............................................................ 23 eval-ad5235sdz evaluation kit.......................................... 23 applications information .............................................................. 24 bipolar operation from dual supplies.................................... 24 gain control compensation .................................................... 24 high voltage operation ............................................................ 24 dac.............................................................................................. 24 bipolar programmable gain amplifier................................... 25 10-bit bipolar dac.................................................................... 25 programmable voltage source with boosted output ........... 25 programmable current source ................................................ 26 programmable bidirectional current source......................... 26 programmable low-pass filter ................................................ 27 programmable oscillator .......................................................... 27 optical transmitter calibration with adn2841 ................... 28 resistance scaling ...................................................................... 28 resistance tolerance, drift, and temperature coefficient mismatch considerations ......................................................... 29 rdac circuit simulation model............................................. 29 outline dimensions ....................................................................... 30 ordering guide .......................................................................... 30 ad5235 rev. e | page 3 of 32 revision history 4/11rev. d to rev. e changes to figure 12 ......................................................................11 4/11rev. c to rev. d changes to eemem performance .............................. throughout changes to features and general descriptions sections.............1 changes to specifications section...................................................4 changes to pin 5, pin 13, pin 14 descriptions ..............................9 changes to typical performance characteristics section .........10 changes to table 7 ..........................................................................19 changes to table 9 ..........................................................................21 changes to rheostat operation section, table 12, table 13 .....22 changes to table 16, table 19, and eval-ad5235sdz evaluation kit section ....................................................................23 changes to rdac circuit simulation model section ...............29 updated outline dimensions........................................................30 changes to ordering guide...........................................................30 4/09rev. b to rev. c changes to figure 1...........................................................................1 changes to specifications.................................................................3 changes to sdo, description column, table 4............................8 changes to figure 18 ......................................................................11 changes to theory of operation section ....................................14 changes to serial data interface section .....................................15 changes to linear increment and decrement instructions section, logarithmic taper mode adjustment section, and figure 42 ...........................................................................................18 changes to rheostat operations section.....................................20 changes to bipolar programmable gain amplifier section, figure 49, table 21, and 10-bit bipolar dac section ................23 changes to programmable oscillator section and figure 56 ...25 changes to ordering guide...........................................................28 7/04rev. a to rev. b updated formatting .......................................................... universal edits to features, general description, and block diagram ......1 changes to specifications ................................................................3 replaced timing diagrams .............................................................6 changes to absolute maximum ratings........................................7 changes to pin function descriptions ..........................................8 changes to typical performance characteristics .........................9 additional test circuit (figure 36) ................................................9 edits to theory of operation ........................................................14 edits to applications.......................................................................23 updated outline dimensions........................................................27 8/02rev. 0 to rev. a change to features and general description ...............................1 change to specifications ..................................................................2 change to calculating actual end-to-end terminal resistance section...........................................................................14 ad5235 rev. e | page 4 of 32 specifications electrical characteristics25 k, 250 k versions v dd = 2.7 v to 5.5 v, v ss = 0 v; v dd = 2.5 v, v ss = ?2.5 v, v a = v dd , v b = v ss , ?40c < t a < +85c, unless otherwise noted. these specifications apply to 25 k versions with a date code 1108 or later and 250 k versions with a date code 1045 or later. table 1. parameter symbol conditions min typ 1 max unit dc characteristicsrheostat mode (all rdacs) resistor differential nonlinearity 2 r-dnl r wb ?1 +1 lsb resistor integral nonlinearity 2 r-inl r wb ?2 +2 lsb nominal resistor tolerance ?r ab /r ab ?8 +8 % resistance temperature coefficient (?r ab /r ab )/?t 10 6 35 ppm/c wiper resistance r w i w = 1 v/r wb , code = midscale v dd = 5 v 30 60 v dd = 3 v 50 nominal resistance match r ab1 /r ab2 0.1 % dc characteristics potentiometer divider mode (all rdacs) resolution n 10 bits differential nonlinearity 3 dnl ?1 +1 lsb integral nonlinearity 3 inl ?1 +1 lsb voltage divider temperature coefficient (?v w /v w )/?t 10 6 code = midscale 15 ppm/c full-scale error v wfse code = full scale ?6 0 lsb zero-scale error v wzse code = zero scale 0 4 lsb resistor terminals terminal voltage range 4 v a , v b , v w v ss v dd v capacitance ax, bx 5 c a , c b f = 1 mhz, measured to gnd, code = midscale 11 pf capacitance wx 5 c w f = 1 mhz, measured to gnd, code = midscale 80 pf common-mode leakage current 5 , 6 i cm v w = v dd /2 0.01 1 a digital inputs and outputs input logic high v ih with respect to gnd, v dd = 5 v 2.4 v input logic low v il with respect to gnd, v dd = 5 v 0.8 v input logic high v ih with respect to gnd, v dd = 3 v 2.1 v input logic low v il with respect to gnd, v dd = 3 v 0.6 v input logic high v ih with respect to gnd, v dd = +2.5 v, v ss = ?2.5 v 2.0 v input logic low v il with respect to gnd, v dd = +2.5 v, v ss = ?2.5 v 0.5 v output logic high (sdo, rdy) v oh r pull-up = 2.2 k to 5 v (see figure 38 ) 4.9 v output logic low v ol i ol = 1.6 ma, v logic = 5 v (see figure 38 ) 0.4 v input current i il v in = 0 v or v dd 1 a input capacitance 5 c il 5 pf ad5235 rev. e | page 5 of 32 parameter symbol conditions min typ 1 max unit power supplies single-supply power range v dd v ss = 0 v 2.7 5.5 v dual-supply power range v dd /v ss 2.25 2.75 v positive supply current i dd v ih = v dd or v il = gnd 2 5 a rdy and/or sdo floating 0.2 1 ma negative supply current i ss v dd = +2.5 v, v ss = ?2.5 v v ih = v dd or v il = gnd ?4 ?2 a rdy and/or sdo floating ?1 ?0.2 ma eemem store mode current i dd (store) v ih = v dd or v il = gnd, v ss = gnd, i ss 0 2 ma i ss (store) v dd = +2.5 v, v ss = ?2.5 v ?2 ma eemem restore mode current 7 i dd (restore) v ih = v dd or v il = gnd, v ss = gnd, i ss 0 320 a i ss (restore) v dd = +2.5 v, v ss = ?2.5 v ?320 a power dissipation 8 p diss v ih = v dd or v il = gnd 10 30 w power supply sensitivity 5 p ss ?v dd = 5 v 10% 0.006 0.01 %/% dynamic characteristics 5 , 9 bandwidth bw ?3 db, r ab = 25 k/250 k 125/12 khz total harmonic distortion thd w v a = 1 v rms, v b = 0 v, f = 1 khz, code = midscale r ab = 25 k 0.009 % r ab = 250 k 0.035 % v w settling time t s v a = v dd , v b = 0 v, v w = 0.50% error band, from zero scale to midscale r ab = 25 k 4 s r ab = 250 k 36 s resistor noise density e n_wb r ab = 25 k/250 k 20/64 nv/hz crosstalk (c w1 /c w2 ) c t v a1 = v dd , v b1 = v ss , measured v w2 with v w1 making full-scale change, r ab = 25 k/250 k 30/60 nv-s analog crosstalk c ta v ab2 = 5 v p-p, f = 1 khz, measured v w1 , code 1 = midscale, code 2 = full scale, r ab = 25 k/250 k ?110/?100 db 1 typicals represent averag e readings at 25c and v dd = 5 v. 2 resistor position nonlinearity error (r-inl) is the deviatio n from an ideal value measured be tween the maximum resistance and the minimum resistance wiper positions. r-dnl measures the relative step change from ideal between successive tap positions. i wb = (v dd ? 1)/r wb (see figure 27). 3 inl and dnl are measured at v w with the rdac configured as a potentiometer divider similar to a voltage output dac. v a = v dd and v b = v ss . dnl specification limits of 1 lsb maximum are guaranteed monotonic op erating conditions (see figure 28). 4 resistor terminal a, resistor terminal b, and resistor terminal w have no limitations on polarity with respect to each other. dual-supply operation enables ground- referenced bipolar signal adjustment. 5 guaranteed by design and not subject to production test. 6 common-mode leakage current is a measure of the dc leakage from any terminal a, termin al b, or terminal w to a common-mode bia s level of v dd /2. 7 eemem restore mode current is not continuou s. current is consumed whil e eemem locations are read an d transferred to the rdac r egister. 8 p diss is calculated from (i dd v dd ) + (i ss v ss ). 9 all dynamic characteristics use v dd = +2.5 v and v ss = ?2.5 v. ad5235 rev. e | page 6 of 32 interface timing and eemem reliability characteristics25 k, 250 k versions guaranteed by design and not subject to production test. see the timing diagrams section for the location of measured values. all input control voltages are specified with t r = t f = 2.5 ns (10% to 90% of 3 v) and timed from a voltage level of 1.5 v. switching characteristics are measured using both v dd = 2.7 v and v dd = 5 v. table 2. parameter symbol conditions min typ 1 max unit clock cycle time (t cyc ) t 1 20 ns cs setup time t 2 10 ns clk shutdown time to cs rise t 3 1 t cyc input clock pulse width t 4 , t 5 clock level high or low 10 ns data setup time t 6 from positive clk transition 5 ns data hold time t 7 from positive clk transition 5 ns cs to sdo-spi line acquire t 8 40 ns cs to sdo-spi line release t 9 50 ns clk to sdo propagation delay 2 t 10 r p = 2.2 k, c l < 20 pf 50 ns clk to sdo data hold time t 11 r p = 2.2 k, c l < 20 pf 0 ns cs high pulse width 3 t 12 10 ns cs high to cs high 3 t 13 4 t cyc rdy rise to cs fall t 14 0 ns cs rise to rdy fall time t 15 0.15 0.3 ms store eemem time 4 , 5 t 16 applies to instructions 0x2, 0x3 15 50 ms read eemem time 4 t 16 applies to instructions 0x8, 0x9, 0x10 7 30 s cs rise to clock rise/fall setup t 17 10 ns preset pulse width (asynchronous) 6 t prw 50 ns preset response time to wiper setting 6 t presp pr pulsed low to refresh wiper positions 30 s power-on eemem restore time 6 t eemem 30 s flash/ee memory reliability endurance 7 t a = 25c 1 mcycles 100 kcycles data retention 8 100 years 1 typicals represent averag e readings at 25c and v dd = 5 v. 2 propagation delay depends on the value of v dd , r pull-up , and c l . 3 valid for commands that do no t activate the rdy pin. 4 the rdy pin is low only for instruction 2, instruction 3, instruction 8, instruction 9, instruction 10, and the pr hardware pulse: cmd_8 ~ 20 s; cmd_9, cmd_10 ~ 7 s; cmd_2, cmd_3 ~ 15 ms; pr hardware pulse ~ 30 s. 5 store eemem time depends on the temperatur e and eemem writes cycles. higher timing is expected at a lowe r temperature and high er write cycles. 6 not shown in figure 2 and figure 3. 7 endurance is qualified to 100, 000 cycles per jedec standard 22, method a117 and measured at ?40c, +25c, and +85c. 8 retention lifetime equivalent at junction temperature (t j ) = 85c per jedec standard 22, method a117. retention lifetime base d on an activation energy of 1 ev derates with junction temperature in the flash/ee memory. ad5235 rev. e | page 7 of 32 timing diagrams cpol = 1 t 12 t 13 t 3 t 17 t 9 t 11 t 5 t 4 t 2 t 1 clk t 8 b24* b23 (msb) b0 (lsb) b23 (msb) high or low high or low b23 b0 b0 (lsb) rdy cph a = 1 t 10 t 7 t 6 t 14 t 15 t 16 * the extra bit that is not defined is normally the lsb of the character previously transmitted. the cpol = 1 microcontroller command aligns the incoming data to the positive edge of the clock. sdo sdi 02816-002 cs figure 2. cpha = 1 timing diagram t 12 t 13 t 3 t 17 t 9 t 11 t 5 t 4 t 2 t 1 clk cpol = 0 t 8 b23 (msb out) b0 (lsb) sdo b23 (msb in) b23 b0 high or low high or low b0 (lsb) sdi rdy cph a =0 t 10 t 7 t 6 t 14 t 15 t 16 *the extra bit that is not defined is normally the msb of the character just received. the cpol = 0 microcontroller command aligns the incoming data to the positive edge of the clock. * cs 02816-003 figure 3. cpha = 0 timing diagram ad5235 rev. e | page 8 of 32 absolute maximum ratings t a = 25c, unless otherwise noted. table 3. parameter rating v dd to gnd C0.3 v to +7 v v ss to gnd +0.3 v to ?7 v v dd to v ss 7 v v a , v b , v w to gnd v ss ? 0.3 v to v dd + 0.3 v i a , i b , i w pulsed 1 20 ma continuous 2 ma digital input and output voltage to gnd ?0.3 v to v dd + 0.3 v operating temperature range 2 ?40c to +85c maximum junction temperature (t j max) 150c storage temperature range ?65c to +150c lead temperature, soldering vapor phase (60 sec) 215c infrared (15 sec) 220c thermal resistance junction-to-ambient ja ,tssop-16 150c/w junction-to-case jc , tssop-16 28c/w package power dissipation (t j max ? t a )/ ja 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 indicated in the operational section of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. esd caution 1 maximum terminal current is bounde d by the maximum current handling of the switches, maximum power dissip ation of the package, and maximum applied voltage across any two of the a, b, and w terminals at a given resistance. 2 includes programming of nonvolatile memory. ad5235 rev. e | page 9 of 32 pin configuration and fu nction descriptions sdi sdo gnd a1 v ss w1 clk b1 cs pr wp v dd a2 0 2816-005 w2 b2 rdy 1 2 3 4 5 6 7 8 16 15 14 13 12 11 10 9 ad5235 top view (not to scale) figure 4. pin configuration table 4. pin function descriptions pin no. mnemonic description 1 clk serial input register clock. shifts in one bit at a time on positive clock edges. 2 sdi serial data input. shifts in one bit at a time on positive clock clk edges. msb loads first. 3 sdo serial data output. serves readback and daisy-chain functions. command 9 and command 10 activate the sdo output for the readback function, delayed by 24 or 25 cloc k pulses, depending on the clock polarity before and after the data-word (see figure 2 and figure 3 ). in other commands, the sdo shif ts out the previously loaded sdi bit pattern, delayed by 24 or 25 clock pulses depending on the clock polarity (see figure 2 and figure 3 ). this previously shifted out sdi can be used for daisy-chaining multiple devices. whenever sdo is used, a pull-up resistor in the range of 1 k to 10 k is needed. 4 gnd ground pin, logic ground reference. 5 v ss negative supply. connect to 0 v for single-supply applications. if v ss is used in dual supply, it must be able to sink 2 ma for 15 ms when storing data to eemem. 6 a1 terminal a of rdac1. 7 w1 wiper terminal of rdac1. addr (rdac1) = 0x0. 8 b1 terminal b of rdac1. 9 b2 terminal b of rdac2. 10 w2 wiper terminal of rdac2. addr (rdac2) = 0x1. 11 a2 terminal a of rdac2. 12 v dd positive power supply. 13 wp optional write protect. when active low, wp prevents any changes to the present contents, except pr strobe. cmd_1 and comd_8 refresh the rdac register from eemem. tie wp to v dd , if not used. 14 pr optional hardware override preset. refreshes the scra tchpad register with current contents of the eemem register. factory default loads midscale until eemem is loaded with a new value by the user. pr is activated at the logic high transition. tie pr to v dd , if not used. 15 cs serial register chip select active low. serial register operation takes place when cs returns to logic high. 16 rdy ready. active high open-drain output. identifies completi on of instruction 2, instruction 3, instruction 8, instruction 9, instruction 10, and pr . ad5235 rev. e | page 10 of 32 typical performance characteristics digital code 0 200 400 600 1000 inl error (lsb) 800 0.20 ?0.20 ?0.15 ?0.10 ?0.05 0 0.05 0.10 0.15 digital code 0 200 400 600 1000 dnl error (lsb) 800 0.20 ?0.15 ?0.10 ?0.05 0 0.05 0.10 0.15 02816-009 ?40c +25c +85c ?40c +25c +85c 02816-006 figure 5. inl vs. code, t a = ?40c, +25c, +85c overlay, r ab = 25 k figure 8. r-dnl vs. code, t a = ?40c, +25c, +85c overlay, r ab = 25 k code (decimal) potentiometer mode tempco (ppm/c) 200 180 160 140 120 100 80 60 40 20 0 01 768 512 256 0 2 3 25k? 250k? 02816-010 digital code 0 200 400 600 1000 dnl error (lsb) 800 ?0.04 ?0.02 0.16 0.02 0 0.04 0.06 0.08 0.10 0.12 0.14 02816-007 ?40c +25c +85c figure 9. (?v w /v w )/?t 10 6 potentiometer mode tempco figure 6. dnl vs. code, t a = ?40c, +25c, +85c overlay, r ab = 25 k 02816-011 code (decimal) rheostat mode tempco (ppm/c) 200 180 160 140 120 100 80 60 40 20 0 0 1023 768 512 256 25k? 250k ? digital code 0 200 400 600 1000 in l error (lsb) 800 ?0.20 ?0.15 ?0.10 0.20 ?0.05 0 0.05 0.10 0.15 ?40c +25c +85c 02816-008 figure 10. (?r wb /r wb )/?t 10 6 rheostat mode tempco figure 7. r-inl vs. code, t a = ?40c, +25c, +85c overlay, r ab = 25 k ad5235 rev. e | page 11 of 32 code (decimal) 0 200 400 800 600 1000 wiper on resistance ( ? ) 60 50 40 30 20 10 0 2.7v 3.0v 3.3v 5.0v 5.5v 02816-012 figure 11. wiper on resistance vs. code temperature (c) ?40 ?20 0 20 40 60 8580 i dd /i ss (a) 3 ?3 ?2 ?1 0 1 2 i dd = 2.7v i dd = 3.3v i dd = 3.0v i dd = 5.5v i dd = 5.0v i ss = 2.7v i ss = 3.3v i ss = 3.0v i ss = 5.5v i ss = 5.0v 02816-013 figure 12. i dd vs. temperature frequency (mhz) 11 0 98765432 i dd (a) 50 10 20 30 40 0 full scale midscale zero scale 02816-014 figure 13. i dd vs. clock frequency, r ab = 25 k 0 100 200 300 400 i dd (a) vdio (v) 2.7v 3.0v 3.3v 5.0v 5.5v 02816-015 012345 figure 14. i dd vs. digital input voltage 0.12 0 0.02 0.04 0.06 0.08 0.10 10 100 1k 10k 100k thd + n (%) frequency (hz) 250k ? 25k ? 02816-115 figure 15. thd + noise vs. frequency 10 0.001 0.01 0.1 1 0.0001 0.001 0.01 0.1 1 10 thd + n (%) amplitude (v rms) 250k ? 25k ? 02816-116 figure 16. thd + noise vs. amplitude ad5235 rev. e | page 12 of 32 frequency (hz) 02816-016 1k 10k 100k 1m gain (db) 3 ?3 0 ?6 ?9 ?12 v dd /v ss = 2.5v v a = 1v rms d = midscale f ?3db = 12khz r ab = 250k ? r ab = 25k ? f ?3db = 125khz figure 17. ?3 db bandwidth vs. resistance (see figure 33 ) frequency (hz) 02816-017 1k 10k 100k 1m gain (db) 0 ?20 ?10 ?30 ?40 ?50 ?60 code 0x200 0x100 0x080 0x040 0x020 0x010 0x008 0x004 0x002 0x001 figure 18. gain vs. frequency vs. code, r ab = 25 k (see figure 33 ) frequency (hz) 02816-018 1k 10k 100k 1m 0 ?20 ?10 ?30 ?40 ?50 ?60 gain (db) code 0x200 0x100 0x080 0x040 0x020 0x010 0x008 0x004 0x002 0x001 figure 19. gain vs. frequency vs. code, r ab = 250 k (see figure 33 ) frequency (hz) 10 100 1k 10k 100k 1m psrr (db) ?80 ?60 ?70 ?50 ?40 ?30 ?20 ?10 0 r ab = 250k ? v dd = 5v 10% ac v ss = 0v, v a = 4v, v b = 0v measured at v w with code = 0x200 t a = 25c r ab = 25k ? 02816-019 figure 20. psrr vs. frequency 02816-020 v dd = 5v v a = 5v v b = 0v t a = 25c 1v/div 10s/div v dd v w (full scale) figure 21. power-on reset time ( s ) 0 20406080100120 144 amplitude (v) 2.5196 2.484 2.488 2.492 2.496 2.500 2.504 2.508 2.512 2.516 2.4796 v dd = v ss = 5v code = 0x200 to 0x1ff 02816-021 figure 22. midscale glitch energy, r ab = 25 k ad5235 rev. e | page 13 of 32 2.60 2.55 2.50 2.45 2.40 0 0.5 1.0 1.5 2.0 wiper voltage (v) time (s) 02816-126 time ( s) amplitude (v) 0 20 40 60 80 100 120 144 2.3795 2.344 2.348 2.352 2.356 2.360 2.364 2.368 2.372 2.376 2.3399 02816-022 figure 23. midscale glitch energy, r ab = 250 k figure 25. digital feedthrough code (decimal) 02816-025 100 1 0.01 1023 theorectical (i wb_max ? ma) 0.1 10 896 768 640 512 384 128 256 0 v a = v b = open t a = 25c r ab = 25k ? r ab = 250k ? 02816-023 cs (5v/div) clk (5v/div) sdi (5v/div) i dd (2ma/div) v dd = 5v t a = 25c figure 26. i wb_max vs. code figure 24. i dd vs. time when storing data to eemem ad5235 rev. e | page 14 of 32 test circuits figure 27 to figure 37 define the test conditions used in the specifications section. a w b nc i w dut v ms nc = no connect 02816-026 figure 27. resistor position nonlinearity error (rheostat operation; r-inl, r-dnl) a w b dut v ms v+ 0 2816-027 v+ = v dd 1lsb = v+/2 n figure 28. potentiometer divider nonlinearity error (inl, dnl) a w b dut i w = v dd /r nominal v ms1 v ms2 v w 02816-028 r w = [v ms1 ? v ms2 ]/i w figure 29. wiper resistance a w b v ms v+ = v dd 10% psrr (db) = 20 log v ms ? v dd ( ) ~ v a v dd ? v ms % ? v dd % pss (%/%) = v+ 0 2816-029 ? figure 30. power supply sensitivity (pss, psrr) offset bias offset gnd a b dut w 5v v in v out op279 02816-030 figure 31. inverting gain offset bias offset gnd ab dut w 5 v v in v out op279 02816-031 figure 32. noninverting gain offset gnd a b dut w +15 v v in v out op42 ?15v 2.5v 0 2816-032 figure 33. gain vs. frequency + ? dut code = 0x00 0.1v v ss to v dd r sw = 0.1 v i sw i sw w b a = nc 02816-033 figure 34. incremental on resistance ad5235 rev. e | page 15 of 32 dut v ss i cm w b v dd nc nc v cm gnd a nc = no connect 02816-034 figure 35. common-mode leakage current 02816-035 a1 rdac1 rdac2 w1 nc b1 a2 w2 b2 c ta = 20 log[v out /v in ] nc = no connect v in v out v ss v dd figure 36. analog crosstalk 02816-036 200 ai ol 200 ai oh v oh (min) or v ol (max) to output pin c l 50pf figure 37. load circuit for measuring v oh and v ol (the diode bridge test circuit is equivalent to the application circuit with r pull-up of 2.2 k.) ad5235 rev. e | page 16 of 32 theory of operation the ad5235 digital potentiometer is designed to operate as a true variable resistor. the resistor wiper position is determined by the rdac register contents. the rdac register acts as a scratchpad register, allowing unlimited changes of resistance settings. the scratchpad register can be programmed with any position setting using the standard spi serial interface by loading the 24-bit data-word. in the format of the data-word, the first four bits are commands, the following four bits are addresses, and the last 16 bits are data. when a specified value is set, this value can be stored in a corresponding eemem register. during subsequent power-ups, the wiper setting is automatically loaded to that value. st oring data to the eemem register takes about 15 ms and consumes approximately 2 ma. during this time, the shift register is locked, preventing any changes from taking place. the rdy pin pulses low to indicate the completion of this eemem storage. there are also 13 addresses with two bytes each of user-defined data that can be stored in the eemem register from address 2 to address 14. th e following instructions facilitate the programming needs of the user (see table 7 for details): 0. do nothing. 1. restore eemem content to rdac. 2. store rdac setting to eemem. 3. store rdac setting or user data to eemem. 4. decrement by 6 db. 5. decrement all by 6 db. 6. decrement by one step. 7. decrement all by one step. 8. r eset eemem content to rdac. 9. r ead eemem content from sdo. 10. read rdac wiper setting from sdo. 11. wr ite data to rdac. 12. increment by 6 db. 13. increment all by 6 db. 14. increment by one step. 15. increment all by one step. table 14 to tabl e 20 provide programming examples that use some of these commands. scratchpad and eemem programming the scratchpad rdac register directly controls the position of the digital potentiometer wiper. for example, when the scratchpad register is loaded with all 0s, the wiper is connected to terminal b of the variable resistor. the scratchpad register is a standard logic register with no restriction on the number of changes allowed, but the eemem registers have a program erase/write cycle limitation. basic operation the basic mode of setting the variable resistor wiper position (programming the scratchpad register) is accomplished by loading the serial data input register with instruction 11 (0xb), address 0, and the desired wiper position data. when the proper wiper position is determined, the user can load the serial data input register with instruction 2 (0x2), which stores the wiper position data in the eemem register. after 15 ms, the wiper position is permanently stored in nonvolatile memory. table 5 provides a programming example listing the sequence of the serial data input (sdi) words with the serial data output appearing at the sdo pin in hexadecimal format. table 5. write and store rdac settings to eemem registers sdi sdo action 0xb00100 0xxxxxxx writes data 0x100 to the rdac1 register, wiper w1 moves to 1/4 full-scale position. 0x20xxxx 0xb00100 stores rdac1 register content into the eemem1 register. 0xb10200 0x20xxxx writes data 0x200 to the rdac2 register, wiper w2 moves to 1/2 full-scale position. 0x21xxxx 0xb10200 stores rdac2 register contents into the eemem2 register. at system power-on, the scratchpad register is automatically refreshed with the value previously stored in the corresponding eemem register. the factory-preset eemem value is midscale. the scratchpad register can also be refreshed with the contents of the eemem register in three different ways. first, executing instruction 1 (0x1) restores the corresponding eemem value. second, executing instruction 8 (0x8) resets the eemem values of both channels. finally, pulsing the pr pin refreshes both eemem settings. operating the hardware control pr function requires a complete pulse signal. when pr goes low, the internal logic sets the wiper at midscale. the eemem value is not loaded until pr returns high. ad5235 rev. e | page 17 of 32 eemem protection the write protect ( wp ) pin disables any changes to the scratchpad register contents, except for the eemem setting, which can still be restored using instruction 1, instruction 8, and the pr pulse. therefore, wp can be used to provide a hardware eemem protection feature. digital input and ou tput configuration all digital inputs are esd protected, high input impedance that can be driven directly from most digital sources. active at logic low, pr and wp must be tied to v dd , if they are not used. no internal pull-up resistors are present on any digital input pins. to avoid floating digital pins that might cause false triggering in a noisy environment, add pull-up resistors. this is applicable when the device is detached from the driving source when it is programmed. the sdo and rdy pins are open-drain digital outputs that only need pull-up resistors if these functions are used. to optimize the speed and power trade-off, use 2.2 k pull-up resistors. the equivalent serial data input and output logic is shown in figure 38 . the open-drain output sdo is disabled whenever chip-select ( cs ) is in logic high. esd protection of the digital inputs is shown in and . figure 39 figure 40 valid command counter command processor and address decode (for daisy chain only) serial register clk sdi 5v r pull-up sdo gnd pr wp ad5235 02816-037 cs figure 38. equivalent digital input and output logic logic pins v dd gnd inputs 300 ? 02816-038 figure 39. equivalent esd digital input protection v dd gnd input 300 ? 02816-039 wp figure 40. equivalent wp input protection serial data interface the ad5235 contains a 4-wire spi-compatible digital interface (sdi, sdo, cs , and clk). the 24-bit serial data-word must be loaded with msb first. the format of the word is shown in . the command bits (c0 to c3) control the operation of the digital potentiometer according to the command shown in . a0 to a3 are the address bits. a0 is used to address rdac1 or rdac2. address 2 to address 14 are accessible by users for extra eemem. address 15 is reserved for factory usage. provides an address map of the eemem locations. d0 to d9 are the values for the rdac registers. d0 to d15 are the values for the eemem registers. table 6 table 7 table 9 the ad5235 has an internal counter that counts a multiple of 24 bits (a frame) for proper operation. for example, ad5235 works with a 24-bit or 48-bit word, but it cannot work properly with a 23-bit or 25-bit word. to prevent data from mislocking (due to noise, for example), the counter resets, if the count is not a multiple of four when cs goes high but remains in the register if it is multiple of four. in addition, the ad5235 has a subtle feature that, if cs is pulsed without clk and sdi, the part repeats the previous command (except during power-up). as a result, care must be taken to ensure that no excessive noise exists in the clk or cs line that might alter the effective number-of-bits pattern. the spi interface can be used in two slave modes: cpha = 1, cpol = 1 and cpha = 0, cpol = 0. cpha and cpol refer to the control bits that dictate spi timing in the following microconverters? and microprocessors: aduc812 , aduc824, m68hc11, mc68hc16r1, and mc68hc916r1. ad5235 rev. e | page 18 of 32 daisy-chain operation the gnd pin of the ad5235 is primarily used as a digital ground reference. to minimize the digital ground bounce, the ad5235 ground terminal should be joined remotely to the common ground (see figure 43 ). the digital input control signals to the ad5235 must be referenced to the device ground pin (gnd) and must satisfy the logic level defined in the specifications section. an internal level-shift circuit ensures that the common-mode voltage range of the three terminals extends from v ss to v dd , regardless of the digital input level. the serial data output pin (sdo) serves two purposes. it can be used to read the contents of the wiper setting and eemem values using instruction 10 and instruction 9, respectively. the remaining instructions (instruction 0 to instruction 8, instruction 11 to instruction 15) are valid for daisy-chaining multiple devices in simultaneous operations. daisy-chaining minimizes the number of port pins required from the controlling ic (see figure 41 ). the sdo pin contains an open-drain n-ch fet that requires a pull-up resistor, if this function is used. as shown in figure 41 , users need to tie the sdo pin of one package to the sdi pin of the next package. users may need to increase the clock period because the pull-up resistor and the capacitive loading at the sdo-to-sdi interface may require additional time delay between subsequent devices. power-up sequence because there are diodes to limit the voltage compliance at terminal a, terminal b, and terminal w (see figure 42 ), it is important to power v dd and v ss first before applying any voltage to terminal a, terminal b, and terminal w. otherwise, the diode is forward-biased such that v dd and v ss are powered unintentionally. for example, applying 5 v across terminal a and terminal b prior to v dd causes the v dd terminal to exhibit 4.3 v. it is not destructive to the device, but it might affect the rest of the users system. the ideal power-up sequence is gnd, v dd and v ss , digital inputs, and v a , v b , and v w . the order of powering v a , v b , v w , and the digital inputs is not important as long as they are powered after v dd and v ss . when two ad5235s are daisy-chained, 48 bits of data are required. the first 24 bits (formatted 4-bit command, 4-bit address, and 16-bit data) go to u2, and the second 24 bits with the same format go to u1. keep cs low until all 48 bits are clocked into their respective serial registers. cs is then pulled high to complete the operation. clk r p 2.2k ? sdi sdo u2 ad5235 cs clk sdi sdo u1 ad5235 cs v dd sclk ss mosi micro- controller 02816-040 regardless of the power-up sequence and the ramp rates of the power supplies, when v dd and v ss are powered, the power-on preset activates, which restores the eemem values to the rdac registers. layout and power supply bypassing it is a good practice to employ compact, minimum lead-length layout design. the leads to the input should be as direct as possible with a minimum conductor length. ground paths should have low resistance and low inductance. figure 41. daisy-chain configuration using sdo terminal voltage operating range the positive v dd and negative v ss power supplies of the ad5235 define the boundary conditions for proper 3-terminal digital potentiometer operation. supply signals present on terminal a, ter mina l b, and ter mina l w t hat exce e d v dd or v ss are clamped by the internal forward-biased diodes (see figure 42 ). similarly, it is good practice to bypass the power supplies with quality capacitors for optimum stability. bypass supply leads to the device with 0.01 f to 0.1 f disk or chip ceramic capacitors. also, apply low esr, 1 f to 10 f tantalum or electrolytic capacitors at the supplies to minimize any transient disturbance (see figure 43 ). v ss v dd a w b 02816-041 ad5235 v dd gnd 02816-042 v ss c3 10f c4 10f c2 0.1f c1 0.1f + + v dd v ss figure 43. power supply bypassing figure 42. maximum terminal voltages set by v dd and v ss ad5235 rev. e | page 19 of 32 in table 6 , command bits are c0 to c3, address bits are a0 to a3, data bit d0 to data bit d9 are applicable to rdac, and d0 to d15 are applicable to eemem. table 6. 24-bit serial data-word msb command byte 0 data byte 1 data byte 0 lsb rdac c3 c2 c1 c0 0 0 0 a0 x x x x x x d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 eemem c3 c2 c1 c0 a3 a2 a1 a0 d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 command instruction codes are defined in table 7 . table 7. command operation truth table 1 , 2 , 3 command byte 0 data byte 1 data byte 0 b23 b16 b15 b8 b7 b0 command number c3 c2 c1 c0 a3 a2 a1 a0 x d9 d8 d7 d0 operation 0 0 0 0 0 x x x x x x x x x nop. do nothing. see table 19 1 0 0 0 1 0 0 0 a0 x x x x x restore eemem (a0) contents to rdac (a0) register. see table 16 . 2 0 0 1 0 0 0 0 a0 x x x x x store wiper setting. store rdac (a0) setting to eemem (a0). see table 15 . 3 4 0 0 1 1 a3 a2 a1 a0 d15 d8 d7 d0 store contents of serial register data byte 0 and serial register data bytes 1 (total 16 bits) to eemem (addr). see table 18 . 4 5 0 1 0 0 0 0 0 a0 x x x x x decrement by 6 db. right-shift contents of rdac (a0) register, stop at all 0s. 5 5 0 1 0 1 x x x x x x x x x decrement all by 6 db. right-shift contents of all rdac registers, stop at all 0s. 6 5 0 1 1 0 0 0 0 a0 x x x x x decrement contents of rdac (a0) by 1, stop at all 0s. 7 5 0 1 1 1 x x x x x x x x x decrement contents of all rdac registers by 1, stop at all 0s. 8 1 0 0 0 0 0 0 0 x x x x x reset. refresh all rdacs with their corresponding eemem previously stored values. 9 1 0 0 1 a3 a2 a1 a0 x x x x x read contents of eemem (addr) from sdo output in the next frame. see table 19 . 10 1 0 1 0 0 0 0 a0 x x x x x read rdac wiper setting from sdo output in the next frame. see table 20 . 11 1 0 1 1 0 0 0 a0 x d9 d8 d7 d0 write contents of serial register data byte 0 and serial register data byte 1 (total 10 bits) to rdac (a0). see table 14 . 12 5 1 1 0 0 0 0 0 a0 x x x x x increment by 6 db: left-shift contents of rdac (a0), stop at all 1s. see table 17 . 13 5 1 1 0 1 x x x x x x x x x increment all by 6 db. left-shift contents of all rdac registers, stop at all 1s. 14 5 1 1 1 0 0 0 0 a0 x x x x x increment contents of rdac (a0) by 1, stop at all 1s. see table 15 . 15 5 1 1 1 1 x x x x x x x x x increment contents of all rdac registers by 1, stop at all 1s. 1 the sdo output shifts out the last 24 bits of data clocked into the serial register for daisy-chain operation. exception: for any instruction follow ing instruction 9 or instruction 10, the selected internal register data is present in data byte 0 and data byte 1. the instructions following instr uction 9 and instruction 10 must also be a full 24-bit data-word to completely clock out the contents of the serial register. 2 the rdac register is a volatile scratchpad register that is refreshed at power-on from the corresponding nonvolatile eemem reg ister. 3 execution of these operations takes place when the cs strobe returns to logic high. 4 instruction 3 writes two data bytes (16 bits of data) to eemem. in the case of address 0 and address 1, only the last 10 bits are valid for wiper position setting. 5 the increment, decrement, and shift instructions ignore the contents of the shift register, data byte 0 and data byte 1. ad5235 rev. e | page 20 of 32 advanced control modes t he ad5235 digital potentiometer includes a set of user programming features to address the wide number of applications for these universal adjustment devices. k ey programming features include the following: ? scratchpad programming to any desirable values ? nonvolatile memory storage of the scratchpad rdac register value in the eemem register ? increment and decrement instructions for the rdac wiper register ? left and right bit shift of the rdac wiper register to achieve 6 db level changes ? 26 extra bytes of user-addressable nonvolatile memory linear increment and decrement instructions the increment and decrement instructions (instruction 14, instruction 15, instruction 6, and instruction 7) are useful for linear step adjustment applications. these commands simplify microcontroller software coding by allowing the controller to send just an increment or decrement command to the device. the adjustment can be individual or in a ganged potentiometer arrangement where both wiper positions are changed at the same time. for an increment command, executing instruction 14 automatically moves the wiper to the next resistance segment position. the master increment command, instruction 15, moves all resistor wipers up by one position. logarithmic taper mode adjustment four programming instructions produce logarithmic taper increment and decrement of the wiper position control by an individual potentiometer or by a ganged potentiometer arrangement where both wiper positions are changed at the same time. the 6 db increment is activated by instruction 12 and instruction 13, and the 6 db decrement is activated by instruction 4 and instruction 5. for example, starting with the wiper connected to terminal b, executing 11 increment instructions (command instruction 12) moves the wiper in 6 db steps from 0% of the r ab (terminal b) position to 100% of the r ab position of the ad5235 10-bit potentiometer. when the wiper position is near the maximum setting, the last 6 db increment instruction causes the wiper to go to the full-scale 1023 code position. further 6 db per increment instructions do not change the wiper position beyond its full scale (see table 8 ). the 6 db step increments and 6 db step decrements are achieved by shifting the bit internally to the left or right, respectively. the following information explains the nonideal 6 db step adjustment under certain conditions. table 8 illustrates the operation of the shifting function on the rdac register data bits. each table row represents a successive shift operation. note that the left-shift 12 and 13 instructions were modified such that, if the data in the rdac register is equal to zero and the data is shifted left, the rdac register is then set to code 1. similarly, if the data in the rdac register is greater than or equal to midscale and the data is shifted left, then the data in the rdac register is automatically set to full scale. this makes the left-shift function as ideal a logarithmic adjustment as possible. the right-shift 4 instruction and right-shift 5 instruction are ideal only if the lsb is 0 (ideal logarithmic = no error). if the lsb is 1, the right-shift function generates a linear half-lsb error, which translates to a number-of-bits dependent logarithmic error, as shown in figure 44 . figure 44 shows the error of the odd numbers of bits for the ad5235. table 8. detail left-shift and right-shift functions for 6 db step increment and decrement left-shift (+6 db/step) right-shift(C6 db/step) 00 0000 0000 11 1111 1111 00 0000 0001 01 1111 1111 00 0000 0010 00 1111 1111 00 0000 0100 00 0111 1111 00 0000 1000 00 0011 1111 00 0001 0000 00 0001 1111 00 0010 0000 00 0000 1111 00 0100 0000 00 0000 0111 00 1000 0000 00 0000 0011 01 0000 0000 00 0000 0001 10 0000 0000 00 0000 0000 11 1111 1111 00 0000 0000 11 1111 1111 00 0000 0000 actual conformance to a logarithmic curve between the data contents in the rdac register and the wiper position for each right-shift 4 command and right-shift 5 command execution contains an error only for odd numbers of bits. even numbers of bits are ideal. figure 44 shows plots of log error [20 log 10 (error/code)] for the ad5235. for example, code 3 log error = 20 log 10 (0.5/3) = ?15.56 db, which is th e worst case. the log error plot is more significant at the lower codes (see figure 44 ). code (from 1 to 1023 by 2.0 10 3 ) 0 gain (db) 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 02816-043 0 ?40 ?20 ?60 ?80 figure 44. log error conformance for odd numbers of bits only (even numbers of bits are ideal) ad5235 rev. e | page 21 of 32 using cs to re-execute a previous command for example, if r ab_rated = 250 k and the data in the sdo shows xxxx xxxx 1001 1100 0000 1111, r ab_actual can be calculated as follows: another subtle feature of the ad5235 is that a subsequent cs strobe, without clock and data, repeats a previous command. msb: 1 = positive next 7 lsb: 001 1100 = 28 8 lsb: 0000 1111 = 15 2 ?8 = 0.06 % tolerance = 28.06% therefore, r ab_actual = 320.15 k using additional internal nonvolatile eemem the ad5235 contains additional user eemem registers for storing any 16-bit data such as memory data for other components, look-up tables, or system identification information. table 9 pro- vides an address map of the internal storage registers shown in the functional block diagram (see figure 1 ) as eemem1, eemem2, and 26 bytes (13 addresses 2 bytes each) of user eemem. table 9. eemem address map eemem no. rdac structure the patent-pending rdac contains multiple strings of equal resistor segments with an array of analog switches that acts as the wiper connection. the number of positions is the resolution of the device. the ad5235 has 1024 connection points, allowing it to provide better than 0.1% setability resolution. figure 45 shows an equivalent structure of the connections among the three terminals of the rdac. the sw a and sw b are always on, while the switches, sw(0) to sw(2 n ? 1), are on one at a time, depending on the resistance position decoded from the data bits. because the switch is not ideal, there is a 50 wiper resistance, r w . wiper resistance is a function of supply voltage and temperature. the lower the supply voltage or the higher the temperature, the higher the resulting wiper resistance. users should be aware of the wiper resistance dynamics, if accurate prediction of the output resistance is needed. address eemem content for 1 0000 rdac1 1 2 0001 rdac2 3 0010 user1 2 4 0011 user2 15 1110 user13 16 1111 r ab1 tolerance 3 1 rdac data stored in eemem locations is transferred to the corresponding rdac register at power-on, or when instruction 1, instruction 8, and pr are executed. 2 userx are internal nonvolatile eemem registers available to store and retrieve constants and other 16-bit information using instruction 3 and instruction 9, respectively. sw (1) sw (0) sw b b r s r s sw a sw(2 n ? 1) a w sw(2 n ? 2) rdac wiper register and decoder r s = r ab /2 n r s digital c ircuit r y o mitted for c larity 02816-044 3 read only. calculating actual end-to-end terminal resistance the resistance tolerance is stored in the eemem register during factory testing. the actual end-to-end resistance can, therefore, be calculated, which is valuable for calibration, tolerance matching, and precision applications. note that this value is read only and the r ab2 matches with r ab1 , typically 0.1%. the resistance tolerance in percentage is contained in the last 16 bits of data in eemem register 15. the format is the sign magnitude binary format with the msb designate for sign (0 = negative and 1 = positive), the next 7 msb designate the integer number, and the 8 lsb designate the decimal number (see table 11 ). figure 45. equivalent rdac structure table 10. nominal individual segment resistor values device resolution 25 k 250 k 1024-step 24.4 244 table 11. calculating end-to-end terminal resistance bit d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 sign mag sign 2 6 2 5 2 4 2 3 2 2 2 1 2 0 . 2 ?1 2 ?2 2 ?3 2 ?4 2 ?5 2 ?6 2 ?7 2 ?8 7 bits for integer number decimal point 8 bits for decimal number ad5235 rev. e | page 22 of 32 programming the variable resistor rheostat operation the nominal resistance of the rdac between terminal a and terminal b, r ab , is available with 25 k and 250 k with 1024 positions (10-bit resolution). the final digits of the part number determine the nominal resistance value, for example, 25 k = 24.4 ; 250 k = 244 . the 10-bit data-word in the rdac latch is decoded to select one of the 1024 possible settings. the following description provides the calculation of resistance, r wb , at different codes of a 25 k part. the first connection of the wiper starts at terminal b for data 0x000. r wb (0) is 30 because of the wiper resistance, and it is independent of the nominal resistance. the second connection is the first tap point where r wb (1) becomes 24.4 + 30 = 54.4 for data 0x001. the third connection is the next tap point representing r wb (2) = 48.8 + 30 = 78.8 for data 0x002, and so on. each lsb data value increase moves the wiper up the resistor ladder until the last tap point is reached at r wb (1023) = 25006 . see figure 45 for a simplified diagram of the equivalent rdac circuit. when r wb is used, terminal a can be left floating or tied to the wiper. code (decimal) 100 75 0 0 1023 256 r wa (d), r wb (d) (% r wf ) 512 768 50 25 r wa r wb 02816-045 figure 46. r wa (d) and r wb (d) vs. decimal code the general equation that determines the programmed output resistance between terminal bx and terminal wx is w ab wb rr d dr += 1024 )( (1) where: d is the decimal equivalent of the data contained in the rdac register. r ab is the nominal resistance between terminal a and terminal b. r w is the wiper resistance. for example, the output resistance values in table 12 are set for the given rdac latch codes (applies to r ab = 25 k digital potentiometers). table 12. r wb (d) at selected codes for r ab = 25 k d (dec) r wb (d) () output state 1023 25,006 full scale 512 12,530 midscale 1 54.4 1 lsb 0 30 zero scale (wiper contact resistor) note that, in the zero-scale condition, a finite wiper resistance of 50 is present. care should be taken to limit the current flow between w and b in this state to no more than 20 ma to avoid degradation or possible destruction of the internal switches. like the mechanical potentiometer that the rdac replaces, the ad5235 part is symmetrical. the resistance between wiper w and terminal a also produces a digitally controlled complementary resistance, r wa . figure 46 shows the symmetrical programmability of the various terminal connections. when r wa is used, terminal b can be left floating or tied to the wiper. setting the resistance value for r wa starts at a maximum value of resistance and decreases as the data loaded in the latch is increased in value. the general transfer equation for this operation is w ab wa rr d dr + ? = 1024 1024 )( (2) for example, the output resistance values in table 13 are set for the given rdac latch codes (applies to r ab = 25 k digital potentiometers). table 13. r wa (d) at selected codes for r ab = 25 k d (dec) r wa (d) () output state 1023 54.4 full scale 512 12,530 midscale 1 25,006 1 lsb 0 25,030 zero scale (wiper contact resistance) the typical distribution of r ab from channel to channel is 0.2% within the same package. device-to-device matching is process lot dependent upon the worst case of 30% variation. however, the change in r ab with temperature has a 35 ppm/c temperature coefficient. programming the potentiometer divider voltage output operation the digital potentiometer can be configured to generate an output voltage at the wiper terminal that is proportional to the input voltages applied to terminal a and terminal b. for example, connecting terminal a to 5 v and terminal b to ground produces an output voltage at the wiper that can be any value from 0 v to 5 v. each lsb of voltage is equal to the voltage applied across terminal a to terminal b divided by the 2 n position resolution of the potentiometer divider. ad5235 rev. e | page 23 of 32 because the ad5235 can also be supplied by dual supplies, the general equation defining the output voltage at v w with respect to ground for any given input voltages applied to terminal a and terminal b is b ab w vv d dv += 1024 )( (3) equation 3 assumes that v w is buffered so that the effect of wiper resistance is minimized. operation of the digital potentiometer in divider mode results in more accurate operation over temperature. here, the output voltage is dependent on the ratio of the internal resistors and not the absolute value; therefore, the drift improves to 15 ppm/c. there is no voltage polarity restriction between terminal a, terminal b, and terminal w as long as the terminal voltage (v term ) stays within v ss < v term < v dd . programming examples the following programming examples illustrate a typical sequence of events for various features of the ad5235. see table 7 for the instructions and data-word format. the instruction numbers, addresses, and data appearing at the sdi and sdo pins are in hexadecimal format. table 14. scratchpad programming sdi sdo action 0xb00100 0xxxxxxx writes data 0x100 into rdac1 register, wiper w1 moves to 1/4 full-scale position. 0xb10200 0xb00100 loads data 0x200 into rdac2 register, wiper w2 moves to 1/2 full-scale position. table 15. incrementing rdac followed by storing the wiper setting to eemem sdi sdo action 0xb00100 0xxxxxxx writes data 0x100 into rdac1 register, wiper w1 moves to 1/4 full- scale position. 0xe0xxxx 0xb00100 increments rdac1 register by one to 0x101. 0xe0xxxx 0xe0xxxx increments rdac1 register by one to 0x102. continue until desired wiper position is reached. 0x20xxxx 0xxxxxxx stores rdac2 register data into eemem1. optionally, tie wp to gnd to protect eemem values. the eemem values for the rdacs can be restored by power- on, by strobing the pr pin, or by the two commands shown in . table 16 table 16. restoring the eemem values to rdac registers sdi sdo action 0x10xxxx 0xxxxxxx restores the eemem1 value to the rdac1 register. table 17. using left-shift by one to increment 6 db steps sdi sdo action 0xc0xxxx 0xxxxxxx moves wiper 1 to double the present data contained in the rdac1 register. 0xc1xxxx 0xc0xxxx moves wiper 2 to double the present data contained in the rdac2 register. table 18. storing additional user data in eemem sdi sdo action 0x32aaaa 0xxxxxxx stores data 0xaaaa in the extra eemem location user1. (allowable to address in 13 locations with a maximum of 16 bits of data.) 0x335555 0x32aaaa stores data 0x5555 in the extra eemem location user2. (allowable to address in 13 locations with a maximum of 16 bits of data.) table 19. reading back data from memory locations sdi sdo action 0x92xxxx 0xxxxxxx prepares data read from user1 eemem location. 0x00xxxx 0x92aaaa nop instruction 0 sends a 24-bit word out of sdo, where the last 16 bits contain the contents in user1 eemem location. table 20. reading back wiper settings sdi sdo action 0xb00200 0xxxxxxx writes rdac1 to midscale. 0xc0xxxx 0xb00200 doubles rdac1 from midscale to full scale. 0xa0xxxx 0xc0xxxx prepares reading wiper setting from rdac1 register. 0xxxxxxx 0xa003ff reads back full-scale value from sdo. eval-ad5235sdz evaluation kit analog devices, inc., offers a user-friendly eval-ad5235sdz evaluation kit that can be controlled by a pc in conjunction with the sdp platform. the driving program is self-contained; no programming languages or skills are needed. ad5235 rev. e | page 24 of 32 applications information bipolar operation from dual supplies the ad5235 can be operated from 2.5 v dual supplies, which enable control of ground referenced ac signals or bipolar operation. ac signals as high as v dd and v ss can be applied directly across terminal a to terminal b with the output taken from terminal w. see figure 47 for a typical circuit connection. 2.5v p-p ad5235 v ss gnd sdi clk ss sclk mosi gnd v dd micro- controller 1.25v p-p v dd +2.5 v ?2.5v cs d = midscale a w b 02816-046 figure 47. bipolar operat ion from dual supplies gain control compensation a digital potentiometer is commonly used in gain control such as the noninverting gain amplifier shown in figure 48 . u1 v o r2 02816-047 250k ? v i r1 47k ? c1 11p f w ba c2 2.2pf figure 48. typical noninverting gain amplifier when the rdac b terminal parasitic capacitance is connected to the op amp noninverting node, it introduces a zero for the 1/ o term with 20 db/dec, whereas a typical op amp gain bandwidth product (gbp) has ?20 db/dec characteristics. a large r2 and finite c1 can cause the frequency of this zero to fall well below the crossover frequency. therefore, the rate of closure becomes 40 db/dec, and the system has a 0 phase margin at the crossover frequency. if an input is a rectangular pulse or step function, the output can ring or oscillate. similarly, it is also likely to ring when switching between two gain values; this is equivalent to a stop change at the input. depending on the op amp gbp, reducing the feedback resistor might extend the frequency of the zero far enough to overcome the problem. a better approach is to include a compensation capacitor, c2, to cancel the effect caused by c1. optimum compensation occurs when r1 c1 = r2 c2. this is not an option because of the variation of r2. as a result, one can use the previous relationship and scale c2 as if r2 were at its maximum value. doing this might overcompensate and compromise the performance when r2 is set at low values. alternatively, it avoids the ringing or oscillation at the worst case. for critical applications, find c2 empirically to suit the oscillation. in general, c2 in the range of a few picofarads to no more than a few tenths of picofarads is usually adequate for the compensation. similarly, w and a terminal capacitances are connected to the output (not shown); their effect at this node is less significant and the compensation can be avoided in most cases. high voltage operation the digital potentiometer can be placed directly in the feedback or input path of an op amp for gain control, provided that the voltage across terminal a to terminal b, terminal w to terminal a or terminal w to terminal b does not exceed |5 v|. when high voltage gain is needed, set a fixed gain in the op amp and let the digital potentiometer control the adjustable input. figure 49 shows a simple implementation. 2r r v o a1 v+ v? 15v 0v to 15v 02816-048 c a b w ad5235 5v figure 49. 15 v voltage span control similarly, a compensation capacitor, c, may be needed to dampen the potential ringing when the digital potentiometer changes steps. this effect is prominent when stray capacitance at the inverted node is augmented by a large feedback resistor. typically, a picofarad capacitor c is adequate to combat the problem. dac for dac operation (see figure 50 ), it is common to buffer the output of the digital potentiometer unless the load is much larger than r wb . the buffer serves the purpose of impedance conversion and can drive heavier loads. ad8601 v+ v? 5v v o a1 02816-049 ad1582 gnd v in v out 3 2 5 v u1 1 ad5235 a b w figure 50. unipolar 10-bit dac ad5235 rev. e | page 25 of 32 bipolar programmable gain amplifier for applications requiring bipolar gain, figure 51 shows one implementation. digital potentiometer u1 sets the adjustment range; the wiper voltage (v w2 ) can, therefore, be programmed between v i and ?kv i at a given u2 setting. configure op2177 (a2) as a noninverting amplifier that yields a transfer function of ? ? ? ? ? ? ?+ ? ? ? ? ? ? += kk d2 r1 r2 v v i o )1( 1024 1 (4) where k is the ratio of r wb1 /r wa 1 set by u1. v+ v? op2177 ad5235 v o v+ v? op2177 ad5235 v i a1 w1 b1 ?kv i a2 b2 w1 v dd v ss r1 r2 v dd v ss a1 u2 a2 u1 02816-050 c figure 51. bipolar programmable gain amplifier in the simpler (and much more usual) case where k = 1, v o is simplified to i o v d r1 r2 v ? ? ? ? ? ? ? ? ? ? ? ? ? += 1 1024 22 1 (5) table 21 shows the result of adjusting d2, with op2177 (a2) configured as a unity gain, a gain of 2, and a gain of 10. the result is a bipolar amplifier with linearly programmable gain and 1024-step resolution. table 21. result of bipolar gain amplifier d2 r1 = , r2 = 0 r1 = r2 r2 = 9 r1 0 ?1 ?2 ?10 256 ?0.5 ?1 ?5 512 0 0 0 768 0.5 1 5 1023 0.992 1.984 9.92 10-bit bipolar dac if the circuit in figure 51 is changed with the input taken from a precision reference, u1 is set to midscale, and ad8552 (a2) is configured as a buffer, a 10-bit bipolar dac can be realized (as shown in figure 52 ). compared to the conventional dac, this circuit offers comparable resolution but not the precision because of the wiper resistance effects. degradation of the nonlinearity and temperature coefficient is prominent near the low values of the adjustment range. alternatively, this circuit offers a unique nonvolatile memory feature that, in some cases, outweighs any shortfalls in precision. without consideration of the wiper resistance, the output of this circuit is approximately ref o v d v ? ? ? ? ? ? ?= 1 1024 22 (6) v+ v? ad8552 v o v+ v? ad8552 ?2.5v ref b2 u1 = u2 = ad5235 a2 a1 b1 w2 a1 w1 u1 u2 +2.5v ref v in v out trim 5 gnd 2 6 u3 adr421 +2.5 v ?2.5v ?2.5v +2.5v a2 v i 02816-051 u1 = midscale figure 52. 10-bit bipolar dac programmable voltage source with boosted output for applications that require high current adjustment, such as a laser diode driver or tunable laser, a boosted voltage source can be considered (see figure 53 ). ad5235 v+ v? w ad8601 v o a b v i 2n7002 r bias signal c c ld i l 02816-052 u2 figure 53. programmable booster voltage source in this circuit, the inverting input of the op amp forces v o to be equal to the wiper voltage set by the digital potentiometer. the load current is then delivered by the supply via the n-ch fet n 1 (see figure 53 ). n 1 power handling must be adequate to dissipate (v i ? v o ) i l power. this circuit can source a 100 ma maximum with a 5 v supply. for precision applications, a voltage reference, such as adr421 , adr03 , or adr370 , can be applied at terminal a of the digital potentiometer. ad5235 rev. e | page 26 of 32 programmable current source a programmable current source can be implemented with the circuit shown in figure 54 . v+ v? op1177 u2 v s sleep ref191 gnd output 3 2 4 6 u1 c1 1f ad5235 w a b r s 102? r l 100 ? v l i l +5 v ?2.048v to v l ?5v 0v to (2.048v + v l ) +5v + ? 02861-053 figure 54. programmable current source the ref191 is a unique low supply headroom and high current handling precision reference that can deliver 20 ma at 2.048 v. the load current is simply the voltage across terminal w to terminal b of the digital potentiometer divided by r s . 1024 u u s ref l r dv i (7) the circuit is simple but be aware that there are two issues. first, dual-supply op amps are ideal because the ground potential of ref191 can swing from ?2.048 v at zero scale to v l at full scale of the potentiometer setting. although the circuit works under single supply, the programmable resolution of the system is reduced by half. second, the voltage compliance at v l is limited to 2.5 v, or equivalently, a 125 load. when higher voltage compliance is needed, consider digital potentiometers, such as, ad5260 , ad5280 , and ad7376. figure 55 shows an alternate circuit for high voltage compliance. to achieve higher current, such as when driving a high power led, replace u1 with an ldo, reduce r s , and add a resistor in series with the a terminal of the digital potentiometer. this limits the current of the potentiometer and increases the current adjustment resolution. programmable bidirectional current source for applications that require bidirectional current control or higher voltage compliance, a howland current pump can be a solution (see figure 55 ). if the resistors are matched, the load current is w l v r2b r1 r2br2a i u (8) ?15v op2177 v+ v? +15v + ? c1 10pf r2 15k ? r1 150k ? r2b 50 ? r l 500 ? v l r2a 14.95k ? r1 150k ? i l op2177 v+ v? +15v + ? ?15v a1 a d5235 a b w +2.5v ?2.5v a2 02816-054 figure 55. programmable bidirectional current source r2b, in theory, can be made as small as necessary to achieve the current needed within the a2 output current driving capability. in this circuit, op2177 delivers 5 ma in either direction, and the voltage compliance approaches 15 v. without the additions of c1 and c2, the output impedance (looking into v l ) can be z o = ) ( )( r2br2ar1'r2'r1 r2ar1r2br1' (9) z o can be infinite, if resistors r1 ' and r2 ' match precisely with r1 and r2a + r2b, respectively, which is desirable. on the other hand, if the resistors do not match, z o can be negative and cause oscillation. as a result, c1, in the range of a few picofarad, is needed to prevent oscillation from the negative impedance. ad5235 rev. e | page 27 of 32 programmable low-pass filter in analog-to-digital conversions (adcs), it is common to include an antialiasing filter to band limit the sampling signal. therefore, the dual-channel ad5235 can be used to construct a second-order sallen-key low-pass filter, as shown in figure 56 . a b v i ad8601 +2.5v v o adjusted concurrent ly ?2.5v v+ v? w r r2 02816-055 r1 a b w r c1 c2 u1 figure 56. sallen-key low-pass filter the design equations are 2 2 2 f f f i o s q s v v + + = (10) c2c1r2r1 o 1 = (11) q = c2r2 1 c1r1 + 1 (12) first, users should select convenient values for the capacitors. to achieve maximally flat bandwidth, where q = 0.707, let c1 be twice the size of c2 and let r1 equal r2. as a result, the user can adjust r1 and r2 concurrently to the same setting to achieve the desirable bandwidth. programmable oscillator in a classic wien bridge oscillator, the wien network (r||c, r'c') provides positive feedback, whereas r1 and r2 provide negative feedback (see figure 57 ). d1 02816-056 d2 op1177 v+ v? +2.5v + ? ?2.5v v o u1 r2a 2.1k ? r2b 10k ? ba w r1 1k ? amplitude adjustment r = r' = ad5235 r2b = ad5231 d1 = d2 = 1n4148 r' 25k ? a b w c' vp r 25k ? a b w c 2.2nf frequency adjustment 2.2nf figure 57. programmable oscillator with amplitude control at the resonant frequency, f o , the overall phase shift is zero, and the positive feedback causes the circuit to oscillate. with r = r ' , c = c ', and r2 = r2a /(r2b + r diode ), the oscillation frequency is r c o 1 = or r c f o = 2 1 (13) where r is equal to r wa such that : w ab wa rr d dr + ? = 1024 1024 )( (14) at resonance, setting r2/r1 = 2 balances the bridge. in practice, r2/r1 should be set slightly larger than 2 to ensure that the oscillation can start. on the other hand, the alternate turn-on of the diodes, d1 and d2, ensures that r2/r1 is smaller than 2, momentarily stabilizing the oscillation. when the frequency is set, the oscillation amplitude can be turned by r2b because d d o vr2biv += 3 2 (15) v o , i d , and v d are interdependent variables. with proper selection of r2b, an equilibrium is reached such that v o converges. r2b can be in series with a discrete resistor to increase the amplitude, but the total resistance cannot be too large to saturate the output. in figure 56 and figure 57 , the frequency tuning requires that both rdacs be adjusted concurrently to the same settings. because the two channels might be adjusted one at a time, an intermediate state occurs that might not be acceptable for some applications. of course, the increment/decrement instructions (instruction 5, instruction 7, instruction 13, and instruction 15) can all be used. different devices can also be used in daisy-chain mode so that parts can be programmed to the same settings simultaneously. ad5235 rev. e | page 28 of 32 optical transmitter calibration with adn2841 the ad5235, together with the multirate 2.7 gbps laser diode driver, adn2841 , forms an optical supervisory system in which the dual digital potentiometers can be used to set the laser average optical power and extinction ratio (see figure 58 ). the ad5235 is particularly suited for the op tical parameter settings because of its high resolution and superior temperature coefficient characteristics. cs clk sdi w1 b1 eemem adn2841 pset erset imodp ibias 02816-057 impd datap datan clkp clkn clkn clkp datap datan w2 b2 eemem control ad5235 v cc v cc a1 a2 rdac1 rdac2 figure 58. optical su pervisory system the adn2841 is a 2.7 gbps laser diode driver that uses a unique control algorithm to manage the average power and extinction ratio of the laser after its initial factory calibration. the adn2841 stabilizes the data transmission of the laser by continuously monitoring its optical power and correcting the variations caused by temperature and the degradation of the laser over time. in the adn2841 , the impd monitors the laser diode current. through its dual-loop power and extinction ratio control calibrated by the dual rdacs of the ad5235, the internal driver controls the bias current, ibias, and consequently the average power. it also regulates the modulation current, imodp, by changing the modulation current linearly with slope efficiency. therefore, any changes in the laser threshold current or slope efficiency are compensated for. as a result, the optical supervisory system minimizes the laser characterization efforts and, therefore, enables designers to apply comparable lasers from multiple sources. resistance scaling the ad5235 offers 25 k or 250 k nominal resistance. when users need lower resistance but must maintain the number of adjustment steps, they can parallel multiple devices. for example, figure 59 shows a simple scheme of paralleling two channels of rdacs. to adjust half the resistance linearly per step, program both rdacs concurrently with the same settings. a1 b1 w1 w2 a2 b2 02816-058 figure 59. reduce resistance by half wi th linear adjustment characteristics in voltage divider mode, by paralleling a discrete resistor, as shown in figure 60 , a proportionately lower voltage appears at terminal a to terminal b. this translates into a finer degree of precision because the step size at terminal w is smaller. the voltage can be found as dd ab ab w v d r2rr3 r2r dv + = 1024// )//( ) ( (16) r1r2 a b w 0 02816-059 r3 v dd figure 60. lowering the nominal resistance figure 59 and figure 60 show that the digital potentiometers change steps linearly. alternatively, pseudo log taper adjustment is usually preferred in applications such as audio control. figure 61 shows another type of resistance scaling. in this configuration, the smaller the r2 with respect to r ab , the more the pseudo log taper characteristic of the circuit behaves. a 1 b1 w1 r 02816-060 figure 61. resistor scaling with pseudo log adjustment characteristics the equation is approximated as r rd rd r ab ab quivalent ++ + = 1024200,51 200,51 e (17) users should also be aware of the need for tolerance matching as well as for temperature coefficient matching of the components. ad5235 rev. e | page 29 of 32 resistance tolerance, drift, and temperature coeffi cient mismatch considerations rdac circuit simulation model the internal parasitic capacitances and the external capacitive loads dominate the ac characteristics of the rdacs. configured as a potentiometer divider, the ?3 db bandwidth of the ad5235 (25 k resistor) measures 125 khz at half scale. figure 17 provides the large signal bode plot characteristics of the two available resistor versions, 25 k and 250 k. a parasitic simulation model is shown in figure 64 . in rheostat mode operation, such as gain control, the tolerance mismatch between the digital potentiometer and the discrete resistor can cause repeatability issues among various systems (see figure 62 ). because of the inherent matching of the silicon process, it is practical to apply the dual-channel device in this type of application. as such, r1 can be replaced by one of the channels of the digital potentiometer and programmed to a specific value. r2 can be used for the adjustable gain. although it adds cost, this approach minimizes the tolerance and temperature coefficient mismatch between r1 and r2. this approach also tracks the resistance drift over time. as a result, these less than ideal parameters become less sensitive to system variations. a rda c 25k ? w 80pf c b 11pf c a 11pf 02816-063 b figure 64. rdac circuit simulation model (rdac = 25 k) ad8601 + ? v i u1 v o c1 ab w r2 r1* * replaced with another channel of rdac 02816-061 the following code provides a macro model net list for the 25 k rdac: .param d = 1024, rdac = 25e3 * .subckt dpot (a, w, b) * ca a 0 11e-12 rwa a w {(1-d/1024)* rdac + 30} cw w 0 80e-12 rwb w b {d/1024 * rdac + 30} cb b 0 11e-12 * .ends dpot figure 62. linear gain control with tracking resistance tolerance, drift, and temperature coefficient note that the circuit in figure 63 can track tolerance, temperature coefficient, and drift in this particular application. the characteristic of the transfer function is, however, a pseudo log rather than a linear gain function. ad8601 + ? v i u1 02816-062 v o c1 ab r w figure 63. nonlinear gain control with tracking resistance tolerance and drift ad5235 rev. e | page 30 of 32 outline dimensions 16 9 8 1 pin 1 seating plane 8 0 4.50 4.40 4.30 6.40 bsc 5.10 5.00 4.90 0.65 bsc 0.15 0.05 1.20 max 0.20 0.09 0.75 0.60 0.45 0.30 0.19 coplanarity 0.10 compliant to jedec standards mo-153-ab figure 65. 16-lead thin shrink small outline package [tssop] (ru-16) dimensions shown in millimeters ordering guide model 1 r ab (k) temperature range package description package option ordering quantity branding 2 AD5235BRUZ25 25 ?40c to +85c 16-lead tssop ru-16 96 5235b25 AD5235BRUZ25-rl7 25 ?40c to +85c 16-lead tssop ru-16 1,000 5235b25 AD5235BRUZ250 250 ?40c to +85c 16-lead tssop ru-16 96 5235b250 AD5235BRUZ250-r7 250 ?40c to +85c 16-lead tssop ru-16 1,000 5235b250 eval-ad5235sdz evaluation board 1 1 z = rohs compliant part. 2 line 1 contains the adi logo followed by the date code, yyww. line 2 contains the model number followed by the end-to-end resi stance value (not e: d = 250 k). or line 1 contains the model number. line 2 contains the adi logo followed by the end-to-end resistance value. line 3 contains the date code, yyww. ad5235 rev. e | page 31 of 32 notes ad5235 rev. e | page 32 of 32 notes ?2004C2011 analog devices, inc. all rights reserved. trademarks and registered trademarks are the property of their respective owners. d02816-0-4/11(e) |
Price & Availability of AD5235BRUZ25 |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |