<?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>Increase UART speed using UARTE directly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92250/increase-uart-speed-using-uarte-directly</link><description>I am using nRF52832 with UARTE with EasyDMA and communication speed of 912kB/s 
 I am wondering how I can increase the transmission speed using nrf_drv_uart_tx() in app_uart.c directly because app_uart_put() only puts one byte per time. 
 I tried doing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Sep 2022 13:38:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92250/increase-uart-speed-using-uarte-directly" /><item><title>RE: Increase UART speed using UARTE directly</title><link>https://devzone.nordicsemi.com/thread/387707?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 13:38:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a07399ed-98cb-4912-8458-06e007a3f934</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]– do I need to use nrf_drv_uart_tx() in app_uart_fifo.c ?\[/quote]
&lt;p&gt;I think you perhaps mean&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;app_uart_put()&lt;/span&gt;, and if so, yes.&lt;br /&gt;I am not sure if you can actually use &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrf_drv_uart_tx()&lt;/span&gt;.&amp;nbsp;If you are using app_uart.c, it should be wrapped up in the module and not accessible to you.&lt;/p&gt;
[quote user=""]– do I need to make changes on MCU side?[/quote]
&lt;p&gt;No&lt;/p&gt;
[quote user=""]– Or Do you have an example code using nrf_drv_uart_tx() for faster UART transmission?[/quote]
&lt;p&gt;&amp;quot;Yes.&amp;quot; It is not nrf_drv_uart_tx(), but there are two examples with UART usage, I will&amp;nbsp;refer to them below.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;As you mentioned app_uart.c and app_uart_fifo.c, I believe you are using the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__app__uart.html"&gt;UART Module library&lt;/a&gt;.&lt;br /&gt;If so, I am afraid you are not using UARTE, but just a regular UART peripheral.&lt;br /&gt;Among the two implementation of this module, app_uart_fifo.c added FIFOs for transmit and receive, and should give you better performance.&lt;/p&gt;
&lt;p&gt;The example for this library locates at:&amp;nbsp;&amp;lt;SDK Root&amp;gt;/examples/peripheral/uart&lt;br /&gt;The documentation of the example is at:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/uart_example.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/uart_example.html&lt;/a&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;If you wish to utilize the UARTE, please take a look at this Advanced UARTE Driver library:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_libuarte.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_libuarte.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The example for this library locates at:&amp;nbsp;&amp;lt;SDK Root&amp;gt;/examples/peripheral/libuarte&lt;br /&gt;The documentation of the example is at:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/libuarte_example.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/libuarte_example.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;I have just tested both examples, changed the baud rate to 1 000 000 B/s, and&amp;nbsp;they both worked as expected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hieu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>