<?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>UARTs and EASY DMA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54959/uarts-and-easy-dma</link><description>Hi, I&amp;#39;m trying to use two UART instances, and I have the following issues: - I&amp;#39;m not be able to configure both instance using NRF_SERIAL_CONFIG_DEF macro with parameter NRF_SERIAL_MODE_IRQ. As result of nrf_serial_init function call on the UART1 instance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2019 08:56:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54959/uarts-and-easy-dma" /><item><title>RE: UARTs and EASY DMA</title><link>https://devzone.nordicsemi.com/thread/222724?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 08:56:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c6c8475-3c6d-4013-ac25-01b70c2f4f9a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You could use&amp;nbsp;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrfx__uart.html#ga3c7d3c7254fcc4e9c4e9059aa1c54ca2"&gt;nrfx_uart_uninit&lt;/a&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;span&gt;uninit&lt;/span&gt;&lt;span&gt;ialize the&amp;nbsp;UART&amp;nbsp;driver.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;-Amanda H.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTs and EASY DMA</title><link>https://devzone.nordicsemi.com/thread/222722?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 08:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45990a4e-b4d4-415a-a4d1-3da70781dbe0</guid><dc:creator>abe</dc:creator><description>&lt;p&gt;Amanda,&lt;/p&gt;
&lt;p&gt;I readed both link you sent me. In the UART driver handling article for nRF52 yuo can understand the current sink in the following two case:&lt;br /&gt;- UARTE with DMA --&amp;gt; average 1.3mA &lt;br /&gt;- UART (Legacy) --&amp;gt; average 373uA&lt;br /&gt;These are EXACTLY the currents I have measured on my application for the two method above quoted.&lt;br /&gt;I think that the only way to reduce the current sink is to disable the UART&lt;br /&gt;It&amp;#39;s right? How can I disable the UART?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h1 class="entry-title"&gt;&lt;/h1&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTs and EASY DMA</title><link>https://devzone.nordicsemi.com/thread/222714?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 08:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4234c5-cfde-4e10-a13b-260be0354022</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]- I&amp;#39;m not be able to configure both instance using NRF_SERIAL_CONFIG_DEF macro with parameter NRF_SERIAL_MODE_IRQ.[/quote]
&lt;p&gt;&amp;nbsp;&lt;span&gt;That&amp;#39;s right. UART1 is not supported. Serial peripheral with number 1 is only UARTE1 in nRF52840 SoC.&lt;/span&gt;&lt;/p&gt;
[quote user=""]- Instead, if I use the NRF_SERIAL_CONFIG_DEF macro with parameter NRF_SERIAL_MODE_DMA the two UART instances work well.[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You also can take a look at this&amp;nbsp;&lt;a title="Serial Port Library Example with two UARTEs" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/serial_uartes_example.html?cp=6_1_4_6_38"&gt;Serial Port Library Example with two UARTEs&lt;/a&gt;&amp;nbsp;example.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&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;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]How can I have few uA of CPU current comsumption even with UARTs enabled?[/quote]
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if you use the UART, it needs to turn on the UART (50uA) from the Product spec + high frequency clock.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://jimmywongbluetooth.wordpress.com/2019/04/17/overview-uart-driver-handling-at-nrf52/"&gt;https://jimmywongbluetooth.wordpress.com/2019/04/17/overview-uart-driver-handling-at-nrf52/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My colleague did some measurements on the Legacy UART or UART with DMA.&lt;/p&gt;
&lt;p&gt;Please also see this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51042/nrf52840-uart0-sleep-current-behavior/205372#205372"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you show us who you measured the current? What is the code you use?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>