AVDD as Reference
Connect AVDD to REFI to use AVDD as the reference
voltage. Leave REFO unconnected.
Serial Interface
The MAX5138/MAX5139 3-wire serial interface is com-
patible with MICROWIRE, SPI, QSPI, and DSPs (Figures
2, 3). The interface provides three inputs, SCLK, CS,
and DIN and one output, READY. Use READY to verify
communication or to daisy-chain multiple devices (see
the
READY
section). READY is capable of driving a
20pF load with a 30ns (max) delay from the falling edge
of SCLK. The chip-select input (CS) frames the serial
data loading at DIN. Following a chip-select input’s
high-to-low transition, the data is shifted synchronously
and latched into the input register on each falling edge
of the serial-clock input (SCLK). Each serial word is 24
bits. The first 8 bits are the control word followed by 16
data bits (MSB first), as shown in Table 1. The serial
input register transfers its contents to the input registers
after loading 24 bits of data. To initiate a new data
transfer, drive CS high and keep CS high for a minimum
of 33ns before the next write sequence. The SCLK can
be either high or low between CS write pulses. Figure 1
shows the timing diagram for the complete 3-wire serial-
interface transmission.
The MAX5138/MAX5139 digital input is double buffered.
Depending on the command issued through the serial
interface, the input register can be loaded without affect-
ing the DAC register using the write command. To update
the DAC register, either pulse the LDAC input low, or use
the software LDAC command. Use the writethrough com-
mands (see Table 1) to update the DAC output immedi-
ately after the data is received. Only use the writethrough
command to update the DAC output immediately.
Low-Power, Single, 16-/12-Bit,
Buffered Voltage-Output DACs
10 Maxim Integrated
MAX5138/MAX5139
24-BIT WORD
CONTROL BITS DATA BITS
MSB LSB
C7 C6 C5 C4 C3 C2 C1 C0 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6–D0
DESC FUNCTION
0 0 0 0 0 0 0 0 X X X X X X X X X X NOP No operation.
0 0 0 0 0 0 0 1 X X X X X X X DAC X X LDAC
Set DAC = 1 to move
contents of input to DAC
register. Setting DAC = 0
results in no operation.
0 0 0 0 0 0 1 0 X X X X X X X X X X CLR Software clear.
0 0 0 0 0 0 1 1 X X X X X X X DAC READY_EN X
Power
Control
Set DAC = 1 to power
down DAC. Set
READY_EN = 1 to
enable READY. Setting
DAC = 0 results in no
operation.
0 0 0 0 0 1 0 1 0 0 0 0 0 0 LIN 0 0 0 Linearity Optimize DAC linearity.
0 0 0 1 X X X DAC D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 Write
Write to selected input
registers (DAC output
not affected). Setting
DAC = 0 results in no
operation.
0 0 1 1 X X X DAC D15 D14 D13 D12 D11 D10 D9 D8 D7 D6
Write-
through
Write to selected input
and DAC register,
DAC output updated
(writethrough). Setting
DAC = 0 results in no
operation.
0 0 1 0 0 0 0 0 X X X X X X X X X X NOP No operation.
Table 1. Operating Mode Truth Table
*
For the MAX5139, D3–D0 are X = don’t-care bits.
Low-Power, Single, 16-/12-Bit,
Buffered Voltage-Output DACs
Maxim Integrated 11
MAX5138/MAX5139
SCLK
DIN
READY*
CS
SI*
I/O
SO
SK
MICROWIRE
PORT
*THE READY-TO-SI CONNECTION IS NOT REQUIRED FOR WRITING TO THE
*MAX5138/MAX5139 BUT MAY BE USED FOR TRANSMISSION VERIFICATION.
MAX5138
MAX5139
Figure 2. Connections for MICROWIRE
The MAX5138’s DAC code is unipolar binary with V
OUT
= (code/65536) x V
REF
. See Table 1 for the serial inter-
face commands.
The MAX5139’s DAC code is unipolar with V
OUT
=
(code/4096) x V
REF
. See Table 1 for the serial interface
commands.
Connect the MAX5138/MAX5139 DVDD supply to the
supply of the host DSP or microprocessor. The AVDD
supply may be set to any voltage within the 2.7V to
5.25V operating range, but must be greater than or
equal to the DVDD supply.
Writing to the MAX5138/MAX5139
Write to the MAX5138/MAX5139 using the following
sequence:
1) Drive CS low, enabling the shift register.
2) Clock 24 bits of data into DIN (C7 first and D0 last),
observing the specified setup and hold times. Bits
D15–D0 are the data bits that are written to the
internal register.
3) After clocking in the last data bit, drive CS high. CS
must remain high for 33ns before the next transmis-
sion is started.
Figure 1 shows a write operation for the transmission of
24 bits. If CS is driven high at any point prior to receiving
24 bits, the transmission is discarded.
READY
Connect READY to a microcontroller (µC) input to moni-
tor the serial interface for valid communications. The
READY pulse appears 24 clock cycles after the nega-
tive edge of CS (Figure 4). Since the MAX5138/
MAX5139 look at the first 24 bits of the transmission fol-
lowing the falling edge of CS, it is possible to daisy
chain devices with different command word lengths.
READY goes high 16ns after CS is driven high.
READY*
DIN
SCLK
CS
SCK
SS
I/O
MOSI
+5V
MISO*
SPI/QSPI
PORT
*THE READY-TO-MISO CONNECTION IS NOT REQUIRED FOR WRITING TO THE
MAX5138/MAX5139 BUT MAY BE USED FOR TRANSMISSION VERIFICATION.
MAX5138
MAX5139
Figure 3. Connections for SPI/QSPI
CS
DIN
SCLK
READY 1
READY 3
READY 2
12324222120432 1 23 2422215432 1 23 2422215432
SLAVE 1 DATA SLAVE 2 DATA SLAVE 3 DATA
Figure 4. READY Timing
Daisy chain multiple MAX5138/MAX5139 devices by
connecting the first device conventionally, then connect
its READY output to the CS of the following device.
Repeat for any other devices in the chain, and drive the
SCLK and DIN lines in parallel (Figure 5). When sending
commands to daisy-chained MAX5138/MAX5139s, the
devices are accessed serially starting with the first
device in the chain. The first 24 data bits are read by the
first device, the second 24 data bits are read by the sec-
ond device and so on (Figure 4). Figure 6 shows the
configuration when CS is not driven by the µC. These
devices can be daisy chained with other compatible
devices, such as the MAX5510 and the MAX5511.
To perform a daisy-chain write operation, drive CS low
and output the data serially to DIN. The propagation of
the READY signal then controls how the data is read by
each device. As the data propagates through the daisy
chain, each individual command in the chain is execut-
ed on the 24th falling clock edge following the falling
edge of the respective CS input. To update just one
device in a daisy chain, send the no-op command to
the other devices in the chain.
If READY is not required, write command 0x03 (power
control) and set READY_EN = 0 (see Table 1) to dis-
able the READY output.
Clear Command
The MAX5138/MAX5139 feature a software clear com-
mand (0x02). The software clear command acts as a
software POR, erasing the contents of all registers. The
output returns to the state determined by the M/Z input.
Power-Down Mode
The MAX5138/MAX5139 feature a software-controlled
power-down mode. The internal reference and biasing
circuits power down to conserve power when powered
down. In power-down, the output disconnects from the
buffer and is grounded with an internal 80kΩ resistor.
The DAC register holds the retained code so that the
output is restored when powered up. The serial inter-
face remains active in power-down mode.
Load DAC (
LDAC
) Input
The MAX5138/MAX5139 feature an active-low LDAC
logic input that updates the output. Keep LDAC high
during normal operation (when the device is controlled
only through the serial interface). Drive LDAC low to
update the DAC output with data from the input register.
Figure 7 shows the LDAC timing with respect to OUT.
Holding LDAC low causes the input register to become
transparent and data written to the DAC register to
immediately update the DAC output. A software com-
mand can also activate the LDAC operation. To activate
LDAC by software, set control word 0x01 to load the
DAC, and all other data bits to don’t care. See Table 1
for the data format. This operation updates the DAC out-
put if it is flagged with a 1. If the DAC output is flagged
with a 0 it remains unchanged.
Low-Power, Single, 16-/12-Bit,
Buffered Voltage-Output DACs
12 Maxim Integrated
MAX5138/MAX5139
μC
SLAVE 1
SCLK
DIN
CS
READY
MOSI
I/O
SCK
SLAVE 3
SCLK
DIN
CS
READY
SLAVE 2
SCLK
DIN
CS
READY
Figure 5. Daisy-Chain Configuration

MAX5139GTE+

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