<?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: USART 2 CFG register don't change in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-2-CFG-register-don-t-change/m-p/566708#M17378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pmoreira on Fri May 01 09:40:23 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi R2D2, many thanks for the quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You Have reason, I forgot that the LPC812M101JD20 have 2 serial ports and LPC812M101JDH20 have 3 serial ports (my fault was the 'H').&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:08:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:08:50Z</dc:date>
    <item>
      <title>USART 2 CFG register don't change</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-2-CFG-register-don-t-change/m-p/566706#M17376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pmoreira on Fri May 01 08:33:57 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all, I am working with a proprietary hardware based in a LPC812M101JD20 that work ok with usart0 &amp;amp; usart1 port, but when try to change any port&amp;nbsp; to usart2 the system don't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I debug the code using LPCXpresso&amp;nbsp; and found that the CFG register of usart2 don't change when the code write in this. I use the function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;STATIC INLINE void Chip_UART_ConfigData(LPC_USART_T *pUART, uint32_t config)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t reg;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;reg = pUART-&amp;gt;CFG &amp;amp; ~((0x3 &amp;lt;&amp;lt; 2) | (0x3 &amp;lt;&amp;lt; 4) | (0x1 &amp;lt;&amp;lt; 6) | UART_CFG_RESERVED);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pUART-&amp;gt;CFG = reg | config;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, the strangest is that when I test the same code in a LPCXpresso LPC812 board the code work ok with usart 0,1 &amp;amp; 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have any idea that is he reason for this anomaly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thinking in a hardware error , what is the possible problem in the proprietary hardware? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I attach the file for screen-shot for the debug session on the lpcxpresso software that show the problem, please see the USART2 CFG register, is in zero after the code wrote the value 0x05 in this register.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:08:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-2-CFG-register-don-t-change/m-p/566706#M17376</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: USART 2 CFG register don't change</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-2-CFG-register-don-t-change/m-p/566707#M17377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Fri May 01 08:53:03 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: pmoreira&lt;/STRONG&gt;&lt;BR /&gt;Hi all, I am working with a proprietary hardware based in a LPC812M101JD20 that work ok with usart0 &amp;amp; usart1 port, but when try to change any port&amp;nbsp; to usart2 the system don't work.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How many USARTs has this chip&amp;nbsp; :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: pmoreira&lt;/STRONG&gt;&lt;BR /&gt;Now, the strangest is that when I test the same code in a LPCXpresso LPC812 board the code work ok with usart 0,1 &amp;amp; 2.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's not strange, that's a different chip&amp;nbsp; :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:08:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-2-CFG-register-don-t-change/m-p/566707#M17377</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: USART 2 CFG register don't change</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USART-2-CFG-register-don-t-change/m-p/566708#M17378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pmoreira on Fri May 01 09:40:23 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi R2D2, many thanks for the quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You Have reason, I forgot that the LPC812M101JD20 have 2 serial ports and LPC812M101JDH20 have 3 serial ports (my fault was the 'H').&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:08:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USART-2-CFG-register-don-t-change/m-p/566708#M17378</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:08:50Z</dc:date>
    </item>
  </channel>
</rss>

