The MAX5230/MAX5231 low-power, dual 12-bit voltageoutput digital-to-analog converters (DACs) feature an
internal 3ppm/°C precision bandgap voltage reference
and precision output amplifiers. The MAX5231 operates
on a single 5V supply with an internal 2.5V reference and
features a 4.095V full-scale output range. The MAX5230
operates on a single 3V supply with an internal 1.25V reference and features a 2.0475V full-scale output range.
The MAX5231 consumes only 470µA while the MAX5230
consumes only 420µA of supply current. Both devices
feature low-power (2µA) software- and hardwareenabled shutdown modes.
The MAX5230/MAX5231 feature a 13.5MHz SPI™-,
QSPI™-, and MICROWIRE™-compatible 3-wire serial
interface. An additional data output (DOUT) allows for
daisy-chaining and read back. Each DAC has a doublebuffered digital input. The MAX5230/MAX5231 feature
two software-selectable shutdown output impedances:
1kΩ or 200kΩ. A power-up reset feature sets DAC outputs at ground or at the midscale DAC code.
The MAX5230/MAX5231 are specified over the extended
temperature range (-40°C to +85°C) and are available in
16-pin QSOP packages.
(VDD= +4.5V to +5.5V, OS_ = AGND = DGND = 0, RL = 5kΩ, CL = 100pF, TA= T
MIN
to T
MAX
, unless otherwise noted. Typical values
are at TA= +25°C.)
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 AGND, DGND...............................................-0.3V to +6V
AGND to DGND.....................................................-0.3V to +0.3V
Digital Inputs to DGND.............................................-0.3V to +6V
Digital Output (DOUT) to DGND...................-0.3V to V
DD
+ 0.3V
OUT_ to AGND .............................................-0.3V to V
DD
+ 0.3V
OS_ to AGND...................................................-4V to V
DD
+ 0.3V
Maximum Current into Any Pin............................................50mA
7DINSerial Data Input. Data is clocked in on the rising edge of SCLK.
8SCLKSerial Clock Input
9DGNDDigital Ground
10DOUTSerial Data Output
11PDLPower-Down Lockout. Disables shutdown of both DACs when low.
12REFReference Output. Reference provides a 2.465V (MAX5231) or 1.234V (MAX5230) nominal output.
13AGNDAnalog Ground
14V
15OUTBDAC B Output
16OSBDAC B Offset Adjust
DD
1: Connect to VDD to select midscale as the reset value.
0: Connect to DGND to select zero as the reset value.
Clear Input. Both DAC outputs go to zero or midscale. Clears both DAC internal registers (input
register and DAC register) to its predetermined (RSTV) state.
Positive Power Supply. Bypass VDD with a 0.1µF capacitor in parallel with a 4.7µF capacitor to
AGND, and bypass V
with a 0.1µF capacitor to DGND.
DD
CS
SCLK
DIN
DOUT
(MODE 0)
DOUT
(MODE 1)
1
C1
C2 S0
C0
D11
D10
D9
8
D8D5 D4 D3 D2 D1
9
COMMAND EXECUTED
16(1)
D0D7D6
C2C1
C2 C1
Detailed Description
The MAX5230/MAX5231 12-bit, voltage-output DACs
are easily configured with a 3-wire SPI-, QSPI-,
MICROWIRE-compatible serial interface. The devices
include a 16-bit data-in/data-out shift register and have
an input consisting of an input register and a DAC register. In addition, these devices employ precision
trimmed internal resistors to produce a gain of
1.6384V/V, maximizing the output voltage swing, and a
programmable-shutdown output impedance of 1kΩ or
200kΩ The full-scale output voltage is 4.095V for the
MAX5231 and 2.0475V for the MAX5230. These
devices produce a weighted output voltage proportional to the digital input code with an inverted Rail-to-Rail
®
ladder network (Figure 3).
Internal Reference
The MAX5230/MAX5231 use an on-board precision
bandgap reference to generate an output voltage of
1.234V (MAX5230) or 2.465V (MAX5231). With a low
temperature coefficient of only 3ppm/°C, REF can
source up to 100µA and is stable for capacitive loads
less than 35pF.
Output Amplifiers
The output amplifiers have internal resistors that provide for a gain of 1.6384V/V when OS_ is connected to
AGND. The output amplifiers have a typical slew rate of
0.6V/µs and settle to 1/2LSB within 10µs with a load of
5kΩ in parallel with 100pF. Use the serial interface to
set the shutdown output impedance of the amplifiers to
1kΩ or 200kΩ.
OS_ can be used to produce an offset voltage at the
output. For instance, to achieve a 1V offset, apply -1V
to OS_ to produce an output range from 1V to (1V +
V
Rail-to-Rail is a registered trademark of Nippon Motorola, Ltd.
LDAC
CS
t
CSS
t
DS
SCLK
DIN
DOUT
t
CSO
t
LDL
t
CSLD
t
CSW
t
CSH
t
CH
t
D01
t
CL
t
CP
t
D02
t
CS1
t
DH
RRR
2R2R2R2R
2R
D11D10D9D0
REF
AGND
SHOWN FOR ALL ONES ON DAC
OS_
121kΩ
77.25kΩ
OUT_
1kΩ
MAX5230/MAX5231
Serial Interface
The 3-wire serial interface (SPI, QSPI, MICROWIRE
compatible) used in the MAX5230/MAX5231 allows for
complete control of DAC operations (Figures 4 and 5).
Figures 1 and 2 show the timing for the serial interface.
The serial word consists of 3 control bits followed by 12
data bits (MSB first) and 1 sub-bit as described in
Tables 1, 2, and 3. When the 3 control bits are all zero
or all 1, D11–D8 are used as additional control bits,
allowing for greater DAC functionality.
The digital inputs allow any of the following: loading the
input register(s) without updating the DAC register(s),
updating the DAC register(s) from the input register(s),
or updating the input and DAC register(s) simultane-
ously. The control bits and D11–D8 allow the DACs to
operate independently.
Send the 16-bit data as one 16-bit word (QSPI) or two
8-bit packets (SPI, MICROWIRE), with CS low during
this period. The control bits and D11–D8 determine
which registers update and the state of the registers
when exiting shutdown. The 3-bit control and D11–D8
determine the following:
• Registers to be updated
• Selection of the power-down and shutdown modes
The general timing diagram of Figure 1 illustrates data
acquisition. Driving CS low enables the device to
receive data. Otherwise the interface control circuitry is
disabled. With CS low, data at DIN is clocked into the
register on the rising edge of SCLK. As CS goes high,
data is latched into the input and/or DAC registers,
depending on the control bits and D11–D8. The maximum clock frequency guaranteed for proper operation
is 13.5MHz. Figure 2 depicts a more detailed timing
diagram of the serial interface.
3V/5V, 12-Bit, Serial Voltage-Output Dual DACs
with Internal Reference
X = Don’t care.
* S0 must be zero for proper operation.
MSB <------------16-bits of serial data ------------> LSB
3 Control BitsMSB .. 12 Data Bits... LSBSub-Bit
C2…C0D11 ..............................D0S0
C2C1C0D11..............D0S0*
00112-bit DAC data0Load input register A; DAC registers are unchanged.
01012-bit DAC data0Load input register A; all DAC registers are updated.
01112-bit DAC data0
100X X X X X X X X X X X X0
10112-bit DAC data0Load input register B; DAC registers are unchanged.
11012-bit DAC data0Load input register B; all DAC registers are updated.
111P1A P1B X X X X X X X X X X0
0000 0 1 X X X X X X X X X0
0000 1 1 P1A P1B X X X X X X X0
0001 0 1 X X X X X X X X X0
0001 1 0 P1A X X X X X X X X0Shut down DAC A according to bit P1A (see Table 3).
0001 1 1 P1B X X X X X X X X0Shut down DAC B according to bit P1B (see Table 3).
0001 0 0 0 X X X X X X X X0Mode 0. DOUT clocked out on SCLK falling edge (default).
0001 0 0 1 X X X X X X X X0Mode 1. DOUT clocked out on SCLK rising edge.
16-BIT SERIAL WORD
FUNCTION
Load all DAC registers from the shift register (start up both DACs
with new data, and load the input registers).
Update both DAC registers from their respective input registers (start
up both DACs with data previously stored in the input registers).
Shut down both DACs, respectively, according to bits P1A and P1B
(see Table 3). Internal bias and reference remain active.
Update DAC register A from input register A (start up DAC A with
data previously stored in input register A).
Full Power-Down. Power down the main bias generator and shut
down both DACs, respectively, according to bits P1A and P1B (see
Table 3).
Update DAC register B from input register B (start up DAC B with
data previously stored in input register B).
Power-Down and Shutdown Modes
As described in Tables 2 and 3, several serial interface
commands put one or both of the DACs into shutdown
mode. Shutdown modes are completely independent
for each DAC. In shutdown, the amplifier output becomes high impedance, and OUT_ terminates to OS_
through the 200kΩ (typ) gain resistors. Optionally (see
Tables 2 and 3), OUT_ can have an additional termination of 1kΩ to AGND.
Full power-down mode shuts down the main bias generator, reference, and both DACs. The shutdown impedance of the DAC outputs can still be controlled
independently, as described in Tables 2 and 3.
A serial interface command exits shutdown mode and
updates a DAC register. Each DAC can exit shutdown
at the same time or independently (see Tables 2 and
3). For example, if both DACs are shut down, updating
the DAC A register causes DAC A to power up, while
DAC B remains shut down. In full power-down mode,
powering up either DAC also powers up the main bias
generator and reference. To change from full powerdown to both DACs shutdown requires the waking of at
least one DAC between states.
When powering up the MAX5230/MAX5231 (powering
V
DD
), allow 400µs (max) for the output to stabilize. When
exiting full power-down mode, also allow 400µs (max) for
the output to stabilize. When exiting DAC shutdown
mode, allow 160µs (max) for the output to stabilize.
Reset Value (RSTV) and
Clear (
CLR
) Inputs
Driving CLR low asynchronously forces both DAC out-
puts and all the internal registers (input registers and
DAC registers) for both DACs to either zero or midscale,
depending on the level at RSTV. RSTV = DGND sets the
zero value, and RSTV, = VDDsets the midscale value.
The internal power-on reset circuit sets the DAC outputs and internal registers to either zero or midscale
when power is first applied to the device, depending on
the level at RSTV as described in the preceding paragraph. The DAC outputs are enabled after power is first
applied. In order to obtain the midscale value on
power-up (RSTV = V
DD
), the voltage on RSTV must rise
simultaneously with the VDDsupply.
Load DAC Input (
LDAC
)
Asserting LDAC asynchronously loads the DAC registers
from their corresponding input registers (DACs that are
shut down remain shut down). The LDAC input is totally
asynchronous and does not require any activity on CS,
SCLK, or DIN in order to take effect. If LDAC is asserted
coincident with a rising edge of CS, which executes a
serial command modifying the value of either DAC input
register, then LDAC must remain asserted for at least
30ns following the CS rising edge. This requirement
applies only for serial commands that modify the value of
the DAC input registers.
Power-Down Lockout Input (
PDL
)
Driving PDL low disables shutdown of either DAC. When
PDL is low, serial commands to shut down either DAC are
ignored. When either DAC is in shutdown mode, a highto-low transition on PDL brings the DACs and the reference out of shutdown with DAC outputs set to the state
prior to shutdown.
Integral nonlinearity (Figure 6a) is the deviation of the values on an actual transfer function from a straight line.
This straight line can be either a best-straight-line fit
(closest approximation to the actual transfer curve) or a
line drawn between the endpoints of the transfer function, once offset and gain errors have been nullified. For
a DAC, the deviations are measured at every single step.
Differential Nonlinearity (DNL)
Differential nonlinearity (Figure 6b) is the difference
between an actual step height and the ideal value of
1LSB. If the magnitude of the DNL is less than 1LSB, the
DAC guarantees no missing codes and is monotonic.
Offset Error
The offset error (Figure 6c) is the difference between
the ideal and the actual offset point. For a DAC, the offset point is the step value when the digital input is zero.
This error affects all codes by the same amount and
can usually be compensated for by trimming.
Gain Error
Gain error (Figure 6d) is the difference between the
ideal and the actual full-scale output voltage on the
transfer curve, after nullifying the offset error. This error
alters the slope of the transfer function and corresponds to the same percentage error in each step.
Settling Time
The settling time is the amount of time required from the
start of a transition, until the DAC output settles to its new
output value within the converter’s specified accuracy.
3V/5V, 12-Bit, Serial Voltage-Output Dual DACs
with Internal Reference
Digital feedthrough is noise generated on the DAC’s
output when any digital input transitions. Proper board
layout and grounding significantly reduce this noise,
but there is always some feedthrough caused by the
DAC itself.
Unipolar Output
Figure 7 shows the MAX5230/MAX5231 configured for
unipolar, rail-to-rail operation. The MAX5231 produces
a 0 to 4.095V output, while the MAX5230 produces 0 to
2.0475V output. Table 4 lists the unipolar output codes.
Digital Calibration and
Threshold Selection
Figure 8 shows the MAX5230/MAX5231 in a digital calibration application. With a bright light value applied to
the photodiode (on), the DAC is digitally ramped until it
trips the comparator. The microprocessor (µP) stores
this “high” calibration value. Repeat the process with a
dim light (off) to obtain the dark current calibration. The
µP then programs the DAC to set an output voltage at
the midpoint of the two calibrated values. Applications
include tachometers, motion sensing, automatic readers, and liquid clarity analysis.
Sharing a Common DIN Line
Several MAX5230/MAX5231s may share one common
DIN signal line (Figure 9). In this configuration, the data
bus is common to all devices; data is not shifted through
a daisy-chain. The SCLK and DIN lines are shared by all
devices, but each IC needs its own dedicated CS line.
Daisy-Chaining Devices
Any number of MAX5230/MAX5231s can be daisychained by connecting the serial data output (DOUT) of
one device to the digital input (DIN) of the following
device in the chain (Figure 10).
On power-up, the input and DAC registers are cleared
to either zero (RSTV = DGND) or midscale (RSTV =
VDD). Bypass VDDwith a 4.7µF capacitor in parallel
with a 0.1µF capacitor to AGND, and bypass VDDwith
a 0.1µF capacitor to DGND. Minimize lead lengths to
reduce lead inductance.
Grounding and Layout Considerations
Digital and AC transient signals on AGND or DGND can
create noise at the output. Connect AGND and DGND
to the highest quality ground available. Use proper
grounding techniques, such as a multilayer board with a
low-inductance ground plane or star connect all ground
return paths back to the MAX5230/MAX5231 AGND.
Carefully lay out the traces between channels to reduce
AC cross-coupling and crosstalk. Wire-wrapped boards
and sockets are not recommended. If noise becomes
an issue, shielding may be required.
Chip Information
TRANSISTOR COUNT: 4745
PROCESS: BiCMOS
3V/5V, 12-Bit, Serial Voltage-Output Dual DACs
with Internal Reference
3V/5V, 12-Bit, Serial Voltage-Output Dual DACs
with Internal Reference
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.
18 ____________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600