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
Good find Momboz!
I see you mentioned the PICPROTO-USB up in post #3.
But I never even looked at the schematic.
If you're using a PIC with USB, the SPI interface will be on different pins, so it shouldn't be a problem.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).
But you're right. meLabs should have put a jumper in there for the capacitor.
Cheers!
DT
Bookmarks