<?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>UARTE RX count</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85345/uarte-rx-count</link><description>I have configured EasyDMA RX.MAXCNT=256 and set EVENTS_ENDRX. If &amp;gt;=256 bytes arrive, an interrupt occurs immediately. And if only 128 or 10 or 203 come.. byte, then I&amp;#39;ll never know. I can look at the EVENTS_RXDRDY register, and see that something has</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Mar 2022 19:33:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85345/uarte-rx-count" /><item><title>RE: UARTE RX count</title><link>https://devzone.nordicsemi.com/thread/356406?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 19:33:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10e52e7f-cb11-4d94-8fd8-114e689b03a0</guid><dc:creator>fiim</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE RX count</title><link>https://devzone.nordicsemi.com/thread/356246?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 10:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016c1259-e8a6-46d7-a9d7-259beb6334f4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The thing is that the UARTE peripheral does not have any register that counts received bytes, so there is no straight-forward way to know from it if you have received a byte of not. The only thing you can know is when the receive buffer is full. This is a limitation in the HW&lt;/p&gt;
&lt;p&gt;The libuarte library use PPI and a set of events to (among other things) count received bytes.&amp;nbsp;Due to this not being directly supported by the HW this is quite complex. If you want to know the details I suggest you refer to the implementation (though I would recommend you use the library instead of re-implementing yourself.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE RX count</title><link>https://devzone.nordicsemi.com/thread/356124?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 16:10:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e429eabc-5750-462d-b088-5ed225c95b9a</guid><dc:creator>fiim</dc:creator><description>&lt;p&gt;Thank you, &lt;span&gt;nrF5 SDK. B&lt;/span&gt;ut I would like to understand this at the register level (if there is such a specialist here).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE RX count</title><link>https://devzone.nordicsemi.com/thread/355824?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 13:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:492c7535-17cd-461b-82e2-db750321a6ee</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the nRF Connect SDK or the nRF5 SDK? If you are using the nrF5 SDK you can use &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_libuarte.html"&gt;Libuarte&lt;/a&gt;, which among other things is designed to let you receive an arbitrary number of bytes. You can refer to the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/libuarte_example.html"&gt;Libuarte Example&lt;/a&gt;&amp;nbsp;to see how it can be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>