<?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: LPC804 - Problem with pin P0.8 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Problem-with-pin-P0-8/m-p/1089862#M41799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are taking a look at your code, and I will reply to you as soon as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime, could you please let me know if all of the pins in the port are behaving the same? Or does this only affect P0.8 when configuring P0.9?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any further issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2020 01:31:09 GMT</pubDate>
    <dc:creator>nxf63973</dc:creator>
    <dc:date>2020-07-03T01:31:09Z</dc:date>
    <item>
      <title>LPC804 - Problem with pin P0.8</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Problem-with-pin-P0-8/m-p/1089861#M41798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings, I'm working on a project with LPC804 (TSSOP20) and I came across a problem I can't handle. I have a simple program for capturing falling edges on pin P0.8. Pin P0.9 is used to control the thyristor and P0.1 to control the LED. Here is the program:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include "LPC804.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define LED_PIN (1 &amp;lt;&amp;lt; 1) // LED P0.1&lt;BR /&gt;#define PWR_PIN (1 &amp;lt;&amp;lt; 9) // POWER P0.9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// *** LED&lt;BR /&gt;#define LED_ON() LPC_GPIO_PORT-&amp;gt;SET0 = LED_PIN&lt;BR /&gt;#define LED_OFF() LPC_GPIO_PORT-&amp;gt;CLR0 = LED_PIN&lt;BR /&gt;// *** POWER&lt;BR /&gt;#define PWR_ON() LPC_GPIO_PORT-&amp;gt;SET0 = PWR_PIN&lt;BR /&gt;#define PWR_OFF() LPC_GPIO_PORT-&amp;gt;CLR0 = PWR_PIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint32_t u32_x = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL0 |= (1 &amp;lt;&amp;lt; 18) | (1 &amp;lt;&amp;lt; 7) | (1 &amp;lt;&amp;lt; 6); // IOCON [Enable], SWM [Enable], GPIO0 [Enable]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// *** LED&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_GPIO_PORT-&amp;gt;DIR0 |= LED_PIN;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LED_OFF();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// *** POWER&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_GPIO_PORT-&amp;gt;DIR0 |= PWR_PIN;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;PWR_OFF();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// *** CAPTURE&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_SYSCON-&amp;gt;PINTSEL0 = 8; // Pin P0.8&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL0 |= (1 &amp;lt;&amp;lt; 28); // GPION_INT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_PIN_INT-&amp;gt;IENF |= (1 &amp;lt;&amp;lt; 0); // Enable falling edge interrupt enabled&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_PIN_INT-&amp;gt;SIENF |= (1 &amp;lt;&amp;lt; 0); // Enable falling edge interrupt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_PIN_INT-&amp;gt;IST |= (1 &amp;lt;&amp;lt; 0);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;NVIC_EnableIRQ(PININT0_IRQn);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(1) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return 0 ;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void PININT0_IRQHandler(void) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (LPC_PIN_INT-&amp;gt;IST &amp;amp; (1 &amp;lt;&amp;lt; 0)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; u32_x++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_PIN_INT-&amp;gt;IST |= (1 &amp;lt;&amp;lt; 0);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The problem occurs after initialization of pin P0.9. Before initializing this pin, pin P0.8 acts as an input with a pull up resistor. After initializing P0.9, something happens and pin P0.8 behaves as if it were a pull down. Therefore, capturing descending wounds does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do the settings of pin P0.9 relate to pin P0.8?&amp;nbsp;Can anyone advise me what to do with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2020 13:40:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Problem-with-pin-P0-8/m-p/1089861#M41798</guid>
      <dc:creator>masterboy</dc:creator>
      <dc:date>2020-06-25T13:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 - Problem with pin P0.8</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Problem-with-pin-P0-8/m-p/1089862#M41799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are taking a look at your code, and I will reply to you as soon as possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime, could you please let me know if all of the pins in the port are behaving the same? Or does this only affect P0.8 when configuring P0.9?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any further issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2020 01:31:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Problem-with-pin-P0-8/m-p/1089862#M41799</guid>
      <dc:creator>nxf63973</dc:creator>
      <dc:date>2020-07-03T01:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC804 - Problem with pin P0.8</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Problem-with-pin-P0-8/m-p/1089863#M41800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I copied your code on a new project using the latest SDK Version available for this MCU. I loaded this project to the LPCXpresso804 development board. During debugging, the pin P0.8 seems to remain in pull-up configuration, and unfortunately, I was not able to reproduce the behavior that you described.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These could be a hardware issue, so could you please check the pin connections of your board? Just to be sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, could you please try using the latest SDK version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any further issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2020 20:38:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-Problem-with-pin-P0-8/m-p/1089863#M41800</guid>
      <dc:creator>nxf63973</dc:creator>
      <dc:date>2020-07-03T20:38:49Z</dc:date>
    </item>
  </channel>
</rss>

