<?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 Set GPIO in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Set-GPIO/m-p/1167769#M58504</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm back at the very basics, why do my GPIOs PORTC15 &amp;amp; PORTC18 not get set high with the following code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    gpio_pin_config_t ConfigC15 = { .pinDirection = kGPIO_DigitalOutput, .outputLogic = 0 };
    gpio_pin_config_t ConfigC18 = { .pinDirection = kGPIO_DigitalOutput, .outputLogic = 0 };
    GPIO_PinInit(GPIOC,15,&amp;amp;ConfigC15);
    GPIO_PinInit(GPIOC,18,&amp;amp;ConfigC18);
    GPIO_PinWrite(GPIOC,15,1);
    GPIO_PinWrite(GPIOC,18,1);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;Same resiult when I set the default outputLogic to 1 instead.&lt;/P&gt;&lt;P&gt;Hm, I added&lt;/P&gt;&lt;LI-CODE lang="c"&gt; CLOCK_EnableClock(kCLOCK_PortC);&lt;/LI-CODE&gt;&lt;P&gt;before the lines above but still no luck.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 23:09:16 GMT</pubDate>
    <dc:creator>stdcerr</dc:creator>
    <dc:date>2020-10-14T23:09:16Z</dc:date>
    <item>
      <title>Set GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Set-GPIO/m-p/1167769#M58504</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm back at the very basics, why do my GPIOs PORTC15 &amp;amp; PORTC18 not get set high with the following code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    gpio_pin_config_t ConfigC15 = { .pinDirection = kGPIO_DigitalOutput, .outputLogic = 0 };
    gpio_pin_config_t ConfigC18 = { .pinDirection = kGPIO_DigitalOutput, .outputLogic = 0 };
    GPIO_PinInit(GPIOC,15,&amp;amp;ConfigC15);
    GPIO_PinInit(GPIOC,18,&amp;amp;ConfigC18);
    GPIO_PinWrite(GPIOC,15,1);
    GPIO_PinWrite(GPIOC,18,1);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; What am I missing?&lt;/P&gt;&lt;P&gt;Same resiult when I set the default outputLogic to 1 instead.&lt;/P&gt;&lt;P&gt;Hm, I added&lt;/P&gt;&lt;LI-CODE lang="c"&gt; CLOCK_EnableClock(kCLOCK_PortC);&lt;/LI-CODE&gt;&lt;P&gt;before the lines above but still no luck.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 23:09:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Set-GPIO/m-p/1167769#M58504</guid>
      <dc:creator>stdcerr</dc:creator>
      <dc:date>2020-10-14T23:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Set-GPIO/m-p/1167846#M58506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Which mcu do you use? Do you configure the pin multiplexing? Configure the pin as GPIO ? The sdk has gpio example. You can refer it. &lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 01:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Set-GPIO/m-p/1167846#M58506</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-10-15T01:00:44Z</dc:date>
    </item>
  </channel>
</rss>

