<?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: Missing bytes with UART and ringbuffer in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Missing-bytes-with-UART-and-ringbuffer/m-p/557776#M15472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by remcopoelstra on Mon Sep 01 12:00:04 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out that the USART0 reports an overrun.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's good to know that the bytes have reached the hardware, but it's a bit strange that an overrun can happen though. I've only a single interrupt source and it's the USART0 interrupt. The RXRDY interrupt never gets disabled (only the TXRDY interrupt is disabled by the chip library).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can it possibly happen that any byte is missed? My understanding of an interrupt is that it has priority over my main loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that assumptions correct for the LPC800?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remco Poelstra&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:59:13 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:59:13Z</dc:date>
    <item>
      <title>Missing bytes with UART and ringbuffer</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Missing-bytes-with-UART-and-ringbuffer/m-p/557775#M15471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by remcopoelstra on Sun Aug 31 07:16:13 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've based my code on the UART ringbuffer example to send and receive bytes (almost an exact copy).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm missing lots of bytes though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes a few get through, sometimes even about 100. But in the end I always miss bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Ringbuffer_GetCount simple tells me it's empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How reliable is the ringbuffer+uart combination?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can the ringbuffer handle being fed by the interrupt handler while also being interrogated from the main loop?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remco Poelstra&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Missing-bytes-with-UART-and-ringbuffer/m-p/557775#M15471</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Missing bytes with UART and ringbuffer</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Missing-bytes-with-UART-and-ringbuffer/m-p/557776#M15472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by remcopoelstra on Mon Sep 01 12:00:04 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out that the USART0 reports an overrun.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's good to know that the bytes have reached the hardware, but it's a bit strange that an overrun can happen though. I've only a single interrupt source and it's the USART0 interrupt. The RXRDY interrupt never gets disabled (only the TXRDY interrupt is disabled by the chip library).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can it possibly happen that any byte is missed? My understanding of an interrupt is that it has priority over my main loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that assumptions correct for the LPC800?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remco Poelstra&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Missing-bytes-with-UART-and-ringbuffer/m-p/557776#M15472</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:13Z</dc:date>
    </item>
  </channel>
</rss>

