<?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>Time multiplexing UART nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53162/time-multiplexing-uart-nrf52832</link><description>Hi 
 I am using nRF52832 Soft device S132 sdk 15 and interfaced it with two peripherals over UART. However I dont want to use them simultaneously. Since nrf42832 can support only one UART peripheral at a time, I would like to know how I can reconfigure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jan 2020 13:05:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53162/time-multiplexing-uart-nrf52832" /><item><title>RE: Time multiplexing UART nrf52832</title><link>https://devzone.nordicsemi.com/thread/227671?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 13:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8e88c81-f893-4a05-9c90-3d44ff51fd05</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Sorry for the late reply.&lt;br /&gt;&lt;br /&gt;Yeah, that&amp;#39;s the correct method for changing the pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time multiplexing UART nrf52832</title><link>https://devzone.nordicsemi.com/thread/226646?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2019 19:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06ad72d0-8876-4f30-b838-3e7247dedb2c</guid><dc:creator>Bugo</dc:creator><description>&lt;p&gt;How would you go along using that but while using the Serial Port Library?&amp;nbsp; I&amp;nbsp; have my serial define in:&amp;nbsp;NRF_SERIAL_UART_DEF(m_serial_uart, 0);&lt;br /&gt;&lt;br /&gt;And m_serial_uart.instance was made by the macro:&amp;nbsp;.instance = NRF_DRV_UART_INSTANCE(_instance_number)&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how to replace NRF_DRV_UART_INSTANCE(0) with the already created instance. I&amp;#39;m not using easy dma, so the call would be:&lt;br /&gt;&lt;br /&gt;nrf_uart_hwfc_pins_set(????, NEW_RTS_PIN, NEW_CTS_PIN);&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;EDIT: Think i found how:&amp;nbsp;nrf_uart_txrx_pins_set(m_serial_uart.instance.uart.p_reg, LCD_TX_PIN_NUMBER, LCD_RX_PIN_NUMBER);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time multiplexing UART nrf52832</title><link>https://devzone.nordicsemi.com/thread/214762?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 09:06:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3df4120f-3eb9-46bd-9024-93d0c01f08fd</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You just need to change the pin numbers in&amp;nbsp;&lt;a title="  PSEL.TXD  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=3_1_0_34_9_7#register.PSEL.TXD"&gt;PSEL.TXD &lt;/a&gt;and&amp;nbsp;&lt;a title="  PSEL.RXD  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=3_1_0_34_9_9#register.PSEL.RXD"&gt;PSEL.RXD&lt;/a&gt;, and optionally&amp;nbsp;&lt;a title="  PSEL.RTS  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=3_1_0_34_9_6#register.PSEL.RTS"&gt;PSEL.RTS&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a title="  PSEL.CTS  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uarte.html?cp=3_1_0_34_9_8#register.PSEL.CTS"&gt;PSEL.CTS&lt;/a&gt;, at any time the UARTE is not in a transfer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See f.ex. the&amp;nbsp;&lt;a title="UARTE HAL" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__uarte__hal.html?cp=5_1_6_9_0_40_1"&gt;UARTE HAL&lt;/a&gt;&amp;#39;s&amp;nbsp;&lt;a title="nrf_uarte_txrx_pins_set" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__uarte__hal.html?cp=5_1_6_9_0_40_1_38#gaa373aea6d4c8aead6f81386e23bf0078"&gt;nrf_uarte_txrx_pins_set&lt;/a&gt;&amp;nbsp;function.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The pins you intend to switch to needs to be configured first:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Configure Tx and Rx pins:
nrf_gpio_pin_set(NEW_TX_PIN);
nrf_gpio_cfg_output(NEW_TX_PIN);
nrf_gpio_cfg_input(NEW_RX_PIN, NRF_GPIO_PIN_NOPULL);

nrf_uarte_txrx_pins_set(NRF_DRV_UART_INSTANCE(0), NEW_TX_PIN, NEW_RX_PIN);

//If you indent to use HW Flow Control:
nrf_gpio_pin_set(NEW_RTS_PIN);
nrf_gpio_cfg_output(NEW_RTS_PIN);
nrf_gpio_cfg_input(NEW_CTS_PIN, NRF_GPIO_PIN_NOPULL);

nrf_uarte_hwfc_pins_set(NRF_DRV_UART_INSTANCE(0), NEW_RTS_PIN, NEW_CTS_PIN);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Time multiplexing UART nrf52832</title><link>https://devzone.nordicsemi.com/thread/214655?ContentTypeID=1</link><pubDate>Sat, 12 Oct 2019 01:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee99983a-f9fb-480e-b67e-60db565de29c</guid><dc:creator>Keith Brafford</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;gt;&amp;#39;832 can support only one UART peripheral at a time&lt;br /&gt;&lt;br /&gt;I wasn&amp;#39;t aware of this, but would like to understand more fully.&amp;nbsp; Can you point me to where that&amp;#39;s discussed?&amp;nbsp; Thx!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>