<?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: Frdm-k64g Gpio Issue in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608251#M35898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;Mark is right.&lt;/P&gt;&lt;P&gt;The PORTA_PCR2[MUX]=0x07 as default. So you need PORTA_PCR2 &lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt; PORT_PCR_MUX(1) instead of&amp;nbsp;PORTA_PCR2 |= PORT_PCR_MUX(1).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PTA2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11523iEBCD52B3CFBBBB00/image-size/large?v=v2&amp;amp;px=999" role="button" title="PTA2.png" alt="PTA2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&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>Thu, 12 Jan 2017 09:20:47 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2017-01-12T09:20:47Z</dc:date>
    <item>
      <title>Frdm-k64g Gpio Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608249#M35896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello... I need to toggle some of the FRDM-K64F GPIO pins. One of those pins is in the PTA port, the PTA2 pin, but I can't set it to&amp;nbsp; logic '1', it's always at 0V and I need to set it to it's logic '1' state of 3.3V. I have tried a baremetal code, I can set other pins except this one. The pins is shared with the JTAG_TDO and I think that's the reason. Can I get this pin to work as GPIO?? &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my initialization code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIM_SCGC5 |= SIM_SCGC5_PORTA_MASK;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Enable clock&lt;/P&gt;&lt;P&gt;PORTA_PCR2 |= PORT_PCR_MUX(1) | PORT_PCR_DSE_MASK;&amp;nbsp;&amp;nbsp; //Chose alt1 as gpio pin and enable drive strenght&lt;/P&gt;&lt;P&gt;GPIOA_PDDR |= (1&amp;lt;&amp;lt;2);&amp;nbsp;&amp;nbsp; //Set the pin as output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPIOA_PSOR |= (1&amp;lt;&amp;lt;2);&amp;nbsp;&amp;nbsp; //To set the pin at logic '1' but doesn't work :smileysad:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 19:55:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608249#M35896</guid>
      <dc:creator>alejandrovelez</dc:creator>
      <dc:date>2017-01-11T19:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Frdm-k64g Gpio Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608250#M35897</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;Change the line&lt;BR /&gt;PORTA_PCR2 |= PORT_PCR_MUX(1) | PORT_PCR_DSE_MASK;&amp;nbsp;&amp;nbsp; //Chose alt1 as gpio pin and enable drive strenght&lt;BR /&gt;to&lt;BR /&gt;PORTA_PCR2 &lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt; PORT_PCR_MUX(1) | PORT_PCR_DSE_MASK;&amp;nbsp;&amp;nbsp; //Chose alt1 as gpio pin and enable drive strenght&lt;BR /&gt;and it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In the uTasker project you would simply do &lt;BR /&gt;&lt;STRONG&gt;_CONFIG_DRIVE_PORT_OUTPUT_VALUE(A, (PORTA_BIT2), (PORTA_BIT2), (PORT_DSE_HIGH)); // configure and drive '1' on PTA2&lt;/STRONG&gt;&lt;BR /&gt;and nothing can go wrong.&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;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FFRDM-K64F.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K64F.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 20:20:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608250#M35897</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-11T20:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Frdm-k64g Gpio Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608251#M35898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;Mark is right.&lt;/P&gt;&lt;P&gt;The PORTA_PCR2[MUX]=0x07 as default. So you need PORTA_PCR2 &lt;SPAN style="color: #ff0000;"&gt;=&lt;/SPAN&gt; PORT_PCR_MUX(1) instead of&amp;nbsp;PORTA_PCR2 |= PORT_PCR_MUX(1).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PTA2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11523iEBCD52B3CFBBBB00/image-size/large?v=v2&amp;amp;px=999" role="button" title="PTA2.png" alt="PTA2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&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>Thu, 12 Jan 2017 09:20:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608251#M35898</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-01-12T09:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Frdm-k64g Gpio Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608252#M35899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark, it works!!&lt;/P&gt;&lt;P&gt;I don't know the uTasker tool, can you please give me more information about it or where I can find it?&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 14:13:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608252#M35899</guid>
      <dc:creator>alejandrovelez</dc:creator>
      <dc:date>2017-01-12T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Frdm-k64g Gpio Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608253#M35900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robin, you're right!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 14:14:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608253#M35900</guid>
      <dc:creator>alejandrovelez</dc:creator>
      <dc:date>2017-01-12T14:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Frdm-k64g Gpio Issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608254#M35901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link at end of previous post.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 18:42:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Frdm-k64g-Gpio-Issue/m-p/608254#M35901</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-01-12T18:42:28Z</dc:date>
    </item>
  </channel>
</rss>

