<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックMCF5213 QSPI chip select resetting after each byte</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158274#M4807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm trying to read a serial eeprom, 25LC640.&lt;/DIV&gt;&lt;DIV&gt;I'm using a continuous read of eight bytes (plus the 3 bytes, cmd, addr hi, addr lo).&lt;/DIV&gt;&lt;DIV&gt;I set the continuous bit(15) of the QCR and the QSPI_CS bits to 0xE for CS0 and the when looking at the scope during a read the CS0 keeps resetting every 8 bits, it's supposed to stay low for 11 bytes. It should go low, then the read cmd is sent, the 16-bit address is sent, then it should stay low for 8 bytes of data. Then CS0 should go high, but it goes hi inbetween every 8-bits, just like the bit 15 in the cmd byte isn't set.&lt;/DIV&gt;&lt;DIV&gt;This code works on a 5216 with the same eeprom.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2007 04:00:25 GMT</pubDate>
    <dc:creator>mstone59</dc:creator>
    <dc:date>2007-10-25T04:00:25Z</dc:date>
    <item>
      <title>MCF5213 QSPI chip select resetting after each byte</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158274#M4807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm trying to read a serial eeprom, 25LC640.&lt;/DIV&gt;&lt;DIV&gt;I'm using a continuous read of eight bytes (plus the 3 bytes, cmd, addr hi, addr lo).&lt;/DIV&gt;&lt;DIV&gt;I set the continuous bit(15) of the QCR and the QSPI_CS bits to 0xE for CS0 and the when looking at the scope during a read the CS0 keeps resetting every 8 bits, it's supposed to stay low for 11 bytes. It should go low, then the read cmd is sent, the 16-bit address is sent, then it should stay low for 8 bytes of data. Then CS0 should go high, but it goes hi inbetween every 8-bits, just like the bit 15 in the cmd byte isn't set.&lt;/DIV&gt;&lt;DIV&gt;This code works on a 5216 with the same eeprom.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 04:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158274#M4807</guid>
      <dc:creator>mstone59</dc:creator>
      <dc:date>2007-10-25T04:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5213 QSPI chip select resetting after each byte</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158275#M4808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Did you set the CSIV bit in the QWR correctly?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 17:20:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158275#M4808</guid>
      <dc:creator>Petter</dc:creator>
      <dc:date>2007-10-25T17:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5213 QSPI chip select resetting after each byte</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158276#M4809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks for the reply. The problem turned out to be me, I was writing my cmd to the wrong register.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 01:26:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158276#M4809</guid>
      <dc:creator>mstone59</dc:creator>
      <dc:date>2007-12-12T01:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5213 QSPI chip select resetting after each byte</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158277#M4810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; I need to perform a read from serial flash. I did a single byte write. After that, I am trying to do a read from the same address location. Opcode+3 address bytes are send first.&lt;/P&gt;&lt;P&gt;Buff[0] = 0x03;&amp;nbsp; /* opcode for read */&lt;/P&gt;&lt;P&gt;Buff[1] = 0x00; /* first address byte*/&lt;/P&gt;&lt;P&gt;Buff[2] = 0x01;&amp;nbsp; /* middle address byte*/&lt;/P&gt;&lt;P&gt;Buff[3] = 0x00;&amp;nbsp; /* last address byte*/&lt;/P&gt;&lt;P&gt;write (fp, Buff, 4);&lt;/P&gt;&lt;P&gt;Then a call to&lt;/P&gt;&lt;P&gt;read (fp, &amp;amp;Buf, 1);&lt;/P&gt;&lt;P&gt;is made.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I check with oscilloscope, I find that after the opcode +3 address bytes have been send the chip select becomes high and then becomes low for the clock cycle for read. The read command is returning 0x00 always. As per actual requirement, the chip select should continuously remain low until the read is over.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; What could be the problem here? The transfer mode is QSPI_TRANSFER_MODE_3. The CSIVbit in QWR is zero. During the write operation, the CS was remaining low throughout.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 15:51:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158277#M4810</guid>
      <dc:creator>lel_chen</dc:creator>
      <dc:date>2009-09-07T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5213 QSPI chip select resetting after each byte</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158278#M4811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; One more thing to add,&amp;nbsp;&lt;/P&gt;&lt;P&gt;the read () call return 1 - the number of bytes read - which is correct.&lt;/P&gt;&lt;P&gt;But the value read is always 0x00.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 15:54:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158278#M4811</guid>
      <dc:creator>lel_chen</dc:creator>
      <dc:date>2009-09-07T15:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: MCF5213 QSPI chip select resetting after each byte</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158279#M4812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; the chip select should continuously remain low until the read is over.&lt;/P&gt;&lt;P&gt;For the CS remain asserted between the transfers, set CONT bit of each QCR entry to 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 20:19:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF5213-QSPI-chip-select-resetting-after-each-byte/m-p/158279#M4812</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-09-08T20:19:17Z</dc:date>
    </item>
  </channel>
</rss>

