Table 1. serial-interface programming command, Serial interface – Rainbow Electronics MAX5159 User Manual

Page 10

Advertising
background image

MAX5158/MAX5159

remains active. Data in the input registers is saved,
allowing the MAX5158/MAX5159 to recall the output
state prior to entering shutdown when returning to nor-
mal mode. Exit shutdown by recalling the previous con-
dition or by updating the DAC with new information.
When returning to normal operation (exiting shutdown),
wait 20µs for output stabilization.

Serial Interface

The MAX5158/MAX5159 3-wire serial interface is com-
patible with both Microwire (Figure 2) and SPI/QSPI
(Figure 3) serial-interface standards. The 16-bit serial
input word consists of an address bit, two control bits, 10
bits of data (MSB to LSB), and 3 sub-bits as shown in
Figure 4. The address and control bits determine the
MAX5158/MAX5159’s response, as outlined in Table 1.

Low-Power, Dual, 10-Bit Voltage-Output DACs
with Serial Interface

10

______________________________________________________________________________________

FUNCTION

A0

C1

C0

D9..........................D0
(MSB) (LSB)

0 0 1

10-bit DAC data

Load input register A; DAC registers are unchanged.

0 1 1

10-bit DAC data

Load all DAC registers from the shift register
(start up both DACs with new data.).

1 1 0

10-bit DAC data

Load input register B; all DAC registers are updated.

0 1 0

10-bit DAC data

Load input register A; all DAC registers are updated.

1 0 1

10-bit DAC data

Load input register B; DAC registers are unchanged.

0 0 0

1 1 0 x xxxxxx

Shut down DAC A (provided PDL = 1).

0 0 0

1 0 1 x xxxxxx

Update DAC register B from input register B
(start up DAC B with data previously stored in input register B).

0 0 0

0 0 1 x xxxxxx

Update DAC register A from input register A
(start up DAC A with data previously stored in input register A).

1 1 1

xxxxxxxxxx

Shut down both DACs (provided PDL = 1).

1 0 0

xxxxxxxxxx

Update both DAC registers from their respective input registers
(start up both DACs with data previously stored in the input registers).

0 0 0

1 1 1 x xxxxxx

Shut down DAC B (provided PDL = 1).

0 0 0

0 1 0 x xxxxxx

UPO goes low (default).

0 0 0

0 1 1 x xxxxxx

UPO goes high.

0 0 0

1 0 0 1 xxxxxx

Mode 1, DOUT clocked out on SCLK’s rising edge.

0 0 0

1 0 0 0 xxxxxx

Mode 0, DOUT clocked out on SCLK’s falling edge (default).

0 0 0

0 0 0 x xxxxxx

No operation (NOP).

Table 1. Serial-Interface Programming Command

x = Don’t care

Note:

When A0, C1, and C0 = 0, then D9, D8, D7, and D6 become control bits. S2–S0 are sub bits, always zero.

SCLK

DIN

CS

SK

SO

I/O

MAX5158
MAX5159

MICROWIRE

PORT

Figure 2. Connections for Microwire

16-BIT SERIAL WORD

S2–S0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

0 0 0

Advertising