<?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>NXP DesignsのトピックLPC2388 UART2 Issue</title>
    <link>https://community.nxp.com/t5/NXP-Designs/LPC2388-UART2-Issue/m-p/1080401#M604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to get UART2 working on the LPC2388 microcontroller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, UART0 and UART1 works on it as they are provided in the sample code bundle (using uVision -- the first link under &lt;EM&gt;Embedded Software&lt;/EM&gt;):&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc2000-arm7/arm7-with-512-kb-flash-98-kb-sram-ethernet-usb-2-0-device-host-otg-can-and-10-bit-adc:LPC2388FBD144?tab=Design_Tools_Tab" title="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc2000-arm7/arm7-with-512-kb-flash-98-kb-sram-ethernet-usb-2-0-device-host-otg-can-and-10-bit-adc:LPC2388FBD144?tab=Design_Tools_Tab"&gt;Arm7™ with 512 kB flash, 98 kB SRAM, Ethernet, USB 2.0 Device/Host/OTG, CAN, and 10-bit ADC | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After going through the datasheet and user's manual (also given by the link above under the &lt;EM&gt;Documentation&lt;/EM&gt; tab), I made some additions to include UART2 functionality. I can provide snippets of code upon request, but in short, here are the additions I made to start:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;I am enabling UART2 within the PCONP register (&lt;STRONG&gt;PCONP |= 0x01000000&lt;/STRONG&gt;)&lt;/LI&gt;&lt;LI&gt;I am enabling TXD2 and RXD2 within the PINSEL0 register (&lt;STRONG&gt;PINSEL0&amp;nbsp;|= 0x00500000&lt;/STRONG&gt;)&lt;/LI&gt;&lt;LI&gt;I am installing the interrupt handler using UART2's number (it's&amp;nbsp;&lt;EM&gt;#defined&lt;/EM&gt; as 28 in the header file given by NXP)&lt;/LI&gt;&lt;LI&gt;The way I am initializing UART2 is the same way the sample code is initializing UART0 and UART1, with the exception of the registers (it's U2***, instead of U1*** and U0***).&lt;/LI&gt;&lt;LI&gt;The way I am creating UART2's handler is the same way the sample code is creating the handlers for UART0 and UART1 (once again, with the exception of the registers)&lt;/LI&gt;&lt;LI&gt;The way I&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;am sending out UART2's data&amp;nbsp;is the same way the sample code&amp;nbsp;is sending out the data for UART0 and UART1&amp;nbsp;("")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here some other notes that may/may not help:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;Same baud rates and frequencies are being used&lt;/LI&gt;&lt;LI&gt;I have confirmed that data is going into U2THR register (well, sort of.)&lt;/LI&gt;&lt;LI&gt;The code&amp;nbsp;&lt;EM&gt;seems&lt;/EM&gt; like it is sending out the data, but I am not receiving it on the other side (RealTerm)&lt;UL&gt;&lt;LI&gt;I see data coming out for UART0 and UART1, but nothing for UART2&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Code is not being blocked anywhere&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not see anything unique to UART2 in the user's manual that was not apparent in&amp;nbsp;UART0 and UART1 other than the fact that it is off by default. I know that using an oscilloscope is one of the next options, but I want to rule out everything software related before it comes to that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight on this is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2020 22:19:26 GMT</pubDate>
    <dc:creator>danzarate</dc:creator>
    <dc:date>2020-08-10T22:19:26Z</dc:date>
    <item>
      <title>LPC2388 UART2 Issue</title>
      <link>https://community.nxp.com/t5/NXP-Designs/LPC2388-UART2-Issue/m-p/1080401#M604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to get UART2 working on the LPC2388 microcontroller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, UART0 and UART1 works on it as they are provided in the sample code bundle (using uVision -- the first link under &lt;EM&gt;Embedded Software&lt;/EM&gt;):&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc2000-arm7/arm7-with-512-kb-flash-98-kb-sram-ethernet-usb-2-0-device-host-otg-can-and-10-bit-adc:LPC2388FBD144?tab=Design_Tools_Tab" title="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc2000-arm7/arm7-with-512-kb-flash-98-kb-sram-ethernet-usb-2-0-device-host-otg-can-and-10-bit-adc:LPC2388FBD144?tab=Design_Tools_Tab"&gt;Arm7™ with 512 kB flash, 98 kB SRAM, Ethernet, USB 2.0 Device/Host/OTG, CAN, and 10-bit ADC | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After going through the datasheet and user's manual (also given by the link above under the &lt;EM&gt;Documentation&lt;/EM&gt; tab), I made some additions to include UART2 functionality. I can provide snippets of code upon request, but in short, here are the additions I made to start:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;I am enabling UART2 within the PCONP register (&lt;STRONG&gt;PCONP |= 0x01000000&lt;/STRONG&gt;)&lt;/LI&gt;&lt;LI&gt;I am enabling TXD2 and RXD2 within the PINSEL0 register (&lt;STRONG&gt;PINSEL0&amp;nbsp;|= 0x00500000&lt;/STRONG&gt;)&lt;/LI&gt;&lt;LI&gt;I am installing the interrupt handler using UART2's number (it's&amp;nbsp;&lt;EM&gt;#defined&lt;/EM&gt; as 28 in the header file given by NXP)&lt;/LI&gt;&lt;LI&gt;The way I am initializing UART2 is the same way the sample code is initializing UART0 and UART1, with the exception of the registers (it's U2***, instead of U1*** and U0***).&lt;/LI&gt;&lt;LI&gt;The way I am creating UART2's handler is the same way the sample code is creating the handlers for UART0 and UART1 (once again, with the exception of the registers)&lt;/LI&gt;&lt;LI&gt;The way I&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;am sending out UART2's data&amp;nbsp;is the same way the sample code&amp;nbsp;is sending out the data for UART0 and UART1&amp;nbsp;("")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here some other notes that may/may not help:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;Same baud rates and frequencies are being used&lt;/LI&gt;&lt;LI&gt;I have confirmed that data is going into U2THR register (well, sort of.)&lt;/LI&gt;&lt;LI&gt;The code&amp;nbsp;&lt;EM&gt;seems&lt;/EM&gt; like it is sending out the data, but I am not receiving it on the other side (RealTerm)&lt;UL&gt;&lt;LI&gt;I see data coming out for UART0 and UART1, but nothing for UART2&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Code is not being blocked anywhere&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not see anything unique to UART2 in the user's manual that was not apparent in&amp;nbsp;UART0 and UART1 other than the fact that it is off by default. I know that using an oscilloscope is one of the next options, but I want to rule out everything software related before it comes to that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight on this is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2020 22:19:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/LPC2388-UART2-Issue/m-p/1080401#M604</guid>
      <dc:creator>danzarate</dc:creator>
      <dc:date>2020-08-10T22:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2388 UART2 Issue</title>
      <link>https://community.nxp.com/t5/NXP-Designs/LPC2388-UART2-Issue/m-p/1080402#M605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dan,&lt;/P&gt;&lt;P&gt;If you route the uart2 pins to P2.8/P2.9, what is the result?&lt;/P&gt;&lt;P&gt;BTW, can you enter uart2 transmitter ISR? can you see the signal of uart2 TXD via scope?&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/111516i747FD53A9339A60D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 04:12:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/LPC2388-UART2-Issue/m-p/1080402#M605</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2020-08-12T04:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2388 UART2 Issue</title>
      <link>https://community.nxp.com/t5/NXP-Designs/LPC2388-UART2-Issue/m-p/1080403#M606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;XiangJun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Switching to P2.8 and P2.9 for the pins worked! The&amp;nbsp;issue was actually on my side as I just misread a schematic. I did not notice the 2nd pair of TXD2/RXD2. I can also see that the code is going into the transmitter ISR.&amp;nbsp;All verified with a scope. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 18:24:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NXP-Designs/LPC2388-UART2-Issue/m-p/1080403#M606</guid>
      <dc:creator>danzarate</dc:creator>
      <dc:date>2020-08-12T18:24:57Z</dc:date>
    </item>
  </channel>
</rss>

