CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

SPI bus conflict

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Mk
Guest







SPI bus conflict
PostPosted: Mon Oct 17, 2005 10:25 pm     Reply with quote

Hi,
I need three PICs to communicate with each other via SPI bus. I setup one as a SPI Master and the other two as SPI Slaves.

The communication was fine with 1 Master and 1 Slave until I connect the second Slave to the SPI bus . I think the problem is related to the SDO signal of the two slaves. When the SPI Master wants to talk to the second Slave, because the SDI signal of the Master is held either high or low by the first Slave, the second slave cannot toggle the SDO pin (since they are tied together at the Master's SDI pin).

I tried to sum the two SDO signals of the two Slaves via 1K resistor, but the comm is still intermittent. Is there other anyway around this? Thanks!
Best regards,
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Oct 17, 2005 11:37 pm     Reply with quote

Sonds like you are asserting the chip select for both slaves at the same time. Only one slave should be active at a time.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group