<?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>S12 / MagniV MicrocontrollersのトピックSPI EEPROM</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133040#M1796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am attempting to communicate with a Microchip 25AA080A, SPI based EERPOM from an MC9S12E128. The code has been pared down to a simple read of the status register instruction. The serial timing of the CS, MOSI and SCK&amp;nbsp;are textbook perfect and far&amp;nbsp;inside the spec of the chip&amp;nbsp;but it won't respond on the serial out pin.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CPOL and CPHA = 0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;VCC = 3.4V&lt;/DIV&gt;&lt;DIV&gt;Serial Input Voltage High = 3.37V&lt;/DIV&gt;&lt;DIV&gt;/WP, /HOLD are tied to VCC&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has anyone had experience with this device?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Eagle Beak&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2006 05:02:47 GMT</pubDate>
    <dc:creator>EagleBeak</dc:creator>
    <dc:date>2006-10-13T05:02:47Z</dc:date>
    <item>
      <title>SPI EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133040#M1796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am attempting to communicate with a Microchip 25AA080A, SPI based EERPOM from an MC9S12E128. The code has been pared down to a simple read of the status register instruction. The serial timing of the CS, MOSI and SCK&amp;nbsp;are textbook perfect and far&amp;nbsp;inside the spec of the chip&amp;nbsp;but it won't respond on the serial out pin.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CPOL and CPHA = 0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;VCC = 3.4V&lt;/DIV&gt;&lt;DIV&gt;Serial Input Voltage High = 3.37V&lt;/DIV&gt;&lt;DIV&gt;/WP, /HOLD are tied to VCC&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has anyone had experience with this device?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Eagle Beak&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 05:02:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133040#M1796</guid>
      <dc:creator>EagleBeak</dc:creator>
      <dc:date>2006-10-13T05:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133041#M1797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Eagle Beak,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;How are you driving the /CS line? &amp;nbsp;You cannot use the SPI module generated output in this case - your firmware will need to explicitly control the line.&amp;nbsp; This is because the /CS line must remain low over multiple bytes sent to the device.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 10:18:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133041#M1797</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-10-13T10:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133042#M1798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Mac,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The chip select is driven by&amp;nbsp;a 74138 which is solid low, works&amp;nbsp;ok with&amp;nbsp;the SPI&amp;nbsp;DACs.&amp;nbsp;The spec timing&amp;nbsp;minimums are all in nS and I'm operating at 62KHZ, uS range. &amp;nbsp;Right now I'm not writing any data, just a one byte read-status-register instruction. It's a prototype and the first time I've used this serial EEPROM so before I deemed the chip bad,&amp;nbsp;I wanted to make sure there wasn't some little gotcha that I couldn't comprehend in the data sheet, like perhaps CS being toggled once at startup to wake the chip up and reset it. Maybe some trick with the WP or HOLD inputs.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;E. Beak&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 22:47:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133042#M1798</guid>
      <dc:creator>EagleBeak</dc:creator>
      <dc:date>2006-10-13T22:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133043#M1799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Eagle Beak,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;For the EEPROM device, the high-to-low transition of /CS signifies the start of a new command, so it will not work if the line&amp;nbsp;is permanently held low.&amp;nbsp; The steps to read the status register would be as follows -&lt;/FONT&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Set /CS low&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Send RDSR command byte&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Send dummy byte - the returned&amp;nbsp;value is the status register value.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;Set /CS high ready for next command&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 23:07:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133043#M1799</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-10-13T23:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133044#M1800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I've gotten it working now so for the benefit of anyone reading this, there are a couple points I'd like to put out that will save you some time if you are writing the code for the first time, testing the device, i.e. writing then reading.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The device is a 25AA080A from Microchip SPI .&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. You&amp;nbsp; must enable the write latch prior to every write operation because when you bring /CS high, the latch is cleared. I interpreted the data sheet&amp;nbsp;to mean you enable the latch after a reset and then you're good but the last sentence does state that you must do this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2. After a write operation you cannot read the part for 5mS as the high voltage write to the memory array is in progress. This can be optimized by polling the WIP (write in progress) bit in the status register until it becomes a zero. Also, if you are writing one byte at a time, you will have to do likewise. /CS going high begins the write operation.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Eagle Beak&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 00:06:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133044#M1800</guid>
      <dc:creator>EagleBeak</dc:creator>
      <dc:date>2006-10-19T00:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: SPI EEPROM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133045#M1801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;There I was spending an half an hour doing this myself yesterday, and if I'd looked here, it would have take 5 minutes.&lt;BR /&gt;&lt;BR /&gt;Just want to add, most of us have a good 'scope to hand, but I have found that that having an SPI analyzer hooked up gives a very fast reassurance to whether you interpreted the protocol correctly.&amp;nbsp; When setting up a logic analyzer which does not have canned protocols you will be at the mercy of you misinterpreting the spec same as you did when you coded the driver.&amp;nbsp; A dedicated analyzer may seem to be less flexible, but is less error prone too.&lt;BR /&gt;&lt;BR /&gt;I got a cheap and cheerful SPI and I2C analyzer from Total Phase, called The Beagle.&amp;nbsp; For a couple hundred bucks I started seeing answers in minutes not hours.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2008 01:34:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/SPI-EEPROM/m-p/133045#M1801</guid>
      <dc:creator>alexod</dc:creator>
      <dc:date>2008-09-27T01:34:41Z</dc:date>
    </item>
  </channel>
</rss>

