<?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: GPIO pin status after setting the direction to output in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-pin-status-after-setting-the-direction-to-output/m-p/513474#M188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Florian Kohl on Thu Nov 20 09:54:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;many thanks for your reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That works out fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still, I am a little confused about the sentence in UM10736, chapter 10.6.2 GPIO output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&amp;nbsp; 1. the pin must be selected for GPIO operation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 2. the pin must be selected for output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; If either or both of these conditions are not met, writing to the pin has no effect.&amp;nbsp; "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Has no effect" hence means that the bit is not driven to the output, if condition 1. and/or 2. are not met.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However writing to it does change the state in any case. Is that correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Florian&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:10:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:10:47Z</dc:date>
    <item>
      <title>GPIO pin status after setting the direction to output</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-pin-status-after-setting-the-direction-to-output/m-p/513472#M186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Florian Kohl on Thu Oct 16 06:50:32 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a question concerning the LPC1549 run on the board LPCXpresso1549 OM13056.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the direction of a GPIO pin is set to output, e.g. for PIO0_3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO-&amp;gt;DIR[0] |= 1UL &amp;lt;&amp;lt; 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the LED turns on, as the coressponding pin (LPC_GPIO-&amp;gt;B[0][3]) is initialized with 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why the pin is initialized with 0, when the direction is set to output?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In some examples the direction is set to output and after that the pin is set to 1 again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But this produces a short 0, which I would like to avoid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to initialize the pin with 1, when the direction is set to output?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards, Florian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-pin-status-after-setting-the-direction-to-output/m-p/513472#M186</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO pin status after setting the direction to output</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-pin-status-after-setting-the-direction-to-output/m-p/513473#M187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Paul on Thu Oct 16 09:30:06 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Forian&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try setting the state of pin PIO0_3 to a 1, then set it to an output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-pin-status-after-setting-the-direction-to-output/m-p/513473#M187</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO pin status after setting the direction to output</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-pin-status-after-setting-the-direction-to-output/m-p/513474#M188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Florian Kohl on Thu Nov 20 09:54:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;many thanks for your reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That works out fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still, I am a little confused about the sentence in UM10736, chapter 10.6.2 GPIO output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&amp;nbsp; 1. the pin must be selected for GPIO operation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 2. the pin must be selected for output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; If either or both of these conditions are not met, writing to the pin has no effect.&amp;nbsp; "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Has no effect" hence means that the bit is not driven to the output, if condition 1. and/or 2. are not met.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However writing to it does change the state in any case. Is that correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Florian&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:10:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-pin-status-after-setting-the-direction-to-output/m-p/513474#M188</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:10:47Z</dc:date>
    </item>
  </channel>
</rss>

