<?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: Re-map UART pins in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245638#M6986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;Hello&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have never done that. But you would have to change the GPIO &lt;SPAN class="SpellE"&gt;Mux&lt;/SPAN&gt; to select two different pins for the same UART RX. &lt;SPAN style="mso-spacerun:yes"&gt;&amp;nbsp;&lt;/SPAN&gt;But do that dynamically, in my opinion, to have the UART assigned to GPIO pair like using an external multiplexor. But you can't connect two TX pins (output of your serial devices) to the same RX UART if they are not open collector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 08:53:04 GMT</pubDate>
    <dc:creator>LuisCasado</dc:creator>
    <dc:date>2014-02-20T08:53:04Z</dc:date>
    <item>
      <title>Re-map UART pins</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245635#M6983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my project I use K60 and MQX. I have two peripherals connected to the cpu over uart ( pins PTE8&amp;amp;PTE9 and PTD8&amp;amp;PTD9). I noticed that these pins are connected to the same&amp;nbsp; UART5 in k60. which is mapped to ttyf in MQX.&lt;/P&gt;&lt;P&gt;So, my question is...is there any way to read from these two serial peripherals at one time? is it possible to re-map one of these pairs to another uart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 22:03:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245635#M6983</guid>
      <dc:creator>amleng</dc:creator>
      <dc:date>2014-02-19T22:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re-map UART pins</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245636#M6984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the file :&lt;SPAN style="mso-spacerun:yes"&gt;&amp;nbsp;&lt;/SPAN&gt; C:\Freescale\Freescale_MQX_4_0\mqx\source\bsp\twrk60n512\init_gpio.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_&lt;SPAN class="SpellE"&gt;bsp_serial_io_init&lt;/SPAN&gt; function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can remap the UARTS there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 22:52:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245636#M6984</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2014-02-19T22:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re-map UART pins</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245637#M6985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. First I want to make sure we are on the same page. What I need is using those pins (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; PTE8&amp;amp;PTE9 and PTD8&amp;amp;PTD9)&lt;/SPAN&gt;)&amp;nbsp; to read from two different serial devices &lt;STRONG&gt;AT THE SAME TIME&lt;/STRONG&gt;. Based on k60 datasheet both pairs are connected to UART5. so if I change the _bsp_serial_io_init() then can I remap&amp;nbsp; them to UART4 for example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 00:21:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245637#M6985</guid>
      <dc:creator>amleng</dc:creator>
      <dc:date>2014-02-20T00:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re-map UART pins</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245638#M6986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;Hello&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have never done that. But you would have to change the GPIO &lt;SPAN class="SpellE"&gt;Mux&lt;/SPAN&gt; to select two different pins for the same UART RX. &lt;SPAN style="mso-spacerun:yes"&gt;&amp;nbsp;&lt;/SPAN&gt;But do that dynamically, in my opinion, to have the UART assigned to GPIO pair like using an external multiplexor. But you can't connect two TX pins (output of your serial devices) to the same RX UART if they are not open collector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 08:53:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245638#M6986</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2014-02-20T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re-map UART pins</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245639#M6987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually the serial devices are connected to two different pairs but the same UART Figure below shows how they are connected to K60:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="uart-multiplex.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42783i5911BB84C1F87E65/image-size/large?v=v2&amp;amp;px=999" role="button" title="uart-multiplex.png" alt="uart-multiplex.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The serial devices send out data continuously (asynchronous). I need to read them simultaneously. So you think if I chnage the GPIO Mux dynamically in run time to scan these to channel then I won't loose any data? what if i read them in interrupt mode?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 17:25:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245639#M6987</guid>
      <dc:creator>amleng</dc:creator>
      <dc:date>2014-02-20T17:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re-map UART pins</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245640#M6988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis, just want to make sure that your last message is still valid for the above block diagram and covers my concern regarding data lost during the switching between the two UARTs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 01:10:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245640#M6988</guid>
      <dc:creator>amleng</dc:creator>
      <dc:date>2014-02-26T01:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re-map UART pins</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245641#M6989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN class="SpellE"&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;Hello&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="ES-TRAD" style="mso-ansi-language:ES-TRAD"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can SHARE the UART5 with the two channels but you can't receive data simultaneously from the two channels. You could poll the two devices. But you need two UARTS to receive simultaneous data from the two serial devices. When I told you switch dynamically I meant using the GPIO &lt;SPAN class="SpellE"&gt;mux&lt;/SPAN&gt; as multiplexor, pointing to one device or to the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 08:22:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245641#M6989</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2014-02-26T08:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re-map UART pins</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245642#M6990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Luis! that's what I was thinking, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 23:20:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-map-UART-pins/m-p/245642#M6990</guid>
      <dc:creator>amleng</dc:creator>
      <dc:date>2014-02-26T23:20:50Z</dc:date>
    </item>
  </channel>
</rss>

