<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SPI and I2C usage in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/SPI-and-I2C-usage/m-p/151466#M2124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like to be answered for why and when do we use SPI and I2C. I have&amp;nbsp; RTC ICs that&amp;nbsp;has &amp;nbsp;SPI and&amp;nbsp; I2C Interfaces to my controller.Which one should be choosed between is what Iam confused with.&lt;/P&gt;&lt;P&gt;I would appreciate for any reply as soon as possible.&lt;/P&gt;&lt;P&gt;Thank you in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Sep 2010 18:53:10 GMT</pubDate>
    <dc:creator>vishaka_maithil</dc:creator>
    <dc:date>2010-09-27T18:53:10Z</dc:date>
    <item>
      <title>SPI and I2C usage</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/SPI-and-I2C-usage/m-p/151466#M2124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like to be answered for why and when do we use SPI and I2C. I have&amp;nbsp; RTC ICs that&amp;nbsp;has &amp;nbsp;SPI and&amp;nbsp; I2C Interfaces to my controller.Which one should be choosed between is what Iam confused with.&lt;/P&gt;&lt;P&gt;I would appreciate for any reply as soon as possible.&lt;/P&gt;&lt;P&gt;Thank you in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 18:53:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/SPI-and-I2C-usage/m-p/151466#M2124</guid>
      <dc:creator>vishaka_maithil</dc:creator>
      <dc:date>2010-09-27T18:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: SPI and I2C usage</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/SPI-and-I2C-usage/m-p/151467#M2125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;manasa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although in many cases either will do, there are significant differences.&amp;nbsp; Usually the requirements of the system will drive the design to one or the other.&amp;nbsp; If this is not the case, then most likely you can use either with similar results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;some SPI advantages:&lt;/P&gt;&lt;P&gt;full duplex&lt;/P&gt;&lt;P&gt;up to 70 Mhz (but not all devices)&lt;/P&gt;&lt;P&gt;not limited to 8-bit words&lt;/P&gt;&lt;P&gt;no slave addressing&lt;/P&gt;&lt;P&gt;no arbitration required due to single master&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;some I2C advantages:&lt;/P&gt;&lt;P&gt;2-wire vs 4-wire (some version of SPI only require 3)&lt;/P&gt;&lt;P&gt;all slaves use same two wires&lt;/P&gt;&lt;P&gt;longer distances&lt;/P&gt;&lt;P&gt;communication is "acknowledged" by receiving end&lt;/P&gt;&lt;P&gt;multiple master is easy to implement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From experience, I can tell you that not all SPI is the same.&amp;nbsp; I have run into many instances where one is not compatible with the other.&amp;nbsp; For example, some SPI memory devices use a different clock polarity than others and sometimes it does not agree with the one offered in the micro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 23:36:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/SPI-and-I2C-usage/m-p/151467#M2125</guid>
      <dc:creator>Witztronics</dc:creator>
      <dc:date>2010-09-27T23:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: SPI and I2C usage</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/SPI-and-I2C-usage/m-p/151468#M2126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wiztronics,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, you are correct that it depends on the system requirements to choose a right communication bus. Thank you for the reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 17:14:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/SPI-and-I2C-usage/m-p/151468#M2126</guid>
      <dc:creator>vishaka_maithil</dc:creator>
      <dc:date>2010-09-28T17:14:28Z</dc:date>
    </item>
  </channel>
</rss>

