DS1882
Dual Log Audio Digital Potentiometer
10 ____________________________________________________________________
Configuration Register
If 10 is entered as the value of the two MSBs of the
Command Byte, then the Configuration Register is to
be modified. The three LSBs of the Configuration
Register control the NV/volatile wiper setting, the zero-
crossing detection feature, and the potentiometer atten-
uation configuration.
CONFIGURATION REGISTER
Factory Default: 87h
Memory Type: NV (EEPROM)
1 0 X X X
V/NV
CONTROL
ZERO-
CROSSING
POT
CONFIG
b7 b6 b5 b4 b3 b2 b1 b0
bits 7, 6
Configuration Selection: When bit 7 is set to a 1 and bit 6 is set to a 0, the following configuration bits can be set
and stored in EEPROM.
bits 5, 4, 3 These bits have no function.
bit 2
Volatile/Nonvolatile Potentiometer Register Control Bit: A control bit that sets the potentiometer registers to be
either volatile or nonvolatile memory.
0 = Potentiometer registers are set to nonvolatile memory storage.
1 = Potentiometer registers are set to volatile memory storage. On power-up, the potentiometer wipers are in the
mute position (default).
bit 1
Zero-Crossing Detection Enable Bit: A bit used to enable and disable the zero-crossing functionality.
0 = Zero-crossing detection is disabled.
1 = Zero-crossing detection is enabled (default).
bit 0
Potentiometer Position Configuration: A control bit used to select the number of positions both potentiometers
have.
0 = Potentiometers have 63 positions and mute.
1 = Potentiometers have 33 positions and mute (default).
DS1882
Dual Log Audio Digital Potentiometer
____________________________________________________________________ 11
I
2
C Interface for the DS1882
The CE pin serves as a communication enable pin.
When active (CE = 0), the inputs SDA and SCL are rec-
ognized by the device. If inactive (CE = 1), pins SDA
and SCL are disabled, making I
2
C communication
impossible.
Three pins, A0, A1, A2, serve as slave address inputs.
For multidrop configurations, they allow eight such
devices to be addressed by the same I
2
C bus. If the
I
2
C address matches the hardware levels of these bits,
the DS1882 is allowed to receive communications from
the I
2
C bus.
The I
2
C slave address byte is shown below. This is the
first byte transmitted from the master to the DS1882.
The upper nibble value is fixed to 0101. Bit values A2,
A1, and A0 are determined by the states of the corre-
sponding pins. The LSB, R/W, determines whether a
read or write will be performed.
The next byte to be transmitted is the Command Byte
(see the Command Byte section for details).
READ PROTOCOL
00
MSB LSB
POT-0 10
MSB LSB
POT-1
A
0
A
1
A
2
11010
MSB LSB
R/W = 1
DATA BYTES ARE READ IN THE ORDER SHOWN ABOVE.
COMMAND
BYTE
COMMAND
BYTE
COMMAND
BYTE
SLAVE ADDRESS
BYTE
MSB LSB
CONFIG
REG
10
START
ACK
ACK
ACK
NACK
STOP
Figure 1. Read Protocol
SLAVE ADDRESS BYTE
0 1 0 1 A2A1A0R/W
MSB LSB
Reading Pot Values
As shown in Figure 1, the DS1882 provides one read
command operation. This operation allows the user to
read both Potentiometer Wiper Setting Registers and
the Configuration Register. To initiate a read operation,
the R/W bit of the slave address byte is set to 1.
Communication to read the DS1882 begins with a
START condition, which is issued by the master device.
The slave address byte sent from the master device fol-
lows the START condition. Once a matching slave
address byte has been received by the DS1882, the
DS1882 responds with an acknowledge. The master
can then begin to receive data. The value of the wiper
of Potentiometer 0 is the first returned from the DS1882.
It is then followed by the value of Potentiometer 1 and
then the value of the Configuration Register. Once the 8
bits of the Configuration Register have been sent, the
master needs to issue an acknowledge, unless it is the
last byte to be read, in which case the master issues a
not acknowledge. If desired, the master may stop the
communication transfer at this point by issuing the
STOP condition after the not acknowledge. However, if
the value of the three registers is needed again, the
transfer can continue by clocking the 8 bits of the
Potentiometer 0 value as described above.
DS1882
Dual Log Audio Digital Potentiometer
12 ____________________________________________________________________
Writing Command Byte Values
An example of writing to the DS1882 is shown in Figure 2.
The DS1882 has one write command that is used to
change the Potentiometer Wiper Setting Registers and
the Configuration Register. All write operations begin with
a START from the master, followed by a slave address
byte. The R/W bit should be written to 0, which initiates
a write command. Once the slave address byte has
been issued and the master receives the acknowledge
from the DS1882, potentiometer wiper data is transmit-
ted to the DS1882 by the master device.
If the potentiometer has been configured to be written
in nonvolatile memory (see the Configuration Register
section), then the acknowledge needs to be followed
with a STOP command. This command is required from
the master at the end of data transmission to initiate the
EEPROM write. The STOP command is also accepted if
the user has configured the pot values to be written in
volatile memory, but no EEPROM is written to.
I
2
C Serial Interface Description
I
2
C interface supports a bidirectional data transmission
protocol with device addressing. A device that sends
data on the bus is defined as a transmitter, and a
device receiving data as a receiver. The device that
controls the message is called a master. The devices
that are controlled by the master are slaves. The bus
must be controlled by a master device that generates
the serial clock (SCL), controls the bus access, and
generates the START and STOP conditions. The
DS1882 operates as a slave on the I
2
C bus. Connections
to the bus are made by the open-drain I/O lines, SDA
and SCL. The following I/O terminals control the I
2
C
serial port: CE, SDA, SCL, A0, A1, and A2. A data
transfer protocol and a timing diagram are provided in
Figures 3 and 4. The following terminology is commonly
used to describe I
2
C data transfers.
I
2
C Definitions
Master Device: The master device controls the slave
devices on the bus. The master device generates SCL
clock pulses, START and STOP conditions.
Slave Devices: Slave devices send and receive data
at the masters request.
Bus Idle or Not Busy: Time between STOP and START
conditions when both SDA and SCL are inactive and in
their logic-high states. When the bus is idle it often initi-
ates a low-power mode for slave devices.
START Condition: A START condition is generated by
the master to initiate a new data transfer with a slave.
Transitioning SDA from high to low while SCL remains
high generates a START condition. See the timing dia-
gram for applicable timing.
STOP Condition: A STOP condition is generated by
the master to end a data transfer with a slave.
Transitioning SDA from low to high while SCL remains
high generates a STOP condition. See the timing dia-
gram for applicable timing.
Repeated START Condition: The master can use a
repeated START condition at the end of one data trans-
fer to indicate that it will immediately initiate a new data
transfer following the current one. Repeated STARTs
are commonly used during read operations to identify a
specific memory address to begin a data transfer. A
repeated START condition is issued identically to a nor-
mal START condition. See the timing diagram for
applicable timing.
Bit Write: Transitions of SDA must occur during the low
state of SCL. The data on SDA must remain valid and
unchanged during the entire high pulse of SCL plus the
setup and hold-time requirements (see Figure 4). Data is
shifted into the device during the rising edge of the SCL.
Bit Read: At the end of a write operation, the master
must release the SDA bus line for the proper amount of
WRITE PROTOCOL
00
MSB LSB
POT-0 10
MSB LSB
POT-1
A
0
A
1
A
2
01010
MSB LSB
R/W = 0
DATA BYTES CAN BE WRITTEN IN ANY ORDER.
COMMAND
BYTE
COMMAND
BYTE
COMMAND
BYTE
SLAVE ADDRESS
BYTE
MSB LSB
CONFIG
REG
10
START
ACK
ACK
ACK
ACK
STOP
Figure 2. Write Protocol

DS1882E-050+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Digital Potentiometer ICs Dual NV Audio Taper
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet