English
Language : 

CAT5171 Datasheet, PDF (11/12 Pages) ON Semiconductor – 256-Position I2C Compatible Digital Potentiometer
CAT5171
INSTRUCTION AND REGISTER DESCRIPTION
SLAVE ADDRESS BYTE
The first byte sent to the CAT5171 from the
master/processor is called the Slave Address Byte. The most
significant six bits of the slave address are a device type
identifier. For the CAT5171, these bits are fixed at 010110.
The next bit, AD0, is the first bit of the internal slave
address and must match the physical device address which
is defined by the state of the AD0 input pin for the CAT5171
to successfully continue the command sequence. Only the
device which slave address matches the incoming device
address sent by the master executes the instruction. The AD0
input can be actively driven by CMOS input signals or tied
to the supply voltage or ground.
The next bit, R/W, indicates whether this command
corresponds to a Write or Read instruction. To write into the
Wiper control register, R/W bit is set to a logic low; while a
read from the wiper register is done with the bit high.
power−up, the wiper is set to midscale and may be
repositioned anytime after the power has become stable.
INSTRUCTIONS
Write and Read instructions are respectively three and two
bytes in length. The basic sequence of the two instructions
is illustrated in Table 11 and 12.
In write mode, the second byte is the instruction byte. The
first bit (MSB) of the instruction byte is a don’t care. The
second MSB, RS, is the midscale reset. A logic high on this
bit moves the wiper to the center tap. The third MSB, SD, is
a shutdown bit. A logic high causes an open circuit at
terminal A, and short the wiper terminal W to terminal B.
The “shutdown” operation does not change the contents of
the wiper register. When the shutdown bit, SD, goes back to
a logic low, the previous wiper position is restored. Also
during shutdown, new settings can be programmed. As soon
as the device is returned from shutdown, the wiper position
is set according to the wiper register value.
WIPER CONTROL
The CAT5171 contains one 8−bit Wiper Control Register
(WCR). The Wiper Control Register output is decoded to
select one of 256 switches along its resistor array. The
contents of the WCR may be written by the host via Write
instruction.
The Wiper Control Register is a volatile register that loses
its contents when the CAT5171 is powered−down. Upon
TWO CAT5171 ON A SINGLE BUS
When needed, it is possible to connect two CAT5171
potentiometers on the same I2C bus and be able to address
each one independently. Each device can be set to a unique
address by using the AD0 input pin. One device AD0 pin is
connected to ground, and the other device AD0 pin is tied to
the supply voltage.
Table 11. Write
S 0 1 0 1 1 0 AD0 W A X RS SD X X X X X A D7 D6 D5 D4 D3 D2 D1 D0 A P
Slave Address Byte
Instruction Byte
Data Byte
SDA
0 1 0 1 1 0 AD0 R/W X RS SD X X X X X
D7 D6 D5 D4 D3 D2 D1 D0
S
T
A
R
T
A
C
K
Slave Address Byte
A
C
K
Instruction Byte
Data Byte
AS
CT
KO
P
Table 12. READ
S
0 1 0 1 1 0 AD0 R A D7
D6
D5
D4
D3
D2
D1
D0
A
P
Slave Address Byte
Data Byte
SDA
0 1 0 1 1 0 AD0 R/W
D7 D6 D5 D4 D3 D2 D1 D0
S
T
A
R
A
C
K
T
Slave Address Byte
Data Byte
N
S
A
T
C
O
K
P
Legend
S = Start
W = Write (bit is 0 for Write instruction)
P = Stop
A = Acknowledge
AD0 = Address bit 0, needed when using two
potentiometers on the same I2C bus.
D = Data bit
R = Read (bit is 1 for Read instruction)
RS = When the bit is 1, the wiper position is moved
to mid−scale 0x80
SD = Shut Down:
0: normal operation
1: wiper is parked at B terminal and terminal A
is open circuit.
X = Don’t Care
http://onsemi.com
11