Skip to main content

SPI

The SPI (Serial Peripheral Interface) panel provides users with SPI serial communication testing. You can set the SPI mode and transmission rate to perform full-duplex communication with peripheral devices.

WDM_testPanel_spi

Supported Products and Ports

This function supports devices equipped with an SPI interface. Please confirm the corresponding port (Port) number according to your device model:

Product NamePort
USB-DAQ-F1-AD2
USB-DAQ-F1-CD2
USB-DAQ-F1-D1~2
USB-DAQ-F1-RD2
USB-DAQ-F1-TD2

Parameter Settings

SPI Mode

Four standard SPI modes are supported, determined by the clock polarity (CPOL) and clock phase (CPHA):

ModeClock Polarity (CPOL)Clock Phase (CPHA)
00 (Idle Low)0 (Leading Edge)
10 (Idle Low)1 (Trailing Edge)
21 (Idle High)0 (Leading Edge)
31 (Idle High)1 (Trailing Edge)

Operation Description

Button/ParameterDescription
SPI RateSet the SPI clock rate (maximum 1 MHz).
CS PinSelect the chip select pin (Chip Select) to be used; the specific definition depends on the product specifications.
Bytes to ReadSet the length of data to be read (Byte).
WriteSend data to the SPI device (Write only).
ReadReceive data from the SPI device (Read only).
Write+ReadFull-duplex operation: read back data while writing data.