<?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>Kinetis MicrocontrollersのトピックUART1 dual identical pins in K64</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610363#M36044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In K64 I've noticed there are multiple pins (all are ALT3 as well) for the UART1 interface: pins 1,2 &amp;amp; 73,76 for RX,TX.&lt;/P&gt;&lt;P&gt;Is there any difference between them? or how should I use them?&lt;/P&gt;&lt;P&gt;I've tried using UART1 on the FRDM K64 (K64 pins 73, 76 for RX, TX) and it doesn't work, trying to understand why...&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌/ &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mjbcswitzerland"&gt;mjbcswitzerland&lt;/A&gt;‌ - do you know?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2017 15:43:11 GMT</pubDate>
    <dc:creator>roymessinger</dc:creator>
    <dc:date>2017-03-01T15:43:11Z</dc:date>
    <item>
      <title>UART1 dual identical pins in K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610363#M36044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In K64 I've noticed there are multiple pins (all are ALT3 as well) for the UART1 interface: pins 1,2 &amp;amp; 73,76 for RX,TX.&lt;/P&gt;&lt;P&gt;Is there any difference between them? or how should I use them?&lt;/P&gt;&lt;P&gt;I've tried using UART1 on the FRDM K64 (K64 pins 73, 76 for RX, TX) and it doesn't work, trying to understand why...&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌/ &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mjbcswitzerland"&gt;mjbcswitzerland&lt;/A&gt;‌ - do you know?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 15:43:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610363#M36044</guid>
      <dc:creator>roymessinger</dc:creator>
      <dc:date>2017-03-01T15:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: UART1 dual identical pins in K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610364#M36045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input/outputs of the UARTs can be multiplexed to a number of different pins. Any set can be chosen but only one should be used at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use these to route UART1 to the pins that you want:&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;_CONFIG_PERIPHERAL(C, 4, (PC_4_UART1_TX | UART_PULL_UPS));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // UART1_TX on PC4 (alt. function 3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;_CONFIG_PERIPHERAL(C, 3, (PC_3_UART1_RX | UART_PULL_UPS));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // UART1_RX on PC3 (alt. function 3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simulation below shows the pins as required and I attached a binary that can be loaded to the FRDM-K64F that shows this combination in action (at 115'200Baud - it will send text at reset and respond to input with a command line menu). In the I/O menu it is possible to look at the internal register values in case you need to see the values set to the UART and GPIO configuration registers.&lt;/P&gt;&lt;P&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/14707i65A09EE3AB4DABBC/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;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&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;BR /&gt;&lt;SPAN&gt;Professional support for Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Findex.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/index.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Remote desktop one-on-one coaching: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fservices.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Getting started to expert videos: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.youtube.com%2Fresults%3Fsearch_query%3Dutasker%2Bshorts" rel="nofollow" target="_blank"&gt;https://www.youtube.com/results?search_query=utasker+shorts&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 16:57:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610364#M36045</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-03-01T16:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: UART1 dual identical pins in K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610365#M36046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Mark. Thank you.&lt;/P&gt;&lt;P&gt;Unfortunately, your bin&amp;nbsp;does not work wither, which lead me to believe&amp;nbsp;that something with my setup is wrong.&lt;/P&gt;&lt;P&gt;I've connected the FRDM as follows:&lt;/P&gt;&lt;P&gt;The small board below is an RS485 to UART. The UART RX is connected to J2/4 (TX), the UART TX is connected to J1/16 (RX).&lt;/P&gt;&lt;P&gt;GND &amp;amp; Vcc is connected to J199 GND &amp;amp; Vcc (I've left it there because I've used to work through UART4 - works great with that setup, now I want to move to UART1).&lt;/P&gt;&lt;P&gt;Any idea you can think off?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you referred to '&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;respond to input with a command line menu)'&lt;SPAN style="color: #3d3d3d;"&gt;&amp;nbsp;will also be seen in the Real term, when clicking something or only with your GUI? How do I download your GUI?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="123.jpeg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14756i47856708F446B552/image-size/large?v=v2&amp;amp;px=999" role="button" title="123.jpeg" alt="123.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok,here's an update:&lt;/P&gt;&lt;P&gt;Using your bin, when I reset the board, I get on my Real term:&lt;/P&gt;&lt;P&gt;'rs 485 example'&lt;/P&gt;&lt;P&gt;But they are shown when I'm connected to the UART of the OpenSDA (UART0). I've double checked it. In UART1 (where my RS485 to UART is connected) I don't get anything.&lt;/P&gt;&lt;P&gt;I even disconnected my USB dongle (which converts USB to RS485, and then it goes to the small board) and still, when reset is clicked I get this string in Real term.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway for your help.&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 17:12:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610365#M36046</guid>
      <dc:creator>roymessinger</dc:creator>
      <dc:date>2017-03-01T17:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: UART1 dual identical pins in K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610366#M36047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"rs 485 example" doesn't exist in the binary so it must be coming from somewhere else (are you sure your RS485 cable works and could it be that you haven't loaded the binary correctly, or loaded the wrong one?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the logic analyser output of PTC4 on J2/4 (Tx UART1 of K64) when I load the binary to the FRDM-K64F:&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/15367i70098187B727B177/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;As you can see, it sends "Hello World - Kinetis....." at 115200 Baud.&lt;/P&gt;&lt;P&gt;Note that the green LED flashes at 2.5Hz when it is operating normally.&lt;/P&gt;&lt;P&gt;The output is just UART so can be talked to with Real term, TeraTerm, or whatever terminal emulator you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that&lt;/P&gt;&lt;P&gt;- you may not have correctly loaded the binary file (I do it with drag-and-drop using the OpenSDA loader).&lt;BR /&gt;- or your RS485 convert is not working, or is connected incorrectly&lt;BR /&gt;- or you have some other HW problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that to generate a working reference for you I take the uTasker project, I set the target to &lt;STRONG&gt;FRDM_K64F&lt;/STRONG&gt;, then I change&lt;BR /&gt;&lt;STRONG&gt;#define DEMO_UART&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/STRONG&gt; to &lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and build it with whichever IDE I want (choice of 10 different ones). This took me about 50s of work to generate a reference for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The project is open source at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fforum%2Findex.php%3Ftopic%3D1721.msg7086%23msg7086" rel="nofollow" target="_blank"&gt;http://www.utasker.com/forum/index.php?topic=1721.msg7086#msg7086&lt;/A&gt;&lt;BR /&gt;and would allow you to save huge amounts of your time since it contains all that you need, that works without any effort due to the fact that it has been used and tested in hundreds of K64 developments.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 22:57:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610366#M36047</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-03-02T22:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: UART1 dual identical pins in K64</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610367#M36048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roymessinger,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have modified your interrupt code, now it can work with PTC3,PTC4, UART1. I have test it on my FRDM-K64 board.&lt;/P&gt;&lt;P&gt;Please unzip my attached .c file to your project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&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, 03 Mar 2017 03:34:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/UART1-dual-identical-pins-in-K64/m-p/610367#M36048</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-03-03T03:34:06Z</dc:date>
    </item>
  </channel>
</rss>

