<?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のトピックRe: K22 UART2/PIN MUX</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814570#M49397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher Burg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, you are right, PE component can't select two component with the same pin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But if in your Bluetooth you just want to control pin PTC3, you totally don't need to use the component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can configure the PTC3 pin as GPIO, and set it to the output, then you can use your&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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/67577i7AC68BD60E9B3646/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;About the PTC3 initialization with register.&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_PORTC_MASK;// enable port C clock gate&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTC_PCR5 &amp;amp;= 0xFFFFF0FF;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTC_PCR5 |= PORT_PCR_MUX(1) | PORT_PE_MASK|PORT_PS_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&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>Mon, 27 Aug 2018 02:33:25 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2018-08-27T02:33:25Z</dc:date>
    <item>
      <title>K22 UART2/PIN MUX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814565#M49392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using the MK22FN256VLH12 with KDS v3.2 and Processor Expert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the UART2 port (Pins 59 (PTD2) and 60 (PTD3)), however I keep running into this error. I have not had any issues before like this.&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/67165i96C6830BD0F682B2/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;I checked the referenced component 'Pins' and it leads me to my general IO component for PortD. Below is what 'Pins' displays.&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/67187i7757EB9D457C7F4E/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;/P&gt;&lt;P&gt;But nothing really shows up here. Port D pin 2 (pin 59) shown. I think it must be something with the wake-up pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67251iE2C1ECE0647AD9D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below is the Pin settings again under the wake-up. P13 (pin 59) is not assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67292iDDC8364842F54CF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My guess is that it thinks Pin 59/60 are in use because the current IO pin has it mux'ed to be used elsewhere such as the wake-up pin. However, I am not sure how/where to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Suggestions would be appreciated! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 17:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814565#M49392</guid>
      <dc:creator>burgeh</dc:creator>
      <dc:date>2018-08-22T17:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: K22 UART2/PIN MUX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814566#M49393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have created a project on my side, but I don't have your problem:&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/67207i59F493FC0C54386E/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;I also attach my project, you can refer to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 23 Aug 2018 02:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814566#M49393</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-08-23T02:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: K22 UART2/PIN MUX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814567#M49394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is an image of my project obviously more components. There is a LLWU component, but it is not enable and I've deleted it and it still has that issue. Could you try and and GPIO port D component?&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/67209i23226339C424F32B/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 04:02:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814567#M49394</guid>
      <dc:creator>burgeh</dc:creator>
      <dc:date>2018-08-23T04:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: K22 UART2/PIN MUX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814568#M49395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; From your description, your other component should also use the PTD2 and PTD3, that will cause the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You said you select the LLWU, but you didn't enable it, you can delete it, I find your BT1 also have problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you are convenient, you can share your problem project, I will help you to check it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; From you first post, the error is caused by the difference component pin conflict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 23 Aug 2018 05:46:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814568#M49395</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-08-23T05:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: K22 UART2/PIN MUX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814569#M49396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Bluetooth is the component that I added and I am trying to get to work, and also be able to have the other components. Am I just not able to have both Bluetooth and GPIO components in the same project?&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/67366i33A3977A7447587E/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;On kind of a side note, I am a bit unfamiliar with this method of setting registers, but I want to turn Pin 46 PTC3 on and off with these macros. (Where can I reference these register settings?) They don't appear to be effective. I confirmed on my scope. Any thoughts?&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/67442iC018EFCDBC63B165/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_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67484i10A63A3E5C28F63F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 21:42:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814569#M49396</guid>
      <dc:creator>burgeh</dc:creator>
      <dc:date>2018-08-23T21:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: K22 UART2/PIN MUX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814570#M49397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher Burg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, you are right, PE component can't select two component with the same pin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But if in your Bluetooth you just want to control pin PTC3, you totally don't need to use the component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can configure the PTC3 pin as GPIO, and set it to the output, then you can use your&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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/67577i7AC68BD60E9B3646/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;About the PTC3 initialization with register.&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_PORTC_MASK;// enable port C clock gate&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTC_PCR5 &amp;amp;= 0xFFFFF0FF;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTC_PCR5 |= PORT_PCR_MUX(1) | PORT_PE_MASK|PORT_PS_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&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>Mon, 27 Aug 2018 02:33:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814570#M49397</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-08-27T02:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: K22 UART2/PIN MUX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814571#M49398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The PORT_PE_MASK and PORT_PS_MASK are not defined. Is there a header file I need to include or where can I find these values? Also where are you referencing to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 21:09:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814571#M49398</guid>
      <dc:creator>burgeh</dc:creator>
      <dc:date>2018-08-27T21:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: K22 UART2/PIN MUX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814572#M49399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher Burg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Don't worry, you also can use these code to replace PORT_PE_MASK and PORT_PS_MASK :&lt;/P&gt;&lt;P&gt;PORT_PE_MASK : (1&amp;lt;&amp;lt;1);&lt;/P&gt;&lt;P&gt;PORT_PS_MASK: (1&amp;lt;&amp;lt;0);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 03:17:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-UART2-PIN-MUX/m-p/814572#M49399</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-08-28T03:17:19Z</dc:date>
    </item>
  </channel>
</rss>

