AD5360/AD5361
Rev. A | Page 22 of 28
SPI READBACK MODE
The AD5360/AD5361 allow data readback via the serial inter-
face from every register directly accessible to the serial interface,
which is all registers except the X2A, X2B, and DAC data
registers. To read back a register, it is first necessary to tell the
AD5360/AD5361 which register is to be read. This is achieved
by writing a word whose first two bits are the Special Function
Code 00 to the device. The remaining bits then determine if the
operation is a readback and which register is to be read back, or
if it is a write to of the special function registers, such as the
control register.
If a readback command is written to a special function register,
data from the selected register is clocked out of the SDO pin
during the next SPI operation. The SDO pin is normally three-
stated but becomes driven as soon as a read command is issued.
The pin remains driven until the register’s data is clocked out.
See Figure 5 for the read timing diagram. Note that, due to the
timing requirements of t
22
(25 ns), the maximum speed of the
SPI interface during a read operation should not exceed 20 MHz.
REGISTER UPDATE RATES
The value of the X2A or X2B register is calculated each time the
user writes new data to the corresponding X1, C, or M register.
The calculation is performed by a three-stage process. The first
two stages take approximately 600 ns each, and the third stage
takes approximately 300 ns. When the write to a X1, C, or M
register is complete, the calculation process begins. If the write
operation involves the update of a single DAC channel, the user
is free to write to another register provided that the write
operation does not finish until the first stage calculation is
complete, that is, 600 ns after the completion of the first write
operation. If a group of channels is being updated by a single
write operation, the first stage calculation is repeated for each
channel, taking 600 ns per channel. In this case, the user should
not complete the next write operation until this time has elapsed.
PACKET ERROR CHECKING
To verify that data has been received correctly in noisy environ-
ments, the AD5360/AD5361 offer the option of error checking
based on an 8-bit (CRC-8) cyclic redundancy check. The device
controlling the AD5360/AD5361 should generate an 8-bit
checksum using the polynomial C(x) = x
8
+ x
2
+ x
1
+1. The
checksum is added to the end of the data word, and 32 data bits
are sent to the AD5360/AD5361 before taking
SYNC
high. If
the AD5360/AD5361 see a 32-bit data frame, they perform the
error check when
SYNC
goes high. If the checksum is valid, the
data is written to the selected register. If the checksum is invalid,
the data is ignored, the packet error check output (
PEC
) goes
low, and Bit 3 of the control register is set. After reading the
control register, the error flag is cleared automatically and
PEC
goes high again.
05761-029
UPDATE ON SYNC HIGH
UPDATE AFTER SYNC HIGH
ONLY IF ERROR CHECK PASSED
PEC GOES LOW IF
ERROR CHECK FAILS
SCLK
SDI
YNC
SCLK
SDI
YNC
PEC
MSB
D23
LSB
D0
MSB
D31
LSB
D8
24-BIT DATA
24-BIT DATA
8-BIT CHECKSUM
D7 D0
24-BIT DATA TRANSFER—NO ERROR CHECKING
24-BIT DATA TRANSFER WITH ERROR CHECKING
Figure 24. SPI Write with and Without Error Checking
AD5360/AD5361
Rev. A | Page 23 of 28
CHANNEL ADDRESSING AND SPECIAL MODES
If the mode bits are not 00, then the data word D15 to D0
(AD5360) or D13 to D0 (AD5361) is written to the device.
Address Bit A4 to Address Bit A0 determine which channel or
channels is/are written to, while the mode bits determine to
which register (X1A, X1B, C, or M) the data is written, as
shown in Table 10 and Table 11. Data is to be written to the
X1A when the
A
/B bit in the control register is 0 or to the X1B
register when the bit is 1.
The AD5360/AD5361 have very flexible addressing that allows
writing of data to a single channel, all channels in a group, the
same channel in Group 0 and Group 1 or all channels in the
device. Table 13 shows all these address modes. It shows which
group(s) and which channel(s) is/are addressed for every
combination of Address Bit A4 to Address Bit A0.
Table 12. Mode Bits
M1 M0 Action
1 1 Write DAC data (X) register
1 0 Write DAC offset (C) register
0 1 Write DAC gain (M) register
0 0
Special function, used in combination with other
bits of a word
Table 13. Group and Channel Addressing
Address Bit A2 to Address Bit A0
Address Bit A4 to Address Bit A3
00 01 10 11
000 All groups, all channels Group 0, Channel 0 Group 1, Channel 0 Unused
001 Group 0, all channels Group 0, Channel 1 Group 1, Channel 1 Unused
010 Group 1, all channels Group 0, Channel 2 Group 1, Channel 2 Unused
011 Unused Group 0, Channel 3 Group 1, Channel 3 Unused
100 Unused Group 0, Channel 4 Group 1, Channel 4 Unused
101 Unused Group 0, Channel 5 Group 1, Channel 5 Unused
110 Unused Group 0, Channel 6 Group 1, Channel 6 Unused
111 Unused Group 0, Channel 7 Group 1, Channel 7 Unused
AD5360/AD5361
Rev. A | Page 24 of 28
SPECIAL FUNCTION MODE
If the mode bits are 00, then the special function mode is
selected, as shown in Table 14. Bits I21 to I16 of the serial data
word select the special function, while the remaining bits are
data required for execution of the special function, for example
the channel address for data readback.
The codes for the special functions in Table 16 show the
addresses for data readback.
Table 14. Special Function Mode
I23 I22 I21 I20 I19 I18 I17 I16 I15 I14 I13 I12 I11 I10 I9 I8 I7 I6 I5 I4 I3 I2 I1 I0
0 0 S5 S4 S3 S2 S1 S0 F15 F14 F13 F12 F11 F10 F9 F8 F7 F6 F5 F4 F3 F2 F1 F0
Table 15. Special Function Codes
Special Function Code
Data (F15 to F0) Action S5 S4 S3 S2 S1 S0
0 0 0 0 0 0 0000 0000 0000 0000 NOP.
0 0 0 0 0 1 XXXX XXXX XXXX X [F2:F0] Write control register.
F4 = 1: temperature over 130°C.
F4 = 0: temperature under 130°C.
Read-only bit. This bit should be 0 when writing to the control register.
F3 = 1: PEC
error.
F3 = 0: No PEC
error. Reserved.
Read-only bit. This bit should be 0 when writing to the control register.
F2 = 1: select Register X1B for input.
F2 = 0: select Register X1A for input.
F1 = 1: enable temperature shutdown.
F1 = 0: disable temperature shutdown.
F0 = 1: soft power-down.
F0 = 0: soft power-up.
0 0 0 0 1 0 XX [F13:F0] Write data in F13 to F0 to OFS0 register.
0 0 0 0 1 1 XX [F13:F0] Write data in F13 to F0 to OFS1 register.
0 0 0 1 0 0 Reserved
0 0 0 1 0 1 See Table 16 Select register for readback.
0 0 0 1 1 0 XXXX XXXX [F7:F0]
Write data in F7 to F0 to A
/B Select Register 0.
0 0 0 1 1 1 XXXX XXXX [F7:F0]
Write data in F7 to F0 to A
/B Select Register 1.
0 0 1 0 0 0 Reserved
0 0 1 0 0 1 Reserved
0 0 1 0 1 0 Reserved
0 0 1 0 1 1 XXXX XXXX [F7:F0]
Block write A
/B select registers.
F7 to F0 = 0: write all 0s (all channels use X2A register).
F7 to F0 = 1: write all 1s (all channels use X2B register).
0 0 1 1 0 0 XXXX XXXX XX [F5:F0]
F5 = 1: monitor enable.
F5 = 0: monitor disable.
F4 = 1: monitor input pin selected by F0.
F4 = 0: monitor DAC channel selected by F3:F0
(0000 = DAC0; 1111 = DAC15).
F3 = not used if F4 = 1.
F2 = not used if F4 = 1.
F1 = not used.
F0 = 0: MON_IN0 selected for monitoring (if F4 and F5 = 1).
F0 = 1: MON_IN1 selected for monitoring (if F4 and F5 = 1).
0 0 1 1 0 1 XXXX XXXX XXXX XX [F1:F0] GPIO configure and write.
F1 = 1: GPIO is an output. Data to output is written to F0.
F1 = 0: GPIO is an input. Data can be read from F0 on readback.

AD5360BCPZ

Mfr. #:
Manufacturer:
Analog Devices Inc.
Description:
Digital to Analog Converters - DAC 16-CH 16-bit Serial bipolar IC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union