<?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>8-bit MicrocontrollersのトピックRe: SPI vs 1-wire EEPROM</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-vs-1-wire-EEPROM/m-p/197018#M15817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both Mac and Rocco for your very informative postings. That was exactly what I needed to know!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2012 01:37:23 GMT</pubDate>
    <dc:creator>MMG135</dc:creator>
    <dc:date>2012-01-18T01:37:23Z</dc:date>
    <item>
      <title>SPI vs 1-wire EEPROM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-vs-1-wire-EEPROM/m-p/197015#M15814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for some suggestions regarding which is the easier EEPROM to use with an 8-bit Freescale MCU (MC9S08GT60). I have so far looked at two types of EEPROM. One of them uses an SPI interface and the other uses a 1-wire interface. Is it true that 1-wire interfaces for EEPROM are generally easier to implement than SPI interfaces? Does anyone have experience with writing code for 1-wire EEPROM or SPI EEPROM or could direct me to a link with some sample code for an 8-bit MCU (MC9S08GB60 or GT60 or other similar MCU's)? All comments/suggestions are welcome. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are various types of EEPROM I have looked at so far. Please feel free to suggest any other EEPROM chips that you have found easy to use and that worked really well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.maxim-ic.com%2Fdatasheet%2Findex.mvp%2Fid%2F2915%2Ft%2Fdo" rel="nofollow" target="_blank"&gt;http://www.maxim-ic.com/datasheet/index.mvp/id/2915/t/do&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.maxim-ic.com%2Fdatasheet%2Findex.mvp%2Fid%2F5453%2Ft%2Fal" rel="nofollow" target="_blank"&gt;http://www.maxim-ic.com/datasheet/index.mvp/id/5453/t/al&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.onsemi.com%2FPowerSolutions%2Fproduct.do%3Fid%3DCAT25320" rel="nofollow" target="_blank"&gt;http://www.onsemi.com/PowerSolutions/product.do?id=CAT25320&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 05:24:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-vs-1-wire-EEPROM/m-p/197015#M15814</guid>
      <dc:creator>MMG135</dc:creator>
      <dc:date>2012-01-12T05:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: SPI vs 1-wire EEPROM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-vs-1-wire-EEPROM/m-p/197016#M15815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MMG135,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used 1-wire, SPI and IIC, and I would avoid 1-wire for a serial EEProm. For temp-sensors and other things that go off-board, 1-wire is great. Look to &lt;A href="http://www.midondesign.com/" rel="nofollow" target="_self"&gt;Midon Designs&lt;/A&gt; for 1-wire devices and info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The big advantage of 1-wire is that it takes . . . 1-wire. Outside of that, there is not much advantage. The Freescale MCUs have no direct hardware support for 1-wire, so you would need to bit-bang it. It will be slow and processor intensive. Whether or not it is easier to code depends on how much code you can scrape from other sources. I found SPI to be the easiest to code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a serial EEProm, I would look at either SPI or IIC (also called I2C), as the GT60 has hardware support for both. But I found the IIC interface on the GT60 to be poorly documented and "temperamental".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What size EEProm are you considering? I have used IIC EEproms as small as 1k-bit, and SPI EEProms as large as 32 megabit. As the size increases, the selection starts to favor SPI, as SPI can transfer faster than IIC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 06:52:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-vs-1-wire-EEPROM/m-p/197016#M15815</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2012-01-12T06:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: SPI vs 1-wire EEPROM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-vs-1-wire-EEPROM/m-p/197017#M15816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I totally agree with Rocco's comparison of the three&amp;nbsp;interface methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore, the one-wire devices would appear to be available only&amp;nbsp;from a very limited number of sources, whereas the SPI and IIC devices are available from many sources,&amp;nbsp;mostly with "common" part numbers and interface requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The one-wire devices have critical timing intervals, and are very slow because of these fixed duration intervals.&amp;nbsp; This means that interrupts will likely need to be globally disabled for the duration of each critical interval.&amp;nbsp; Conversely, the SPI and IIC methods do not have critical timing because both data and&amp;nbsp;clock signals are present within the interface, and hardware modules are mostly used.&amp;nbsp; Typical clock speeds are 100kHz for IIC, and 1 - 10 MHz for SPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached code for a SPI EEPROM has previously appeared within this forum.&amp;nbsp; It should be suitable for EEPROM devices that utilize 16-bits for their address, (rather than 8-bits for old devices with very small capacity).&amp;nbsp; The code could be easily adapted for very large devices with more than 16 bit address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 12:28:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-vs-1-wire-EEPROM/m-p/197017#M15816</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2012-01-12T12:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: SPI vs 1-wire EEPROM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-vs-1-wire-EEPROM/m-p/197018#M15817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both Mac and Rocco for your very informative postings. That was exactly what I needed to know!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 01:37:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/SPI-vs-1-wire-EEPROM/m-p/197018#M15817</guid>
      <dc:creator>MMG135</dc:creator>
      <dc:date>2012-01-18T01:37:23Z</dc:date>
    </item>
  </channel>
</rss>

