<?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>LPC MicrocontrollersのトピックRe: What is the correct method to use PIO0_20 as GPIO on LPC1517?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864857#M34479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello lzzet Aykut Kocak,&lt;/P&gt;&lt;P&gt;Have you enable SWM clock before configuration ?&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_SWM );&lt;/P&gt;&lt;/BLOCKQUOTE&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:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks 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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2019 09:51:23 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2019-03-07T09:51:23Z</dc:date>
    <item>
      <title>What is the correct method to use PIO0_20 as GPIO on LPC1517?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864854#M34476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my custom board, I need to enable PIO0_20 pin GPIO function. But I could not manage to enable it. Could you suggest the correct way ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 13:51:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864854#M34476</guid>
      <dc:creator>aykut_kocak</dc:creator>
      <dc:date>2019-03-04T13:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct method to use PIO0_20 as GPIO on LPC1517?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864855#M34477</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="336883" data-username="aykut_kocak@hotmail.com" href="https://community.nxp.com/people/aykut_kocak@hotmail.com"&gt;Izzet Aykut KOCAK&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for contacting our technical support, to serve you quickly, I recommend you&lt;/P&gt;&lt;P&gt;first refer to a GPIO demo, under LPCopen, there is a gpio demo named "periph_gpio":&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc15xx:LPCOPEN-SOFTWARE-FOR-LPC15XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc15xx:LPCOPEN-SOFTWARE-FOR-LPC15XX"&gt;LPCOpen Software for LPC15XX | NXP&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks 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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2019 02:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864855#M34477</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-03-05T02:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct method to use PIO0_20 as GPIO on LPC1517?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864856#M34478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Alice_Yang"&gt;Alice_Yang&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your kind reply. But this&amp;nbsp;is not the answer of my question. Maybe, I asked the question wrong way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already know hot to use GPIO on LPC15xx. My question was a little more specific about the pin PIO0_20 which has got a special function for hardware debugging ( SWDIO). I need to disable this function and use that pin as GPIO.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already, disable the fixed function of PIO0_20 with following values given below&amp;nbsp; and&amp;nbsp;enabled GPIO pin function. But the pin does not give any response at all. So, I thought I am missing something and asked the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;#define I2C0_MASK ~( (1 &amp;lt;&amp;lt; 3 ) | (1 &amp;lt;&amp;lt; 4) )&lt;BR /&gt;#define RESET_PIN_MASK ~( (1 &amp;lt;&amp;lt; 21 ) )&lt;BR /&gt;#define PINENABLE1_VAL (0xFFFFFFFF &amp;amp; I2C0_MASK &amp;amp; RESET_PIN_MASK )&lt;/P&gt;&lt;P&gt;LPC_SWM-&amp;gt;PINENABLE[1] = PINENABLE1_VAL;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 07:36:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864856#M34478</guid>
      <dc:creator>aykut_kocak</dc:creator>
      <dc:date>2019-03-06T07:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct method to use PIO0_20 as GPIO on LPC1517?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864857#M34479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello lzzet Aykut Kocak,&lt;/P&gt;&lt;P&gt;Have you enable SWM clock before configuration ?&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_SWM );&lt;/P&gt;&lt;/BLOCKQUOTE&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:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks 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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 09:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864857#M34479</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-03-07T09:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct method to use PIO0_20 as GPIO on LPC1517?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864858#M34480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Alice_Yang"&gt;Alice_Yang&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes SWM clock is already enabled. Other SWM setup is working fine, indeed.&lt;/P&gt;&lt;P&gt;I had attached the board_sysinit.c in the first post. You can check from that file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgrds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aykut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 12:21:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864858#M34480</guid>
      <dc:creator>aykut_kocak</dc:creator>
      <dc:date>2019-03-08T12:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: What is the correct method to use PIO0_20 as GPIO on LPC1517?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864859#M34481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aykut,&lt;/P&gt;&lt;P&gt;How do you know it doesn't work ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;I haven't LPC1517,&amp;nbsp; while I test on LPC1549, it can work well.&lt;/P&gt;&lt;P&gt;After I configure the PIO0_20 to GPIO, can't debug project . I measure the PIO0_20 pin, it works well as my&lt;/P&gt;&lt;P&gt;code.&amp;nbsp; On my code, toggle this pin in a timer interrupt, the PIO0_20 can out put low - high - low -high... as GPIO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#define PORT_MASK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 1) | (1 &amp;lt;&amp;lt; 24)|&lt;SPAN style="color: #ff0000;"&gt;(1&amp;lt;&amp;lt;20)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SysTick_Handler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;uint32_t states;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Get current masked port states */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;states = Chip_GPIO_GetMaskedPortValue(LPC_GPIO, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Toggle all the states */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;states = ~states;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Write states back via masked set function. Only the enanled&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (masked states) will be changed. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_GPIO_SetMaskedPortValue(LPC_GPIO, 0, states);&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#define PINENABLE1_VAL&amp;nbsp; ((1&amp;lt;&amp;lt;13)|(1&amp;lt;&amp;lt;23))&lt;/P&gt;&lt;P&gt;In main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_SWM);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;LPC_SWM-&amp;gt;PINENABLE[1] |= PINENABLE1_VAL;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I configure the code&amp;nbsp; based on "periph_gpio" demo under LPCopen.&lt;/P&gt;&lt;P&gt;I also checked your board_sysinit.c file , it seem there is no error, just disable the SWDIO pin two times:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/70742iBD93589DDA29FD4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks 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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2019 06:57:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/What-is-the-correct-method-to-use-PIO0-20-as-GPIO-on-LPC1517/m-p/864859#M34481</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-03-11T06:57:30Z</dc:date>
    </item>
  </channel>
</rss>

