<?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: LPC824 PIO0_4 floating input and WAKEPAD_DISABLE register in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-PIO0-4-floating-input-and-WAKEPAD-DISABLE-register/m-p/562955#M16582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by joepbrown on Mon Apr 27 13:23:47 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After a couple hours of debugging I've finally realized the IOCON clock needs to be enabled to change pin modes. I got the pin to float with the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_IOCON);
&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_IOCON_PinSetMode(LPC_IOCON,IOCON_PIO4,PIN_MODE_INACTIVE);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There should really be a &lt;/SPAN&gt;&lt;STRONG&gt;Chip_IOCON_Init()&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;Chip_IOCON_Deinit()&lt;/STRONG&gt;&lt;SPAN&gt; function in LPCOpen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:02:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:02:51Z</dc:date>
    <item>
      <title>LPC824 PIO0_4 floating input and WAKEPAD_DISABLE register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-PIO0-4-floating-input-and-WAKEPAD-DISABLE-register/m-p/562954#M16581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by joepbrown on Mon Apr 27 11:11:39 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use PIO0_4 as a GPIO to detect if the pin is high or low. I have an external 1M pulldown resistor and want to use the pin as a floating input. I've tried many things but can't seem to disable the internal pullup on PIO0_4 so the pin is stuck high.&amp;nbsp; Furthermore PIO0_4 looks like, by default, it is configured as the WAKEUP pin but the documentation seems inconsistent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a few things I've tried to make the pin a floating input:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[list]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]Setting the pin as an input (which I thought was the default IO state for most pins) with &lt;/SPAN&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;Chip_GPIO_SetPinDIRInput(LPC_GPIO_PORT,0,IOCON_PIO4);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]Disabling the pullup with &lt;/SPAN&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;Chip_IOCON_PinSetMode(LPC_IOCON,IOCON_PIO4,PIN_MODE_INACTIVE);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]Explicitly disabling the WAKEUP pad with &lt;/SPAN&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;Chip_PMU_SetPowerDownControl(LPC_PMU,PMU_DPDCTRL_WAKEPAD);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;[/list]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;None of this allows the pin to float and it is still pulled high.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I read Table 63 (DPDCTRL register description) in the manual it says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;WAKEUP pin disable. Setting this bit disables the wake-up pin, so it can be&lt;BR /&gt;used for other purposes.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Remark&lt;/STRONG&gt;: Never set this bit if you intend to use a pin to wake up the part from&lt;BR /&gt;Deep power-down mode. You can only disable the wake-up pin if the&lt;BR /&gt;self-wake-up timer is enabled and configured.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Remark&lt;/STRONG&gt;: Setting this bit is not necessary if Deep power-down mode is not&lt;BR /&gt;used.&lt;BR /&gt;&lt;BR /&gt;0 Enabled. The wake-up function is enabled on pin PIO0_4.&lt;BR /&gt;1 Disabled. Setting this bit disables the wake-up function on pin PIO0_4.&lt;BR /&gt;&lt;BR /&gt;Reset value: 0&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I'm connected to the device the reset value is 1(disabled) not 0. So I'm not really sure if the WAKEUP is enabled or disabled by default, or what I need to do to disable it, or if I even need to disable it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to make PIO0_4 a floating input?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:02:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-PIO0-4-floating-input-and-WAKEPAD-DISABLE-register/m-p/562954#M16581</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824 PIO0_4 floating input and WAKEPAD_DISABLE register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-PIO0-4-floating-input-and-WAKEPAD-DISABLE-register/m-p/562955#M16582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by joepbrown on Mon Apr 27 13:23:47 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After a couple hours of debugging I've finally realized the IOCON clock needs to be enabled to change pin modes. I got the pin to float with the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_IOCON);
&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_IOCON_PinSetMode(LPC_IOCON,IOCON_PIO4,PIN_MODE_INACTIVE);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There should really be a &lt;/SPAN&gt;&lt;STRONG&gt;Chip_IOCON_Init()&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;Chip_IOCON_Deinit()&lt;/STRONG&gt;&lt;SPAN&gt; function in LPCOpen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:02:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-PIO0-4-floating-input-and-WAKEPAD-DISABLE-register/m-p/562955#M16582</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:02:51Z</dc:date>
    </item>
  </channel>
</rss>

