<?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 C code for Microchip Serial EEPROM's (93LC56B) in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/C-code-for-Microchip-Serial-EEPROM-s-93LC56B/m-p/156784#M9067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if anyone would be so kind to post their code for running 93LC56B (or similar) microchip serial EEPROM's. I havnt used them before, and thought someone might nice enough to share their code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, like the flash routines I previously posted, I will write up some basic code and hopefully save some other engineers some time...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 May 2008 18:50:30 GMT</pubDate>
    <dc:creator>CarlFST60L_3rd</dc:creator>
    <dc:date>2008-05-18T18:50:30Z</dc:date>
    <item>
      <title>C code for Microchip Serial EEPROM's (93LC56B)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/C-code-for-Microchip-Serial-EEPROM-s-93LC56B/m-p/156784#M9067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if anyone would be so kind to post their code for running 93LC56B (or similar) microchip serial EEPROM's. I havnt used them before, and thought someone might nice enough to share their code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, like the flash routines I previously posted, I will write up some basic code and hopefully save some other engineers some time...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 May 2008 18:50:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/C-code-for-Microchip-Serial-EEPROM-s-93LC56B/m-p/156784#M9067</guid>
      <dc:creator>CarlFST60L_3rd</dc:creator>
      <dc:date>2008-05-18T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: C code for Microchip Serial EEPROM's (93LC56B)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/C-code-for-Microchip-Serial-EEPROM-s-93LC56B/m-p/156785#M9068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Carl,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The 93C56 is a rather old serial EEPROM device that provides a "microwire" interface protocol.&amp;nbsp; This has similarities with the SPI interface, but is not the same.&amp;nbsp; It should be possible to use the SPI module in a non-standard fashion - it involves additional padding bits for the command, and from memory, the CPHA state needs to be flipped between data send and data receive.&amp;nbsp; It is also assumed that the required data organisation is 8 bits, and not 16 bits.&amp;nbsp; The other alternative for this device is the use of "bit bang" routines.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have previously used the bit bang approach, but unfortunately assembly code was used, so may not be of much use to you.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Are you stuck with using the 93C56 device?&amp;nbsp; Another alternative might be to use a SPI compatible EEPROM device, and this should much simplify the code&amp;nbsp;using the SPI module.&amp;nbsp; The 25C640 is a possible device that comes to mind.&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>Mon, 19 May 2008 10:25:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/C-code-for-Microchip-Serial-EEPROM-s-93LC56B/m-p/156785#M9068</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-05-19T10:25:56Z</dc:date>
    </item>
  </channel>
</rss>

