One Technology Way • P.O. Box 9106 • Norwood, MA 02062-9106 • Tel: 781/329-4700 • Fax: 781/326-8703 • www.analog.com
ADN2850 Evaluation Kit User Manual
By Alan Li
7 STEPS TO EVALUATION KIT SETUP
The ADN2850 evaluation kit (EVAL-ADN2850-25) consists of a demonstration board and software for
evaluating the ADN2850. It is a user-friendly tool that
1.
INSTALL THE ADN2850 SOFTWARE
2. INSTALL THE DRIVER
3. CONNECT THE PARALLEL
PORT CABLE
4. CONFIGURE THE
EVALUATION BOARD
you can control with your personal computer through
the printer port. The driving program is self-contained,
so no programming languages or skills are needed.
Figure 1 provides an overview of how to set up the kit.
6. OPEN THE ADN2850 SOFTWARE AND
PROGRAM THE RESISTANCE SETTINGS
REV. 0
+5V
5. APPLY THE POWER SUPPLY
GND
Figure 1. Evaluation Kit Setup
W1
B1
7. MEASURE THE RESULT
AN-628
SETTING UP THE ADN2850 EVALUATION BOARD
Step 1—Installing the ADN2850 Software
To install the ADN2850 software from the Revision G
CD, run setup.exe under D:\ADN2850 Evaluation Software Package. During the installation, select Ignore orYes to bypass error messages if they occur. You may
need to install the software a few times to get a successful installation.
Step 2—Installing the Driver for PC Parallel Port
Communications
In addition to installing the ADN2850 software, you need
to install a third-party driver, NTPORT from Upper
Canada Technologies (UCT), for access to the PC parallel
port. UCT offers a free trial with a nominal license fee
after 30 days.
1. Download the driver from www.uct.on.ca. From the
UCT website, download NTPORT.OCX. Save
ntport.zip in the default or specified directory. Unzip
and extract all the files to the directory.
2. Run setup.exe. If the setup procedure indicates
file violations during installation, select Ignore to
bypass them.
3. Ensure that the driver file, dlportio.sys, is in the
correct system directory.
Note: If Windows® displays an error message, such as
“Can’t connect to service control manager,” contact the
IS department for authority to continue installation.
b.Change the pathname of the driver according to
the operating system.
• On a Windows 2000 or Window NT
enter c:\winnt\system32\drivers\dlportio.sys.
®
system,
• On a Windows XP system, enter
c:\windows\system32\drivers\dlportio.sys.
c. Click the Install button, then the Start button. If
the status message indicates success, the driver is
installed and operating. Click OK.
4. Set up the driver for automatic startup. Use the
following steps that apply to your operating system.
For Windows 2000 and XP Systems
a. Go to the Device Manager.
• On a Windows 2000 system, click
Start → Settings → Control Panel → System →
Hardware → Device Manager.
• On a Windows XP system, click
Start → Control Panel → System → Hardware →
Device Manager.
a. Run loaddrv.exe under c:\program files\project1
or the specified directory. A dialog box appears.
–2–
REV. 0
AN-628
b.Locate Non-Plug and Play Drivers and dlportio in the Device Manager.
If the Non-Plug and Play Drivers entry is not visible, click the View menu in Device Manager and select Show
Hidden Devices to make sure that hidden driver files are listed. If you do not see dlportio, reboot Windows, or rerun
loaddrv.exe and then reboot Windows.
c. Double-click dlportio in the Non-Plug and Play Drivers list. The dlportio Properties page appears.
d.At the Driver tab, select Startup Type as Automatic, click Current status to Start, and click OK.
Note: If Startup is not active and you cannot change Type, your computer may be administered by your IS department.
You may need to consult them to change your PC administrative setting.
REV. 0
–3–
AN-628
For Windows NT Systems
a. From the Windows NT Control Panel, select the
Devices icon. The Devices dialog box appears.
b.Select dlportio and click the Startup button. The
device Startup Type dialog box appears. From the
option buttons, select Automatic, and then click OK.
• For dual supplies, connect JP15 and JP12 to connect
the –5V pin to V
of U1 and U3.
SS
Warning: Apply +2.5 V to Pin +5V and –2.5 V to
Pin –5V instead.
• Select the states of PR and WP from the DIP switches
on the evaluation board.
• SDO can be monitored at TPSDO.
Step 5—Applying the Power Supply
Provide a power supply to the ADN2850 evaluation
board according to Step 4 for a single supply or for
dual supplies.
Step 6—Using the Evaluation Board
To open the ADN2850 software program, from Windows
click Start → Programs → ADN2850 Rev G.
Figure 2 shows the graphical interface. In the Direct Control pane, on the right, you can move the scroll bars or
click the buttons to control the device. In the top pane,
you can adjust the bit pattern and then click Run to program the device. In the bottom pane, you can
approximate R
R
after power is applied.
AB
and RWB by first entering the measured
WA
Step 7—Measuring the Result
Use a multimeter to measure the result of your program
applications on the ADN2850 evaluation board.
Step 3—Connecting the Parallel Port Cable
Connect the parallel port cable from LPT1 on your PC to
the ADN2850 evaluation board.
Step 4—Configuring the Evaluation Board
Follow these requirements to configure the ADN2850
evaluation board:
• For a single supply, connect JP14 and JP13 to
ground V
of U1 and U3. Apply 5 V to Pin +5V.
SS
Note: Some boards do not come with jumper
caps. You should supply suitable caps or simply
short the jumpers for proper operation.
UNINSTALLING SOFTWARE
To uninstall the ADN2850 software and NTPORT driver,
use Add/Remove Programs in the Control Panel.
TECHNICAL SUPPORT
Due to the variations in computer platforms and configurations, Analog Devices, Inc., cannot guarantee the
software described in this application note to work on all
systems. If you encounter problems, send email to
digital.pots@analog.com or call 1-408-382-3082 for
applications support. If you are interested in the
ADN2850 source code, send email to alan.li@analog.com
for more information.
–4–
REV. 0
AN-628
Figure 2. ADN2850 Software Graphical Interface
REV. 0
–5–
AN-628
EVALUATION BOARD SCHEMATIC
The general-purpose op amp AD820, U3A can be configured
as various building block circuits in conjunction with the
ADN2850 for various circuit evaluations (see the Applications
ADN2850 MAIN CIRCUIT
J1
DB25
NOTES
SIGNAL GROUND WITH NET DGND
POWER GROUND WITH NET AGND
DGND
13
25
12
24
11
23
10
22
9
21
8
20
7
19
6
18
5
17
R_CS 100
4
16
R_CLK 100
3
15
R_SDI 100
2
14
1
TP/CS
TPCLK
TPSDI
ADN2850CSP
TPSDO
+5
HEADER
HEADER
U1A
SDI16CLK15RDY14CS
1
SDO
2
GND
3
VSS
4
A1
R1
1k
JP14
JP15
W15B16B2
1
CLK
2
SDI
3
SDO
4
GND
5
VSS
6
A1
7
W1
8
B1
ADN2850TSSOP
C12
0.1F
(LOWER TO –2.5V IF DUAL SUPPLIES)
U1B
7
RDY
CS
PR
WP
VDD
A2
W2
B2
C13
4.7F
section). Other op amps in PDIP can replace the AD820. For a
single-supply, 2.5 V voltage reference, AD1582 can be
used to offset the op amp bias point for ac operation.
+5
+5V
VDD
W2
PR
WP
A2
8
16
15
14
13
12
11
10
9
–5
(LOWER TO +2.5V IF DUAL SUPPLIES)
R2
R3
10k
10kR410k
13
12
11
10
9
GND
–5V
C10
4.7F
C11
0.1F
TP/WPTP/PRTPRDY
HIGHLOW
A1
W1
B1
A2
W2
B2
S1
18
27
36
45
SW-DIP4
VI_DC
V
_AC
I
0.1F
C7
ADDITIONAL OP AMP FOR GENERAL-PURPOSE APPLICATIONS
Command bits are C0–C3. Addresses bits are A3–A0. Data bits D0–D9 are applicable to the RDAC wiper register, whereas D0–D15 are applicable to the
EEMEM register. Command instruction codes are defined in Table II.
Table II. ADN2850 Instruction/Operation Truth Table
00000XXXX X • • • XX X • • •X NOP: Do nothing. See Table V.
10001000A0 X • • • XX X • • •X Write the contents of EEMEM(A0) to RDAC(A0). This
command leaves the device in the read program
power state. To return the device to the idle state,
perform NOP instruction 0. See Table V.
20010000A0 X • • • XX X • • •X Save wiper setting: Write the contents of RDAC(A0)
to EEMEM(A0). See Table IV.
4
3
0011A3A2A1A0 D15 • • • D8 D7• • • D0 Write the contents of serial register data bytes 0 and
1 (total 16-bit) to EEMEM(ADDR). See Table VII.
5
4
0100000A0 X • • • XX X • • •X Decrement 6 dB: Right-shift contents of RDAC(A0),
stops at all ”zeros.”
5
5
0101XXXX X • • • XX X • • •X Decrement all 6 dB: Right-shift contents of all RDAC
registers, stops at all ”zeros.”
5
6
0110000A0 X • • • XX X • • •X Decrement contents of RDAC(A0) by ”one,” stops at
all ”zeros.”
5
7
0111XXXX X • • • XX X • • •X Decrement contents of all RDAC registers by “one,”
stops at all “zeros.”
810000000 X • • • XX X • • •X Reset: Load all RDACs with their corresponding
EEMEM previously saved values.
91001A3A2A1A0 X • • • XX X • • •X Write contents of EEMEM(ADDR) to serial register
data bytes 0 and 1. SDO activated. See Table VIII.
101010000A0 X • • • XX X • • •X Write contents of RDAC(A0) to serial register data
bytes 0 and 1. SDO activated. See Table IX.
111011000A0 X • • • D9D8D7 • • •D0Write contents of serial register data bytes 0 and 1
(total 10-bit) to RDAC(A0). See Table III.
5
12
1100000A0 X • • • XX X • • •X Increment 6 dB: Left-shift contents of RDAC(A0),
stops at all “ones.” See Table VI.
5
13
1101XXXX X • • • XX X • • •X Increment all 6 dB: Left-shift contents of all RDAC
registers, stops at all “Ones.”
5
14
1110000A0 X • • • XX X • • •X Increment contents of RDAC(A0) by “one,” stops at
all “ones.” See Table IV.
5
15
1111XXXX X • • • XX X • • •X Increment contents of all RDAC registers by “one,”
stops at all “ones.”
NOTES
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 following
instruction 9 or 10, the selected internal register data will be present in data byte 0 and 1. The instructions following 9 and 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 register.
3. Execution of the above operations takes place when the CS strobe returns to logic high.
4. Instruction 3 writes two data bytes (total 16-bit) to EEMEM. However, in the cases of addresses 0 and 1, only the last 10 bits are valid for wiper position setting.
5. The increment, decrement, and shift commands ignore the contents of the shift register data bytes 0 and 1.
REV. 0
–7–
AN-628
PROGRAMMING EXAMPLES
The following programming examples illustrate the
typical sequence of events for various features of the
ADN2850. Refer to Table II for the instructions and dataword format. The instruction numbers, addresses, and
data appearing at the SDI and SDO pins are displayed in
hexadecimal format in the tables.
Table III. Scratchpad Programming
SDISDOAction
B00100HXXXXXXHLoads data 100H into the RDAC1
register. Wiper 1 moves to the
1/4 full-scale position.
B10200
B00100HLoads data 200H into the RDAC2
H
register. Wiper 2 moves to the
1/2 full-scale position.
Table IV. Incrementing RDAC Followed
by Storing the Wiper Setting to EEMEM
SDISDOAction
B00100HXXXXXXHLoads data 100H into the RDAC1
register. Wiper 1 moves to the
1/4 full-scale position.
E0XXXX
B00100HIncrements the RDAC1 register
H
by one to 101H.
E0XXXX
E0XXXXHIncrements the RDAC1 register
H
by one to 102H.
Continue until the desired wiper
position is reached.
20XXXXHXXXXXXHSaves RDAC1 register data into
EEMEM1.
Optionally tie WP to GND to
protect EEMEM values.
Table V. Restoring EEMEM Values to RDAC Registers
SDISDOAction
10XXXXHXXXXXXHRestores EEMEM1 value to
RDAC1 register.
00XXXXH10XXXXXHNOP. Recommended step to
minimize power consumption.
8XXXXXH00XXXXHResets EEMEM1 and EEMEM2
values to RDAC1 and RDAC2
registers, respectively.
EEMEM values for RDACs can be restored by power-on, strobing the
PR pin or programming as shown above.
Table VI. Using Left Shift by One to Increment 6 dB Steps
SDISDOAction
C0XXXXHXXXXXXHMoves wiper 1 to double the
present data contained in the
RDAC1 register.
C1XXXX
C0XXXXHMoves wiper 2 to double the
H
present data contained in the
RDAC2 register.
Table VII. Storing Additional User Data in EEMEM
SDISDOAction
32AAAAHXXXXXXHStores data AAAAH into spare
EEMEM location USER1. Allowable to address in 13 locations
with maximum 16 bits of data.
335555
32AAAAHStores data 5555H into spare
H
EEMEM location USER2. Allowable to address 13 locations
with maximum 16 bits of data.
Table VIII. Reading Back Data from
Various Memory Locations
SDISDOAction
92XXXXHXXXXXXHPrepares data read from USER1
location.
00XXXXH92AAAAHNOP instruction 0 sends 24-bit
word out of SDO where the last
16 bits contain the contents of
USER1 location. NOP command
ensures device returns to idle
power dissipation state.
Table IX. Reading Back Wiper Setting
SDISDOAction
B00200HXXXXXXHSets RDAC1 to midscale.
C0XXXX
B00200HDoubles RDAC1 from midscale
H
to full scale.
A0XXXX
C0XXXXHPrepares reading wiper setting
H
from RDAC1 register.
XXXXXXHA003FFHReads back full-scale value
from RDAC1 register.
–8–
REV. 0
APPLICATIONS
V
R1RDAC
I
G =
VO =
–RWB
R1
(D RAB)
–V
I
(2
BA
n
R1)
AN-628
U1
ADN2850
1
CLK
2
SDI
3
SDO
4
GND
5
VSS
6
A1*
7
W1
8
V
O
B1
JP15
–5 (–2.5V)
VI_DC
Figure 4. Inverting Linear Gain and Attenuator
16
RDY
15
CS
14
PR
13
WP
12
A2*
W2
B2
11
10
9
JP6
JP4
R1
–INPUT
1
+5 (+2.5V)
2
–
AD820AR
3
+
7
U3
4
VDD
1
JP1
JP12
1, 5, 8
V
O
1
6
V
O
0V
–200mV
00.5
V(VO)
= 0.1V
V
I
R1 = 5k, RAB = 10k
POTSETTING
1.0
–5 (–2.5V)
RDY
WP
VDD
A2*
W2
CS
PR
B2
FB
1
16
15
14
13
–INPUT
12
11
10
9
C9
JP4
JP3
1
+5 (+2.5V)
2
–
AD820AR
3
+
R2
JP8
7
U3
4
JP1
JP12
1, 5, 8
V
O
1
–10V
V
= 0.1V
I
RAB = 10k, R2 = 10k
LOG
–100mV
6
V
O
00.5
V(VO)
POTSETTING
1.0
U1
ADN2850
1
CLK
2
SDI
3
SDO
4
GND
5
VSS
–5 (–2.5V)
JP15
6
A1*
7
W1
8
B1
VI_DC
1
VI_AC
1
RDAC
V
I
R2
BA
V
O
–R2
G =
RWA
(2n R2)
–V
I
VO =
n
–D) RAB
(2
–5 (–2.5V)
Figure 5. Inverting Exponential Gain and Attenuator
REV. 0
–9–
AN-628
R1RDAC
V
I
G = 1 +
VO = VI 1+
RWB
R1
BA
V
O
D RAB
n
R1
2
U1
ADN2850
1
2
3
4
5
6
7
8
JP14
CLK
SDI
SDO
GND
VSS
A1*
W1
B1
VI_DC
1
JP5
RDY
CS
PR
WP
VDD
A2*
W2
B2
JP2
16
15
14
13
12
11
10
9
R1
JP6
–INPUT
1
2
–
AD820AR
3
+
+5
7
U3
4
JP13
Figure 6. Noninverting Linear Gain
1, 5, 8
V
O
1
6
300mV
= 0.1V
V
I
R1 = 5k, RAB = 10k
0V
00.5
V
O
V(VO)
POTSETTING
1.0
RDAC
BA
V
I
G = 1 +
VO = VI 1 +
U1
ADN2850
1
CLK
2
SDI
3
SDO
4
GND
5
VSS
R2
V
O
6
A1*
7
W1
8
B1
RDY
CS
PR
WP
VDD
A2*
W2
16
15
14
13
12
11
10
9
B2
JP14
R2
RWA
n
R2
2
n
–D) RAB
(2
VI_DC
1
VI_AC
1
JP3
C9
Figure 7. Noninverting Exponential Gain
1
JP2
–INPUT
1
2
–
AD820AR
3
+
V
O
1
R2
JP8
+5
1, 5, 8
7
U3
6
V
O
4
JP13
–10–
REV. 0
PCB LAYOUT
AN-628
Figure 8. Top Layer
REV. 0
Figure 9. Bottom Layer
–11–
AN-628
Figure 10. Top Overlay Silkscreen
–12–
REV. 0
AN-628
PCB LAYOUT CONSIDERATIONS
To stabilize voltage supplies, bypass Pin +5V and Pin –5V
with a 4.7 mF or 10 m F capacitor with proper polarities. Adding 0.1 mF decoupling capacitors, very close to
the supply pins of the active component, can minimize
high frequency noise as well.
Table X. PCB Parts List
DesignatorFootprintComment
TPSDOTest point 0.09
TPCLKTest point 0.09
TPSDITest point 0.09
TP/CSTest point 0.09
+5VPost pin 0.125
GNDPost pin 0.125
B1Post pin 0.125
W1Post pin 0.125
A1Post pin 0.125
TPRDYTest point 0.09
TP/WPTest point 0.09
TP/PRTest point 0.09
DGNDDGNDPAD
C12RAD 0.10.1 mF
C7RAD 0.10.1 mF
C11RAD 0.10.1 mF
C6RAD 0.10.1 mF
C5RAD 0.10.1 mF
R_/CSAxial 0.3100 W
R_CLKAxial 0.3100 W
R_SDIAxial 0.3100 W
R4Axial 0.310 kW
R3Axial 0.310 kW
R2Axial 0.310 kW
R1Axial 0.31 kW
C8RAD 0.21 mF
C13RAD 0.24.7 mF
C10RAD 0.24.7 mF
U2SOT-23AD1582
U1BTSSOP-16ADN2850TSSOP
U1ALFCSP-16ADN2850CSP
5 mm ¥ 5 mm
U3BDIP8AD820AN
U3ASO-8AD820AR
J1DB25SLDB25
JP15SIP2Header
JP14SIP2Header
JP5SIP2Header
JP3SIP2Header
JP2SIP2Header
JP4SIP2Header
JP12SIP2Header
JP13SIP2Header
S1DIP8SW-DIP4
REV. 0
–13–
AN-628
ADN2850 PARALLEL PORT CONNECTION
(For Visual Basic Program Developers Only)
PR CS CLK SDI
GND
13 12 11 10
25
S7 S6 S5 S4 S3
NOTE
8 OUTPUT PINS ACCESSED VIA THE DATA PORT
5 INPUT PINS (1 INVERTED) ACCESSED VIA THE STATUS PORT
4 OUTPUT PINS (3 INVERTED) ACCED VIA THE CONTROL PORT
REMAINING 8 PINS ARE GROUNDED
Figure 11. Parallel Port Connector Configuration (For VB Program Developers Only)