<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF52 receive UART data via interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89796/nrf52-receive-uart-data-via-interrupt</link><description>With our nRF52832/52840 products, the UART sometimes drops characters. 
 I&amp;#39;m using nrf_drv_uart (SDK12) with two, one-byte buffers, and an interrupt called when data is received. However the 1 byte buffers are just not enough even at 9600 baud when writing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jul 2022 11:11:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89796/nrf52-receive-uart-data-via-interrupt" /><item><title>RE: nRF52 receive UART data via interrupt</title><link>https://devzone.nordicsemi.com/thread/376394?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 11:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a969acd8-fc5b-406b-9a8f-01758968eb11</guid><dc:creator>Gordon</dc:creator><description>&lt;p&gt;Thanks! Unfortunately I can&amp;#39;t use hardware flow control, but thanks for the libuarte link - I can at least look into that as an example of how to do what I need on SDK12.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 receive UART data via interrupt</title><link>https://devzone.nordicsemi.com/thread/376178?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 11:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:490ee943-0ddc-47bb-9bd6-42c11617b722</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]But if you raise the buffer length, you then don&amp;#39;t get an interrupt when a character arrives (it seems the buffer has to be full before you get an IRQ).[/quote]
&lt;p&gt;Yes, that is correct. This is a limitation with the UARTE peripheral. To get interrupt per character you need to use the older UART (not UARTE) peripheral, but that has the limitation you have seen.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_libuarte.html"&gt;Libuarte&lt;/a&gt; is a library that uses GPIOTE and PPI to overcome the limitations of the UART and UARTE peripherals, but that is only present in later SDKs and is quite complex.&lt;/p&gt;
&lt;p&gt;Another option could be to use flow control (unless the HW is already set in stone).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>