SPI operation SPI communications
XBee®-PRO 900HP/XSC RF Modules
41
SPI communications
The XBee-PRO 900HP 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.
Signal Function
SPI_MOSI
(MasterOut,SlaveIn)
Inputs serial data from the master
SPI_MISO(Master
In,Slave Out)
Outputs serial data to the master
SPI_SCLK
(SerialClock)
Clocks data transfers on MOSI and MISO
SPI_SSEL
(SlaveSelect)
Enables serial communication with the slave
SPI_ATTN (Attention) Alerts the master that slave has data queued to send. The XBee-PRO 900HP
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:
n SPI clock rates up to 3.5 MHz are possible.
n Data is most significant bit (MSB) first.
n Frame Format mode 0 is used. This means CPOL= 0 (idle clock is low) and CPHA = 0 (data is
sampled on the clock’s leading edge).
n The SPI port only supports API Mode (AP = 1).
The following diagram shows the frame format mode 0 for SPI communications.
SPI implementation
The XBee-PRO 900HP RF Module operates as a SPI slave only. This means an external master
provides the clock and decides when to send data. The XBee-PRO 900HP RF Module supports an
external clock rate of up to 3.5 Mb/s.