256-Position SPI Compatible
Dual Digital Potentiometer
Evaluation Board User Manual
AD5162
AD5162 Parallel Port Connection (Information for Visual Basic Program Developers Only)
SHDN VDD DIS RES/AD1
CLK/SCL
CS/AD0
SDI/SDA
SDO/O1
DGND
SDA_Read
http://www.doc.ic.ac.uk/~ih/doc/par/
8 output pins accessed via the
DATA Port
portID = Val("&H" + "378") [378h = 888]
5 input pins (one inverted) accessed via the
STATUS Port
portID = Val("&H" + "379") [379h = 889]
4 output pins (three inverted) accessed via the
CONTROL Port
portID = Val("&H" + "37A") [37Ah = 890]
The remaining 8 pins are grounded
TIMING DEFINATION IN VISUAL BASIC SOURCE CODE cmdRUN
No Activity
Latch Data
Send out
BIT_TOGO=0
Decimal Code
bit 0
(Pin 2)
bit 1
(Pin 3)
bit 2
(Pin 4)
Binary Code
1100 1001 1011 1000 1010 1100
12 9 11 8 10 12
SDI
CLK
/CS
Rev B 11/03/03
6