The MAX5258/MAX5259 are +3V/+5V single-supply,
digital serial-input, voltage-output, 8-bit octal digital-toanalog converters (DACs). Internal precision buffers
swing Rail-to-Rail®, and the reference input range
extends from ground to the positive supply. The +5V
(MAX5258) and the +3V (MAX5259) feature a 10µA
(max) shutdown mode.
The serial interface is double-buffered. A 16-bit input
shift register is followed by eight 8-bit input registers
and eight 8-bit DAC registers. The 16-bit serial word
consists of two “don’t care” bits, three address bits,
three control bits, and eight data bits. The input and
DAC registers can both be updated independently or
simultaneously with a single software command. The
asynchronous control input (LDAC) provides simultaneous updating of all eight DAC registers.
The interface is compatible with SPI™, QSPI™ (CPOL =
CPHA = 0 or CPOL = CPHA = 1), and MICROWIRE™.
A buffered digital data output allows daisy-chaining of
serial devices.
The MAX5258/MAX5259 are available in a 16-pin QSOP
package.
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional
operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to
absolute maximum rating conditions for extended periods may affect device reliability.
VDDto GND..............................................................-0.3V to +6V
DIN, DOUT, CS, SCLK, LDAC to GND.....................-0.3V to +6V
REF to GND................................................-0.3V to (V
DD
+ 0.3V)
OUT_ to GND ...........................................................-0.3V to V
DD
Maximum Current into Any Pin............................................50mA
Continuous Power Dissipation (T
A
= +70°C)
16-Pin Plastic QSOP (derate 8.3mW/°C about +70°C)...667mW
Operating Temperature Range ..........................-40°C to +85°C
Storage Temperature Range .............................-65°C to +150°C
Lead Temperature (soldering, 10s) .................................+300°C
At power-on, the serial interface and all DACs are
cleared and set to code zero. The serial data output
(DOUT) is set to transition on SCLK’s falling edge.
The MAX5258/MAX5259 communicate with microprocessors (µPs) through a synchronous, 3-wire interface (Figure 1). Data is sent MSB first and can be
transmitted in two 4-bit and one 8-bit (byte) packets, or
one 16-bit word. The first two bits are ignored. A 4-wire
interface adds a line for LDAC, allowing asynchronous
updating. Data is transmitted and received simultaneously.
Figure 2 shows the detailed serial-interface timing. Note
that the clock should be low if it is stopped between
updates. DOUT does not go into a high-impedance state
if the clock idles or CS is high.
Serial data is clocked into the data registers in MSB-first
format, with the address and configuration information
preceding the actual DAC data. Data is clocked in on
SCLK’s rising edge while CS is low. Data at DOUT is
clocked out 16 clock cycles later, either at SCLK’s falling
edge (default or mode 0) or rising edge (mode 1).
CS must be low to enable the device. If CS is high, the
interface is disabled and DOUT remains unchanged.
CS must go low at least 40ns before the first rising edge
of the clock pulse to properly clock in the first bit. With
CS low, data is clocked into the MAX5258/MAX5259’s
internal shift register on the rising edge of the external
serial clock. Always clock in the full 16 bits.
Serial Input Data Format and Control Codes
The 16-bit serial input format, shown in Figure 3, comprises two “don’t care” bits, three DAC address bits (A2,
A1, A0), three control bits (C2, C1, C0), and eight data
bits (D7…D0). The 6-bit address/control code configures
the DAC as shown in Table 1.
Pin Description
PINNAMEFUNCTION
1OUTBDAC B Voltage Output
2OUTADAC A Voltage Output
3GNDGround
4VDDPower Supply
5REFReference Voltage Input
6LDAC
7OUTEDAC E Voltage Output
8OUTFDAC F Voltage Output
9OUTGDAC G Voltage Output
10OUTHDAC H Voltage Output
11CS
12SCLK
13DINSerial Data Input. Data is clocked in on the rising edge of SCLK.
14DOUT
15OUTDDAC D Voltage Output
16OUTCDAC C Voltage Output
Load DAC Input. Driving this asynchronous input low transfers the contents of each input register
to its respective DAC registers.
Chip Select Input. Data is shifted in and out when CS is low. Programming commands are executed
when CS returns high.
Serial Clock Input. Data is clocked in on the rising edge and clocked out on the falling edge
(default) or rising edge (A2 = 1; see Table 1).
Serial Data Output. Sinks and sources current. Data at DOUT can be clocked out on the falling
edge (mode 0) or rising edge (mode 1) of SCLK (Table 1).
The clear command clears all input and DAC registers and sets all DAC outputs to zero. This command brings the
DAC out of shutdown.
Shuts down all output buffer amplifiers and voltage references. Output buffers can be individually disabled with the corresponding zeros in the data bits (D7-D0). If all data bits are zero, only the power-on reset circuit is active, and the
device draws 10µA (max). There are four ways to bring the device out of shutdown: POR, CLEAR, LOAD SAME DATA,
LOAD INPUT, AND DAC REGISTERS.
This command sets DOUT to transition at the falling edge of SCLK. The same command also updates all DAC registers with the contents of their respective input registers, identical to the LDAC command. This is the default mode on
power-up.
Clear
(LDAC = X)
A2A1A0C2C1C0D7D6D5D4D3D2D1D0
Don’t Care0108-Bit Data
Software Shutdown
(LDAC = X)
A1A0C2C1C0D7D6D5D4D3D2D1D0
0XX0118-Bit Data
Set DOUT Phase—SCLK Falling (Mode 0, Default)
(LDAC = X)
A2A1A0C2C1C0D7D6D5D4D3D2D1D0
1XX0118-Bit Data
Set DOUT Phase—SCLK Rising (Mode 1)
(LDAC = X)
No Operation (NOP)
(LDAC = X)
The no-operation (NOP) command allows data to be shifted through the MAX5258/MAX5259 shift register without
affecting the input or DAC registers. This is useful in daisy-chaining (see the Daisy-Chaining Devices section). For
this command, the data bits are "Don’t Cares." As an example, three MAX5258s are daisy-chained (A, B, and C), and
devices A and C need to be updated. The 48-bit-wide command would consist of one 16-bit word for device C, followed by an NOP instruction for device B and a third 16-bit word with data for device A. At the rising edge of CS,
device B will not change state.
Mode 1 sets the serial output DOUT to transition at the rising edge of SCLK. Once this command is issued, DOUT’s
phase is latched and will not change except on power-up or if the specific command to set the phase to falling edge
is issued.
This command also loads all DAC registers with the contents of their respective input registers, and is identical to the
LDAC command.
A2A1A0C2C1C0D7D6D5D4D3D2D1D0
Don’t Care000Don’t Care
A2A1A0C2C1C0D7D6D5D4D3D2D1D0
Don’t Care001Don’t Care
A2
MAX5258/MAX5259
+3V/+5V, Low-Power, 8-Bit Octal DAC
with Rail-to-Rail Output Buffers
All eight DAC registers are updated with shift-register data. This command allows all DACs to be set to any analog
value within the reference range. This command can be used to substitute CLEAR if code 00 (hex) is programmed,
which clears all DACs. This command brings the device out of shutdown.
When performing a single update operation, A2-A0 selects the respective input register. At the rising edge of CS, the
selected input register is loaded with the current shift-register data. All DAC outputs remain unchanged. This preloads individual data in the input register without changing the DAC outputs.
A2A1A0C2C1C0D7D6D5D4D3D2D1D0
Address1108-Bit Data
Load Input and DAC Registers
(LDAC = X)
This command directly loads current shift-register data in the selected input and DAC registers at the rising edge of
CS. A2-A0 set the DAC address.
For example, to load all eight DAC registers simultaneously with individual settings, eight commands are required.
First perform seven single input register update operations (C2 = 1, C1 = 0, C0 = 1) for DACs A, B, C, D, E, F, and G
(C2 = 1, C1 = 0, C0 = 1). The final command loads input register H and updates all eight DAC registers from their
respective input registers. This command brings the device out of shutdown.
Software “
LDAC
” Command
(LDAC = X)
All DAC registers are updated with the contents of their respective input registers at the rising edge of CS. This is a
synchronous software command that performs the same function as the asynchronous LDAC.
A2A1A0C2C1C0D7D6D5D4D3D2D1D0
Don’t Care1008-Bit Data
A2A1A0C2C1C0D7D6D5D4D3D2D1D0
Address1018-Bit Data
A2A1A0C2C1C0D7D6D5D4D3D2D1D0
Address1118-Bit Data
LDAC Operation (Hardware)
LDAC is typically used in 4-wire interfaces (Figure 4).
This command is level sensitive, and it allows asynchronous hardware control of the DAC outputs. With
LDAC low, all eight DAC registers are transparent, and
any time an input register is updated, the DAC output
immediately follows.
Serial Data Output
DOUT is the internal shift-register’s output. DOUT can
be programmed to clock out data on the falling edge of
SCLK (mode 0) or the rising edge (mode 1). In mode 0,
output data lags input data by 16.5 clock cycles, maintaining compatibility with MICROWIRE and SPI. In
mode 1, output data lags input data by 16 clock cycles.
On power-up, DOUT defaults to mode 0 timing. DOUT
never three-states; it always actively drives either high
or low and remains unchanged when CS is high.
Interfacing to the Microprocessor
The MAX5258/MAX5259 are MICROWIRE (Figure 5)
and SPI/QSPI (Figure 6) compatible. For SPI and QSPI,
clear the CPOL and CPHA configuration bits (CPOL =
CPHA = 0). The SPI/QSPI CPOL = CPHA = 1 configuration can also be used if the DOUT output is ignored.
The MAX5258/MAX5259 can interface with Intel’s
80C5X/80C3X family in mode 0 if the SCLK clock polarity is inverted. Universally, if a serial port is not available, three lines from one of the parallel ports can be
used for bit manipulation.
Digital feedthrough at the voltage outputs is greatly
minimized by operating the serial clock only to update
the registers. See the Clock Feedthrough photo in the
Typical Operating Characteristics section. The clock
idle state is low.
Daisy-Chaining Devices
Any number of MAX5258/MAX5259s can be daisychained by connecting DOUT of one device to DIN of
the following device in the chain with all devices in
mode zero. The NOP instruction (Table 1) allows data
to be passed from DIN to DOUT without changing the
input or DAC registers of the passing device. A 3-wire
interface updates daisy-chained or individual
MAX5258/MAX5259s simultaneously by bringing CS
high (Figure 7).
Analog Section
DAC Operation
The MAX5258/MAX5259 use a matrix decoding architecture for the DACs, which saves power in the overall
system. The external reference voltage is divided down
by a resistor string placed in a matrix fashion. Row and
column decoders select the appropriate tab from the
resistor string to provide the needed analog voltages.
The resistor string presents a code-independent input
impedance to the reference and guarantees a monotonic output. Figure 8 shows a simplified diagram of one
of the eight DACs.
Reference Input
The voltage at REF sets the full-scale output voltage for
all eight DACs. The 230kΩ typical input impedance at
REF is code independent. The output voltage for any
DAC can be represented by a digitally programmable
voltage source as follows:
V
OUT
= (NB ✕V
REF
) / 256,
where NB is the numerical value of the DAC’s binary
input code.
Output Buffer Amplifiers
All MAX5258/MAX5259 voltage outputs are internally
buffered by precision unity-gain followers that slew at
about 0.55V/µs. The outputs can swing from GND to
VDD. With a 0 to V
REF
(or V
REF
to 0) output transition,
the amplifier outputs will typically settle to 1/2LSB in
10µs when loaded with 10kΩ in parallel with 100pF.
The buffer amplifiers are stable with any combination of
resistive (≥10kΩ) or capacitive (≤100pF) loads.
Applications Information
DAC Linearity and Voltage Offset
The output buffer can have a negative input offset voltage that would normally drive the output negative, but
since there is no negative supply, the output remains at
GND (Figure 9). When linearity is determined using the
endpoint method, it is measured between code 10 (0A
hex) and full-scale code (FF hex) after offset and gain
error are calibrated out. With a single-supply, negative
offset causes the output not to change with an input
code transition near zero (Figure 9). Thus, the lowest
code that produces a positive output is the lower endpoint.
Figure 4. Multiple MAX5258’s Sharing One DIN Line. (Simultaneously Update by Strobing
LDAC
, or Specifically Update by Enabling
an Individual
CS
)
Figure 5. Connections for MICROWIRE
Figure 6. Connections for SPI/QSPI
Figure 7. Daisy-Chained or Individual MAX5258s Simultaneously Updated by Bringing CSHigh (Only Three Wires Are Required)
DIN
SCLK
LDAC
CS1
CS2
CS3
TO OTHER
SERIAL
DEVICES
CS
LDAC
SCLK
DIN
MAX5258/
MAX5259
CS
LDAC
SCLK
DIN
MAX5258/
MAX5259
SCLK
MAX5258/
DIN
MAX5259
CS
MAX5258/
SCLK
SCLK
MAX5259
SK
MICROWIRE
SO
I/O
PORT
SCLK
MAX5258/
MAX5259
MAX5258/
MAX5259
CS
LDAC
SCLK
DIN
SCLK
MAX5258/
MAX5259
DIN
SCLK
CS
MOSI
SCK
I/O
CPOL = 0, CPHA = 0
MAX5258/
MAX5259
SPI/QSPI
PORT
DIN
DIN
CS
CS
DOUT
DEVICE ADEVICE BDEVICE C
DIN
CS
DOUTDOUT
DIN
CS
TO OTHER
SERIAL DEVICES
MAX5258/
SCLK
DIN
CS
SCLK
DIN
CS
MAX5259
Power Sequencing
The voltage applied to REF should not exceed VDDat
any time. If proper power sequencing is not possible,
connect an external Schottky diode between REF and
VDDto ensure compliance with the absolute maximum
ratings. Do not apply signals to the digital inputs before
the device is fully powered-up.
Power-Supply Bypassing and
Ground Management
Bypass VDDwith a 0.1µF capacitor, located as close to
VDDand GND as possible. Careful PC board layout
minimizes crosstalk among DAC outputs and digital
inputs. Figure 10 shows suggested circuit board layout
to minimize crosstalk.
Unipolar-Output, Two-Quadrant
Multiplication
In unipolar operation, the output voltages and the reference input are the same polarity. Figure 11 shows the
MAX5258/MAX5259 unipolar configuration, and Table 2
shows the unipolar code.
+3V/+5V, Low-Power, 8-Bit Octal DAC
with Rail-to-Rail Output Buffers
Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are
implied. Maxim reserves the right to change the circuitry and specifications without notice at any time.
20 ____________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600