DS4422/DS4424
Two-/Four-Channel, I
2
C, 7-Bit Sink/Source
Current DAC
_______________________________________________________________________________________ 7
Example: R
FS0
= 80kΩ and register 0xF8h is written to
a value of 0xAAh. Calculate the output current.
I
FS
= (0.976V/80kΩ) x (127/16) = 96.838µA
The MSB of the output register is 1, so the output is
sourcing the value corresponding to position 2Ah (42
decimal). The magnitude of the output current is equal to:
96.838µA x (42/127) = 32.025µA
I
2
C Serial Interface Description
I
2
C Definitions
The following terminology is commonly used to describe
I
2
C data transfers:
I
2
C Slave Address: The slave address of the
DS4422/DS4424 is determined by the state of the A0
and A1 pins (see Table 1).
Master Device: The master device controls the slave
devices on the bus. The master device generates SCL
clock pulses and START and STOP conditions.
Slave Devices: Slave devices send and receive data
at the master’s 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 Figure 1 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 Figure 1 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 spe-
cific memory address to begin a data transfer. A repeat-
ed START condition is issued identically to a normal
START condition. See Figure 1 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 (Figure 1). 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 setup
time (Figure 1) before the next rising edge of SCL during a
bit read. The device shifts out each bit of data on SDA at
the falling edge of the previous SCL pulse and the data bit
is valid at the rising edge of the current SCL pulse.
Remember that the master generates all SCL clock puls-
es, including when it is reading bits from the slave.
Acknowledgement (ACK and NACK): An Acknowledge-
ment (ACK) or Not Acknowledge (NACK) is always the
ninth bit transmitted during a byte transfer. The device
receiving data (the master during a read or the slave
during a write operation) performs an ACK by transmit-
ting a zero during the ninth bit. A device performs a
Figure 1. I
2
C Timing Diagram
SDA
SCL
t
HD:STA
t
LOW
t
HIGH
t
R
t
F
t
BUF
t
HD:DAT
t
SU:DAT
REPEATED
START
t
SU:STA
t
HD:STA
t
SU:STO
t
SP
STOP
NOTE: TIMING IS REFERENCED TO V
IL(MAX)
AND V
IH(MIN)
.
START
DS4422/DS4424
Two-/Four-Channel, I
2
C, 7-Bit Sink/Source
Current DAC
8 _______________________________________________________________________________________
NACK by transmitting a one during the ninth bit. Timing
for the ACK and NACK is identical to all other bit writes
(Figure 2). An ACK is the acknowledgment that the
device is properly receiving data. A NACK is used to
terminate a read sequence or as an indication that the
device is not receiving data.
Byte Write: A byte write consists of 8 bits of information
transferred from the master to the slave (most significant
bit first) plus a 1-bit acknowledgement from the slave to
the master. The 8 bits transmitted by the master are
done according to the bit-write definition, and the
acknowledgement is read using the bit-read definition.
Byte Read: A byte read is an 8-bit information transfer
from the slave to the master plus a 1-bit ACK or NACK
from the master to the slave. The 8 bits of information
that are transferred (most significant bit first) from the
slave to the master are read by the master using the
bit-read definition above, and the master transmits an
ACK using the bit write definition to receive additional
data bytes. The master must NACK the last byte read to
terminated communication so the slave will return con-
trol of SDA to the master.
Slave Address Byte: Each slave on the I
2
C bus
responds to a slave address byte sent immediately fol-
lowing a START condition. The slave address byte con-
tains the slave address in the most significant 7 bits
and the R/W bit in the least significant bit. The
DS4422/DS4424 slave address is determined by the
state of the A0 and A1 address pins. Table 1 describes
the addresses corresponding to the state of A0 and A1.
When the R/W bit is 0 (such as in A0h), the master is
indicating that it will write data to the slave. If R/W = 1
(A1h in this case), the master is indicating that it wants
to read from the slave. If an incorrect slave address is
written, the DS4422/DS4424 assume the master is com-
municating with another I
2
C device and ignore the
communication until the next START condition is sent.
Memory Address: During an I
2
C write operation, the
master must transmit a memory address to identify the
memory location where the slave is to store the data.
The memory address is always the second byte trans-
mitted during a write operation following the slave
address byte.
I
2
C Communication
Writing to a Slave: The master must generate a START
condition, write the slave address byte (R/W = 0), write
the memory address, write the byte of data, and gener-
ate a STOP condition. Remember that the master must
read the slave’s acknowledgement during all byte-write
operations.
Reading from a Slave: To read from the slave, the
master generates a START condition, writes the slave
address byte with R/W = 1, reads the data byte with a
NACK to indicate the end of the transfer, and generates
a STOP condition.
Figure 2. I
2
C Communication Examples
SLAVE
ADDRESS*
START
START
A1 A0 1 0 0 0 0
R/W
SLAVE
ACK
SLAVE
ACK
SLAVE
ACK
MSB LSB MSB LSB MSB LSB
b7 b6 b5 b4 b3 b2 b1 b0
READ/
WRITE
REGISTER/MEMORY ADDRESS
b7 b6 b5 b4 b3 b2 b1 b0
DATA
STOP
SINGLE BYTE WRITE
-WRITE REGISTER
F9h TO 00h
SINGLE BYTE READ
-READ REGISTER F8h
START
REPEATED
START
21h
MASTER
NACK
STOP
00100000
11111 000
F8h
00100 001
00100000
11111 001
20h F9h
STOP
DATA
EXAMPLE I
2
C TRANSACTIONS (WHEN A0 AND A1 ARE GROUNDED)
TYPICAL I
2
C WRITE TRANSACTION
*THE SLAVE ADDRESS IS DETERMINED BY ADDRESS PINS A0 AND A1.
00000000
20h
A)
B)
SLAVE
ACK
SLAVE
ACK
SLAVE
ACK
SLAVE
ACK
SLAVE
ACK
SLAVE
ACK
DS4422/DS4424
Two-/Four-Channel, I
2
C, 7-Bit Sink/Source
Current DAC
_______________________________________________________________________________________ 9
Applications Information
Example Calculations
for an Adjustable Power Supply
In this example, the
Typical Operating Circuit
is used
as a base to create Figure 3, a DC-DC output voltage
of 2.0V with ±20% margin. The adjustable power sup-
ply has a DC-DC converter output voltage, V
OUT
, of
2.0V and a DC-DC converter feedback voltage, V
FB
, of
0.8V. To determine the relationship of R
0A
and R
0B
,
start with the equation:
Substituting V
FB
= 0.8V and V
OUT
= 2.0V, the relation-
ship between R
0A
and R
0B
is determined to be:
R
0A
1.5 x R
0B
I
OUT0
is chosen to be 100µA (midrange source/sink
current for the DS4422/DS4424). Summing the currents
into the feedback node produces the following:
I
OUT0
= I
R0B
- I
R0A
Where:
And:
To create a 20% margin in the supply voltage, the value
of V
OUT
is set to 2.4V. With these values in place, R
0B
is calculated to be 2.67kΩ, and R
0A
is calculated to be
4.00kΩ. The current DAC in this configuration allows
the output voltage to be moved linearly from 1.6V to
2.4V using 127 settings. This corresponds to a resolu-
tion of 6.3mV/step.
V
CC
Decoupling
To achieve the best results when using the DS4422/
DS4424, decouple the power supply with a 0.01µF or
0.1µF capacitor. Use a high-quality ceramic surface-
mount capacitor if possible. Surface-mount compo-
nents minimize lead inductance, which improves
performance, and ceramic capacitors tend to have
adequate high-frequency response for decoupling
applications.
Power Rail Considerations
Given that the absolute maximum rating for the OUT
pins is V
CC
+ 0.5V, it is recommended that the DS4424
power rail be brought up before or at the same time as
the power rail of the source it is controlling.
I
VV
R
R0A
OUT FB
0A
=
I
V
R
R0B
FB
0B
=
V
R
RR
FB
0B
0A
+
0B
OUT
V
DC-DC
CONVERTER
FB
OUT
SDA
SCL
A0
A1 OUT0
GND
*V
OUT
AND V
FB
VALUES ARE DETERMINED BY THE DC-DC CONVERTER AND SHOULD NOT BE CONFUSED WITH V
OUT
AND V
RFS
OF THE DS4422/DS4424.
R
FS0
= 80kΩ
4.7kΩ4.7kΩ
V
CC
V
CC
V
OUT
* = 2.0V
V
FB
* = 0.8V
FS0
R
0B
= 2.67kΩ
R
0A
= 4.00kΩ
DS4422/
DS4424
I
0A
I
0B
I
OUT0
Figure 3. Example Application Circuit

DS4424N+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Digital to Analog Converters - DAC 4Ch I2C 7-Bit Sink-Source
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet