Quote Originally Posted by Darrel Taylor View Post
Works fine here.
Ran your program (with the suggested changes) on an 877, and It sends data from the SSP and blinks the LED.

It's A VERY FAST blink. Not visible to the naked eye (or clothed ones).

Try putting a PAUSE 200 in the Main Loop.
<br>
Dear DT

I would like, first, to thank you very very much for your support and then I wish to give you a feedback on how far I went with my SPI interface.

After some investigation I could find the reason of the problem I have making SPI running on my board. It is a hardware issue. It's the way I am using the Melabs PICPROTO-USB board. That doesn't mean that Melabs PICPROTO-USB board is faulty.

On that board you have the possibility to use the USB board in high speed. Therefore you need a capacitor C7 (0.470 µF) as shown in the documentation of that Melabs board (http://www.melabs.com/downloads/ppusbsch_06.pdf). This seems to prevent the SPI interface for running properly. I have taken the C7 away and everything went fine with SPI interface.

Maybe we will have a new Melabs board with a jumper that could leave this capacitor out when using the SPI interface

For the time being I have to make a choice for by Melabs board usage: either using USB high speed (and put the C7 capacitor) or using SPI (and take away the capacitor).

Once again many thanks for your help.

Best wishes / Momboz