<?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: SDRAM data bytes shifting in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789423#M31756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mike&lt;/P&gt;&lt;P&gt;&amp;nbsp; thanks for replay&lt;/P&gt;&lt;P&gt;probability is reduced when &amp;nbsp;EMC CLK is reduced to 45Mhz from 90Mhz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh interval where we configure the EMC register&lt;/P&gt;&lt;P&gt;the information regarding Refresh interval is not provided in the datasheet.&lt;/P&gt;&lt;P&gt;please provided layout consideration for the SDRAM design.&lt;/P&gt;&lt;P&gt;if need I will send the our schematic files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 10:54:15 GMT</pubDate>
    <dc:creator>TEMCEFF</dc:creator>
    <dc:date>2018-10-17T10:54:15Z</dc:date>
    <item>
      <title>SDRAM data bytes shifting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789421#M31754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the scenario is&lt;/P&gt;&lt;P&gt;when we write and read immediate it is working fine ,if we read after some time the the data bytes are shifting 2-4 bytes but occur randomly&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;the data written to SD RAM&lt;/P&gt;&lt;P&gt;0xA0000000 -&amp;gt; 0x00000000&amp;nbsp; 0x44332211&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x88776655&lt;/P&gt;&lt;P&gt;0xA000000C-&amp;gt;0x000000001 0x44332211&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x88776655&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;data reading after some time&lt;/P&gt;&lt;P&gt;0xA0000000 -&amp;gt; 0x00000000&amp;nbsp; 0x44332211&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x8877&lt;EM&gt;&lt;STRONG&gt;8877&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;0xA000000C-&amp;gt;0x000000001 0x44332211&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x88776655&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the SD RAM we used is&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS4C4M16SA-6TIN&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the timming we have initialized&lt;/P&gt;&lt;P&gt;are&lt;/P&gt;&lt;P&gt;#define SDRAM_REFRESHPERIOD_NS (64 * 1000000 / 4096) /* 4096 rows/ 64ms */&lt;BR /&gt;#define SDRAM_TRP_NS (21u)&lt;BR /&gt;#define SDRAM_TRAS_NS (42u)&lt;BR /&gt;#define SDRAM_TSREX_NS (67u)&lt;BR /&gt;#define SDRAM_TAPR_NS (20u)&lt;BR /&gt;#define SDRAM_TWRDELT_NS (6u)&lt;BR /&gt;#define SDRAM_TRC_NS (60u)&lt;BR /&gt;#define SDRAM_RFC_NS (60u)&lt;BR /&gt;#define SDRAM_XSR_NS (67u)&lt;BR /&gt;#define SDRAM_RRD_NS (14u)&lt;BR /&gt;#define SDRAM_MRD_NCLK (2u)&lt;BR /&gt;#define SDRAM_RAS_NCLK (2u)&lt;BR /&gt;#define SDRAM_MODEREG_VALUE (0x33u)&lt;BR /&gt;#define SDRAM_DEV_MEMORYMAP (0x05u) /* 64Mbits (4M*16, 4banks, 12 rows, 8 columns)*/&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we used SDK emc files .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2018 06:38:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789421#M31754</guid>
      <dc:creator>TEMCEFF</dc:creator>
      <dc:date>2018-10-13T06:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM data bytes shifting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789422#M31755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, thank you for the patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check below definition about SDRAM timing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75724i8922206AA5DA30D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the SDRAM timing value with below concerns:&lt;/P&gt;&lt;P&gt;#define SDRAM_TRP_NS (21u)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From &lt;A href="https://www.alliancememory.com/wp-content/uploads/pdf/dram/64M-AS4C4M16SA-CI_v3.0_March%202015.pdf"&gt;AS4C4M16SA datasheet&lt;/A&gt; the value should be 18u;&lt;/P&gt;&lt;P&gt;#define SDRAM_TSREX_NS (67u)&amp;nbsp; is Self-Refresh Exit time, tRC+tIS = 60+1.5 , which should be 62u;&lt;/P&gt;&lt;P&gt;#define SDRAM_TAPR_NS (20u)&amp;nbsp;&amp;nbsp; the value is 18u;&lt;/P&gt;&lt;P&gt;#define SDRAM_RRD_NS (14u)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; should be 12u;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you slow down the SDRAM clock frequency, if the issue happen probability reduced?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&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>Wed, 17 Oct 2018 07:39:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789422#M31755</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-10-17T07:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM data bytes shifting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789423#M31756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mike&lt;/P&gt;&lt;P&gt;&amp;nbsp; thanks for replay&lt;/P&gt;&lt;P&gt;probability is reduced when &amp;nbsp;EMC CLK is reduced to 45Mhz from 90Mhz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh interval where we configure the EMC register&lt;/P&gt;&lt;P&gt;the information regarding Refresh interval is not provided in the datasheet.&lt;/P&gt;&lt;P&gt;please provided layout consideration for the SDRAM design.&lt;/P&gt;&lt;P&gt;if need I will send the our schematic files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 10:54:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789423#M31756</guid>
      <dc:creator>TEMCEFF</dc:creator>
      <dc:date>2018-10-17T10:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM data bytes shifting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789424#M31757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mike&lt;/P&gt;&lt;P&gt;&amp;nbsp; thanks for replay&lt;/P&gt;&lt;P&gt;probability is not reduced when &amp;nbsp;EMC CLK is reduced to 45Mhz from 90Mhz&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refresh interval where we configure the EMC register&lt;/P&gt;&lt;P&gt;the information regarding Refresh interval is not provided in the datasheet.&lt;/P&gt;&lt;P&gt;please provided layout consideration for the SDRAM design.&lt;/P&gt;&lt;P&gt;if need I will send the our schematic files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 10:55:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789424#M31757</guid>
      <dc:creator>TEMCEFF</dc:creator>
      <dc:date>2018-10-17T10:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: SDRAM data bytes shifting</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789425#M31758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I check the Max. refresh interval time below at AS4C4M16SA datasheet:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75940i1BE53814130D6C78/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75882i3581732F88B9C507/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some application notes about SDRAM design with LPC EMC module:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN11508.pdf"&gt;AN11508&lt;/A&gt;: SDRAM interface to LPC18xx/43xx EMC&lt;BR /&gt;− Comprehensive information about connecting EMC to different SDRAMs&lt;BR /&gt;− Some advanced skills like clock compensation options&lt;BR /&gt;− PCB layout guide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN10771.pdf"&gt;AN10771&lt;/A&gt;: Using the LPC24xx EMC peripheral to drive SDRAM&lt;BR /&gt;− Similar as AN11508, but early and simpler document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&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>Thu, 18 Oct 2018 07:30:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SDRAM-data-bytes-shifting/m-p/789425#M31758</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2018-10-18T07:30:43Z</dc:date>
    </item>
  </channel>
</rss>

