<?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: unable to configure UART1 on LPC1124 microcontroller</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884543#M35422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="321436" data-username="pascalcarreweyn" href="https://community.nxp.com/people/pascalcarreweyn"&gt;pascal carreweyn&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;Please assure the UART pin configuration is correct, in further, check interrupt configuration.&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 Apr 2019 02:10:46 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2019-04-08T02:10:46Z</dc:date>
    <item>
      <title>unable to configure UART1 on LPC1124 microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884542#M35421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This piece of code works perfect to setup UART0.&amp;nbsp; After this the UART0 works just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Setup UART for 9600 */&lt;BR /&gt; Chip_UART_Init(LPC_UART0);&lt;BR /&gt; Chip_UART_SetBaud(LPC_UART0, 9600);&lt;BR /&gt; Chip_UART_ConfigData(LPC_UART0, (UART_LCR_WLEN8 | UART_LCR_SBS_1BIT));&lt;BR /&gt; Chip_UART_SetupFIFOS(LPC_UART0, (UART_FCR_FIFO_EN | UART_FCR_TRG_LEV2));&lt;BR /&gt; Chip_UART_TXEnable(LPC_UART0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The piece of code underneath doesn't effect the UART1 registers at all&amp;nbsp; ? What could be the reason of this ? I just changed the UART0 to UART1 and if i debug i can see the addresses are right...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip_UART_Init(LPC_UART1);&lt;BR /&gt; Chip_UART_SetBaud(LPC_UART1, 9600);&lt;BR /&gt; Chip_UART_ConfigData(LPC_UART1, (UART_LCR_WLEN8 | UART_LCR_SBS_1BIT));&lt;BR /&gt; Chip_UART_SetupFIFOS(LPC_UART1, (UART_FCR_FIFO_EN | UART_FCR_TRG_LEV2));&lt;BR /&gt; Chip_UART_TXEnable(LPC_UART1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 21:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884542#M35421</guid>
      <dc:creator>pascalcarreweyn</dc:creator>
      <dc:date>2019-04-05T21:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: unable to configure UART1 on LPC1124 microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884543#M35422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="321436" data-username="pascalcarreweyn" href="https://community.nxp.com/people/pascalcarreweyn"&gt;pascal carreweyn&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;Please assure the UART pin configuration is correct, in further, check interrupt configuration.&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 Apr 2019 02:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884543#M35422</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-04-08T02:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: unable to configure UART1 on LPC1124 microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884544#M35423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i debug the next code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Chip_IOCON_PinMuxSet(LPC_IOCON, IOCON_PIO0_7, (IOCON_FUNC3 | IOCON_MODE_INACT)); /* RXD1 */&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Chip_IOCON_PinMuxSet(LPC_IOCON, IOCON_PIO0_6, (IOCON_FUNC3 | IOCON_MODE_INACT)); /* TXD1 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing happens in the IOCON register when i do the code above....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i do this code for the uart0?&amp;nbsp; this changes the register IOCON&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chip_IOCON_PinMuxSet(LPC_IOCON, IOCON_PIO1_6, (IOCON_FUNC1 | IOCON_MODE_INACT | IOCON_DIGMODE_EN)); /* RXD0 */&lt;BR /&gt; Chip_IOCON_PinMuxSet(LPC_IOCON, IOCON_PIO1_7, (IOCON_FUNC1 | IOCON_MODE_INACT | IOCON_DIGMODE_EN)); /* TXD0 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have no idea why this is the case ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain me what's happening ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is unclear, please provide me an example where PIO0_7 and PIO0_6 is used as UART1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2019 22:03:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884544#M35423</guid>
      <dc:creator>pascalcarreweyn</dc:creator>
      <dc:date>2019-04-15T22:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: unable to configure UART1 on LPC1124 microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884545#M35424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="321436" data-objecttype="3" href="https://community.nxp.com/people/pascalcarreweyn"&gt;pascal carreweyn&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;It seems a bit weird, so please confirm that the correct address areas are written.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79504i5661DC9321D7B984/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I was wondering if you can share a compile-able demo which can replicate this phenomenon, then I can do some testing on my site.&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, 16 Apr 2019 02:35:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884545#M35424</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-04-16T02:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: unable to configure UART1 on LPC1124 microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884546#M35425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addresses are defined in a header file : gpio_112x.h&lt;/P&gt;&lt;P&gt;which i got from an lpc open project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is a part of the definition&lt;/P&gt;&lt;P&gt;typedef enum CHIP_IOCON_PIO {&lt;BR /&gt; IOCON_PIO0_0 = (0x00C &amp;gt;&amp;gt; 2),&lt;BR /&gt; IOCON_PIO0_1 = (0x010 &amp;gt;&amp;gt; 2),&lt;BR /&gt; IOCON_PIO0_2 = (0x01C &amp;gt;&amp;gt; 2),&lt;BR /&gt; IOCON_PIO0_3 = (0x02C &amp;gt;&amp;gt; 2),&lt;BR /&gt; IOCON_PIO0_4 = (0x030 &amp;gt;&amp;gt; 2),&lt;BR /&gt; IOCON_PIO0_5 = (0x034 &amp;gt;&amp;gt; 2),&lt;BR /&gt; IOCON_PIO0_6 = (0x04C &amp;gt;&amp;gt; 2),&lt;BR /&gt; IOCON_PIO0_7 = (0x050 &amp;gt;&amp;gt; 2),&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this part form chip.h&lt;/P&gt;&lt;P&gt;#define LPC_IOCON_BASE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x40044000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define LPC_IOCON ((LPC_IOCON_T *) LPC_IOCON_BASE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also sent the test project files in the attachment on a reply of your email.&amp;nbsp; (i use Version: MCUXpresso IDE v10.3.0 [Build 2200] [2018-12-03])&lt;/P&gt;&lt;P&gt;If you want we can also do a teamviewer session so i can show you what's the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 10:45:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884546#M35425</guid>
      <dc:creator>pascalcarreweyn</dc:creator>
      <dc:date>2019-04-16T10:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: unable to configure UART1 on LPC1124 microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884547#M35426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://we.tl/t-iciBLwsdLv" title="https://we.tl/t-iciBLwsdLv"&gt;WeTransfer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hello Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this link you can find the demo project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 12:36:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884547#M35426</guid>
      <dc:creator>pascalcarreweyn</dc:creator>
      <dc:date>2019-04-16T12:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: unable to configure UART1 on LPC1124 microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884548#M35427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="321436" data-username="pascalcarreweyn" href="https://community.nxp.com/people/pascalcarreweyn" rel="nofollow noopener noreferrer" target="_blank"&gt;pascal carreweyn&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;After having a brief review of the code, I find that the address definition of PIO0_6 and PIO0_7 is not consistent with Table 53 illustrates in the UM10839.&lt;BR /&gt;So please use the modified code to give a try.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;

IOCON_PIO0_6 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x0C4&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
IOCON_PIO0_7 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x0C8&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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>Wed, 17 Apr 2019 02:35:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884548#M35427</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-04-17T02:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: unable to configure UART1 on LPC1124 microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884549#M35428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jeremy,&lt;/P&gt;&lt;P&gt;Now the pio0 6 and pio 07 are configured as uart, the problem was the wrong address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="mcuxpressoide_2019-04-17_13-01-11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64486i02C4E97ECBF04FE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="mcuxpressoide_2019-04-17_13-01-11.png" alt="mcuxpressoide_2019-04-17_13-01-11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now my previous problem stays !!!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;The piece of code underneath doesn't effect the UART1 registers at all&amp;nbsp; ? What could be the reason of this ? I just changed the UART0 to UART1 and if i debug i can see the addresses are right...&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Chip_UART_Init(LPC_UART1);&lt;BR /&gt;Chip_UART_SetBaud(LPC_UART1, 9600);&lt;BR /&gt;Chip_UART_ConfigData(LPC_UART1, (UART_LCR_WLEN8 | UART_LCR_SBS_1BIT));&lt;BR /&gt;Chip_UART_SetupFIFOS(LPC_UART1, (UART_FCR_FIFO_EN | UART_FCR_TRG_LEV2));&lt;BR /&gt;Chip_UART_TXEnable(LPC_UART1);&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I also thought there would be a wrong address but it seems to be something else ?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;in the chip.h&amp;nbsp; we have&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#define LPC_UART0_BASE 0x40008000&lt;BR /&gt;#define LPC_UART1_BASE 0x40020000&lt;BR /&gt;#define LPC_UART2_BASE 0x40024000&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;...&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;#define LPC_UART0 ((LPC_UART_T *) LPC_UART0_BASE)&lt;BR /&gt;#define LPC_UART1 ((LPC_UART_T *) LPC_UART1_BASE)&lt;BR /&gt;#define LPC_UART2 ((LPC_UART_T *) LPC_UART2_BASE)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;in the uart_112x.h we have&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt; * @brief UART register block structure&lt;BR /&gt; */&lt;BR /&gt;typedef struct { /*!&amp;lt; UARTn Structure */&lt;/P&gt;&lt;P&gt;union {&lt;BR /&gt; __IO uint32_t DLL; /*!&amp;lt; Divisor Latch LSB. Least significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider (DLAB = 1). */&lt;BR /&gt; __O uint32_t THR; /*!&amp;lt; Transmit Holding Register. The next character to be transmitted is written here (DLAB = 0). */&lt;BR /&gt; __I uint32_t RBR; /*!&amp;lt; Receiver Buffer Register. Contains the next received character to be read (DLAB = 0). */&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;union {&lt;BR /&gt; __IO uint32_t IER; /*!&amp;lt; Interrupt Enable Register. Contains individual interrupt enable bits for the 7 potential UART interrupts (DLAB = 0). */&lt;BR /&gt; __IO uint32_t DLM; /*!&amp;lt; Divisor Latch MSB. Most significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider (DLAB = 1). */&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;union {&lt;BR /&gt; __O uint32_t FCR; /*!&amp;lt; FIFO Control Register. Controls UART FIFO usage and modes. */&lt;BR /&gt; __I uint32_t IIR; /*!&amp;lt; Interrupt ID Register. Identifies which interrupt(s) are pending. */&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;__IO uint32_t LCR; /*!&amp;lt; Line Control Register. Contains controls for frame formatting and break generation. */&lt;BR /&gt; __IO uint32_t MCR; /*!&amp;lt; Modem Control Register. Only present on UART ports with full modem support. */&lt;BR /&gt; __I uint32_t LSR; /*!&amp;lt; Line Status Register. Contains flags for transmit and receive status, including line errors. */&lt;BR /&gt; __I uint32_t MSR; /*!&amp;lt; Modem Status Register. Only present on UART ports with full modem support. */&lt;BR /&gt; __IO uint32_t SCR; /*!&amp;lt; Scratch Pad Register. Eight-bit temporary storage for software. */&lt;BR /&gt; __IO uint32_t ACR; /*!&amp;lt; Auto-baud Control Register. Contains controls for the auto-baud feature. */&lt;BR /&gt; __I uint32_t RESERVED0;&lt;BR /&gt; __IO uint32_t FDR; /*!&amp;lt; Fractional Divider Register. Generates a clock input for the baud rate divider. */&lt;BR /&gt; __I uint32_t RESERVED1;&lt;BR /&gt; __IO uint32_t TER; /*!&amp;lt; Transmit Enable Register. Turns off UART transmitter for use with software flow control. */&lt;BR /&gt; __I uint32_t RESERVED2[6];&lt;BR /&gt; __IO uint32_t RS485CTRL; /*!&amp;lt; RS-485/EIA-485 Control. Contains controls to configure various aspects of RS-485/EIA-485 modes. */&lt;BR /&gt; __IO uint32_t RS485ADRMATCH; /*!&amp;lt; RS-485/EIA-485 address match. Contains the address match value for RS-485/EIA-485 mode. */&lt;BR /&gt; __IO uint32_t RS485DLY; /*!&amp;lt; RS-485/EIA-485 direction control delay. */&lt;BR /&gt;} LPC_UART_T;&lt;/P&gt;&lt;P&gt;/**&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Any idea what's going on ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2019 11:10:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884549#M35428</guid>
      <dc:creator>pascalcarreweyn</dc:creator>
      <dc:date>2019-04-17T11:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: unable to configure UART1 on LPC1124 microcontroller</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884550#M35429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="321436" data-username="pascalcarreweyn" href="https://community.nxp.com/people/pascalcarreweyn" rel="nofollow noopener noreferrer" target="_blank"&gt;pascal carreweyn&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;After reviewing the demo code carefully, I find that it's unable to enable the clock to the UART1 by calling the Chip_UART_Init(LPC_UART1);.&lt;BR /&gt;In the following void Chip_UART_Init(LPC_UART_T *pUART) function,&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* Initializes the pUART peripheral */&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Chip_UART_Init&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;LPC_UART_T &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;pUART&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_Clock_EnablePeriphClock&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SYSCON_CLOCK_UART0&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//It's the cause of the issue&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_Clock_SetUARTClockDiv&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

 &lt;SPAN class="comment token"&gt;/* Enable FIFOs by default, reset them */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_UART_SetupFIFOS&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pUART&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;UART_FCR_FIFO_EN &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; UART_FCR_RX_RS &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; UART_FCR_TX_RS&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

 &lt;SPAN class="comment token"&gt;/* Default 8N1, with DLAB disabled */&lt;/SPAN&gt;
 &lt;SPAN class="token function"&gt;Chip_UART_ConfigData&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pUART&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;UART_LCR_WLEN8 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; UART_LCR_SBS_1BIT &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; UART_LCR_PARITY_DIS&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

 &lt;SPAN class="comment token"&gt;/* Disable fractional divider */&lt;/SPAN&gt;
 pUART&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;FDR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it's impossible to enable other UART's clock except for the UART0.&lt;BR /&gt;It's the cause of the issue, please to do some modifications about the &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Chip_Clock_EnablePeriphClock(SYSCON_CLOCK_UART0);&lt;/STRONG&gt; &lt;/SPAN&gt;to enable the clock to the UART1.&lt;BR /&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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 style="min- padding: 0px;"&gt;&amp;nbsp;&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>Thu, 18 Apr 2019 03:04:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/unable-to-configure-UART1-on-LPC1124-microcontroller/m-p/884550#M35429</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-04-18T03:04:16Z</dc:date>
    </item>
  </channel>
</rss>

