<?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: LPC1857 USART Problem</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635593#M25099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You are welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After you try it, if you still have question, just let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If your question is solved, please help to mark the correct answer to close the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 09:20:23 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-01-24T09:20:23Z</dc:date>
    <item>
      <title>LPC1857 USART Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635588#M25094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Is anyone able to help me. I am new to the LPC1857.&lt;/P&gt;&lt;P&gt;I am using the MCB1857 development board and i want to use USART3.&lt;/P&gt;&lt;P&gt;I can send characters after configuration using the below:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_USART3-&amp;gt;THR = 'K';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to get the interrupt to trigger at all. My code is:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*protoctype*/&lt;/P&gt;&lt;P&gt;__irq void UART3_IRQHandler (void);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*****************************************************************************/&lt;BR /&gt;/**************** SET UP USART 3 *************************************/&lt;BR /&gt; LPC_SCU-&amp;gt;SFSP2_3 = 0x02;&lt;BR /&gt; LPC_SCU-&amp;gt;SFSP2_4 = 0x02;&lt;BR /&gt; &lt;BR /&gt; LPC_USART3-&amp;gt;LCR = 0x83; /*line control register.. stop, data bits etc.... 8 data bits, 1stop bit, NO parity*/ &lt;BR /&gt; LPC_USART3-&amp;gt;FDR = 0; /*fractional divide*/&lt;BR /&gt; LPC_USART3-&amp;gt;DLL = 78; /*divide latch LSB... 9600 buad*/&lt;BR /&gt; LPC_USART3-&amp;gt;DLM = 0; /*divide latch MSB*/&lt;BR /&gt; LPC_USART3-&amp;gt;LCR = 0x03; /* disab;e DLAB*/&lt;BR /&gt; LPC_USART3-&amp;gt;FCR = 0x07; /*Fifo buffer*/&lt;BR /&gt; LPC_USART3-&amp;gt;IER = 0x01; /*enable interupt*/&lt;BR /&gt; &lt;BR /&gt; NVIC_SetPriority(USART3_IRQn, 1);&lt;BR /&gt; NVIC_EnableIRQ(USART3_IRQn); /*enable USART3 interupt*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/********************************************************************************/&lt;BR /&gt;/* ####### USART interupt function ########################## */&lt;BR /&gt;/********************************************************************************/&lt;BR /&gt;__irq void UART3_IRQHandler(void) &lt;BR /&gt; {&lt;BR /&gt; unsigned short ushLocalVar = 0;&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;/*recieving a byte*/&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if(LPC_USART3-&amp;gt;LSR &amp;amp; 0x01)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;ushLocalVar = LPC_USART3-&amp;gt;RBR;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp; &amp;nbsp;&amp;nbsp;if((ushLocalVar == 'A') || (ushLocalVar == 'a'))&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/*transmit a byte*/&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(LPC_USART3-&amp;gt;LSR &amp;amp; 0x20)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_USART3-&amp;gt;THR = 'K';&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_USART3-&amp;gt;IER = 0x01; /*re-enable interupt*/&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:23:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635588#M25094</guid>
      <dc:creator>andrewbarningha</dc:creator>
      <dc:date>2017-01-20T13:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 USART Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635589#M25095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew Barningham,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; About the LPC1857 UART3 interrupt code, you can refer to our LPCopen code for the MCB1857 board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;1. LPCXpresso IDE project&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/assets/downloads/data/en/software/lpcopen_2_20_lpcxpresso_keil_mcb_1857.zip" title="http://www.nxp.com/assets/downloads/data/en/software/lpcopen_2_20_lpcxpresso_keil_mcb_1857.zip"&gt;http://www.nxp.com/assets/downloads/data/en/software/lpcopen_2_20_lpcxpresso_keil_mcb_1857.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Folder:lpcopen_2_12_lpcxpresso_keil_mcb_1857\periph_uart&lt;/P&gt;&lt;P&gt;2, IAR and MDK project&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/assets/downloads/data/en/software/lpcopen_2_20_keil_iar_keil_mcb_1857.zip" title="http://www.nxp.com/assets/downloads/data/en/software/lpcopen_2_20_keil_iar_keil_mcb_1857.zip"&gt;http://www.nxp.com/assets/downloads/data/en/software/lpcopen_2_20_keil_iar_keil_mcb_1857.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Folder:lpcopen_2_12_keil_iar_keil_mcb_1857\applications\lpc18xx_43xx\iar_ewarm_projects\keil_mcb_1857\periph\periph_uart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;App_Interrupt_Test() function is the UART3 interrupt configuration and test function.&lt;/P&gt;&lt;P&gt;You can run the periph_uart code in your MCB1857 board directly. The UART port is UART0/UART3. J16 ,J13 should connect pin2-3.&lt;/P&gt;&lt;P&gt;Please test the official uart project at first.&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jan 2017 06:42:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635589#M25095</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-22T06:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 USART Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635590#M25096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's great thanks for your help.&lt;/P&gt;&lt;P&gt;I seem to be missing the chip.h and board.h header files and unable to find them.&lt;/P&gt;&lt;P&gt;Is it possible you can advise me where to find them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 11:18:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635590#M25096</guid>
      <dc:creator>andrewbarningha</dc:creator>
      <dc:date>2017-01-23T11:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 USART Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635591#M25097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew Barningham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can find the chip.h in the lpc_chip_18xx lib, board.h in lpc_board_keil_mcb_1857 lib.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Take the lpcopen&amp;nbsp; lpcxpresso project as an example:&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/12577i7FFC97A352C9ECA3/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;&amp;nbsp; When you add the project, you must add the lpc_board_keil_mcb_1857 and lpc_chip_18xx at first, then add your own project or other application project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 02:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635591#M25097</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-24T02:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 USART Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635592#M25098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;I will try that.... thank you very much for your help.&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 08:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635592#M25098</guid>
      <dc:creator>andrewbarningha</dc:creator>
      <dc:date>2017-01-24T08:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857 USART Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635593#M25099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You are welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After you try it, if you still have question, just let me know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If your question is solved, please help to mark the correct answer to close the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 09:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-USART-Problem/m-p/635593#M25099</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-24T09:20:23Z</dc:date>
    </item>
  </channel>
</rss>

