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 support@ccsinfo.com

can SPI and I2C devices co-exist on the same pins?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bart.dinger



Joined: 02 Nov 2005
Posts: 9

View user's profile Send private message

can SPI and I2C devices co-exist on the same pins?
PostPosted: Mon Apr 16, 2007 7:34 pm     Reply with quote

Does anybody know if you can have SPI and I2C devices connected at the same time? For whatever design reason the mchip devices always share the SPI and I2C pins, but I can't find anywhere that says you have to exclusively use one or the other.

I figure the SPI devices will be fine with I2C data on their pins since they won't have their CS lines enabled, but what happens to an I2C device when there is SPI data flapping around on its bus? I wouldn't think anything would happen since a proper start/stop condition will never be met. Anybody ever tried this?

This all comes about because of a design/firmware upgrade that needs to backwards compatible with an older version Crying or Very sad
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Apr 17, 2007 1:23 am     Reply with quote

Read these threads for comments about doing it:
http://www.ccsinfo.com/forum/viewtopic.php?t=970
http://www.ccsinfo.com/forum/viewtopic.php?t=18731
http://www.ccsinfo.com/forum/viewtopic.php?t=18793
http://www.ccsinfo.com/forum/viewtopic.php?t=20424

Here is a thread on the Microchip forum:
http://forum.microchip.com/tm.aspx?m=205782


Related threads:
http://www.ccsinfo.com/forum/viewtopic.php?t=17075
http://www.ccsinfo.com/forum/viewtopic.php?t=25138
Guest








PostPosted: Tue Apr 17, 2007 12:18 pm     Reply with quote

THanks. I should have searched Embarassed in here obviously.
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