<?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: I'm using LPC11A14. The pull-up fail when I configure the main source clock in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-m-using-LPC11A14-The-pull-up-fail-when-I-configure-the-main/m-p/565517#M17103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henry,&lt;/P&gt;&lt;P&gt;Sorry I don't have a board to try and test.&lt;/P&gt;&lt;P&gt;One question.&amp;nbsp; Did you enable the SYSAHBCLKCTRL[IOCON] block clock?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2016 21:35:43 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2016-07-13T21:35:43Z</dc:date>
    <item>
      <title>I'm using LPC11A14. The pull-up fail when I configure the main source clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-m-using-LPC11A14-The-pull-up-fail-when-I-configure-the-main/m-p/565516#M17102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the LPC11A14, I need to use the on chip pull-up resistor on my GPIO P0_28 as input port. It works good. But it fail when I configure de PLL output as my main clock source.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MAINCLKUEN_bit.ENA = 0; // in this point the pull-up is working very good!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MAINCLKSEL_bit.SEL = 3; // in this point the pull-up is working very good!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MAINCLKUEN_bit.ENA = 1; // after execution of this code, the pull-up is no more working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To see the pull-up active, I used a voltmeter in the P0_28 pin. When it is working, I see 2,8V (I expected 3,3V, but with 2,8V is working). But when it is not working, I see 0,6V in this pin.&lt;/P&gt;&lt;P&gt;I used the function &lt;SPAN style="font-family: 'courier new', courier;"&gt;InitClock&lt;/SPAN&gt; to configure the main clock and the PLL. If I change the divisor (second parameter), the voltage in the pin changes too.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more informations, my complete code is:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;void main(void)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; //GPIO configuration:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; P0DIR_bit.DIR28=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; IOCON_P0_28_bit.FUNC=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; IOCON_P0_28_bit.MODE=2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; //Configuration of clock&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; InitClock(240MHZ, 5); &lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;//&amp;lt;&amp;lt;&amp;lt; PROBLEM INSIDE THIS FUNCTION&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; while(true)&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; /* my code */&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;void InitClock(Int32U pllclock, Int32U ahbdiv) //page. 27&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Enable XTAL Oscilator */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; PDRUNCFG_bit.XTAL_PD = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Enable Internal RC oscilator */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; PDRUNCFG_bit.IRC_PD = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Select internal RC oscilator for SYS clock source */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MAINCLKUEN_bit.ENA = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MAINCLKSEL_bit.SEL = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MAINCLKUEN_bit.ENA = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Configure System PLL */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Power-down System PLL */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; PDRUNCFG_bit.SYSPLL_PD = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Select XTAL Oscilator for SYS PLL input */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; SYSPLLCLKUEN_bit.ENA = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; SYSPLLCLKSEL_bit.SEL = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //0=IRC,&amp;nbsp; 1=XTAL,&amp;nbsp; 2=CLKIN pin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; SYSPLLCLKUEN_bit.ENA = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Calculate M */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Int32U m = pllclock/(XTAL_OSC_FREQ*(2*2)) - 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; assert(m&amp;lt;32);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Configure PLL frequency */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; SYSPLLCTRL_bit.MSEL = m;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; SYSPLLCTRL_bit.PSEL = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Power-up PLL */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; PDRUNCFG_bit.SYSPLL_PD = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Set System AHB Clock divider */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; SYSAHBCLKDIV_bit.DIV = ahbdiv;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Wait until PLL locks */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; while(!(SYSPLLSTAT_bit.LOCK));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; /* Select System PLL Output for SYS clock source */&amp;nbsp;&amp;nbsp; //page. 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MAINCLKUEN_bit.ENA = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MAINCLKSEL_bit.SEL = 3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MAINCLKUEN_bit.ENA = 1;&amp;nbsp; &lt;STRONG style="color: #e23d39;"&gt;//&amp;lt;&amp;lt;&amp;lt; PROBLEM AFTER THIS EXECUTION&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 02:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-m-using-LPC11A14-The-pull-up-fail-when-I-configure-the-main/m-p/565516#M17102</guid>
      <dc:creator>henryfabriciopi</dc:creator>
      <dc:date>2016-07-13T02:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: I'm using LPC11A14. The pull-up fail when I configure the main source clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-m-using-LPC11A14-The-pull-up-fail-when-I-configure-the-main/m-p/565517#M17103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henry,&lt;/P&gt;&lt;P&gt;Sorry I don't have a board to try and test.&lt;/P&gt;&lt;P&gt;One question.&amp;nbsp; Did you enable the SYSAHBCLKCTRL[IOCON] block clock?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 21:35:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-m-using-LPC11A14-The-pull-up-fail-when-I-configure-the-main/m-p/565517#M17103</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-07-13T21:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: I'm using LPC11A14. The pull-up fail when I configure the main source clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-m-using-LPC11A14-The-pull-up-fail-when-I-configure-the-main/m-p/565518#M17104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I do it in my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Enable GPIO Clock */&lt;/P&gt;&lt;P&gt;&amp;nbsp; SYSAHBCLKCTRL_bit.GPIO = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Enable IOCON Clock */&lt;/P&gt;&lt;P&gt;&amp;nbsp; SYSAHBCLKCTRL_bit.IOCON = 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 00:04:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-m-using-LPC11A14-The-pull-up-fail-when-I-configure-the-main/m-p/565518#M17104</guid>
      <dc:creator>henryfabriciopi</dc:creator>
      <dc:date>2016-07-14T00:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: I'm using LPC11A14. The pull-up fail when I configure the main source clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I-m-using-LPC11A14-The-pull-up-fail-when-I-configure-the-main/m-p/565519#M17105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution. I changed the microcontroler and now is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all.&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 12:51:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I-m-using-LPC11A14-The-pull-up-fail-when-I-configure-the-main/m-p/565519#M17105</guid>
      <dc:creator>henryfabriciopi</dc:creator>
      <dc:date>2016-07-27T12:51:12Z</dc:date>
    </item>
  </channel>
</rss>

