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:
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?
[QUOTE=LucaV;3108]Hi Carmen, I’m trying to do the same thing with a RCM5700 but I have the same problem.
Did you get any solution about that?
Thanks,
Luca.[/quote]
Hi Luca,
I resolved the problem using a new library instead SPI.LIB supply by Rabbit Enviroment (DC_RABBIT_10.44). This new library is SPITecnalia, and I attach you below.
This library has a few changes with the old one. One of them is to set up SPI clock mode. Another change is in order to set up PC4 as a serial port output by setting bit 4 in the PCFR register. The SPI driver was written before Rabbit 5000 was in existence and port C was fixed.
Hi Carmen,
thank you very much, this library works fine with what I need to do, and by now it’s just perfect.
On the other hand, looking at it (correct me if I’m wrong), it seems that it sets the clock mode and the TX pin fixed for every choice of serial port and mode I could have done in the defines. So it seems to use always port B and Clock mode 0, is it right?
If you know, is there any official Rabbit library that works with RCM5700? It seems very disappointing to me that they didn’t release one yet…
You are rigth, this library is hardcoded for using PortB and clock mode 0, fixed. It�s a solution I have done for my product with help from forum members and technical support from Rabbit. As yoy say Rabbit hasn’t build any official library for the RCM5700 yet.
HI Carman i am unable to doenload SPITecnalia.Zip can please tell where exactly i can get that code , as i am facing similar problem with RCM 5700 SPI please suggets me i am in need of that code
I resolved the problem using a new library instead SPI.LIB supply by Rabbit Enviroment (DC_RABBIT_10.44). This new library is SPITecnalia, and I attach you below.