Datasheet

Table Of Contents
Appendix
www.ti.com
The USB-DAQ Platform SPI protocol supports four clock and data line modes of operation. These modes
are summarized in Table 32. The first mode, BREH, is used by the XTR108EVM-USB.
Table 32. SPI Modes of Operation
Mode Clock Polarity Description (CPOL) Clock Transition for Data Polarity Description (CPHA)
Data are read by the USB-DAQ on the clock rising edge. Data are
Clock idles low
BREH changed by the USB-DAQ on the clock falling edge. Data are sampled on
CPOL = 0
the first clock edge. CPHA = 0.
Data are read by the USB-DAQ on the clock falling edge. Data are
Clock idles low
BREL changed by the USB-DAQ on the clock rising edge. Data are sampled on
CPOL = 0
the second clock edge. CPHA = 1.
Data are read by the USB-DAQ on the clock falling edge. Data are
Clock idles high
AFEH changed by the USB-DAQ on the clock rising edge. Data are sampled on
CPOL = 1
the first clock edge. CPHA = 0.
Data are read by the USB-DAQ on the clock rising edge. Data are
Clock idles high
AFEL changed by the USB-DAQ on the clock falling edge. Data are sampled on
CPOL = 1
the second clock edge. CPHA = 1.
The USB-DAQ also supports a set of generic commands used to enable or disable power supplies, read
from internal ADCs, set the output of internal DACs, and set the voltage of control pins. The XTR108EVM-
USB uses the GPIO pin functionality to control the relay driver U1 on the Interface Board. These
commands are given in Table 33.
Table 33. General USB-DAQ Commands
Command Description
CMD Always the first mnemonic in a general USB-DAQ command.
Sets the eight control pins according to the value written.
Each control pin is assigned a location in the 8-bit control word, where CTRL8 is the
Example: CTRL 0, CTRL 3, CTRL 128,
MSB and CTRL1 is the LSB. For example, write CTRL 0 to turn off all control pins. To
CTRL 255
turn on the CTRL1 and CTRL2 pins, write CTRL 3. To turn on only the CTRL8 pin,
write CTRL 128.
60
XTR108EVM-USB Evaluation Board and Software Tutorial SBOU123March 2012
Submit Documentation Feedback
Copyright © 2012, Texas Instruments Incorporated