<?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: P0_26 on LPC54102 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1834841#M55742</link>
    <description>the only way i can switch the line state, is when I change the invert bit. while this can be a work around, i would like to understand why is this happening ?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;RB</description>
    <pubDate>Mon, 25 Mar 2024 18:42:04 GMT</pubDate>
    <dc:creator>skanda19</dc:creator>
    <dc:date>2024-03-25T18:42:04Z</dc:date>
    <item>
      <title>P0_26 on LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1833919#M55722</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I been having some difficulties to control P0_26 on lpc54102. I know this pins is used to contro i2c1, but i our pcb design we map this pin to be used gpio (output), but I been having a hard time doing this, i feel kinda dumb hahah.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I modified the blinky.c example code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;#include "board.h"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*****************************************************************************&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;* Private types/enumerations/variables&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;****************************************************************************/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#define TICKRATE_HZ (10) /* 10 ticks per second */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*E1 - OUTPUT*/&lt;/DIV&gt;&lt;DIV&gt;#define&amp;nbsp; &amp;nbsp; &amp;nbsp;PORT0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/DIV&gt;&lt;DIV&gt;#define&amp;nbsp; &amp;nbsp; &amp;nbsp;RS485_REn_PORT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PORT0&lt;/DIV&gt;&lt;DIV&gt;#define&amp;nbsp; &amp;nbsp; &amp;nbsp;RS485_REn_PIN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;26&lt;/DIV&gt;&lt;DIV&gt;#define&amp;nbsp; &amp;nbsp; &amp;nbsp;RS485_REn_OUT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LPC_GPIO-&amp;gt;DIR[RS485_REn_PORT]|=(1UL &amp;lt;&amp;lt;RS485_REn_PIN)&lt;/DIV&gt;&lt;DIV&gt;#define&amp;nbsp; &amp;nbsp; &amp;nbsp;RS485_REn_HI&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LPC_GPIO-&amp;gt;B[RS485_REn_PORT][RS485_REn_PIN] = true&lt;/DIV&gt;&lt;DIV&gt;#define&amp;nbsp; &amp;nbsp; &amp;nbsp;RS485_REn_LO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LPC_GPIO-&amp;gt;B[RS485_REn_PORT][RS485_REn_PIN] = false&lt;/DIV&gt;&lt;DIV&gt;#define&amp;nbsp; &amp;nbsp; &amp;nbsp;RS485_REn_INP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LPC_GPIO-&amp;gt;DIR[RS485_REn_PORT]&amp;amp;=~(1UL &amp;lt;&amp;lt;RS485_REn_PIN)&lt;/DIV&gt;&lt;DIV&gt;#define&amp;nbsp; &amp;nbsp; &amp;nbsp;RS485_REn_IN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LPC_GPIO-&amp;gt;B[RS485_REn_PORT][RS485_REn_PIN]&lt;/DIV&gt;&lt;DIV&gt;#define&amp;nbsp; &amp;nbsp; &amp;nbsp;RS485_REn_TOG&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LPC_GPIO-&amp;gt;NOT[RS485_REn_PORT]|=(1UL &amp;lt;&amp;lt;RS485_REn_PIN)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*****************************************************************************&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;* Public types/enumerations/variables&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;****************************************************************************/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*****************************************************************************&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;* Private functions&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;****************************************************************************/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/*****************************************************************************&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;* Public functions&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;****************************************************************************/&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* Systick handler ISR */&lt;/DIV&gt;&lt;DIV&gt;void SysTick_Handler(void)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Board_LED_Toggle(0);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; RS485_REn_TOG;&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* main function (C entry point) */&lt;/DIV&gt;&lt;DIV&gt;int main(void)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int loop = 1; /* Used to fix the unreachable statement warning */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SystemCoreClockUpdate();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Board_Init();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Board_LED_Set(0, false);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Chip_IOCON_PinMuxSet(LPC_IOCON, RS485_REn_PORT, RS485_REn_PIN,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (IOCON_FUNC0 | IOCON_DIGITAL_EN | IOCON_GPIO_MODE));&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; RS485_REn_OUT;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; RS485_REn_HI;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Enable SysTick Timer */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SysTick_Config(SystemCoreClock / TICKRATE_HZ);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;while (loop) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;__WFI();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return 0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;}&lt;BR /&gt;&lt;BR /&gt;but I am not been able to change the behavior of this pin, on our custom project and also the lpcXpresso 54102 board. when I change the configuration on debug mode the value goes back to 0 (keil).&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;can someone help me sort this out ?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thanks&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Mar 2024 19:20:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1833919#M55722</guid>
      <dc:creator>skanda19</dc:creator>
      <dc:date>2024-03-22T19:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: P0_26 on LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1834123#M55725</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/211922"&gt;@skanda19&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to "led_blinky" demo to config gpio.&lt;/P&gt;
&lt;P&gt;Check whether enabled gpio clock.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1711332567683.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/270063iB13C02C1BD4C7337/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1711332567683.png" alt="Alice_Yang_0-1711332567683.png" /&gt;&lt;/span&gt;&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>Mon, 25 Mar 2024 02:09:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1834123#M55725</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-25T02:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: P0_26 on LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1834768#M55741</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="skanda19_0-1711382462716.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/270257i94070BCF29CDD7AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="skanda19_0-1711382462716.png" alt="skanda19_0-1711382462716.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;both ports of the gpio are initialized. The pins are type I and I can control with the same method pins:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;23&lt;/LI&gt;&lt;LI&gt;24&lt;/LI&gt;&lt;LI&gt;27&lt;/LI&gt;&lt;LI&gt;28&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;the only ones that i can't control is those 2:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;25&lt;/LI&gt;&lt;LI&gt;26&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IOCON are configured as follow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="skanda19_1-1711383548691.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/270260i104DEA46E5BCD67A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="skanda19_1-1711383548691.png" alt="skanda19_1-1711383548691.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but the state of the gpio no matter what remains low.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 17:09:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1834768#M55741</guid>
      <dc:creator>skanda19</dc:creator>
      <dc:date>2024-03-25T17:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: P0_26 on LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1834841#M55742</link>
      <description>the only way i can switch the line state, is when I change the invert bit. while this can be a work around, i would like to understand why is this happening ?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;RB</description>
      <pubDate>Mon, 25 Mar 2024 18:42:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1834841#M55742</guid>
      <dc:creator>skanda19</dc:creator>
      <dc:date>2024-03-25T18:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: P0_26 on LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1835814#M55758</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/211922"&gt;@skanda19&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the lpcxpresso54201 development board to control the LED blink of P0_26 (connect J2-16(P0_26)-&amp;gt;J1-14(LED_GREEN)), for details, see the attached project configuration.&lt;/P&gt;
&lt;P&gt;Hope this helps you.&lt;/P&gt;
&lt;P&gt;Best regards, Alex&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 01:33:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1835814#M55758</guid>
      <dc:creator>Alex_Wang</dc:creator>
      <dc:date>2024-03-27T01:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: P0_26 on LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1836552#M55774</link>
      <description>&lt;P&gt;hey alex! thanks for the support,&lt;BR /&gt;&lt;BR /&gt;just to make sure:&lt;BR /&gt;you're initializing gpio (clk enable), setting iocon as gpio mode and setting pin 0_26 as alternate func 0,setting the pin as output and writting to B[port0][pin26].&lt;BR /&gt;&lt;BR /&gt;am I correct ? or am I missing something ?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 16:16:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1836552#M55774</guid>
      <dc:creator>skanda19</dc:creator>
      <dc:date>2024-03-27T16:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: P0_26 on LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1836825#M55778</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/211922"&gt;@skanda19&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I multiplexed P0_26 in gpio mode, initialized gpio (clk), and then wrote 0 or 1 to the pin to control the blink of the led.&lt;/P&gt;
&lt;P&gt;Best regards, Alex&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 01:30:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1836825#M55778</guid>
      <dc:creator>Alex_Wang</dc:creator>
      <dc:date>2024-03-28T01:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: P0_26 on LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1836986#M55781</link>
      <description>Hey Alex,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick response. I was able to figure out what was the issue:&amp;nbsp;&lt;BR /&gt;In the user manual for the LPC54102, specifically in the IOCON&amp;nbsp; chapter mentions that the type I pin doesn't have any Pull-Up or Pull-Down resistors and if the user wants to use them as output the line will stay low because will be in and open-drain state. I solved the issue when I added an external resistor to be able to pull the level on the line.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;again, thanks for your help,&lt;BR /&gt;Ricardo B.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Mar 2024 06:19:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/P0-26-on-LPC54102/m-p/1836986#M55781</guid>
      <dc:creator>skanda19</dc:creator>
      <dc:date>2024-03-28T06:19:57Z</dc:date>
    </item>
  </channel>
</rss>

