<?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: TWR-MEM and TWR-LCD in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266351#M8656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be using the stack with TWR-SER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen the FlexBus example which makes use of the MRAM chip - this looks quite straightforward to implement. However I'm still not fully certain how I can use the FlexBus to drive the LCD display. You mention mapping the LCD to a different FlexBus address - how would this help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 May 2013 10:08:18 GMT</pubDate>
    <dc:creator>weblar</dc:creator>
    <dc:date>2013-05-31T10:08:18Z</dc:date>
    <item>
      <title>TWR-MEM and TWR-LCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266347#M8652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it at all possible to use both the TWR-MEM and the TWR-LCD modules together in the Tower Stack?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I ask is that the MRAM on the TWR-MEM and the LCD signals appear to share the same pins on the ELEV modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wanting to use the MRAM on the TWR-MEM as a frame buffer for the LCD, with a view to supporting displays with higher resolutions (i.e 640x480, 800x600, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/space/2025"&gt;Tower Geeks&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 20:31:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266347#M8652</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2013-05-30T20:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-MEM and TWR-LCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266348#M8653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TWR-LCD also allows access from Tower MCU modules through SPI port, so you may set TWR-LCD controled by SPI and TWR-MEM accessed by FlexBus&lt;span class="lia-inline-image-display-wrapper" image-alt="a1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119435i7505373B42D53276/image-size/large?v=v2&amp;amp;px=999" role="button" title="a1.JPG" alt="a1.JPG" /&gt;&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;Or you may connect other FB_CSn such as FB_CS1 to J10 pin 2 when it is opened, so that TWR-LCD and TWR-MEM are both attached on flexBus with difference CS signals.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="a2.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119436i90EE9D30EDF48527/image-size/large?v=v2&amp;amp;px=999" role="button" title="a2.JPG" alt="a2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 08:22:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266348#M8653</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2013-05-31T08:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-MEM and TWR-LCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266349#M8654</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;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to drive the display using the 16bit EBI mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done using the FlexBus peripheral or will I need to change the MUX back to GPIO and drive the pins differently? Either way, I need the swapping between MRAM and the display to be as fast as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 08:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266349#M8654</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2013-05-31T08:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-MEM and TWR-LCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266350#M8655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it can be done with the option of "PS2 - ON PS0 - OFF", and you needn't change the mux to GPIO, just do some modification on hardware, the TWR-LCD is selected by FB_CS0 in &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;16bit EBI mode&lt;/SPAN&gt;, and TWR-MEM is also selected by FB_CS0 at default, but we can connected another CS to it, such as FB_CS2, (FB_CS1 is used as FB_ALE for TWR-MEM). When flexBus is configured, you may let CS0 control TWR-MEM, CS2 control TWR-LCD by mapping them to difference address. We provide bare metal project on FlexBus, please kindly refer to KINETIS512_SC\build\iar\flexbus for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, /FB_CS2 can use the pin of PTC18 , providing you are referring to TWR-K60N512, the signal might be difficult to fetch on the&amp;nbsp; TWR-K60N512&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="a1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119437i66BF4DF4E1514B23/image-size/large?v=v2&amp;amp;px=999" role="button" title="a1.JPG" alt="a1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but can be easily accessed if you using with TWR-SER,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="a1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119438i79352F561A53BF96/image-size/large?v=v2&amp;amp;px=999" role="button" title="a1.JPG" alt="a1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="a1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119439i8043CDCBFFA361C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="a1.JPG" alt="a1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In summary, You may build the whole tower system with TWR-K60N512,TWR-SER,TWR-MEM and TWR-LCD, and connect pin 2 of J18 on TWR-SER with&amp;nbsp; pin 2 of &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;J10 on TWR-MEM. Please kindly refer to the following for details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="a1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119440iF7F5C9DDA454FEBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="a1.JPG" alt="a1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 09:33:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266350#M8655</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2013-05-31T09:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-MEM and TWR-LCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266351#M8656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be using the stack with TWR-SER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen the FlexBus example which makes use of the MRAM chip - this looks quite straightforward to implement. However I'm still not fully certain how I can use the FlexBus to drive the LCD display. You mention mapping the LCD to a different FlexBus address - how would this help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 10:08:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266351#M8656</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2013-05-31T10:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-MEM and TWR-LCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266352#M8657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Mapping the LCD to a different FlexBus address just helps &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;TWR-MEM and TWR-LCD have the diffenrent system mapping address so that the application code can read /write to them independently by asserting different FB_CSn signals.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You know, FlexBus has the following memory map:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/39654iBE4BE85B549963C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and TWR-MEM and TWR-LCD &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;share the same flexBus interface except the chip select signal.&lt;/SPAN&gt; so you may configure 0x60000000 based address for FB_CS0 and 0x80000000 based address for FB_CS2 , and these two FB_CSx signals control accesses for TWR-MEM and TWR-LCD in the above attached tower system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 14:23:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266352#M8657</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2013-05-31T14:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-MEM and TWR-LCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266353#M8658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information - that makes much more sense now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One final question. I want to use 8080 parallel 16-bit mode to drive a custom display via the FlexBus. The TWR-LCD uses 6800 mode with E and R/W signals whereas 8080 has separate RD and WR signals - how would the FlexBus deal with these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;K &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 14:45:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266353#M8658</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2013-06-11T14:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-MEM and TWR-LCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266354#M8659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is not a good compatibility between Flexbus and 8080 type bus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I know that this is a working configuration with a 8080 bus LCD controller:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LCD_CS connected to ground or GPIO (normally to LOW should be ok to reduce timing)&lt;/P&gt;&lt;P&gt;LCD_RD connected to one FB_CSx&lt;/P&gt;&lt;P&gt;LCD_WR connected to one FB_CSx&lt;/P&gt;&lt;P&gt;LCD_RS connnected to GPIO or FB_ADx&lt;/P&gt;&lt;P&gt;LCD_D0..D15 conencted to FB_AD15 .. FB_AD31&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you define two memory ranges for Wrtting or reading, the MCU will assert the corresponding CSx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 18:41:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266354#M8659</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2013-06-11T18:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-MEM and TWR-LCD</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266355#M8660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I shall stick with the 6800 mode then as that seems less complicated. I guess reading from the display is not really an issue given that I'm working with a frame buffer - I can just read the contents of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 13:08:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-MEM-and-TWR-LCD/m-p/266355#M8660</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2013-06-12T13:08:16Z</dc:date>
    </item>
  </channel>
</rss>

