<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>I have a problem with lpc2148 uart receiver (with interrupt)for bulk of data</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/35694/i-have-a-problem-with-lpc2148-uart-receiver-with-interrupt-for-bulk-of-data</link><description> 
Hello Sir, 
when I use lpc2148 UART receiver interrupt then microcontroller is
receiving value 
but if I receive bulk of data then data is lost and overrun
occurs. 
what should my interrupt routine for receiving the data
correctly. 

 
I want to receive</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: I have a problem with lpc2148 uart receiver (with interrupt)for bulk of data</title><link>https://community.arm.com/thread/94423?ContentTypeID=1</link><pubDate>Tue, 12 Jun 2018 00:12:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b688999b-4851-4850-9766-c76f1060d44c</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
eg, see:
&lt;a href="https://www.avrfreaks.net/comment/2369221#comment-2369221"&gt;www.avrfreaks.net/.../2369221&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a problem with lpc2148 uart receiver (with interrupt)for bulk of data</title><link>https://community.arm.com/thread/70766?ContentTypeID=1</link><pubDate>Tue, 12 Jun 2018 00:09:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e38157f9-e4d3-4b78-a3ec-044fd50ac697</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
then you are not handling the interrupts quickly enough!&lt;/p&gt;

&lt;p&gt;
How much data? How fast?&lt;/p&gt;

&lt;p&gt;
The general principle of interrupt handlers is to keep them as
quick as possible - so they should contain the minimum code
possible.&lt;/p&gt;

&lt;p&gt;
Typically, a UART handler would simply take the received
character, and put it into a Ring Buffer (aka &amp;quot;Circular Buffer&amp;quot;, or
&amp;quot;FIFO&amp;quot;).&lt;/p&gt;

&lt;p&gt;
The main loop would then deal with &amp;quot;draining&amp;quot; characters from the
buffer.&lt;/p&gt;

&lt;p&gt;
If your chip has a hardware FIFO, use that to help you.&lt;/p&gt;

&lt;p&gt;
All this is entirely general - nothing specifically to do with
Keil or lpc2148&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>