SPI communications

The XBee 3 802.15.4 RF Module supports SPI communications in slave mode. Slave mode receives the clock signal and data from the master and returns data to the master. The following table shows the signals that the SPI port uses on the device.

Refer to the XBee 3 Hardware Reference Guide for the pinout of your device.

Signal Direction Function
SPI_MOSI (Master Out, Slave In) Input Inputs serial data from the master

SPI_MISO (Master In, Slave Out)

Output Outputs serial data to the master

SPI_SCLK (Serial Clock)

Input Clocks data transfers on MOSI and MISO

SPI_SSEL (Slave Select)

Input Enables serial communication with the slave

SPI_ATTN (Attention)

Output

Alerts the master that slave has data queued to send. The XBee 3 802.15.4 RF Module asserts this pin as soon as data is available to send to the SPI master and it remains asserted until the SPI master has clocked out all available data.

In this mode:

The following diagram shows frame format mode 0 for SPI communications.

SPI mode is chip to chip communication. We do not supply a SPI communication interface on the XBee development evaluation boards included in the development kit.