<?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: Reading GPIO output pin on LPC1777 returns 0 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-GPIO-output-pin-on-LPC1777-returns-0/m-p/2145591#M58603</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253241"&gt;@neuromp&lt;/a&gt;,&lt;BR /&gt;Sorry for the late reply.&lt;BR /&gt;Please make sure that the Pins 12 and 13 have the next configurations:&lt;BR /&gt;Pin Configured as Output in GPIO port Direction register&lt;BR /&gt;Pin configured as GPIO. Bits in FUNC for the IOCON Register&lt;BR /&gt;Pin configured as Digital. Bit in ADMODE for the IOCON Register&lt;BR /&gt;Pin enabled in the Fast GPIO port Mask register.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Habib&lt;/P&gt;</description>
    <pubDate>Fri, 01 Aug 2025 22:43:22 GMT</pubDate>
    <dc:creator>Habib_MS</dc:creator>
    <dc:date>2025-08-01T22:43:22Z</dc:date>
    <item>
      <title>Reading GPIO output pin on LPC1777 returns 0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-GPIO-output-pin-on-LPC1777-returns-0/m-p/2142941#M58576</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The LPC1777 user manual claims the pin state of a GPIO pin configured as an input or output can be read from the PINVAL register.&amp;nbsp; However, if I set the GPIO output as 1 or 0 using the GPIO PINSET and PINCLR registers, I when I read the state from PINVAL, the pin value is always returned as 0.&amp;nbsp; The pin direction is configured as a GPIO output, when measured with a volt meter I see 3.3V and 0V on the pin.&amp;nbsp; I'm using Port 0 pins 12 and 13.&amp;nbsp; IOCON for Port 0 pins 12 and 13 is set to 0 (GPIO).&lt;/P&gt;&lt;P&gt;I am able to set the gpio output to 0 or 1 on Port 0, pin 0, and read the correct value from the PINVAL register, so there must be something with regards to Port 0 pins 12 and 13, but I can't find it in the manual.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 20:17:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-GPIO-output-pin-on-LPC1777-returns-0/m-p/2142941#M58576</guid>
      <dc:creator>neuromp</dc:creator>
      <dc:date>2025-07-29T20:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO output pin on LPC1777 returns 0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-GPIO-output-pin-on-LPC1777-returns-0/m-p/2145591#M58603</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253241"&gt;@neuromp&lt;/a&gt;,&lt;BR /&gt;Sorry for the late reply.&lt;BR /&gt;Please make sure that the Pins 12 and 13 have the next configurations:&lt;BR /&gt;Pin Configured as Output in GPIO port Direction register&lt;BR /&gt;Pin configured as GPIO. Bits in FUNC for the IOCON Register&lt;BR /&gt;Pin configured as Digital. Bit in ADMODE for the IOCON Register&lt;BR /&gt;Pin enabled in the Fast GPIO port Mask register.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Habib&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 22:43:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-GPIO-output-pin-on-LPC1777-returns-0/m-p/2145591#M58603</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2025-08-01T22:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO output pin on LPC1777 returns 0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-GPIO-output-pin-on-LPC1777-returns-0/m-p/2149357#M58624</link>
      <description>&lt;P&gt;Hi Habib,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies for my late reply :-).&lt;/P&gt;&lt;P&gt;GPIO port direction register 0:0xc61d73f3 (bits 12 &amp;amp; 13 are both 1)&lt;/P&gt;&lt;P&gt;IOCON register: for P0_12 and P0_13 are both 0x0&lt;/P&gt;&lt;P&gt;GPIO Mask0 register: 0x0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 18:33:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-GPIO-output-pin-on-LPC1777-returns-0/m-p/2149357#M58624</guid>
      <dc:creator>neuromp</dc:creator>
      <dc:date>2025-08-08T18:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reading GPIO output pin on LPC1777 returns 0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-GPIO-output-pin-on-LPC1777-returns-0/m-p/2151853#M58655</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/253241"&gt;@neuromp&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The ADMODE bit of the IOCON register must be set to 1 to manage the pin in digital mode.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_0-1755116354865.png" style="width: 465px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352282i3CCCAE4AE7996FB1/image-dimensions/465x503?v=v2" width="465" height="503" role="button" title="Habib_MS_0-1755116354865.png" alt="Habib_MS_0-1755116354865.png" /&gt;&lt;/span&gt;&lt;BR /&gt;All other register configurations appear to be correct.&lt;BR /&gt;BR&lt;BR /&gt;Habib&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 20:23:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-GPIO-output-pin-on-LPC1777-returns-0/m-p/2151853#M58655</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2025-08-13T20:23:44Z</dc:date>
    </item>
  </channel>
</rss>

