<?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 Re: Safe Serial EEPROM speed in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188908#M14435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Mac, Peter,&lt;BR /&gt;&lt;BR /&gt;Yeah, the faster reading won't be needed.&amp;nbsp; It was Pavlovian reflex after having a couple of previous speed optimized flash based projects.&lt;BR /&gt;&lt;BR /&gt;What I really want is to know if 1MHz is slow enough for the common speed.&amp;nbsp; I re-read the datasheet for write speed after reading Peters posts, there is a 16byte page write limit anyway on the Microchip, the overhead managing writes will be possibly more than the byte time, so why worry about bus speed. The Microchip has a 3MHz FCLK at 1.8v, we are 5v though.&lt;BR /&gt;&lt;BR /&gt;Now I wonder are there any 8 byte pages out there!&amp;nbsp; Again, I had flash code where I accidentally used superset functionality with an Atmel flash part, and when we changed vendor my algorithm failed due to block or page size differences.&lt;BR /&gt;&lt;BR /&gt;Thanks for the pointers.&lt;BR /&gt;&lt;BR /&gt;Alex&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by alexod on &lt;SPAN class="date_text"&gt;2008-09-26&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:42 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Sep 2008 03:40:37 GMT</pubDate>
    <dc:creator>alexod</dc:creator>
    <dc:date>2008-09-27T03:40:37Z</dc:date>
    <item>
      <title>Safe Serial EEPROM speed</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188905#M14432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just a quick question, I think I know the answer but here goes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing code for a board which has a removable SPI EEPROM.&amp;nbsp; For now there is only one EEPROM module to plug in, but we may add more varying vendor, density etc.&amp;nbsp; I see SCLK speed is a variable between devices, from the data sheets I have seen, I would say 1MHz is about the slowest EEPROM out there, the Microchip 25LCxxx we are using is 10MHz, and Atmel seem to offer 20MHz for a similar part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The intent is to have the EEPROM formatted, and the header to include a speed field, the EEPROM will be read at slow speed, then speed turned up when we know what it can handle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone seen slower than 1MHz?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone had success in "trial and error" speed determination?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 01:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188905#M14432</guid>
      <dc:creator>alexod</dc:creator>
      <dc:date>2008-09-27T01:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Serial EEPROM speed</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188906#M14433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Alex,&lt;BR /&gt;&lt;BR /&gt;You should clock at the highest, slowest speed you can!&lt;BR /&gt;&lt;BR /&gt;Here is my experience:&amp;nbsp; In general, the faster you clock, the more noise and errors you generate.&amp;nbsp; A typical '08 may be able to clock at 2MHz which sends an entire byte in 1us.&amp;nbsp; This is near the instruction time for most instructions and while you can send a single byte at this rate, the best code will likely only transfer a byte every 10us or so.&amp;nbsp; Given this information, I would clock no faster than .2MHz or the nearest available higher multiple of clock frequency supported for your chip.&lt;BR /&gt;&lt;BR /&gt;When you are writing data to the EEPROM it will likely take milliseconds to write a byte or a block and your overall speed will be limited by this time more than anything else.&lt;BR /&gt;&lt;BR /&gt;The concepts here are good and you should work the math for your uC and determine your best speed.&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;&lt;BR /&gt;Peter House&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 02:08:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188906#M14433</guid>
      <dc:creator>PeterHouse</dc:creator>
      <dc:date>2008-09-27T02:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Serial EEPROM speed</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188907#M14434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello Alex,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For the Microchip part, the maximum clock rate&amp;nbsp;will be&amp;nbsp;dependent on the minimum supply voltage applicable to your project.&amp;nbsp; The 1 MHz limit would seem to apply for operating voltages down to 1.8 volts, with a significant increase of speed for higher operating voltages.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I wonder how much will actually&amp;nbsp;be gained with the use of a variable clock rate?&amp;nbsp; There will be the extra "overhead" for reading the header, and there would be negligible advantage for each write.&amp;nbsp; There might be a small advantage when sequentially reading large blocks of data.&amp;nbsp; Is it worth the extra complication?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You will probably find that the time required for the SPI transfer represents only a small fraction of the total time required to process each byte read.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by bigmac on &lt;SPAN class="date_text"&gt;2008-09-27&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;05:51 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 02:37:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188907#M14434</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-09-27T02:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Serial EEPROM speed</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188908#M14435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Mac, Peter,&lt;BR /&gt;&lt;BR /&gt;Yeah, the faster reading won't be needed.&amp;nbsp; It was Pavlovian reflex after having a couple of previous speed optimized flash based projects.&lt;BR /&gt;&lt;BR /&gt;What I really want is to know if 1MHz is slow enough for the common speed.&amp;nbsp; I re-read the datasheet for write speed after reading Peters posts, there is a 16byte page write limit anyway on the Microchip, the overhead managing writes will be possibly more than the byte time, so why worry about bus speed. The Microchip has a 3MHz FCLK at 1.8v, we are 5v though.&lt;BR /&gt;&lt;BR /&gt;Now I wonder are there any 8 byte pages out there!&amp;nbsp; Again, I had flash code where I accidentally used superset functionality with an Atmel flash part, and when we changed vendor my algorithm failed due to block or page size differences.&lt;BR /&gt;&lt;BR /&gt;Thanks for the pointers.&lt;BR /&gt;&lt;BR /&gt;Alex&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by alexod on &lt;SPAN class="date_text"&gt;2008-09-26&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:42 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 03:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188908#M14435</guid>
      <dc:creator>alexod</dc:creator>
      <dc:date>2008-09-27T03:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Serial EEPROM speed</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188909#M14436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Alex,&lt;BR /&gt;&lt;BR /&gt;It seems, in general, that older devices used 4-byte pages and newer ones use 16-byte. I used to use a Xicor part that had 4-byte pages and when it became obsolete in DIP I changed to a CSI part with the same basic part number. It had 16 byte pages, however, after some investigation I left the code the same and it works fine. I was mostly accessing only up to 4 bytes at a time anyway and larger "at a time" accesses did not divide by 16 anyway. This also allowed me to still use other devices that I may be able to obtain.&lt;BR /&gt;&lt;BR /&gt;Basically changing the code to allowing 16-byte page accesses would save a couple of milliseconds a day but then limited the type of devices that I could fit. So it would seem to be a good idea to check the available page sizes available and code for the smallest one.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 05:21:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188909#M14436</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2008-09-27T05:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Serial EEPROM speed</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188910#M14437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Alex,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You did not say what size of EEPROM you are considering.&amp;nbsp; It would seem that higher capacity devices&amp;nbsp;will be of more recent design, and&amp;nbsp;are likely to&amp;nbsp;have a higher clock speed limit, and a larger page write buffer.&amp;nbsp; A very commonly available size would be 64Kbit (8K byte) - perhaps this should be the minimum size under consideration.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have a collection of datasheets, accumulated over the years, and quick review of the 32K/64Kbit SPI parts suggests that the page write buffer is likely to be 32 or 64 bytes.&amp;nbsp; For the 4.5V-5.5V supply range, a clock rate of 2MHz would seem to encompass all the parts that I reviewed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For cases where the maximum clock rate was 1MHz, this&amp;nbsp;applied to either lower voltage parts and/or smaller capacity parts of earlier origin.&amp;nbsp; The minimum page write buffer size was 8 bytes, applicable to an early, low capacity Atmel part.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Where fast writes of large amounts of data are required, the Ramtron FRAM devices (e.g. FM25640) might be considered.&amp;nbsp; They&amp;nbsp;do not require a write buffer because they can immediately write each byte at their maximum clock rate.&amp;nbsp; Therefore, any number of bytes can be sequentially written.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 12:02:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188910#M14437</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-09-27T12:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Serial EEPROM speed</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188911#M14438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Mac,&lt;BR /&gt;&lt;BR /&gt;We are using a 16K bit EEPROM.&amp;nbsp; There are options to use smaller or larger EEPROM, but the smallest is 8K bits, in the Atmel family that is the AT250080, the A version has an 8 byte page, the B version has 32.&amp;nbsp; Microchip would be the 25AA080, A version is 16byte, B version is 32 byte.&lt;BR /&gt;&lt;BR /&gt;Looks like I need the 8 byte interface, then put a not in the design file so we know not to go smaller/older than that.&lt;BR /&gt;&lt;BR /&gt;I am convinced I am moving so little data that I won't need to worry about speed, other than keeping it to the lowest common denominator, and that seems like 1MHz shoud be safe.&lt;BR /&gt;&lt;BR /&gt;Thanks to all who commented, I now have a clear way forward.&lt;BR /&gt;&lt;BR /&gt;Alex&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 01:39:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Safe-Serial-EEPROM-speed/m-p/188911#M14438</guid>
      <dc:creator>alexod</dc:creator>
      <dc:date>2008-09-30T01:39:36Z</dc:date>
    </item>
  </channel>
</rss>

