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

i2c or spi

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



Joined: 20 Apr 2007
Posts: 111

View user's profile Send private message Send e-mail

i2c or spi
PostPosted: Wed Dec 12, 2007 3:28 am     Reply with quote

For beginners, which is easier to comunicate between a PIC and a DS1307 or ADC?

Tks

Nina
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Dec 12, 2007 7:12 am     Reply with quote

Check my post at the end of this thread: http://www.ccsinfo.com/forum/viewtopic.php?t=29855
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Wed Dec 12, 2007 9:21 am     Reply with quote

In my opinion, SPI would be easier for a beginner to understand and implement. But, if you want a good learning experience and a flat forehead (from banging it against the monitor) then I2C is a nice thing to understand.

It took me a while to catch on to all of the quirks that I2C has. There are timing issues and everything has to be perfect to get things to work. If you're going to have a PIC work as a Slave that's where the headache, errr, I mean the fun begins.

Ronald
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

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

PostPosted: Wed Dec 12, 2007 4:01 pm     Reply with quote

rnielsen wrote:
In my opinion, SPI would be easier for a beginner to understand and implement. But, if you want a good learning experience and a flat forehead (from banging it against the monitor) then I2C is a nice thing to understand.

It, probably, but I, personally understood I2C from day1 and made it work, and flattened my head trying to make the SPI work. One of the key difference between the I2C and SPI is that the official I2C spec was published by Phillips Semiconductors (now NXP). Official SPI spec was never published; as a result the actual fielded SPI buses have more variation than I2C buses.
_________________
Read the label, before opening a can of worms.
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