<?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のトピックUsing GPIO to pull a signal down</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714158#M53971</link>
    <description>&lt;P&gt;I have a signal line that has a 3.3kOhm pull-up resistor to 3.3V.&lt;/P&gt;&lt;P&gt;I running code on an LPC2388 and trying to pull the line down to logic low using an FIO pin.&lt;BR /&gt;&lt;BR /&gt;The IO pins I am using are configured thus:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;FIO0DIR |= (1&amp;lt;&amp;lt;2);          // P0.2 is output
FIO0DIR |= (1&amp;lt;&amp;lt;3);          // P0.3 is output
FIO0DIR |= (1&amp;lt;&amp;lt;23);         // P0.23 is output
FIO0DIR |= (1&amp;lt;&amp;lt;24);         // P0.24 is output
FIO0DIR |= (1&amp;lt;&amp;lt;25);         // P0.25 is output
FIO0DIR |= (1&amp;lt;&amp;lt;26);         // P0.26 is output
//
// Set all these pins to have neither a pull-up nor a pull-down resistor
//
PINMODE0 |= 0x000000A0;
PINMODE1 |= 0x0AA00000;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that when I use FIOCLR to set the pins to logic zero, the actual voltage I measure is just under 1.4V (1.392V), which is definitely not logic low.&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong please?&lt;BR /&gt;Thanks, David&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 17:02:09 GMT</pubDate>
    <dc:creator>perdrix</dc:creator>
    <dc:date>2023-08-30T17:02:09Z</dc:date>
    <item>
      <title>Using GPIO to pull a signal down</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714158#M53971</link>
      <description>&lt;P&gt;I have a signal line that has a 3.3kOhm pull-up resistor to 3.3V.&lt;/P&gt;&lt;P&gt;I running code on an LPC2388 and trying to pull the line down to logic low using an FIO pin.&lt;BR /&gt;&lt;BR /&gt;The IO pins I am using are configured thus:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;FIO0DIR |= (1&amp;lt;&amp;lt;2);          // P0.2 is output
FIO0DIR |= (1&amp;lt;&amp;lt;3);          // P0.3 is output
FIO0DIR |= (1&amp;lt;&amp;lt;23);         // P0.23 is output
FIO0DIR |= (1&amp;lt;&amp;lt;24);         // P0.24 is output
FIO0DIR |= (1&amp;lt;&amp;lt;25);         // P0.25 is output
FIO0DIR |= (1&amp;lt;&amp;lt;26);         // P0.26 is output
//
// Set all these pins to have neither a pull-up nor a pull-down resistor
//
PINMODE0 |= 0x000000A0;
PINMODE1 |= 0x0AA00000;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that when I use FIOCLR to set the pins to logic zero, the actual voltage I measure is just under 1.4V (1.392V), which is definitely not logic low.&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong please?&lt;BR /&gt;Thanks, David&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 17:02:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714158#M53971</guid>
      <dc:creator>perdrix</dc:creator>
      <dc:date>2023-08-30T17:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using GPIO to pull a signal down</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714549#M53972</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;For example, if you want to set/clear P0.2 pin&amp;nbsp; and use the FIO to access, you can use the code:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;SCS|=1&amp;lt;&amp;lt;0; //set SCS[GPIOM]=1 which can access the fast GPIO port
FIO0DIR |= (1&amp;lt;&amp;lt;2);          // P0.2 is output mode
FIO0SET|=1&amp;lt;&amp;lt;2;
FIO0CLR|=1&amp;lt;&amp;lt;2;
&lt;/LI-CODE&gt;
&lt;P&gt;Pls have a try&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 02:24:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714549#M53972</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-08-31T02:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using GPIO to pull a signal down</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714616#M53974</link>
      <description>&lt;P&gt;I had already set SCS |= 1; (NOT 1&amp;lt;&amp;lt;2 = that is the bit for the EMC).&lt;/P&gt;&lt;P&gt;I am already using FIO0CLR to attempt to pull the line down with the results I described.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 04:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714616#M53974</guid>
      <dc:creator>perdrix</dc:creator>
      <dc:date>2023-08-31T04:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using GPIO to pull a signal down</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714641#M53975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When the GPIO is configured as GPIO output mode, the GPIO pin is a push/pull pin, in other words, FIO0SET instruction will set the GPIO pin, FIO0CLR will clear the GPIO pin.&lt;/P&gt;
&lt;P&gt;If the pin is in a middle voltage, I suppose that the pin is in input mode.&lt;/P&gt;
&lt;P&gt;Pls try the following code and give me a result if the pin can be set or cleared.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;SCS|=1&amp;lt;&amp;lt;0; //set SCS[GPIOM]=1 which can access the fast GPIO port
FIO0DIR |= (1&amp;lt;&amp;lt;2);          // P0.2 is output mode
FIO0SET|=1&amp;lt;&amp;lt;2;
FIO0CLR|=1&amp;lt;&amp;lt;2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 04:59:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714641#M53975</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-08-31T04:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using GPIO to pull a signal down</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714816#M53977</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you still fail to set/clear GPIO, pls post all the code so that we can have a review.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 08:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714816#M53977</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-08-31T08:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using GPIO to pull a signal down</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714877#M53978</link>
      <description>&lt;P&gt;Problem found - earth connection had come adrift!&amp;nbsp; Sorry to take your time&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 09:07:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714877#M53978</guid>
      <dc:creator>perdrix</dc:creator>
      <dc:date>2023-08-31T09:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using GPIO to pull a signal down</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714890#M53979</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Glad to hear that you have found the cause.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 09:18:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-GPIO-to-pull-a-signal-down/m-p/1714890#M53979</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-08-31T09:18:57Z</dc:date>
    </item>
  </channel>
</rss>

