<?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: LPC1833 USART2 doesn't work, why?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1833-USART2-doesn-t-work-why/m-p/661345#M26339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick Witting,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the information update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, UART2 clock open is the must options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, the best way to check is debugging and checking the according register directly, whether it is the needed result or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now, do you have any other question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If your question is solved, please help to close this case by marking the correct answer.&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;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>Thu, 15 Dec 2016 01:54:05 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2016-12-15T01:54:05Z</dc:date>
    <item>
      <title>LPC1833 USART2 doesn't work, why?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1833-USART2-doesn-t-work-why/m-p/661342#M26336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am working on a LPC1833.&lt;/P&gt;&lt;P&gt;i managed to get the UART1 run and was able to send and receive my necessery Data.&lt;/P&gt;&lt;P&gt;Since this was just a useful possibility for the first testing, i now use the USART2.&lt;/P&gt;&lt;P&gt;The following things i have changed:&lt;/P&gt;&lt;P&gt;LPC_UART1 -&amp;gt; LPC_USART2&lt;/P&gt;&lt;P&gt;RX Pin = 14 -&amp;gt; RX Pin 16&lt;/P&gt;&lt;P&gt;TX Pin = 13 -&amp;gt; TX Pin 15&lt;/P&gt;&lt;P&gt;UART1_IRQHandler -&amp;gt;&amp;nbsp;UART2_IRQHandler&lt;/P&gt;&lt;P&gt;CLK_MX_UART1 -&amp;gt;&amp;nbsp;CLK_MX_UART2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it was not possible for me to send a single byte via USART2.&lt;/P&gt;&lt;P&gt;Did i missed something in the setup. I also recognized that in USART2 the TER2 is set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I removed this from the init because this register (TER2 not TER1) is not described in the Reference manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be great.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 10:24:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1833-USART2-doesn-t-work-why/m-p/661342#M26336</guid>
      <dc:creator>pat_wit</dc:creator>
      <dc:date>2016-12-09T10:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1833 USART2 doesn't work, why?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1833-USART2-doesn-t-work-why/m-p/661343#M26337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi patrick witting,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you change the pin to USART2, did you select the correct mode function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is better to post your according code for checking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Besides, please give us the full name of your chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for you reply!&lt;/P&gt;&lt;P&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>Wed, 14 Dec 2016 09:48:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1833-USART2-doesn-t-work-why/m-p/661343#M26337</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-12-14T09:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1833 USART2 doesn't work, why?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1833-USART2-doesn-t-work-why/m-p/661344#M26338</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 managed to get the USART2 to run.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First i have to enable the Base Clock of USART2 (with UART1 it is not necessary):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Chip_Clock_EnableBaseClock(CLK_BASE_UART2);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Also it was necessary to change the lines setting the TER value in the Init file in IP_UART_Init(...):&lt;/P&gt;&lt;P&gt;&lt;EM&gt; //pUART-&amp;gt;TER2 = UART_TER2_TXEN;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; pUART-&amp;gt;TER1 = UART_TER1_TXEN;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; /* Wait for current transmit complete */&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; while (!(pUART-&amp;gt;LSR &amp;amp; UART_LSR_THRE)) {}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; /* Disable Tx */&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; //pUART-&amp;gt;TER2 = 0;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; pUART-&amp;gt;TER1 = 0;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this changes it works pretty well.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 10:22:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1833-USART2-doesn-t-work-why/m-p/661344#M26338</guid>
      <dc:creator>pat_wit</dc:creator>
      <dc:date>2016-12-14T10:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1833 USART2 doesn't work, why?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1833-USART2-doesn-t-work-why/m-p/661345#M26339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick Witting,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the information update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, UART2 clock open is the must options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, the best way to check is debugging and checking the according register directly, whether it is the needed result or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now, do you have any other question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If your question is solved, please help to close this case by marking the correct answer.&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;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>Thu, 15 Dec 2016 01:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1833-USART2-doesn-t-work-why/m-p/661345#M26339</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-12-15T01:54:05Z</dc:date>
    </item>
  </channel>
</rss>

