<?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>UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53450/uarte0-baudrate-setting-method</link><description>OS in development environment ：Windows7 HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals CPU :(Nordic) nRF52832 / ARMR Cortex-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD Soft Ver:nRF5_SDK_15.3.0_59ac345 
 The ble_app_uart</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Oct 2019 07:51:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53450/uarte0-baudrate-setting-method" /><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/216757?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 07:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:782828b6-d200-4855-b0e4-56b99c218688</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Values for UART0 and UARTE0 differ by 0,4%. UART allows up to 3% drift, so there&amp;#39;s no problem with these settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/216713?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 00:31:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bc4f848-a85b-4ab9-b036-926ee8113a85</guid><dc:creator>yokokawa</dc:creator><description>&lt;p&gt;This screen is a screen where the UART transmission is executed using Ble_app_uart_c of SDK sample program and the transmission program used is confirmed.&lt;br /&gt;① Function name (nrfx_uarte_tx)&lt;br /&gt;UARTE is used.&lt;br /&gt;(2) UART0 baud rate setting&lt;br /&gt;UART0 baud rate parameter is set&lt;br /&gt;(3) UARTE0 baud rate setting&lt;br /&gt;The parameters are different.&lt;br /&gt;(UART0 baud rate parameter is set.)&lt;/p&gt;
&lt;p&gt;I am using UARTE, but the baud rate parameter of UARTE0 is not set correctly.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/20191021_5F00_UART.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/216574?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 10:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:462d568f-7e19-415c-abb4-d833bfb98527</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for clarifying, and sorry that I missed that. The reason these baud rates are different is that they are different modules, and require different baud rates to work properly. Anyway, I think you&amp;#39;re mistaken with regards to the which modules these examples are using, as they&amp;#39;re both using the UART register, which is why it makes sense that they both use the UART baud rate. It is possible to switch and use UARTE instead, but in that case, the code in ble_app_uart switches automatically to the correct baud rate and header files.&lt;/p&gt;
&lt;p&gt;Please tell me if anything is unclear, or how you can see that UARTE is the module that is used in the example.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/216471?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 02:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ad1f181-fbb4-4199-95bb-bc60602581a0</guid><dc:creator>yokokawa</dc:creator><description>&lt;p&gt;The baud rate value setting differs between UART0 and UARTE0.&lt;br /&gt; (See nrf52_bitfields.h)&lt;br /&gt; UART0 : UART_BAUDRATE_BAUDRATE_Baud115200 = 0x01D7E000&lt;br /&gt; UARTE0: UARTE_BAUDRATE_BAUDRATE_Baud115200 = 0x01D60000&lt;/p&gt;
&lt;p&gt;The SDK example programs Ble_app_uart and Ble_app_uart_c use the &amp;quot;UARTE0&amp;quot; function.&lt;br /&gt;But I found &amp;quot;UART0&amp;quot; baud rate value is set. Why? Is this a mistake?&lt;br /&gt;Is it okay to change the baud rate setting of function uart_init() to UARTE0 setting (UARTE_BAUDRATE_BAUDRATE_Baud115200 = 0x01D60000)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/216275?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 06:47:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:659f7131-b469-47d2-8e89-55376f746617</guid><dc:creator>Simonr</dc:creator><description>[quote user="yokokawa"]The values of NRF_UART_BAUDRATE_115200 and NRF_UARTE_BAUDRATE_115200 are different.[/quote]
&lt;p&gt;&amp;nbsp;If you take a look in the nrf_uart.h header file, you can see that if UARTE is defined/present, then &lt;strong&gt;NRF_UART_BAUDRATE_115200&lt;/strong&gt; =&amp;nbsp;UARTE_BAUDRATE_BAUDRATE_Baud115200. And in nrf_uarte.h you can see that &lt;strong&gt;NRF_UARTE_BAUDRATE_115200&lt;/strong&gt; =&amp;nbsp;UARTE_BAUDRATE_BAUDRATE_Baud115200. So no, they are not different when using UARTE in your application.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having some trouble understanding what the problem is, to be honest. Could you please try to explain what you&amp;#39;re struggling with, as it seems to me that your baud rate is 115200 (which is the correct default baud rate) both for using UART and UARTE.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/216107?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 09:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5376661a-4d03-4c78-bb8d-52b2127b7214</guid><dc:creator>yokokawa</dc:creator><description>&lt;p&gt;The BAUDRATE register of UART0 and the BAUDRATE register of UARTE0 exist separately.&lt;br /&gt;The values of NRF_UART_BAUDRATE_115200 and NRF_UARTE_BAUDRATE_115200 are different.&lt;br /&gt;Set NRF_UART_BAUDRATE_115200 in BAUDRATE register of UART0,&lt;br /&gt;Setting NRF_UARTE_BAUDRATE_115200 in the UARTE0 BAUDRATE register changes the contents of the UART0 BAUDRATE register to NRF_UARTE_BAUDRATE_115200.&lt;br /&gt;Is there a way to set them separately?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/216069?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 07:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f88e344f-e4f6-4d27-9ccc-a9dd25098e5f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If your application is only going to use UARTE, there should not be any problems using just the NRF_UARTE_BAUDRATE_115200 to set the baud rate. Seeing as the two baud rates are the same in the example, it won&amp;#39;t matter which of them are set, as the .baud_rate value is the same.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/216037?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 03:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ceec75d-dab8-43a3-9a9b-6a24333d02da</guid><dc:creator>yokokawa</dc:creator><description>&lt;p&gt;The following program sets &amp;quot;NRF_UART_BAUDRATE_115200&amp;quot; when &amp;quot;UART_PRESENT&amp;quot; is valid, and sets &amp;quot;NRF_UARTE_BAUDRATE_115200&amp;quot; otherwise.&lt;br /&gt;However, if &amp;ldquo;UART_PRESENT&amp;rdquo; and &amp;ldquo;UARTE_PRESENT&amp;rdquo; are enabled, set &amp;ldquo;NRF_UART_BAUDRATE_115200&amp;rdquo;.&lt;br /&gt;For &amp;ldquo;nRF52832&amp;rdquo;, &amp;ldquo;UART_PRESENT&amp;rdquo; and &amp;ldquo;UARTE_PRESENT&amp;rdquo; are valid and &amp;ldquo;UARTE0&amp;rdquo; is used, but &amp;ldquo;NRF_UART_BAUDRATE_115200&amp;rdquo; is set.&lt;br /&gt;-------------------------------------------------- -------------------------------------------------- -&lt;br /&gt;#if defined (UART_PRESENT)&lt;br /&gt;.baud_rate = NRF_UART_BAUDRATE_115200&lt;br /&gt;#else&lt;br /&gt;.baud_rate = NRF_UARTE_BAUDRATE_115200&lt;br /&gt;#endif&lt;br /&gt;-------------------------------------------------- -------------------------------------------------- -&lt;br /&gt;Is &amp;quot;.baud_rate = NRF_UARTE_BAUDRATE_115200&amp;quot; good without using a judgment statement?&lt;br /&gt;&amp;ldquo;Ble_app_uart_c&amp;rdquo; is &amp;ldquo;.baud_rate = NRF_UART_BAUDRATE_115200&amp;rdquo; without a judgment sentence. Is it OK to change to &amp;ldquo;.baud_rate = NRF_UARTE_BAUDRATE_115200&amp;rdquo;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/215927?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 12:40:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0affcc27-77e2-45d9-b750-bf506ef52b9d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As you can see in the main.c file of the ble_app_uart example, the application checks if you&amp;#39;re using UART or UARTE, and sets the baud rate accordingly.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if defined (UART_PRESENT)
        .baud_rate    = NRF_UART_BAUDRATE_115200
#else
        .baud_rate    = NRF_UARTE_BAUDRATE_115200
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid I don&amp;#39;t understand what you mean in your last reply, but you can set it by using any of the baud rate values defined in nrf_drv_uart.h and replacing it with the baud rate you want to use in your application.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/215838?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 08:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e790f87e-aae1-46d1-807c-07f2be7c5803</guid><dc:creator>yokokawa</dc:creator><description>&lt;p&gt;When used without changing the program, the set value of UART0 is set to UART0 and UARTE0.&lt;br /&gt;Why is the setting value of UART0 set to UART0 and UARTE0 in the program that uses UARTE0?&lt;/p&gt;
&lt;p&gt;How can I set the baud rate for both UARTE0 and UART0 correctly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UARTE0 BAUDRATE setting method</title><link>https://devzone.nordicsemi.com/thread/215833?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 07:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1453b7b7-14d2-4272-89cf-a5a06cd9ca90</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The baud rate of both UART and UARTE is configured to 115200 in the uart_init() function, which is the default baud rate in our nRF5 SDK examples. What value do you want to set the baud rate to? You can also check the sdk_config.h file and set the NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE to the default baud rate configuration you like.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>