<?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: LPC812 GPIO input in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-GPIO-input/m-p/1483147#M49409</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;Recommend you refer to the gpio demo under LPC824 SDK.&lt;/P&gt;
&lt;P&gt;Also set breakpoint to while function,&amp;nbsp; check whether it can enter while when press button.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 03:31:54 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2022-07-01T03:31:54Z</dc:date>
    <item>
      <title>LPC812 GPIO input</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-GPIO-input/m-p/1482594#M49387</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am new to using LPC812.&lt;/P&gt;&lt;P&gt;I am thinking of a program that blinks an LED when a button is pressed.&lt;/P&gt;&lt;P&gt;LEDs are connected to PIO0_0 and buttons are connected to PIO0_14.&lt;/P&gt;&lt;P&gt;This is the program I came up with.&lt;/P&gt;&lt;P&gt;int main(void) {&lt;BR /&gt;　SystemCoreClockUpdate();&lt;BR /&gt;　SysTick_Config( SYSTICK_DELAY );&lt;BR /&gt;　GPIOInit();&lt;BR /&gt;　LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;6);&lt;BR /&gt;　LPC_GPIO_PORT-&amp;gt;DIR0 |= (1&amp;lt;&amp;lt;0);&lt;BR /&gt;　LPC_GPIO_PORT-&amp;gt;DIR0 &amp;amp;=~ (1&amp;lt;&amp;lt;14);&lt;BR /&gt;　volatile int8_t SW1 = 1;&lt;BR /&gt;　while(1) {&lt;BR /&gt;　　SW1 = (LPC_GPIO_PORT-&amp;gt;PIN0 &amp;amp; (1&amp;lt;&amp;lt;14));&lt;BR /&gt;　　if(SW1 == 0){&lt;BR /&gt;　　　LPC_GPIO_PORT-&amp;gt;SET0 |= (1&amp;lt;&amp;lt;0);&lt;BR /&gt;　　　delaySysTick(100);&lt;BR /&gt;　　　LPC_GPIO_PORT-&amp;gt;CLR0 |= (1&amp;lt;&amp;lt;0);&lt;BR /&gt;　　　delaySysTick(100);&lt;BR /&gt;　　}&lt;BR /&gt;　　else{&lt;BR /&gt;　　　LPC_GPIO_PORT-&amp;gt;CLR0 |= (1&amp;lt;&amp;lt;0);&lt;BR /&gt;　　}&lt;BR /&gt;　}&lt;BR /&gt;　return 0 ;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;However, this program did not work.&lt;/P&gt;&lt;P&gt;I think the pin is not set up correctly, but I would like to know.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 08:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-GPIO-input/m-p/1482594#M49387</guid>
      <dc:creator>hibino123</dc:creator>
      <dc:date>2022-06-30T08:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812 GPIO input</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-GPIO-input/m-p/1483147#M49409</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;Recommend you refer to the gpio demo under LPC824 SDK.&lt;/P&gt;
&lt;P&gt;Also set breakpoint to while function,&amp;nbsp; check whether it can enter while when press button.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 03:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-GPIO-input/m-p/1483147#M49409</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-07-01T03:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC812 GPIO input</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-GPIO-input/m-p/1483629#M49428</link>
      <description>I don't know lpc812. Maybe PIO0_14 has a different function than gpio by default. Check in User Manual PIO0_14.</description>
      <pubDate>Sat, 02 Jul 2022 10:50:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC812-GPIO-input/m-p/1483629#M49428</guid>
      <dc:creator>Badman</dc:creator>
      <dc:date>2022-07-02T10:50:48Z</dc:date>
    </item>
  </channel>
</rss>

