MAX520/MAX521
Quad/Octal, 2-Wire Serial 8-Bit DACs
with Rail-to-Rail Outputs
10 ______________________________________________________________________________________
_______________Detailed Description
Serial Interface
The MAX520/MAX521 use a simple 2-wire serial interface
requiring only two I/O lines (2-wire bus) of a standard
microprocessor (µP) port. Figure 1 shows the timing dia-
gram for signals on the 2-wire bus. Figure 2 shows the
typical application of the MAX520/MAX521. The 2-wire
bus can have several devices (in addition to the
MAX520/MAX521) attached. The two bus lines (SDA and
SCL) must be high when the bus is not in use. When in
use, the port bits are toggled to generate the appropriate
signals for SDA and SCL. External pull-up resistors are
not required on these lines. The MAX520/MAX521 can
be used in applications where pull-up resistors are
required (such as in I
2
C systems) to maintain compatibil-
ity with the existing circuitry.
The MAX520/MAX521 are receive-only devices and
must be controlled by a bus master device. They oper-
ate at SCL rates up to 400kHz. A master device sends
information to the devices by transmitting their address
over the bus and then transmitting the desired informa-
tion. Each transmission consists of a START condition,
the MAX520/MAX521’s programmable slave-address,
one or more command-byte/output-byte pairs (or a
command byte alone, if it is the last byte in the trans-
mission), and finally, a STOP condition (Figure 3).
The address byte and pairs of command and output
bytes are transmitted between the START and STOP con-
ditions. The SDA state is allowed to change only while
SCL is low. SDA’s state is sampled, and therefore must
remain stable while SCL is high. The only exceptions to
this are the START and STOP conditions. Data is transmit-
ted in 8-bit bytes. Nine clock cycles are required to trans-
fer the data bits to the MAX520/MAX521. Set SDA low
during the 9th clock cycle as the MAX520/MAX521 pull
SDA low during this time. R
C
(Figure 2) limits the current
that flows during this time if SDA stays high for short peri-
ods of time.
MAX520
SDA
R
C
1k
SCL
µC
REF0
SDA
SCL
AD1
AD0
+1V
QUAD
DAC
REF1
+4V
REF2
+5V
OFFSET ADJUSTMENT
REF3
OUT0
OFFSET ADJUSTMENT
GAIN ADJUSTMENT
GAIN ADJUSTMENT
OUT1
OUT2
OUT3
.
.
.
.
AD2
REF0
SDA
SCL
AD1
AD0
OCTAL
DAC
+5V
BRIGHTNESS ADJUSTMENT
REF4
OUT0
CONTRAST ADJUSTMENTOUT1
THRESHOLD
ADJUSTMENTS
OUT2
.
.
.
OUT6
OUT7
+5V
+5V
+12V
MOTOR
MAX521
Figure 2. Typical Application Circuit
START CONDITION
STOP CONDITION
OUTPUT BYTECOMMAND BYTE
SLAVE ADDRESS BYTE
SCL
SDA
MSB MSB MSBLSB LSB LSBACK ACK ACK
Figure 3. A Complete Serial Transmission
MAX520/MAX521
Quad/Octal, 2-Wire Serial 8-Bit DACs
with Rail-to-Rail Outputs
______________________________________________________________________________________ 11
START and STOP Conditions
When the bus is not in use, both SCL and SDA must be
high. A bus master signals the beginning of a transmis-
sion with a START condition by transitioning SDA from
high to low while SCL is high (Figure 4). When the mas-
ter has finished communicating with the slave, it issues
a STOP condition by transitioning SDA from low to high
while SCL is high. The bus is then free for another
transmission.
Slave Address
The MAX520/MAX521 each have a 7-bit-long slave
address (Figure 5). The first four bits (MSBs) of the slave
address have been factory programmed and are always
0101. In addition, the MAX521 has the next bit factory
programmed to 0. The logic state of the address input
pins (AD0, AD1, and AD2 of the MAX520; AD0 and AD1
of the MAX521) determine the least significant bits of the
7-bit slave address. These input pins may be connected
to V
DD
or DGND, or they may be actively driven by TTL
or CMOS logic levels. There are four possible slave
addresses for the MAX521, and therefore a maximum of
four such devices may be on the bus at one time. The
MAX520 has eight possible slave addresses. The eighth
bit (LSB) in the slave address byte should be low when
writing to the MAX520/MAX521.
The MAX520/MAX521 monitor the bus continuously,
waiting for a START condition followed by its slave
address. When a device recognizes its slave address, it
is ready to accept data.
Command Byte and Output Byte
A command byte follows the slave address. Figure 6
shows the format for the command byte. A command
byte is usually followed by an output byte unless it is
the last byte in the transmission. If it is the last byte, all
bits except PD and RST are ignored. If an output byte
follows the command byte, A0–A2 of the command
byte indicate the digital address of the DAC whose
input data latch receives the digital output data. The
data is transferred to the DAC’s output latch during the
STOP condition following the transmission. This allows
all DACs to be updated and the new outputs to appear
simultaneously (Figure 7).
Setting the PD bit high powers down the MAX520/
MAX521 following a STOP condition (Figure 8a). If a
command byte with PD set high is followed by an out-
put byte, the addressed DAC’s input latch will be
updated and the data will be transferred to the DAC’s
output latch following the STOP condition (Figure 8b). If
the transmission’s last command byte has PD high, the
voltage outputs will not reflect the newly entered data
because the DAC will enter power-down mode when
the STOP condition is detected. When in power-down,
the MAX521’s DAC outputs float, and the MAX520’s
unbuffered outputs look like a 16k resistor to AGND.
In this mode, the supply current is a maximum of 20µA.
A command byte with the PD bit low returns the
MAX520/MAX521 to normal operation following a STOP
condition, and the voltage outputs reflect the current
output-latch contents (Figures 9a and 9b). Because
each subsequent command byte overwrites the previ-
ous PD bit, only the last command byte of a transmis-
sion affects the power-down state.
SCL
SDA
SLAVE ADDRESS BITS AD2, AD1, AND AD0 CORRESPOND TO THE LOGIC STATE 
OF THE ADDRESS INPUT PINS AD2, AD1, AND AD0.
00 1 0 or AD210AD1 AD0
LSB
ACK
SLAVE ADDRESS
Figure 5. Address Byte
LSBMSB
SDA
SCL
R2 R1 R0 RST PD A2 A1 A0 ACK
R2, R1, R0: RESERVED BITS. SET TO 0.
RST: RESET BIT, SET TO 1 TO RESET ALL DAC REGISTERS.
PD: POWER-DOWN BIT. SET TO 1 TO PLACE THE DEVICE IN THE 4µA 
SHUTDOWN MODE. SET TO 0 TO RETURN TO THE NORMAL 
OPERATIONAL STATE.
A2, A1, A0: ADDRESS BITS. DIGITAL ADDRESS FOR DAC0 TO DAC7. DETERMINES 
WHICH DAC'S INPUT LATCH RECEIVES THE 8 BITS OF DATA IN
THE NEXT BYTE. A2 IS IGNORED BY THE MAX520.
ACK: ACKNOWLEDGE BIT. THE MAX520/MAX521 PULL SDA LOW DURING THE 
9TH CLOCK PULSE.
Figure 6. Command Byte
SCL
SDA
START CONDITION
STOP CONDITION
Figure 4. All communications begin with a START condition and
end with a STOP condition, both generated by a bus master.
MAX520/MAX521
Quad/Octal, 2-Wire Serial 8-Bit DACs
with Rail-to-Rail Outputs
12 ______________________________________________________________________________________
( )
( )
SDA
SDA
0
START
CONDITION
ADDRESS BYTE ACK
ACK
1 0 1 AD1 AD0 0 0000000000
11 111111 0010000000000000001
0000000
00
1
111
11
11
1
STOP
CONDITION
OUTPUT BYTE
(FULL SCALE)
COMMAND BYTE
(ADDRESSING DAC0)
ACK
OUTPUT BYTE
(FULL SCALE)
ACK
COMMAND BYTE
(ADDRESSING DAC2)
ACK
OUTPUT BYTE
(HALF SCALE)
ACK
COMMAND BYTE
(ADDRESSING DAC1)
ACK
DAC OUTPUTS CHANGE HERE: 
DACS 0 AND 1 GO TO FULL SCALE,
DAC 2 GOES TO HALF SCALE.
DAC0 INPUT LATCH
SET TO FULL SCALE
( )
( )
DAC2 INPUT LATCH
SET TO HALF SCALE
DAC1 INPUT LATCH
SET TO FULL SCALE
0 OR AD2
Figure 7. Setting DAC Outputs
SDA
0
START
CONDITION
ADDRESS BYTE ACK
1 0 1 AD1 AD0 0 0 000001
(PD)
(PD)
STOP
CONDITION
COMMAND BYTE
ACK
DEVICE ENTERS
POWER-DOWN STATE
( )
SDA
0
START
CONDITION
ADDRESS BYTE ACK
1 0 1 AD1 AD0 0 0 0
0
00001000
1111
1
11
1
STOP
CONDITION
COMMAND BYTE
(ADDRESSING DAC0)
ACK
OUTPUT BYTE
(FULL SCALE)
ACK
(a)
(b)
DEVICE ENTERS POWER-DOWN STATE.
DAC 0 OUTPUT LATCH SET TO FULL SCALE.
NOTE: X = DON'T CARE
DAC 0 INPUT LATCH
SET TO FULL SCALE
X X X
( )
( )
0 OR AD2
0 OR AD2
Figure 8. Entering the Power-Down State
( )
SDA
0
START
CONDITION
ADDRESS BYTE ACK
1 0 1 AD1 AD0 0 0 000000
(PD)
(PD)
STOP
CONDITION
COMMAND BYTE
ACK
DEVICE RETURNS TO 
NORMAL OPERATION
( )
DAC3 OUTPUT
LATCH SET TO 0
SDA
0
START
CONDITION
ADDRESS BYTE ACK
1 0 1 AD1 AD0 0 00 0000011
0
00
0
00
00
00
STOP
CONDITION
COMMAND BYTE
(ADDRESSING DAC3)
ACK
OUTPUT BYTE
(SET TO 0)
ACK
(a)
(b)
DEVICE RETURNS TO NORMAL OPERATION.
DAC 3 SET TO 0.
NOTE: X = DON'T CARE
X X X
( )
0 OR AD2
0 OR AD2
Figure 9. Returning to Normal Operation from Power-Down

MAX521AEAG+T

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