DS3904U-020+

DS3904/DS3905
Detailed Description
The DS3904/DS3905 contain three, 128-position, NV,
low temperature coefficient, variable digital resistors. All
three resistors also feature a Hi-Z function. The variable
resistor registers (F8h, F9h, and FAh) are factory pro-
grammed with a default value of 7Fh. They are con-
trolled through a 2-wire serial interface, and can serve
as a low-cost replacement for designs using conven-
tional trimming resistors. Furthermore, the DS3904
address pin (A0) allows two DS3904s to be placed on
the same 2-wire bus. The three address pins on the
DS3905 allow up to eight DS3905s to be placed on the
same 2-wire bus.
With their low cost and small size, the DS3904/DS3905
are well tailored to replace larger mechanical trimming
variable resistors. This allows the automation of calibra-
tion in many instances because the 2-wire interface can
easily be adjusted by test/production equipment.
Variable Resistor Memory Organization
The variable resistors of the DS3904/DS3905 are
addressed by communicating with the registers in
Table 1.
Using the Resistor as a Switch
By taking advantage of the high-impedance mode, a
switch can be created to produce a digital output.
Setting a resistor register to 00h creates the low state.
Writing 80h into the same resistor register enables the
high-impedance state. When used with an external
pullup resistor, such as a 4.7kΩ pullup, a high state
is generated.
Device Operation
Clock and Data Transitions
The SDA pin is normally pulled high with an external
resistor or device. Data on the SDA pin can only change
during SCL low time periods. Data changes during SCL
high periods indicate a start or stop condition depend-
ing on the conditions discussed below. See the timing
diagrams for further details (Figures 2 and 3).
Start Condition
A high-to-low transition of SDA with SCL high is a start
condition, which must precede any other command. See
the timing diagrams for further details (Figures 2 and 3).
Stop Condition
A low-to-high transition of SDA with SCL high is a stop
condition. After a read or write sequence, the stop com-
mand places the DS3904/DS3905 into a low-power
mode. See the timing diagrams for further details
(Figures 2 and 3).
Acknowledge
All address and data bytes are transmitted through a
serial protocol. The DS3904/DS3905 pull the SDA line
low during the ninth clock pulse to acknowledge that
they have received each byte.
Standby Mode
The DS3904/DS3905 feature a low-power mode that is
automatically enabled after power-on, after a stop com-
mand, and after the completion of all internal operations.
Pin Description
PIN
NAME
DS3904 DS3905
DESCRIPTION
SDA 1 2
2-Wire Serial Data. Open-drain
input/output for 2-wire data.
SCL 2 3
2-Wire Serial Clock. Input for
2-wire clock.
V
CC
3 4 Supply Voltage Terminal
GND 4 5 Ground Terminal
H2 5 6 Resistor 2 High Terminals
H1 6 7 Resistor 1 High Terminals
H0 7 8 Resistor 0 High Terminals
A0 8 9 Address-Select Pin
A1 1 Ad d r ess- S el ect P i n ( D S 3905 Onl y)
A2 10 Ad d r ess- S el ect P i n ( D S 3905 Onl y)
Triple 128-Position Nonvolatile Digital
Variable Resistor/Switch
_____________________________________________________________________ 7
Table 1. Variable Resistor Registers
ADDRESS
VARIABLE
RESISTOR
POSITION 7Fh
RESISTANCE
NUMBER OF
POSITIONS*
F8h Resistor 0
20k
(nominal)
128 (00h to
7Fh) + Hi-Z
F9h Resistor 1
20k or 10k
(nominal)
128 (00h to
7Fh) + Hi-Z
FAh Resistor 2
20k
(nominal)
128 (00h to
7Fh) + Hi-Z
*
Writing a value greater than 7Fh to any of the resistor registers
sets the high-impedance mode control bit (RHIZ, the MSB of
the resistor register) resulting in the resistor going into high-
impedance mode. Position 0 is the minimum position. Position
7Fh is the maximum position.
DS3904/DS3905
Triple 128-Position Nonvolatile Digital
Variable Resistor/Switch
8 ______________________________________________________________________
Bus Reset
After any interruption in protocol, power loss, or system
reset, the following steps reset the DS3904/DS3905:
1) Clock up to nine cycles.
2) Look for SDA high in each cycle while SCL is high.
3) Create a start condition while SDA is high.
Device Addressing
The DS3904/DS3905 must receive an 8-bit device
address byte following a start condition to enable a
specific device for a read or write operation. The
address byte is clocked into the DS3904/DS3905 MSB
to LSB. For the DS3904, the address byte consists of
101000 binary followed by A0 then the R/W bit. If the
R/W bit is high, a read operation is initiated. For the
DS3905, the address byte consists of 1010 binary fol-
lowed by A2, A1, A0 then the R/W bit. If the R/W bit is
low, a write operation is initiated. For a device to
become active, the value of the address bits must be
the same as the hard-wired address pins on the
DS3904/DS3905. Upon a match of written and hard-
wired addresses, the DS3904/DS3905 output a zero for
one clock cycle as an acknowledge. If the address
does not match, the DS3904/DS3905 return to a low-
power mode.
Write Operations
After receiving a matching device address byte with the
R/W bit set low, the device goes into the write mode of
operation. The master must transmit an 8-bit EEPROM
memory address to the device to define the address
where the data is to be written. After the byte has been
received, the DS3904/DS3905 transmit a zero for one
clock cycle to acknowledge that the memory address
has been received. The master must then transmit an 8-
bit data word to be written into this memory address. The
DS3904/DS3905 again transmit a zero for one clock
cycle to acknowledge the receipt of the data byte. At this
point, the master must terminate the write operation with
a stop condition. The DS3904/DS3905 then enter an
internally timed write process t
w
to the EEPROM memo-
ry. All inputs are disabled during this write cycle.
Acknowledge Polling
Once a EEPROM write is initiated, the part will not
acknowledge until the cycle is complete. Another
option is to wait the maximum write cycle delay before
initiating another write cycle.
Read Operations
After receiving a matching address byte with the R/W bit
set high, the device goes into the read mode of opera-
tion. A read requires a dummy byte write sequence to
load in the register address. Once the device address
and data address bytes are clocked in by the master,
and acknowledged by the DS3904/ DS3905, the master
must generate another start condition (repeated start).
The master now initiates a read by sending the device
address with the R/W bit set high. The DS3904/DS3905
acknowledge the device address and serially clock out
the data byte. The master responds with a NACK and
generates a stop condition afterwards.
See Figures 4 and 5 for command and data byte struc-
tures as well as read and write examples.
2-Wire Serial Port Operation
The 2-wire serial port interface supports a bidirectional
data transmission protocol with device addressing. A
device that sends data on the bus is defined as a trans-
mitter, 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 gener-
ates the SCL, controls the bus access, and generates
the start and stop conditions. The DS3904/DS3905 oper-
ate as slaves on the 2-wire bus. Connections to the bus
are made through SCL and open-drain SDA lines. The
following I/O terminals control the 2-wire serial port: SDA,
SCL, and A0. The DS3905 uses two additional address
pins A1 and A2 to control the 2-wire serial port. Timing
diagrams for the 2-wire serial port can be found in
Figures 2 and 3. Timing information for the 2-wire serial
port is provided in the
AC Electrical Characteristics
table
for 2-wire serial communications.
2-WIRE
INTERFACE
RHIZ CONTROL
EEPROM
RES 0
20kΩ
H0
F8h
MSB
7
LSB
DATA
GND
SCL
SDA
A0
V
CC
V
CC
DS3905
RESISTOR 0
RHIZ CONTROL
RES 1
20kΩ
OR
10kΩ
H1
F9h
MSB LSB
RESISTOR 1
RHIZ CONTROL
RES 2
20kΩ
H2
FAh
MSB LSB
RESISTOR 2
7
7
(DS3905 ONLY)
A1
A2
Figure 1. DS3904/DS3905 Block Diagram
DS3904/DS3905
Triple 128-Position Nonvolatile Digital
Variable Resistor/Switch
_____________________________________________________________________ 9
The following bus protocol has been defined:
Data transfer can be initiated only when the bus is
not busy.
During data transfer, the data line must remain sta-
ble whenever the clock line is high. Changes in the
data line while the clock line is high are interpreted
as control signals.
Accordingly, the following bus conditions have been
defined:
Bus Not Busy: Both data and clock lines remain
high.
Start Data Transfer: A change in the state of the
data line from high to low while the clock is high
defines a start condition.
Stop Data Transfer: A change in the state of the
data line from low to high while the clock line is
high defines the stop condition.
Data Valid: The state of the data line represents
valid data when, after a start condition, the data line
is stable for the duration of the high period of the
clock signal. The data on the line can be changed
during the low period of the clock signal. There is
STOP
CONDITION
OR REPEATED
START
CONDITION
REPEATED IF MORE BYTES
ARE TRANSFERRED
ACK
START
CONDITION
ACK
ACKNOWLEDGEMENT
SIGNAL FROM RECEIVER
ACKNOWLEDGEMENT
SIGNAL FROM RECEIVER
SLAVE ADDRESS
MSB
SCL
SDA
R/W
DIRECTION
BIT
12 678 9 12 893–7
Figure 2. 2-Wire Data Transfer Protocol
SDA
SCL
t
HD:STA
t
LOW
t
HIGH
t
R
t
F
t
HD:DAT
t
SU:DAT
REPEATED
START
t
SU:STA
t
HD:STA
t
SU:STO
t
SP
STOP START
t
BUF
Figure 3. 2-Wire AC Characteristics

DS3904U-020+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Digital Potentiometer ICs Triple 128-Position Nonvolatile
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet