<?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>CodeWarrior Development ToolsのトピックRe: spi reading a byte problem</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/spi-reading-a-byte-problem/m-p/465851#M3570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi harshad gami,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please give me a picture, where the breakpoint&amp;nbsp; you put will read successfully?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; It seems your my_delay is not long enough to response your reading, you can add more my_delay() to wait the external EEPROM ready.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 02:39:38 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2016-05-13T02:39:38Z</dc:date>
    <item>
      <title>spi reading a byte problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/spi-reading-a-byte-problem/m-p/465850#M3569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with TWR-K20D72M board. I interface CAT-25256 EEPROM with this board.&lt;/P&gt;&lt;P&gt;my write data in eeprom is work proper.but reading data was not working.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i was read data at that time if breakpoint will put then reading was sucessful. if not put breakpoint than data not read proper it gives output 0x00 .&lt;/P&gt;&lt;P&gt;please check my code in attachment.&lt;/P&gt;&lt;P&gt;It would be more appreciable if any kind of suggestions will be get.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harshad&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337791"&gt;spi.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 07:42:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/spi-reading-a-byte-problem/m-p/465850#M3569</guid>
      <dc:creator>harshadgami</dc:creator>
      <dc:date>2016-05-12T07:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: spi reading a byte problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/spi-reading-a-byte-problem/m-p/465851#M3570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi harshad gami,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please give me a picture, where the breakpoint&amp;nbsp; you put will read successfully?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; It seems your my_delay is not long enough to response your reading, you can add more my_delay() to wait the external EEPROM ready.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 02:39:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/spi-reading-a-byte-problem/m-p/465851#M3570</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-05-13T02:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: spi reading a byte problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/spi-reading-a-byte-problem/m-p/465852#M3571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57725i4E70A297F48BD2BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57845i6175A01386CC5B2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57859i5BEBE8C7F1BBDB9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57878iAA48C04B389C3F41/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57888i288C627B0DCCFD8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="5.png" alt="5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 05:47:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/spi-reading-a-byte-problem/m-p/465852#M3571</guid>
      <dc:creator>harshadgami</dc:creator>
      <dc:date>2016-05-13T05:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: spi reading a byte problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/spi-reading-a-byte-problem/m-p/465853#M3572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi harshad gami,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1.&amp;nbsp; Did you check the communicate SPI wave?&amp;nbsp; Whether the slave return the correct data? You can use the oscilloscope check the SPI wave.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. check the SPI clock, whether it is in the range of your EEPROM.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3. Use bit SPI_SR[RFDF] to wait the received data, eg&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8 temp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(!(SPI0_SR &amp;amp; SPI_SR_RFDF_MASK)){}&lt;/P&gt;&lt;P&gt;&amp;nbsp; temp= SPI0_POPR;&lt;/P&gt;&lt;P&gt;SPI0_SR |= SPI_SR_RFDF_MASK;&lt;/P&gt;&lt;P&gt;return temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 02:38:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/spi-reading-a-byte-problem/m-p/465853#M3572</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-05-16T02:38:20Z</dc:date>
    </item>
  </channel>
</rss>

