<?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: UART Status Register Bits for LPC54102 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-Status-Register-Bits-for-LPC54102/m-p/689030#M27820</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="295886" data-username="robertalkire" href="https://community.nxp.com/people/robertalkire"&gt;Robert Alkire&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-size: 14px; line-height: 1.5; font-family: 微软雅黑,sans-serif;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;for the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;First, thanks for your reporting.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I was wondering if you can exemplify the detailed steps of testing such as how many break point needs and which line the break points locate.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;After confirming, I'll escalate the question to AE team for the deeper investigation.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I'm looking forward to your reply.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&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: 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, 21 Jun 2017 03:20:23 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2017-06-21T03:20:23Z</dc:date>
    <item>
      <title>UART Status Register Bits for LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-Status-Register-Bits-for-LPC54102/m-p/689029#M27819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on UART0 receive via interrupt with FreeRTOS. It was detecting error bits when it should not have.&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt; I am using LPCopen 3.03 with GCC 4.9.3 on a LPC54102 (custom board) M4F only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The problem was traced to a discrepancy between the data sheet and the include file uart_5410x.h with the UART Status Register Bits. It defines UART_RXDERR as 0xF100. These bits map to (8)&amp;nbsp;OVERRUNINT, (12) START, (13)&amp;nbsp;FRAMERRINT, (14)&amp;nbsp;PARITYERRINT, and (15)&amp;nbsp;RXNOISEINT.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;START is not an error, it is status of when a start bit is seen on the receiver input. The use of the start status&amp;nbsp;would not be handled by an error routine. Also there is a define for UART_START.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;It would also be more useful to have individual defines for each of the status as was done in the interrupt register bits and on other processors. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Another&amp;nbsp;&amp;nbsp;error &amp;nbsp;exists in the same UART Status Register bits,&amp;nbsp;UART_TXDERR maps to bit 9 (0x200). Bit 9 is shown as reserved in the data sheet although the comment shows TX underrun. The data sheet mentions underrun in the feature list for the UART but there aren't any bits in the interrupt register, status register for underrun.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 22:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-Status-Register-Bits-for-LPC54102/m-p/689029#M27819</guid>
      <dc:creator>robertalkire</dc:creator>
      <dc:date>2017-06-15T22:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: UART Status Register Bits for LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-Status-Register-Bits-for-LPC54102/m-p/689030#M27820</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="295886" data-username="robertalkire" href="https://community.nxp.com/people/robertalkire"&gt;Robert Alkire&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-size: 14px; line-height: 1.5; font-family: 微软雅黑,sans-serif;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;for the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;First, thanks for your reporting.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I was wondering if you can exemplify the detailed steps of testing such as how many break point needs and which line the break points locate.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;After confirming, I'll escalate the question to AE team for the deeper investigation.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I'm looking forward to your reply.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&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: 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, 21 Jun 2017 03:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-Status-Register-Bits-for-LPC54102/m-p/689030#M27820</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-06-21T03:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: UART Status Register Bits for LPC54102</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/UART-Status-Register-Bits-for-LPC54102/m-p/689031#M27821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to clarify, it did not take breakpoints to solve this. The behavior did not match the datasheet and I found the LPCopen include files to be in error. As I've discovered other errors in LPCOpen for this processor, I check against the datasheet before getting into debugging. For example, the datasheet&amp;nbsp;UM10850 Rev 2.4 pg 256 states:&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Interrupts available for Receiver Ready, Transmitter Ready, Transmitter Idle, change&lt;BR /&gt;in receiver break detect, Framing error, Parity error, Overrun, Underrun, Delta CTS&lt;BR /&gt;detect, and receiver sample noise detected&lt;/P&gt;&lt;P&gt;I could not find any bits related to &lt;SPAN&gt;Underrun&amp;nbsp;&lt;/SPAN&gt;in STAT, INTENSET, INTENCLR, or INTENSTAT. &amp;nbsp;If they don't exist, why does&amp;nbsp;UART_TXDERR have a bit for the UART status register LPCOpen 3.03 LPCOPen5410x/lpc_chip_5410x/inc/uart_5410x.h line 52 assigned bit 9 that the datasheet states is reserved.&lt;/P&gt;&lt;P&gt;Also why is, in the same file, bit 12 START part of&amp;nbsp;UART_RXDERR. Data sheet states:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;This bit is set when a start is detected on the receiver input. Its purpose is&lt;BR /&gt;primarily to allow wake-up from Deep-sleep or Power-down mode immediately&lt;BR /&gt;when a start is detected. Cleared by software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I just noticed something when reviewing this. The UART status, interrupt, and configuration &amp;nbsp;register definitions are defined twice in the uart_5410x.h. First from lines 46 to 83, and second from 114 to 171. The example in periph_uart_rb project uses the second&amp;nbsp;set and it is a far better definition and more accurate representation of the registers. I had initially missed this when my search found the first UART Status. It looks like that this is a remnant of old code that should have been deleted and wasn't.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 07:26:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/UART-Status-Register-Bits-for-LPC54102/m-p/689031#M27821</guid>
      <dc:creator>robertalkire</dc:creator>
      <dc:date>2017-06-21T07:26:53Z</dc:date>
    </item>
  </channel>
</rss>

