View previous topic :: View next topic |
Author |
Message |
nina
Joined: 20 Apr 2007 Posts: 111
|
i2c or spi |
Posted: Wed Dec 12, 2007 3:28 am |
|
|
For beginners, which is easier to comunicate between a PIC and a DS1307 or ADC?
Tks
Nina |
|
![](templates/subSilver/images/spacer.gif) |
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
![](templates/subSilver/images/spacer.gif) |
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Wed Dec 12, 2007 9:21 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
Posted: Wed Dec 12, 2007 4:01 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
|