<?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 LPC1769 Open Drain problem on P0.29 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Open-Drain-problem-on-P0-29/m-p/522417#M5053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Thu Nov 26 04:02:28 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone ever tried to use open drain on the USB pins being used in GPIO mode?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have P0.29 and P0.30 both defined as GPIO (LPC_PINCON-&amp;gt;PINSEL0 = 0) and both defined as output (LPC_GPIO0-&amp;gt;FIODIR |= 3&amp;lt;&amp;lt;29)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can control the state of the pins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now I want to use one of those pins (P0.29) in Open Drain mode (LPC_PINCON-&amp;gt;PINMODE_OD0 |= 3&amp;lt;&amp;lt;29) this does not result in the effect requested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I set P0.29 to a high level (LPC_GPIO0-&amp;gt;FIOSET = 1&amp;lt;&amp;lt;29), the pin becomes high. But when I then try to pull this pin low a current of ~145 mA is drawn from the IO Pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes - I verified that it's the pin and not my hardware. When both pins are defined as input pins, pulling the pin low does not result in a current being drawn.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that P0.29 and P0.30 are the USB pins and that both pins need to be output at the same time but I could not find any reference to Open Drain mode not working on those pins - the user manual (UM10360 Rev 3.1), does mention the OD option for those pins and the latest Errata sheet (rev 10.2) does not mention an issue on those pins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OD mode does work correctly on other pins (e.g. P0.26).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone confirm if this is a bug in the lpc1769? Or do I need to other things to get this working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:55:05 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:55:05Z</dc:date>
    <item>
      <title>LPC1769 Open Drain problem on P0.29</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Open-Drain-problem-on-P0-29/m-p/522417#M5053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Thu Nov 26 04:02:28 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone ever tried to use open drain on the USB pins being used in GPIO mode?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have P0.29 and P0.30 both defined as GPIO (LPC_PINCON-&amp;gt;PINSEL0 = 0) and both defined as output (LPC_GPIO0-&amp;gt;FIODIR |= 3&amp;lt;&amp;lt;29)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can control the state of the pins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now I want to use one of those pins (P0.29) in Open Drain mode (LPC_PINCON-&amp;gt;PINMODE_OD0 |= 3&amp;lt;&amp;lt;29) this does not result in the effect requested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I set P0.29 to a high level (LPC_GPIO0-&amp;gt;FIOSET = 1&amp;lt;&amp;lt;29), the pin becomes high. But when I then try to pull this pin low a current of ~145 mA is drawn from the IO Pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes - I verified that it's the pin and not my hardware. When both pins are defined as input pins, pulling the pin low does not result in a current being drawn.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that P0.29 and P0.30 are the USB pins and that both pins need to be output at the same time but I could not find any reference to Open Drain mode not working on those pins - the user manual (UM10360 Rev 3.1), does mention the OD option for those pins and the latest Errata sheet (rev 10.2) does not mention an issue on those pins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OD mode does work correctly on other pins (e.g. P0.26).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone confirm if this is a bug in the lpc1769? Or do I need to other things to get this working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:55:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Open-Drain-problem-on-P0-29/m-p/522417#M5053</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:55:05Z</dc:date>
    </item>
  </channel>
</rss>

