<?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 KV31F's PTB18 pin as GPIO input pin. in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/KV31F-s-PTB18-pin-as-GPIO-input-pin/m-p/734537#M1376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are facing issue in configuring a gpio pin in KV31f board as input pin through MCU expresso. Can you please provide us any documentation or steps?I could not find any such.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we could see documentations only for switches as input but not Pins as input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Mar 2018 21:31:57 GMT</pubDate>
    <dc:creator>trialaccount12</dc:creator>
    <dc:date>2018-03-24T21:31:57Z</dc:date>
    <item>
      <title>KV31F's PTB18 pin as GPIO input pin.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/KV31F-s-PTB18-pin-as-GPIO-input-pin/m-p/734537#M1376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are facing issue in configuring a gpio pin in KV31f board as input pin through MCU expresso. Can you please provide us any documentation or steps?I could not find any such.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we could see documentations only for switches as input but not Pins as input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2018 21:31:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/KV31F-s-PTB18-pin-as-GPIO-input-pin/m-p/734537#M1376</guid>
      <dc:creator>trialaccount12</dc:creator>
      <dc:date>2018-03-24T21:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: KV31F's PTB18 pin as GPIO input pin.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/KV31F-s-PTB18-pin-as-GPIO-input-pin/m-p/734538#M1377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="315168" data-username="niranjanravi" href="https://community.nxp.com/people/niranjanravi"&gt;Niranjan ravi&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Search the PTB18 pin, then configure it to GPIO function :&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/13400iEE894059C31AE66D/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;then&amp;nbsp; the confiure ptb18 as GPIO function code will be generated in pin_mux.c file:&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/14130iEECC3994B03D654A/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;And it seems there is no difference when confgiure the "Direction" in "Routed Pins" on source code.&lt;/P&gt;&lt;P&gt;While you can refer to the gpio demo code , for example :&lt;BR /&gt;SDK_2.3.0_FRDM-KV31F\boards\frdmkv31f\driver_examples\gpio&lt;/P&gt;&lt;P&gt;it is simple:&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/14576iDAEE4AA1D5B2E016/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;About the use of MCUXpresso configure tool, you can clik&amp;nbsp; menu &amp;nbsp; Help-&amp;gt;Contents：&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/14656iD0F1DB577F0FAEED/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;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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, 26 Mar 2018 08:03:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/KV31F-s-PTB18-pin-as-GPIO-input-pin/m-p/734538#M1377</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-03-26T08:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: KV31F's PTB18 pin as GPIO input pin.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/KV31F-s-PTB18-pin-as-GPIO-input-pin/m-p/734539#M1378</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Thank you for your inputs. I have configured the pins but the problem is I am trying to read the input value(EITHER 1 OR 0) through a GPIO port PTC9(WHICH I CONFIGURED) through an inbuilt function called&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;GPIO_ReadPinInput(GPIO_Type *base, uint32_t pin) .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this function is not returning a value (EITHER 1 or 0 ) whichever it receives and it is showing&amp;nbsp;&lt;STRONG&gt;&amp;lt;optimized value&amp;gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;There is no example to do this functionality using GPIO pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sending the inputs to GPIO of KV31F(PTC9) from GPIO pin of FRDM K64F(PTB9).&amp;nbsp; Could you please tell me if this communication is actually possible and if so how should I proceed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have tried all possibilities for this but&lt;STRONG&gt;&amp;lt;optimized value&amp;gt;&amp;nbsp;&lt;/STRONG&gt;is only we are receiving. We are not able to establish a communication protocol in this way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 22:40:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/KV31F-s-PTB18-pin-as-GPIO-input-pin/m-p/734539#M1378</guid>
      <dc:creator>vallisanghamish</dc:creator>
      <dc:date>2018-03-26T22:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: KV31F's PTB18 pin as GPIO input pin.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/KV31F-s-PTB18-pin-as-GPIO-input-pin/m-p/734540#M1379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Valli,&lt;/P&gt;&lt;P&gt;Could you please first test a simple project ,for example only read the a simple pin.&lt;/P&gt;&lt;P&gt;I test on my side with TWR-KV31 board, configre PTC6 pin as input, high, then read it ,&lt;/P&gt;&lt;P&gt;work well:&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/20791iE0BC59CB5D0AFB32/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;And please pay attention to that , enable the gpio interrupt , otherwise it won't update:&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/21045iE65BD1FFF4672B1A/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;About "&amp;nbsp;&lt;STRONG&gt;&amp;lt;optimized value&amp;gt;&lt;/STRONG&gt;." , where shows this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Tue, 27 Mar 2018 08:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/KV31F-s-PTB18-pin-as-GPIO-input-pin/m-p/734540#M1379</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-03-27T08:27:35Z</dc:date>
    </item>
  </channel>
</rss>

