<?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>nRF52840: can we use UART0 with interrupt api and UART1 with async api?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95412/nrf52840-can-we-use-uart0-with-interrupt-api-and-uart1-with-async-api</link><description>Hi, 
 We are using nRF52840 for our project. we need two UARTs 
 UART0 - for BLE 
 UART1 - for communicating with SOC 
 
 Zephyr RTOS supports following API for UART. 
 Async UART API Interrupt-driven UART API Polling UART API 
 
 Throughput measurement</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Jan 2023 18:13:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95412/nrf52840-can-we-use-uart0-with-interrupt-api-and-uart1-with-async-api" /><item><title>RE: nRF52840: can we use UART0 with interrupt api and UART1 with async api?</title><link>https://devzone.nordicsemi.com/thread/403922?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 18:13:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:947c7b98-03a7-4ff0-8885-2e886a1a5ec0</guid><dc:creator>Alaganraj</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thank you for prompt response. Let me try this out and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840: can we use UART0 with interrupt api and UART1 with async api?</title><link>https://devzone.nordicsemi.com/thread/403700?ContentTypeID=1</link><pubDate>Sun, 08 Jan 2023 21:04:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ffa4660-21e6-4d60-90ba-ce72a5315106</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1. Can we use&amp;nbsp;&lt;span&gt;interrupt-driven api&amp;nbsp; for UART0 and&amp;nbsp;&lt;/span&gt;&lt;span&gt;Async API for UART1 in same application?&lt;/span&gt;[/quote]
&lt;p&gt;Yes, some relevant configs:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SERIAL=y


CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_ASYNC_API=y

CONFIG_UART_0_INTERRUPT_DRIVEN=y

CONFIG_UART_1_INTERRUPT_DRIVEN=n
CONFIG_UART_1_ASYNC=y&lt;/pre&gt;&lt;/p&gt;
[quote user=""]ie) Is it possible for receive more than 1 byte per interrupt in interrupt-driven api?[/quote]
&lt;p&gt;No.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>