# Using SPI.LIB for more than 1 port

**URL:** <https://forums.digi.com/t/using-spi-lib-for-more-than-1-port/14278>\
**Category:** Rabbit Software\
**Tags:** spi-serial-rcm5600w\
**Created:** [February 1, 2015, 12:11pm UTC](https://forums.digi.com/t/using-spi-lib-for-more-than-1-port/14278 "2015-02-01T12:11:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bflusche](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bflusche](https://forums.digi.com/u/bflusche)\
**Post date:** [February 1, 2015, 12:11pm UTC](https://forums.digi.com/t/using-spi-lib-for-more-than-1-port/14278/1 "2015-02-01T12:11:15Z")

</div>

The SPI.LIB for the Rabbit 4000 seems to be written to support only 1 port at a time. The user can select one port from A,B,C,D, but there doesn’t seem to be an ability to have two or more ports functioning at the same time. Am I missing something?

---

<div class="post-metadata">

**Author:** ![petermcs](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@petermcs](https://forums.digi.com/u/petermcs)\
**Post date:** [February 2, 2015, 3:41am UTC](https://forums.digi.com/t/using-spi-lib-for-more-than-1-port/14278/2 "2015-02-02T03:41:15Z")

</div>

I’m afraid it does seem to be that way.  
You could look at copying the library and renaming the variables, macros and function names to create a separate SPI library for other ports (you could also trim out a lot of code in the copy if you know you are only going to use a particular port).

Regards,  
Peter
