Jump to content
  • 0

Can't get ChipKIT Cmod SPI working as slave


joelcrouch

Question

I'm having trouble getting the SPI1 port working as a slave on the Cmod board. It works fine as a master talking to an Arduino Mini Pro configured as a slave, but not vise versa.

I verified that the Arduino Mini configured as a master is working, but I never receive anything in the SPI1BUF on the Cmod.

I have tried setting SPI1CON to 0x8000 and 0x8080, but neither worked. Does anyone have sample code that works as a spi slave?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Hi @joelcrouch,

I'll need to test to see if I can get this working; as you likely know the default SPI library from Arduino and the Digilent SPI library don't provide inherent support for slave mode and when I tried something like this a number of years ago I remember fighting with it quite a bit.

Thanks,
JColvin

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...