# SPI problem

**URL:** <https://forums.digi.com/t/spi-problem/8960>\
**Category:** Rabbit\
**Created:** [March 5, 2009, 2:21pm UTC](https://forums.digi.com/t/spi-problem/8960 "2009-03-05T14:21:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carmenc](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@carmenc](https://forums.digi.com/u/carmenc)\
**Post date:** [March 5, 2009, 2:21pm UTC](https://forums.digi.com/t/spi-problem/8960/1 "2009-03-05T14:21:15Z")

</div>

Hello Everybody,

I’m working with a Rabbit minicore RCM5700, and I’m trying to write by SPI  
serial bus using the SPI.LIB library. I’m using Dynamic C version 10.44 and  
it’s libraries.

I want to use PORT B as SPI port, so I have defined #define SPI\_SER\_B,  
before include SPI.LIB, in other words, my real code is:

#define SPI\_SER\_B  
#define SPI\_CLK\_DIVISOR 5  
#define SPI\_MASTER //we are master  
#use “spi.lib”

When I write to SPI by SPIWrite function I can’t see any data in PC4 line,  
but SCK line (PB0) is working properly.

I have read in SPI.LIB header:  
“This library is intended for use only with the Rabbit 4000 processor.”  
and I have a Rabbit 5000 processor so I think it could be a little  
different, is there a new SPI library for these processors? where can I get  
it?

If you had the same error as me in the past, can you help me?

Thanks in advance

Carmen
