<?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>nRF SDK UART peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66047/nrf-sdk-uart-peripheral</link><description>Hi I am new to the SDK and I am working through the examples. I am currently looking at the UART example under examples/peripheral. Iam seeing that both the virtual comm port and UART on P0.06 and P0.08 is doing the same thing. I am struggling to see</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Sep 2020 11:30:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66047/nrf-sdk-uart-peripheral" /><item><title>RE: nRF SDK UART peripheral</title><link>https://devzone.nordicsemi.com/thread/270560?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 11:30:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2569445d-8911-444c-bbab-0b3284c98a63</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s ok to use the nrf_drv_uart_*&amp;nbsp; APIs, it will automatically call into the nrfx_uarte.c implementation when DMA support is enabled. Please take a look at the SDK driver documentation here for more details: &lt;span&gt;&lt;a title="UART" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_uart.html?cp=7_1_2_0_19"&gt;UART&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF SDK UART peripheral</title><link>https://devzone.nordicsemi.com/thread/270384?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 16:20:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b953e886-bc1f-4620-9ba2-c2d381451d6b</guid><dc:creator>JPSvanderWalt</dc:creator><description>&lt;p&gt;I am still struggling to figure out how to declare and use both UARTs.&amp;nbsp; I see that nrfx_uart/e.c has functions that include the instance.&amp;nbsp; So my guess would be to use this instead of nrf_uart/e.c?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF SDK UART peripheral</title><link>https://devzone.nordicsemi.com/thread/270173?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 17:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a11079f0-23f0-4379-8657-b9949c7d6ad9</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&amp;quot;soft&amp;quot; UARTs are a last resort.&lt;/p&gt;
&lt;p&gt;As the nRF52840 has 2 UARTs, you wouldn&amp;#39;t want to do that unless you need 3 (or more) UARTs ...&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if Nordic have any soft UART example, but there have been forum posts on the topic before...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF SDK UART peripheral</title><link>https://devzone.nordicsemi.com/thread/270171?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 17:06:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05084738-4db5-47c5-b276-7d9f0761f1d3</guid><dc:creator>JPSvanderWalt</dc:creator><description>&lt;p&gt;Thank you very much.&amp;nbsp; Yeah, I meant emulating an UART with software.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF SDK UART peripheral</title><link>https://devzone.nordicsemi.com/thread/270164?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 16:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d22ff44-e8df-40b7-8438-6643e5da1902</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You can&amp;#39;t &amp;quot;create&amp;quot; a UART:&amp;nbsp; the&amp;nbsp; UARTs are part of the chip hardware - so the number is fixed (although you can &lt;em&gt;emulate&lt;/em&gt; a UART in software - by bit-banging).&lt;/p&gt;
&lt;p&gt;The nRF52840 has two UARTs - you can use them both at once. How to configure what pins are used is described in the Product Spec under &amp;#39;Pin Configuration&amp;#39;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uart.html?cp=4_0_0_5_32_1#concept_dly_2sw_sr"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/uart.html?cp=4_0_0_5_32_1#concept_dly_2sw_sr&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uarte.html?cp=4_0_0_5_33_7#concept_wmv_f2m_wr"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/uarte.html?cp=4_0_0_5_33_7#concept_wmv_f2m_wr&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;nRF52840 also has USB -&amp;nbsp;so you could implement a virtual COM port on the chip&amp;#39;s USB:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/usbd_ble_uart_example.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/usbd_ble_uart_example.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF SDK UART peripheral</title><link>https://devzone.nordicsemi.com/thread/270161?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 16:00:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:272c130d-76ad-48dc-9479-0fd1ced5b200</guid><dc:creator>JPSvanderWalt</dc:creator><description>&lt;p&gt;Thank you for clearing that up.&amp;nbsp; I understand that I can select any GPIO to create another UART.&amp;nbsp; Are there any examples to do this or is it documented in the user manual?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF SDK UART peripheral</title><link>https://devzone.nordicsemi.com/thread/270155?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 15:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:380d02cb-81cc-40cb-a4ac-d6fd88ed4f67</guid><dc:creator>awneil</dc:creator><description>[quote userid="91698" url="~/f/nordic-q-a/66047/nrf-sdk-uart-peripheral"]Iam seeing that both the virtual comm port and UART on P0.06 and P0.08 is doing the same thing[/quote]
&lt;p&gt;Not sure what you mean by that.&lt;/p&gt;
&lt;p&gt;The virtual COM port is what connects the nRF chip&amp;#39;s physical UART (on pins&amp;nbsp;&lt;span&gt;P0.06 and P0.08) to the PC - so that you can interact with it using&amp;nbsp; a terminal - so they will &lt;em&gt;necessarily&lt;/em&gt; be &amp;quot;doing the same thing&amp;quot; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;
          PC                                           Dev Kit
  +-------------------------------------+         +-------------------------------------+
  |                                     |         |                                     |
  |    ............      ............   |         |   .............      ............   |
  |    :          :-----&amp;gt;:          :   |         |   :           :-----&amp;gt;:          :   |
  |    : terminal :      : virtual  :   |   USB   |   : interface :      : nRF52840 :   |
  |    :   app    :      : com port :&amp;lt;===============&amp;gt;:   chip    :      :          :   |
  |    :          :&amp;lt;-----:          :   |         |   :           :&amp;lt;-----:          :   |
  |    ............      ............   |         |   .............      ............   |
  |                                     |         |                                     |
  +-------------------------------------+         +-------------------------------------+
  &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>