<?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>how can i initialize two hardware uart peripherals at the same time.?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8508/how-can-i-initialize-two-hardware-uart-peripherals-at-the-same-time</link><description>i have initialized a uart then i changed its rx and tx pins. now i want to initialize two uarts. i found the function to do this. app_uart_init.but i dont know how to pass these two arguments in this function.
app_uart_buffers_t * p_buffers,
uint16_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Aug 2015 08:56:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8508/how-can-i-initialize-two-hardware-uart-peripherals-at-the-same-time" /><item><title>RE: how can i initialize two hardware uart peripherals at the same time.?</title><link>https://devzone.nordicsemi.com/thread/31069?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 08:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eed03b90-c9a0-4612-93a6-011955421716</guid><dc:creator>Nomi</dc:creator><description>&lt;p&gt;how do i initialize uart using app_uart_init() what values shold i pass into this function.can you give me a short example code. i am using nrf51422 with pca10028 board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i initialize two hardware uart peripherals at the same time.?</title><link>https://devzone.nordicsemi.com/thread/31068?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 01:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e202b076-cba8-4d0b-b6fd-6b3e691a620d</guid><dc:creator>Cameron Tacklind</dc:creator><description>&lt;p&gt;The internal hardware that Nordic is wrapping around only supports a single USART. Therefore, the SDK also cannot support multiple concurrent USARTs.&lt;/p&gt;
&lt;p&gt;You could probably implement a software based USART if you really need two USARTs on your project.&lt;/p&gt;
&lt;p&gt;Or, if you know you won&amp;#39;t be using both concurrently, you could software select which IO pins the hardware is connected to at any given time.&lt;/p&gt;
&lt;p&gt;I highly encourage you too look at the source code for the app_uart_init() and related functions. They&amp;#39;re very basic wrappers around the hardware control registers if memory serves.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>