<?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中的主题 Re: Pulldown dont work, LPC1769 only</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941339#M37522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice_Yang,&lt;BR /&gt;first thank you for your answer.&lt;/P&gt;&lt;P&gt;the problem is not the I2C Bus but only these pins in GPIO mode:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today i have test this on a new LPCXpresso1769 Board Revision D 2015&amp;nbsp; OM13085&lt;BR /&gt;The controller is labled:&lt;BR /&gt;LPC1769FBD100&lt;BR /&gt;SAS558.1&amp;nbsp; 01&lt;BR /&gt;ZSD1524A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same problem: the internal pulldowns in GPIO mode dont work on P0.19 and P0.20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My tests:&lt;BR /&gt;After power on the Board, all inputs are configured as input as default and the cpu clocks with the internal RC at 4MHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first main code has only a loop:&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; while (1) ;&amp;nbsp; // loop forever&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to simplyfy the test i uses 3 Pins of the Board, because they are direkt side by side on the LPCXpresso board:&lt;BR /&gt;these pins are:&lt;BR /&gt;P0.20&amp;nbsp; // at this pin there is a problem&lt;BR /&gt;P0.19&amp;nbsp; // at this pin there is a problem&lt;BR /&gt;P4.29&amp;nbsp; // no problem, only to compare the behavier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC_01.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90561i261DED24804ECD88/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC_01.jpg" alt="LPC_01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you measure the voltage level you see, that&lt;BR /&gt;P0.19 = near VCC 3,3V&lt;BR /&gt;P0.20 = near VCC 3,3V&lt;BR /&gt;P4.29 = ca. 2,3V&amp;nbsp; (internal pullup is a current source)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i enable the pulldowns of the P4.29 and for P0.19 and P0.20:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC_02.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90573i8774A6DCFE2A2663/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC_02.jpg" alt="LPC_02.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see the following voltages:&lt;BR /&gt;P0.19 = 3,0V&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // that is not correct&lt;BR /&gt;P0.20 = 3,0V&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // that is not correct&lt;BR /&gt;P4.29 = 0,1 Volt&amp;nbsp; // okay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next test, i have connected external pulldowns and found that you need a lot of current to pulldown these two pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to minimize an error of any header file or so, i give you the complete code here&lt;BR /&gt;you can copy and paste it in your main loop. you dont need any other files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;BR /&gt;&lt;P&gt;#define PINMODE1 *(volatile unsigned int*) 0x4002C044&amp;nbsp; // Pinmode for the P0.19 and P0.20&lt;BR /&gt;#define PINMODE9 *(volatile unsigned int*) 0x4002C064&amp;nbsp; // Pinmode for the P4.29 pin BIT 26 and 27&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; PINMODE9 = (3 &amp;lt;&amp;lt; 26);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // enable pull down for P4.29&lt;BR /&gt;&amp;nbsp; PINMODE1 =&amp;nbsp;&amp;nbsp; (3 &amp;lt;&amp;lt; 6)&amp;nbsp;&amp;nbsp; // enable pull down for P0.19&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | (3 &amp;lt;&amp;lt; 8);&amp;nbsp; // enable pull down for P0.20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while (1) ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // loop forever&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i set the portmode to "Pin has neither pull-up nor pull-down resistor enabled" value 0x02&lt;/P&gt;&lt;P&gt;the pins goes high and have problems to pull it low with external resistor.&lt;/P&gt;&lt;P&gt;with external 10 K pulldown the level is 2,465V&lt;BR /&gt;with external 1K pulldown the level is 0,760V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Info: All measures are done with a high impedance &amp;gt;10 GOhm Multimeter DM3068 Rigol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2019 14:20:51 GMT</pubDate>
    <dc:creator>berndsirozynski</dc:creator>
    <dc:date>2019-07-08T14:20:51Z</dc:date>
    <item>
      <title>Pulldown dont work, LPC1769 only</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941337#M37520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;i do some tests with the GPIO Pulldown and have found, that in the Device LPC1769 only, not in LPC1768&lt;BR /&gt;the Pulldowns do not work on two pins. These Portpins are also used for I2C.1 but not used now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pulldowns on I2C.1 pins do not work, but LPC1769FBD100 only&lt;BR /&gt;PIN Number:58 Port:P0.20 also shared also with I2C SCL1&lt;BR /&gt;PIN Number:59 Port:P0.19 also shared also with I2C SDA1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testobject:&lt;BR /&gt;LPCXpresso LPC1769 REV C (2010)&amp;nbsp; LPC1769FBD100 &lt;BR /&gt;Pin P0.19 SDA1&lt;BR /&gt;Pin P0.20 SCL1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set the Pins to normal GPIO Input Mode and enabled the Pulldowns.&lt;BR /&gt;But the pins are always high. The Voltmeter shows 2,92 Volt with measured 3,13 Volt CPU Voltage.&lt;BR /&gt;Normaly a High measured on input configured pin are ca. 2,3 Volt because of internal "current sources"&lt;BR /&gt;These 2 Pins i can measure 2,92V &lt;BR /&gt;Normaly if i enable the internal pulldown, the voltage falls down to zero.&lt;BR /&gt;but only these two pins in LPC1769 works different. Enabling the Pulldown do nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same test with the I2C.2 peripheral and other port pins&lt;BR /&gt;the pulldowns works correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same Software on LPC1768 and LPC1769 have differnt Portlevels at these 2 pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it is only a problem in the LPC1769 ? with Revision ???&lt;BR /&gt;My Testboard is an LPC1769 REV C (2010)&lt;BR /&gt;My CPU on the LPCXpresso Board is labled: &lt;BR /&gt;LPC1769FBD100&lt;BR /&gt;S2N525.1&lt;BR /&gt;ZSD1406A&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Bernd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Testcode:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp; // first i test the GPIO P4.29 as input with pulldown enabled&lt;BR /&gt;&amp;nbsp; // this pin has also an alternate for USB_D+ bust not enabled now&lt;BR /&gt;&amp;nbsp; LPC_PINSEL9.bits.P4_29 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 0=Portmode&lt;BR /&gt;&amp;nbsp; LPC_FIO4DIR.bits.P4_29 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Direction 0=Input, 1=output&lt;BR /&gt;&amp;nbsp; LPC_PINMODE9.bits.P4_29 = 3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 3=Pulldown,&amp;nbsp; 2=Pin has neither pull-up nor pull-down resistor enabled.&lt;BR /&gt;&amp;nbsp; LPC_PINMODE_OD4.bits.P4_29 = 0;&amp;nbsp; // 0=normal Mode, 1 = Open Drain&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // now, the pin P4.29 is low 0,000 Volt&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; // the same procedure with P0.00 this is also the pin for SDA from I2C.1&lt;BR /&gt;&amp;nbsp; // setting to portmode with pulldown&lt;BR /&gt;&amp;nbsp; LPC_PINSEL0.bits.P0_0 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 0=Portmode, Function&amp;nbsp; 3 = I2C SDA1&lt;BR /&gt;&amp;nbsp; LPC_FIO0DIR.bits.P0_0 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Direction 0=Input, 1=output&lt;BR /&gt;&amp;nbsp; LPC_PINMODE0.bits.P0_0 = 3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 3=Pulldown,&amp;nbsp; 2=Pin has neither pull-up nor pull-down resistor enabled.&lt;BR /&gt;&amp;nbsp; LPC_PINMODE_OD0.bits.P0_0 = 0;&amp;nbsp; // 0=normal Mode, 1 = Open Drain&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // now, the pin is low 0,000 Volt&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; // the same procedure with P0.10 this is also the pin for SDA2 from I2C.2&lt;BR /&gt;&amp;nbsp; // setting to portmode with pulldown&lt;BR /&gt;&amp;nbsp; LPC_PINSEL0.bits.P0_10 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 0=Portmode, Function 2 = I2C SDA2&lt;BR /&gt;&amp;nbsp; LPC_FIO0DIR.bits.P0_10 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Direction 0=Input, 1=output&lt;BR /&gt;&amp;nbsp; LPC_PINMODE0.bits.P0_10 = 3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 3=Pulldown,&amp;nbsp; 2=Pin has neither pull-up nor pull-down resistor enabled.&lt;BR /&gt;&amp;nbsp; LPC_PINMODE_OD0.bits.P0_10 = 0;&amp;nbsp; // 0=normal Mode, 1 = Open Drain&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // now, the pin is low 0,000 Volt&lt;BR /&gt;&lt;BR /&gt;// !!!!!! ---&amp;gt; PROBLEMS on pin P0.19 and P0.20&amp;nbsp; but onyl LPC1769 not in LPC1768 &amp;lt;-----&lt;BR /&gt;&amp;nbsp; LPC_PINSEL1.bits.P0_19 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 0=Portmode, Function&amp;nbsp; 3 = I2C SDA1&lt;BR /&gt;&amp;nbsp; LPC_FIO0DIR.bits.P0_19 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Direction 0=Input, 1=output&lt;BR /&gt;&amp;nbsp; LPC_PINMODE1.bits.P0_19 = 3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 3=Pulldown,&amp;nbsp; 2=Pin has neither pull-up nor pull-down resistor enabled.&lt;BR /&gt;&amp;nbsp; LPC_PINMODE_OD0.bits.P0_19 = 0;&amp;nbsp; // 0=normal Mode, 1 = Open Drain&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // !!!!! now, the pin P0.19 is HIGH 2,914 Volt&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; LPC_PINSEL1.bits.P0_20 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 0=Portmode, Function&amp;nbsp; 3 = I2C SCL1&lt;BR /&gt;&amp;nbsp; LPC_FIO0DIR.bits.P0_20 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Direction 0=Input, 1=output&lt;BR /&gt;&amp;nbsp; LPC_PINMODE1.bits.P0_20 = 3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 3=PullDown, Pin has neither pull-up nor pull-down resistor enabled.&lt;BR /&gt;&amp;nbsp; LPC_PINMODE_OD0.bits.P0_20 = 0;&amp;nbsp; // 1 = Open Drain, 0=normal&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // !!!!! now, the pin P0.20 is HIGH 2,914 Volt&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; LPC_PCONP.bits.PCI2C1=0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // disable I2C1 in the power config register&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // !!!!! Pin P0.19 and P0.20 are always HIGH&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 19:47:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941337#M37520</guid>
      <dc:creator>berndsirozynski</dc:creator>
      <dc:date>2019-07-04T19:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldown dont work, LPC1769 only</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941338#M37521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="284106" data-username="berndsirozynski" href="https://community.nxp.com/people/berndsirozynski"&gt;Bernd Sirozynski&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please check whether the two pins connected to other parts on your board, for example I2C-EEPROM.&lt;/P&gt;&lt;P&gt;Or you can send the schematic to me, I help you to review. For this is a old version(2010), I only have the new one(2016).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 08:33:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941338#M37521</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-07-08T08:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldown dont work, LPC1769 only</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941339#M37522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice_Yang,&lt;BR /&gt;first thank you for your answer.&lt;/P&gt;&lt;P&gt;the problem is not the I2C Bus but only these pins in GPIO mode:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today i have test this on a new LPCXpresso1769 Board Revision D 2015&amp;nbsp; OM13085&lt;BR /&gt;The controller is labled:&lt;BR /&gt;LPC1769FBD100&lt;BR /&gt;SAS558.1&amp;nbsp; 01&lt;BR /&gt;ZSD1524A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same problem: the internal pulldowns in GPIO mode dont work on P0.19 and P0.20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My tests:&lt;BR /&gt;After power on the Board, all inputs are configured as input as default and the cpu clocks with the internal RC at 4MHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first main code has only a loop:&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; while (1) ;&amp;nbsp; // loop forever&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to simplyfy the test i uses 3 Pins of the Board, because they are direkt side by side on the LPCXpresso board:&lt;BR /&gt;these pins are:&lt;BR /&gt;P0.20&amp;nbsp; // at this pin there is a problem&lt;BR /&gt;P0.19&amp;nbsp; // at this pin there is a problem&lt;BR /&gt;P4.29&amp;nbsp; // no problem, only to compare the behavier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC_01.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90561i261DED24804ECD88/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC_01.jpg" alt="LPC_01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you measure the voltage level you see, that&lt;BR /&gt;P0.19 = near VCC 3,3V&lt;BR /&gt;P0.20 = near VCC 3,3V&lt;BR /&gt;P4.29 = ca. 2,3V&amp;nbsp; (internal pullup is a current source)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i enable the pulldowns of the P4.29 and for P0.19 and P0.20:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC_02.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90573i8774A6DCFE2A2663/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC_02.jpg" alt="LPC_02.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see the following voltages:&lt;BR /&gt;P0.19 = 3,0V&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // that is not correct&lt;BR /&gt;P0.20 = 3,0V&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // that is not correct&lt;BR /&gt;P4.29 = 0,1 Volt&amp;nbsp; // okay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next test, i have connected external pulldowns and found that you need a lot of current to pulldown these two pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to minimize an error of any header file or so, i give you the complete code here&lt;BR /&gt;you can copy and paste it in your main loop. you dont need any other files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;BR /&gt;&lt;P&gt;#define PINMODE1 *(volatile unsigned int*) 0x4002C044&amp;nbsp; // Pinmode for the P0.19 and P0.20&lt;BR /&gt;#define PINMODE9 *(volatile unsigned int*) 0x4002C064&amp;nbsp; // Pinmode for the P4.29 pin BIT 26 and 27&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; PINMODE9 = (3 &amp;lt;&amp;lt; 26);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // enable pull down for P4.29&lt;BR /&gt;&amp;nbsp; PINMODE1 =&amp;nbsp;&amp;nbsp; (3 &amp;lt;&amp;lt; 6)&amp;nbsp;&amp;nbsp; // enable pull down for P0.19&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | (3 &amp;lt;&amp;lt; 8);&amp;nbsp; // enable pull down for P0.20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while (1) ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // loop forever&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i set the portmode to "Pin has neither pull-up nor pull-down resistor enabled" value 0x02&lt;/P&gt;&lt;P&gt;the pins goes high and have problems to pull it low with external resistor.&lt;/P&gt;&lt;P&gt;with external 10 K pulldown the level is 2,465V&lt;BR /&gt;with external 1K pulldown the level is 0,760V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Info: All measures are done with a high impedance &amp;gt;10 GOhm Multimeter DM3068 Rigol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941339#M37522</guid>
      <dc:creator>berndsirozynski</dc:creator>
      <dc:date>2019-07-08T14:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldown dont work, LPC1769 only</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941340#M37523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;STRONG class=""&gt;&lt;SPAN class=""&gt;Bernd Sirozynski&lt;/SPAN&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;I know you config the pins to GPIO function, while on the demo board, the two pins have already connected&lt;/P&gt;&lt;P&gt;to other chip. please cut the P0.19 and P0.20 to have a try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90638iC1C2F8F4E3E61943/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 10:02:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941340#M37523</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-07-09T10:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldown dont work, LPC1769 only</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941341#M37524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice_Yang,&lt;BR /&gt;you're absolutely right, I didn't see that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your information,&lt;BR /&gt;I spent hours looking for the problem,&lt;/P&gt;&lt;P&gt;I've been working with these parts for years and I didn't even notice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting old (I am old) :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 07:54:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Pulldown-dont-work-LPC1769-only/m-p/941341#M37524</guid>
      <dc:creator>berndsirozynski</dc:creator>
      <dc:date>2019-07-10T07:54:51Z</dc:date>
    </item>
  </channel>
</rss>

