<?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>UART stop bit is shorter than data bit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111374/uart-stop-bit-is-shorter-than-data-bit</link><description>Hello Nordic Experts, 
 I am developing using the nRF52833, using the module BM833 and a custom board with the Nordic SDK. I am running the UART example with some modifications to transmit 7 bytes every second to a display. 
 I have encountered an issue</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 May 2024 14:17:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111374/uart-stop-bit-is-shorter-than-data-bit" /><item><title>RE: UART stop bit is shorter than data bit</title><link>https://devzone.nordicsemi.com/thread/485669?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 14:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c57468ff-600e-48ea-9fba-8af396ff53b4</guid><dc:creator>Thomas U</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m happy to report that &lt;code&gt;nrf_drv_uart_tx()&lt;/code&gt; works perfectly. Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART stop bit is shorter than data bit</title><link>https://devzone.nordicsemi.com/thread/485466?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 14:38:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38be48ab-79cd-4ddd-8eb7-a1b2f30ada2b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;An update from me. I have not got to the bottom of the root cause here, but when using&amp;nbsp;app_uart_put() you are sending each byte as a separate transaction. And it &lt;em&gt;seems&lt;/em&gt; that for some reason the new transactino is started before the stop bit has finished (you see the whole start bit). If you instead of sending single bytes send all data in one transaction using&amp;nbsp;nrf_drv_uart_tx() or similar, that seems to resolve the issue (the added benefit is that it is more efficient).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART stop bit is shorter than data bit</title><link>https://devzone.nordicsemi.com/thread/485445?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 13:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c69f3d96-e958-4257-8576-6caba820ec92</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see the same at low baud rates. Here is with your code on a DK (9600 baud):&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1716385716238v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;For comparison, here is with the code except that the baud rate is 115200:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1716385724044v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I am not able to explain this yet though, but I am looking into it and will get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART stop bit is shorter than data bit</title><link>https://devzone.nordicsemi.com/thread/485395?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 12:01:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e5b43bf-0bfc-46a0-8502-b78c1ddaede4</guid><dc:creator>Thomas U</dc:creator><description>&lt;p&gt;Hi Nordic people,&lt;/p&gt;
&lt;p&gt;I wanted to inform you that I am attempting to use the UARTE1 instance, following the advice provided in Case ID: 327213.&lt;/p&gt;
&lt;p&gt;This has led me to configure the sdk_config.h file with the following settings:&lt;/p&gt;
&lt;p&gt;#define APP_UART_DRIVER_INSTANCE 1&lt;/p&gt;
&lt;p&gt;#define UART1_ENABLED 1&lt;/p&gt;
&lt;p&gt;#define NRFX_UARTE0_ENABLED 1&lt;/p&gt;
&lt;p&gt;#define NRFX_UARTE1_ENABLED 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART stop bit is shorter than data bit</title><link>https://devzone.nordicsemi.com/thread/485213?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 18:38:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:310076aa-8610-42a2-8ae4-4f211db062e7</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Quick fix while Nordic investigates: Use 2 stop bits in CONFIG instead of default 1 stop bit; search for the definition of UARTE struct to get the magic defines. This (should) only affect transmit, not receive. Don&amp;#39;t see stop bits in def,, might have to post-write&lt;/p&gt;
&lt;p&gt;&lt;em&gt;C RW STOP Stop bits:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp; One 0 One stop bit&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; Two 1 Two stop bits&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_UARTE0-&amp;gt;CONFIG = (UART_CONFIG_STOP_Two &amp;lt;&amp;lt; UART_CONFIG_STOP_Pos) | (UART_CONFIG_HWFC_Disabled &amp;lt;&amp;lt; UART_CONFIG_HWFC_Pos) | (UART_CONFIG_PARITY_Excluded &amp;lt;&amp;lt; UART_CONFIG_PARITY_Pos);&lt;/pre&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>