AD5532-1 Analog Devices, AD5532-1 Datasheet - Page 14

no-image

AD5532-1

Manufacturer Part Number
AD5532-1
Description
32-Channel/ 14-Bit Voltage-Output DAC
Manufacturer
Analog Devices
Datasheet
AD5532
MICROPROCESSOR INTERFACING
AD5532 to ADSP-21xx Interface
The ADSP-21xx family of DSPs are easily interfaced to the
AD5532 without the need for extra logic.
A data transfer is initiated by writing a word to the TX register
after the SPORT has been enabled. In a write sequence data is
clocked out on each rising edge of the DSP’s serial clock and
clocked into the AD5532 on the falling edge of its SCLK. In
readback 16 bits of data are clocked out of the AD5532 on each
rising edge of SCLK and clocked into the DSP on the rising
edge of SCLK. D
centered in the 16-bit RX register when using this configuration.
The SPORT control register should be set up as follows:
TFSW
INVRFS = INVTFS = 1, Active Low Frame Signal
DTYPE = 00, Right Justify Data
ISCLK = 1, Internal Serial Clock
TFSR
IRFS
ITFS
SLEN
SLEN
SLEN
Figure 20 shows the connection diagram.
AD5532 to MC68HC11
The Serial Peripheral Interface (SPI) on the MC68HC11 is
configured for Master Mode (MSTR = 1), Clock Polarity Bit
(CPOL) = 0 and the Clock Phase Bit (CPHA) = 1. The SPI is
configured by writing to the SPI Control Register (SPCR)—see
68HC11 User Manual. SCK of the 68HC11 drives the SCLK of
the AD5532, the MOSI output drives the serial data line (D
of the AD5532 and the MISO input is driven from D
SYNC signal is derived from a port line (PC7). When data is
being transmitted to the AD5532, the SYNC line is taken low
(PC7). Data appearing on the MOSI output is valid on the fall-
ing edge of SCK. Serial data from the 68HC11 is transmitted in
8-bit bytes with only eight falling clock edges occurring in the
transmit cycle. Data is transmitted MSB first. In order to trans-
mit 10-data bits in SHA mode it is important to left-justify the
data in the SPDR register. PC7 must be pulled low to start a
transfer. It is taken high and pulled low again before any further
read/write cycles can take place. A connection diagram is shown in
Figure 21.
*ADDITIONAL PINS OMITTED FOR CLARITY
AD5532*
= RFSW = 1, Alternate Framing
= RFSR = 1, Frame Every Word
= 0, External Framing Signal
= 1, Internal Framing Signal
= 1001, 10-Bit Data Words (SHA Mode Write)
= 0111, 3× 8-Bit Data Words (DAC Mode Write)
= 1111, 16-Bit Data Words (Readback Mode)
SYNC
SCLK
D
OUT
D
IN
IN
is ignored. The valid 14 bits of data will be
DR
TFS
RFS
DT
SCLK
ADSP-2101/
ADSP-2103*
OUT
. The
IN
)
AD5532 to PIC16C6x/7x
The PIC16C6x/7x Synchronous Serial Port (SSP) is config-
ured as an SPI Master with the Clock Polarity bit = 0. This is
done by writing to the Synchronous Serial Port Control Register
(SSPCON). See user PIC16/17 Microcontroller User Manual. In
this example I/O port RA1 is being used to pulse SYNC and
enable the serial port of the AD5532. This microcontroller
transfers only eight bits of data during each serial transfer opera-
tion; therefore, two or three consecutive read/write operations
are needed depending on the mode. Figure 22 shows the connec-
tion diagram.
AD5532 to 8051
The AD5532 requires a clock synchronized to the serial data.
The 8051 serial interface must therefore be operated in Mode
0. In this mode serial data enters and exits through RxD and a
shift clock is output on TxD. Figure 23 shows how the 8051 is
connected to the AD5532. Because the AD5532 shifts data out
on the rising edge of the shift clock and latches data in on the
falling edge, the shift clock must be inverted. The AD5532
requires its data with the MSB first. Since the 8051 outputs the
LSB first, the transmit routine must take this into account.
*ADDITIONAL PINS OMITTED FOR CLARITY
*ADDITIONAL PINS OMITTED FOR CLARITY
*ADDITIONAL PINS OMITTED FOR CLARITY
AD5532*
AD5532*
AD5532*
SCLK
SYNC
SYNC
SCLK
SYNC
SCLK
D
D
D
OUT
OUT
OUT
D
D
D
IN
IN
IN
TxD
SCK/RC3
RxD
P1.1
MISO
PC7
SCK
MOSI
SDO/RC5
SDI/RC4
RA1
PIC16C6x/7x*
MC68HC11*
8051*

Related parts for AD5532-1