# Full duplex SPI?

**URL:** <https://forum.sierrawireless.com/t/full-duplex-spi/1554>\
**Category:** General wireless topics\
**Created:** [August 23, 2007, 11:05am UTC](https://forum.sierrawireless.com/t/full-duplex-spi/1554 "2007-08-23T11:05:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![milan\_va](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@milan\_va](https://forum.sierrawireless.com/u/milan_va)\
**Post date:** [August 23, 2007, 11:05am UTC](https://forum.sierrawireless.com/t/full-duplex-spi/1554/1 "2007-08-23T11:05:00Z")

</div>

Hello.

I’m trying to add a microcontroller to our Q2686-based device and decided to communicate using SPI. But, to my surprise, the SPI bus is implemented incorrectly!

First, the chip-select signal should be active during the complete WRITE+READ operation, but it’s only possible to call adl\_busWrite() OR adl\_busRead() but not both in one go. The chip-select signal goes inactive between the calls. Even if this is incorrect, I guess it could be overcome by driving the chip-select manually… 😒

The second problem is a bigger one: there’s NO fullduplex mode. Using the 4-wire interface, it should be possible to write and read at the same time, but there’s no adl\_busFullDuplexTransfer() function! 😮 Some devices use this full-duplex mode, but it just CANNOT be implemented in Wavecom.

Does anyone know if this functionality is going to be added, and when? Or am I mistaken and it is already there?

---

<div class="post-metadata">

**Author:** ![kkj](https://avatars.discourse-cdn.com/v4/letter/k/b782af/32.png) [@kkj](https://forum.sierrawireless.com/u/kkj)\
**Post date:** [September 1, 2007, 6:49pm UTC](https://forum.sierrawireless.com/t/full-duplex-spi/1554/2 "2007-09-01T18:49:48Z")

</div>

Hi,  
I had use this function like you, I also found the first problem but if you use GPIO as CS signal in parameter that you subscribe, it will work.

the second problem I think you SPI bus on Wireless CPU had designed for use with spi device such as ADC, IO expander, normally it run in half duplex,

if you interface with MCU I suggest you to change to I2C hard bus instead because SPI bus not have mechanism to break data transfer in bus your external cpu may not response on time, and your data may lost.

---

<div class="post-metadata">

**Author:** ![mpuman](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@mpuman](https://forum.sierrawireless.com/u/mpuman)\
**Post date:** [January 18, 2008, 8:33pm UTC](https://forum.sierrawireless.com/t/full-duplex-spi/1554/3 "2008-01-18T20:33:48Z")

</div>

Hi,

Did you ever come up with a way to do full duplex on the SPI buss on the Q24? Funny how with so many documents, stuff is missing!

I see a driver for a M93Cx6 eeprom memory which is a full duplex part in \samples\libraries\src\drv\_m93cx6.c - problem is not any hint as to how it was hooked up in hardware! Since I don’t have the source for the spibuss functions - I don’t know. Any help would be appreciated as I am trying to complete a hardware design.

Thanks,

~ Mike

---

<div class="post-metadata">

**Author:** ![sbero](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@sbero](https://forum.sierrawireless.com/u/sbero)\
**Post date:** [March 6, 2009, 10:49am UTC](https://forum.sierrawireless.com/t/full-duplex-spi/1554/4 "2009-03-06T10:49:49Z")

</div>

Hello,  
You should use the Access parameter of adl\_busRead and adl\_busWrite and enter your first 1-4 bytes to address parameter, and also set addresssize to correct size, then wavecom will frame this transaction to a correct chipselect signal.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [June 18, 2010, 10:57am UTC](https://forum.sierrawireless.com/t/full-duplex-spi/1554/5 "2010-06-18T10:57:49Z")

</div>

> [@milan\_va](#):
>
> The second problem is a bigger one: there’s NO fullduplex mode. Using the 4-wire interface, it should be possible to write and read at the same time, but there’s no adl\_busFullDuplexTransfer() function! 😮 Some devices use this full-duplex mode, but it just CANNOT be implemented in Wavecom.

Yes, that does appear to be the case! 😒

> [@](#):
>
> Does anyone know if this functionality is going to be added, and when?

Still, apparently, not there: [Can Open-AT do \*Full\* Duplex SPI yet?](https://forum.sierrawireless.com/t/can-open-at-do-full-duplex-spi-yet/4516/1)

> [@mpuman](#):
>
> I see a driver for a M93Cx6 eeprom memory which is a full duplex part in \samples\libraries\src\drv\_m93cx6.c - problem is not any hint as to how it was hooked up in hardware! Since I don’t have the source for the spibuss functions - I don’t know. Any help would be appreciated as I am trying to complete a hardware design.

Did you manage to get around this?

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [June 18, 2010, 11:21am UTC](https://forum.sierrawireless.com/t/full-duplex-spi/1554/6 "2010-06-18T11:21:18Z")

</div>

> [@mpuman](#):
>
> M93Cx6 eeprom memory which is a full duplex part

Actually, it isn’t!

See, for example, Fig 4 (on p15) in the Datasheet: [st.com/stonline/products/lit … s/4997.pdf](http://www.st.com/stonline/products/literature/ds/4997.pdf)

You can see that the SPI Master sends the address & opcode first and then the EEPROM replies with any output data - so this is not full duplex!

> [@awneil](#):
>
> Did you manage to get around this?

There was nothing to get around! 😢
