<?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 out for 0_4 and 0_5 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-out-for-0-4-and-0-5/m-p/539419#M11858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Wouter on Mon Feb 18 02:01:06 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Avass,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pin PIO0_4 and PIO0_5 are open-drain outputs, and thus require pull-up resistors in order to reach a high level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wouter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:40:41 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:40:41Z</dc:date>
    <item>
      <title>GPIO out for 0_4 and 0_5</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-out-for-0-4-and-0-5/m-p/539418#M11857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by avass on Sat Feb 16 00:39:50 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use pin 0_4 and 0_5 as a GPIO on an LPCXpresso LPC1115. I also added 0_3 as a control pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the following code, nothing else runs ( except SystemCoreClockUpdate(); )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;PIO0_3 &amp;amp;= ~0x43F;// 0100 0011 1111 Zero FUNC, MODE, HYS and OD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;PIO0_4 &amp;amp;= ~0x307;// 0011 0000 0111 = 0x307 : Zero FUNC, I2CMODE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;PIO0_5 &amp;amp;= ~0x307;// 0011 0000 0111 = 0x307 : Zero FUNC, I2CMODE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO[0]-&amp;gt;DIR|=(1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;5)|(1&amp;lt;&amp;lt;3);// Set these pins as output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;6);// Enable Clock for the GPIO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO[0]-&amp;gt;DATA&amp;amp;=~((1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;5)|(1&amp;lt;&amp;lt;3));// Set them to 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO[0]-&amp;gt;MASKED_ACCESS[(1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;5)|(1&amp;lt;&amp;lt;3)] = (1&amp;lt;&amp;lt;4)|(1&amp;lt;&amp;lt;5)|(1&amp;lt;&amp;lt;3);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the above code, pin0_3 goes up to 3.3V, but 0_4 and 0_5 aren't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody has any idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-A&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-out-for-0-4-and-0-5/m-p/539418#M11857</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO out for 0_4 and 0_5</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-out-for-0-4-and-0-5/m-p/539419#M11858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Wouter on Mon Feb 18 02:01:06 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Avass,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pin PIO0_4 and PIO0_5 are open-drain outputs, and thus require pull-up resistors in order to reach a high level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wouter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:40:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-out-for-0-4-and-0-5/m-p/539419#M11858</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:40:41Z</dc:date>
    </item>
  </channel>
</rss>

