# Xbee S2C Pro SPI Settings

**URL:** https://forums.digi.com/t/xbee-s2c-pro-spi-settings/26266
**Category:** XCTU
**Tags:** xbee-pro, xbee, xctu, zigbee
**Created:** [July 1, 2023, 8:33am UTC](https://forums.digi.com/t/xbee-s2c-pro-spi-settings/26266 "2023-07-01T08:33:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![SH24](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@SH24](https://forums.digi.com/u/SH24)
#### Post date: [July 1, 2023, 8:33am UTC](https://forums.digi.com/t/xbee-s2c-pro-spi-settings/26266/1 "2023-07-01T08:33:45Z")

</div>

I am trying to interface Xbee S2C Pro with the microcontroller Raspberry Pi Pico through the SPI communication protocol. Kindly guide on what are the settings to be done from XCTU side such that a successful communication can be established. I tried the configurations and was getting received data as 0xff only. what might be the problem? I have 2 xbee devices one which is coordinator which is interfaced with the microcontroller while the other is the router.

---

<div class="post-metadata">

### Author: ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)
#### Post date: [July 11, 2023, 4:02pm UTC](https://forums.digi.com/t/xbee-s2c-pro-spi-settings/26266/2 "2023-07-11T16:02:28Z")

</div>

When using the SPI port, ALL data is to be in the Digi API frames. So if you want to receive data, send 0xFF. If you want to send data, then you need to use a valid API frame.

---

<div class="post-metadata">

### Author: ![SH24](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@SH24](https://forums.digi.com/u/SH24)
#### Post date: [July 19, 2023, 5:12am UTC](https://forums.digi.com/t/xbee-s2c-pro-spi-settings/26266/3 "2023-07-19T05:12:55Z")

</div>

I tried the above mentioned solution and it still doesn’t return any data. Is there any other detailed way in which it can be executed. Kindly guide.

---

<div class="post-metadata">

### Author: ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)
#### Post date: [July 19, 2023, 12:58pm UTC](https://forums.digi.com/t/xbee-s2c-pro-spi-settings/26266/4 "2023-07-19T12:58:28Z")

</div>

No. Not with the SPI interface. ALL data being sent via the SPI is done using API frames. Also the data would have 0xFF need to be sent to read data from the SPI port.

---

<div class="post-metadata">

### Author: ![SH24](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@SH24](https://forums.digi.com/u/SH24)
#### Post date: [July 20, 2023, 4:06am UTC](https://forums.digi.com/t/xbee-s2c-pro-spi-settings/26266/5 "2023-07-20T04:06:08Z")

</div>

Okay So I had one more query based on the reply. There are certain settings in XCTU for SPI enabling. Like SPI\_ATTN, SPI\_SSEL, SPI\_MISO, SPI\_SCK and SPI\_MOSI. What are the values to be set such that the above mentioned solution can also be implemented in addition to this.

---

<div class="post-metadata">

### Author: ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)
#### Post date: [August 2, 2024, 2:03pm UTC](https://forums.digi.com/t/xbee-s2c-pro-spi-settings/26266/6 "2024-08-02T14:03:49Z")

</div>

I am sorry but I am not sure I understand your request. A specific DIO line can only be set for one function. So if you have the SPI\_ATTN line set for this function, that is all it can be used for.

Note that the XBee modules SPI port is only a SPI slave. It does need to be connected to a SPI master device.
