Signal Description; Slave Mode Characteristics - Digi XBee SX User Manual

Radio frequency (rf) module
Hide thumbs Also See for XBee SX:
Table of Contents

Advertisement

Serial communication
Signal
SPI_SCLK (Serial clock)
SPI_SSEL (Slave select)
SPI_ATTN (Attention)
By default, the inputs have pull-up resistors enabled. Use the PR command to disable the pull-up
resistors. When the SPI pins are not connected but the pins are configured for SPI operation, then the
device requires the pull-ups for proper UART operation.

Signal description

SPI_MOSI: When SPI_SSEL is asserted (low) and SPI_CLK is active, the device outputs the data on this
line at the SPI_CLK rate. When SPI_SSEL is de-asserted (high), you should tri-state this output such
that another slave device can drive the line.
SPI_MISO: The SPI master outputs data on this line at the SPI_CLK rate after it selects the desired
slave. When you configure the device for SPI operations, this pin is an input.
SPI_SCLK: The SPI master outputs a low signal on this line to select the desired slave. When you
configure the device for SPI operations, this pin is an input. This signal clocks data transfers on MOSI
and MISO.
SPI_SSEL: The SPI master outputs a clock on this pin, and the rate must not exceed the maximum
allowed, 6 Mb/s. When you configure the device for SPI operations, this pin is an input. This signal
enables serial communication with the slave.
SPI_ATTN: The device asserts this pin low when it has data to send to the SPI master. When you
configure this pin for SPI operations, it is an output (not tri-stated). This signal alerts the master that
the slave has data queued to send. The device 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.

Slave mode characteristics

In slave mode, the following apply:
SPI Clock rates up to 6 MHz (6 Mb/s) are possible.
n
Data is MSB first.
n
It uses Frame Format Mode 0. This means CPOL= 0 (idle clock is low) and CPHA = 0 (data is
n
sampled on the clock's leading edge). The picture below diagrams Mode 0.
The SPI port is setup for API mode and is equivalent to AP = 1.
n
The following picture shows the frame format for SPI communications.
XBee®/XBee-PRO SX RF Module User Guide
Pin number
Applicable AT command
P7
15
P8
14
P9
12
Slave mode characteristics
60

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee-pro sx

Table of Contents