max5121beee Maxim Integrated Products, Inc., max5121beee Datasheet - Page 12

no-image

max5121beee

Manufacturer Part Number
max5121beee
Description
3v/5v, 12-bit, Serial Voltage-output Dacs With Internal Reference
Manufacturer
Maxim Integrated Products, Inc.
Datasheet
The 16-bit input word may be sent in two 1-byte pack-
ets (SPI-, MICROWIRE- and PIC16/PIC17-compatible),
with CS low during this period. The control bits C2, C1,
and C0 (Table 1) determine:
The general timing diagram in Figure 6 illustrates how
data is acquired. CS must be low for the part to receive
data. With CS low, data at DIN is clocked into the regis-
ter on the rising edge of SCLK. When CS transitions
high, data is latched into the input and/or DAC registers,
depending on the setting of the three control bits C2,
C1, and C0. The maximum serial clock frequency guar-
anteed for proper operation is 10MHz for the MAX5120
and 6.6MHz for the MAX5121. Figure 7 depicts a more
detailed timing diagram of the serial interface.
Table 2. Serial Data Format
+3V/+5V, 12-Bit, Serial Voltage-Output DACs
with Internal Reference
Figure 6. Serial-Interface Timing
Figure 7. Detailed Serial-Interface Timing
12
MSB ............................................................................... LSB
The clock edge on which DOUT is to be clocked out
via the serial interface;
The state of the user-programmable logic output;
The configuration of the device after shutdown.
Control Bits
C2, C1, C0
______________________________________________________________________________________
DOUT
SCLK
DIN
CS
SCLK
DIN
CS
16 BITS OF SERIAL DATA
D11................................D0
MSB .... Data Bits ..... LSB
t
CS0
C2
1
C1
C0 D11 D10
t
CSS
t
DS
D9
D8
Sub-Bit
S0
D7
t
DO1
8
t
CH
D6
t
9
CSH
D5
t
CP
The MAX5120/MAX5121 are compatible with a PIC16/
PIC17 controller (µC), using the synchronous serial port
(SSP) module. To establish SPI communication connect
the controller as shown in Figure 4 and configure the
PIC16/PIC17 as system master by initializing its syn-
chronous serial port control register (SSPCON) and
synchronous serial port status register (SSPSTAT) to
the bit patterns shown in Tables 3 and 4.
In SPI mode, the PIC16/PIC17 µCs allow 8 bits of data
to be transmitted synchronously and received simulta-
neously. Two consecutive 8-bit writings (Figure 6) are
necessary to feed the DAC with three control bits and
12 data bits plus one sub-bit. DIN data transitions on
the serial clock’s falling edge and is clocked into the
DAC on SCLK’s rising edge. The first 8 bits on DIN con-
tain the 3 control bits (C2, C1, and C0) and the first five
data bits (D11–D7). The second 8-bit word contains the
remaining bits (D6–D0), and the sub-bit S0.
D4
t
DO2
D3
t
CL
D2
D1
t
D0
CS1
PIC16 with SSP Module and
t
S0
DH
16
t
CSW
COMMAND
EXECUTED
PIC17 Interface

Related parts for max5121beee