ADAR7251 Data Sheet
Rev. 0 | Page 30 of 72
extra serial port (SPORT) on the DSP. This works because both
PLLs are synchronized to one master clock and are enabled at
the same time using a single SPI master. SPI writes must be
written to both devices simultaneously. For this to work, the
SPI_SS pin of both devices must be selected at the same time.
The SPI reads, however, can be performed independently for
both devices.
SPI CONTROL PORT
The ADAR7251 control port uses a 4-wire SPI. The SPI port
sets the internal registers of the device. The SPI allows read and
write capability of the registers. All the registers are 16 bits wide.
The SPI control port supports Mode 11 (clock polarity = 1 and
clock phase = 1), slave only and, therefore, requires the master
in the system to operate. The registers cannot be accessed
without the master clock to the device. It is recommended to
configure the PLL first to achieve full speed on the control port.
The port is powered by IOVDDx, and control signals must be
within the IOVDDx limits. The serial control interface also
allows the user to control auxiliary functions of the device such
as the GPIOs and the auxiliary ADC.
Table 17 shows the functions of the control port pins in SPI
mode.
Table 17. Control Port Pin Functions
Pin
No. Mnemonic Pin Function
Pin
Type
32 ADDR15 Sets the device address for the SPI Input
38 SPI_MISO SPI port outputs data from the
ADAR7251
Output
39 SPI_MOSI SPI port inputs data to the
ADAR7251
Input
40 SPI_CLK SPI clock to the ADAR7251 Input
41 SPI_SS SPI slave select to the ADAR7251 Input
The SPI port uses a 4-wire interface, consisting of the SPI_SS,
SPI_CLK, SPI_ MOSI, and SPI_MISO signals. The SPI port is
always a slave port. The SPI_SS (slave select) selects the device.
The SPI_CLK is the serial clock input for the device, and all
data transfers (either SPI_MOSI or SPI_MISO) take place with
respect to this clock signal. The SPI_MOSI pin addresses the
on-chip registers and transfers data to these registers. The
SPI_MISO pin outputs data from the on-chip registers.
The SPI_SS goes low at the beginning of a transaction and high
at the end of a transaction. The SPI_CLK signal samples
SPI_MOSI on a low to high SPI_CLK transition; therefore, the
data to be written to the device must be stable during this edge.
The data shifts out of the SPI_MISO on the falling edge of the
SPI_CLK and must be clocked into a receiving device, such as a
microcontroller, on the SPI_CLK rising edge. The SPI_MOSI
signal carries the serial input data to the ADAR7251, and the
SPI_MISO signal carries the serial output data from the device.
The SPI_MISO signal remains tristated until a read operation is
requested. This allows direct connection to other SPI-compatible
peripheral SPI_MISO ports for sharing the same system
controller port. All SPI transactions have the same basic format
shown in Table 19. Figure 2 shows an SPI port timing diagram.
All data must be written MSB first.
Device Address R/W
The LSB of the first byte of an SPI transaction is a R/W bit. This
bit determines whether the communication is a read (Logic level 1)
or a write (Logic Level 0). This format is shown in Table 18.
Table 18. SPI Address and R/W Byte Format
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0 0 0 0 0 0 ADDR15
R/W
The ADDR15 pin (Pin 32) determines the address of the device.
The device reads the status of this pin on power-up and uses the
device address. A 47 kΩ typical resistor must be used to set the
device address by using a pull-down resistor to ground or a
pull-up resistor to the IOVDDx pins. Pin 32 is multifunctional
and is also used as a data output in PPI mode. The R/W bit
setting determines if the device is used for an SPI write or SPI
read operation. When the R/W bit is set to 0, it is used for an
SPI write operation; when it is set to 1, it is used for an SPI read
operation.
Register Address
The registers address field is 16 bits wide. The registers start at
Register 0x000.
Data Bytes
The register data field is 16 bits wide.
CRC
The ADAR7251 provides the user with a 16-bit cyclic
redundancy check (CRC) for SPI read and writes to the device,
and for data communication error detection. The CRC is
enabled by default and can be disabled if not required.
Disable the CRC by writing 0x0001 to Register 0xFD00. This
SPI write disables the CRC function. With the CRC disabled,
the SPI read and write sequence is conventional.
Table 19 shows the typical single read/write byte sequence
without the CRC; this sequence typically requires 40 clock
cycles or 5 bytes. The typical 5-byte sequence consists of Byte 0
for the device address with the R/W bit. The next two bytes,
Byte 1 and Byte 2, contain the register address followed by
Byte 3 and Byte 4, which carry the data to or from the register.
A sample timing diagram for a single-word SPI write operation
to a register is shown in Figure 53. Figure 54 show a single-word
SPI read. During the read operation, the SPI_MISO pin goes
from being high impedance (high-Z) to output at the beginning
of Byte 3.
Figure 55 and Figure 56 shows the typical sequence for the
multiple byte SPI read and writes.