<?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>LPC MicrocontrollersのトピックRe: LPC1788 with SRAM Problem??</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-with-SRAM-Problem/m-p/523853#M6489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Fri Jan 23 03:38:24 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly: DO NOT post the SAME question multiple time or in multiple forums!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise people will think you are an idiot and won't answer (more than once at least).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You clearly need to do some research on memory interfacing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Data lines and the address lines are shared between the 4 static ram ranges AND the 4 dynamic ram ranges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As are some of the control lines (such as WE); Others are either for static rams or for dynamic rams.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although addr/data/control go to both sets of memory chips in parallel, they ony take effect if the chip select&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for the chips is active. That is why the various CS pins have different address ranges assigned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also BEWARE blindly connecting the addr lines to dynamic memory. They are not really address lines, but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;row, column, bank selectors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Read the UM10470 EMC chapter very very carefully! Read the SDRAM datasheet carefully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Download schematics of example boards from Keil, EA websites. See also AN10771. [Applies to 1778/1788 too.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I include a memory schematic. This uses a 16-bit static ram. Just drop D8-D16 and the higher order Addr lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are sample layouts in the UM for static ram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:05:36 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:05:36Z</dc:date>
    <item>
      <title>LPC1788 with SRAM Problem??</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-with-SRAM-Problem/m-p/523850#M6486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by AkshayHV on Thu Jan 22 06:03:39 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a LPC 1788 controller with SRAM W241024A 128K * 8 for storing data. The problem that i am facing is whenever i write data into my SRAM and try to read the data the data i get is the last byte of the previously written data.for example if i write"ABCDEFGH" into the SRAM the I try to read the same data from SRAM I am getting "HHHHHHHH".the initialization function is as below and I am using WE pin as GPIO and controlling it manually while reading and writing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; void SRAMInit( void )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;volatile uint32_t i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;volatile unsigned long Dummy;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#if 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//data lines//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_0 = 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_1 = 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_2 = 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_3 = 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_4 = 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_5 = 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_6 = 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_7 = 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//data lines//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_16 = 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_17= 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_18 = 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;P3_19= 0x21;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&g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AN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SC-&amp;gt;EMCDLYCTL |= (8&amp;lt;&amp;lt;16);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_EMC-&amp;gt;Config = 0x80;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_EMC-&amp;gt;StaticExtendedWait = 0x00;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_EMC-&amp;gt;StaticConfig0 = 0x80;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_EMC-&amp;gt;StaticWaitWen0 = 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_EMC-&amp;gt;StaticWaitOen0 = 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_EMC-&amp;gt;StaticWaitRd0 = 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_EMC-&amp;gt;StaticWaitWr0 = 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_EMC-&amp;gt;Control = 0x01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Akshay H V&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:05:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-with-SRAM-Problem/m-p/523850#M6486</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 with SRAM Problem??</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-with-SRAM-Problem/m-p/523851#M6487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Thu Jan 22 06:34:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WHY!&lt;/STRONG&gt;&lt;SPAN&gt; are you trying to control &lt;/SPAN&gt;&lt;I&gt;one&lt;/I&gt;&lt;SPAN&gt; of the EMC interface lines instead of letting the EMC do its job?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know (and am not going to waste any time) on this. Possibly it is down to timing, perhaps not. Who knows?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd strongly suggest getting rid of GPIO WE line. If that means a board mod, then so be it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-with-SRAM-Problem/m-p/523851#M6487</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 with SRAM Problem??</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-with-SRAM-Problem/m-p/523852#M6488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by AkshayHV on Thu Jan 22 22:33:40 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello mike ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reply.The reason why i am using this pin as a GPIO is because i am using both SRAM as well as SDRAM.both since WE will be shared by both SRAM as well as SDRAM for TFT display interfacing i thaught of using it with a GPIO. My SDRAM uses 16 bit data lines and my SRAM uses 8 bit data lines.I have doubt that can we able to use D0 to D15 for SDRAM and D16 to D23 for SRAM.if so are there any necessary measure to take care of.thanks in advance for any replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Akshay H V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:05:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-with-SRAM-Problem/m-p/523852#M6488</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 with SRAM Problem??</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-with-SRAM-Problem/m-p/523853#M6489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Fri Jan 23 03:38:24 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly: DO NOT post the SAME question multiple time or in multiple forums!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise people will think you are an idiot and won't answer (more than once at least).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You clearly need to do some research on memory interfacing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Data lines and the address lines are shared between the 4 static ram ranges AND the 4 dynamic ram ranges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As are some of the control lines (such as WE); Others are either for static rams or for dynamic rams.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although addr/data/control go to both sets of memory chips in parallel, they ony take effect if the chip select&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for the chips is active. That is why the various CS pins have different address ranges assigned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also BEWARE blindly connecting the addr lines to dynamic memory. They are not really address lines, but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;row, column, bank selectors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Read the UM10470 EMC chapter very very carefully! Read the SDRAM datasheet carefully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Download schematics of example boards from Keil, EA websites. See also AN10771. [Applies to 1778/1788 too.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I include a memory schematic. This uses a 16-bit static ram. Just drop D8-D16 and the higher order Addr lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are sample layouts in the UM for static ram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:05:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-with-SRAM-Problem/m-p/523853#M6489</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:05:36Z</dc:date>
    </item>
  </channel>
</rss>

