<?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 to make the serial port baud rate not change with temperature?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35211/how-to-make-the-serial-port-baud-rate-not-change-with-temperature</link><description>How to select nrf528332 UART clock source, how to make the serial port baud rate not change with temperature?When the baud rate is 9,600, the baud rate varies greatly with the temperature.Baud rate when - 25 ℃ maximum deviation to 3.5%, when to 55 ℃ baud</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Jun 2018 06:08:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35211/how-to-make-the-serial-port-baud-rate-not-change-with-temperature" /><item><title>RE: How to make the serial port baud rate not change with temperature?</title><link>https://devzone.nordicsemi.com/thread/135659?ContentTypeID=1</link><pubDate>Tue, 12 Jun 2018 06:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fffd96a7-7baa-403a-81eb-351924c2bc15</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes you are right. There was a typo in my initial answer, you should use&amp;nbsp;&lt;code&gt;nrf_drv_clock_hfclk_release()&lt;/code&gt; (the&amp;nbsp;&lt;code&gt;nrf_drv_clock_lfclk_release()&lt;/code&gt; is the corresponding function for releasing the LFCLK). I am sorry for the confusion. (I have updated the original answer to use the correct release function).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the serial port baud rate not change with temperature?</title><link>https://devzone.nordicsemi.com/thread/135647?ContentTypeID=1</link><pubDate>Tue, 12 Jun 2018 01:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d71462a-2615-453d-bd27-0eedc11c699d</guid><dc:creator>shark</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[release it when it is no longer needed by calling&amp;nbsp;&lt;code&gt;nrf_drv_clock_lfclk_release()&lt;/code&gt;.]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This function is not wrong？&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It should be&amp;nbsp;nrf_drv_clock_hfclk_release()？&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the serial port baud rate not change with temperature?</title><link>https://devzone.nordicsemi.com/thread/135622?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 14:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92b6babb-3463-44b0-9dd4-7fbf6f8d8009</guid><dc:creator>shark</dc:creator><description>&lt;p&gt;When the crystal oscillator is not used, the current is 40uA, but the baud rate is unstable, and the baud rate is stable after using the crystal oscillator. When closing the serial port, call nrf_drv_clock_hfclk_release() to turn off the 80uA crystal current and call nrf_drv_clock_lfclk_release() to turn off the 200-800uA crystal current.&lt;br /&gt;I hope that after turning off the crystal oscillator, the current will drop to 40uA. What should I do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the serial port baud rate not change with temperature?</title><link>https://devzone.nordicsemi.com/thread/135549?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 11:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:999bd305-9abb-4d7a-bf6d-f16692f4b7df</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The crystal oscillator has a higher current consumption than the RC, but you should see it come down after you have called&amp;nbsp;nrf_drv_clock_hfclk_release(). The driver implements a counter, and will only disable the HFXO once the count comes back to 0. Have you made sure you call&amp;nbsp;nrf_drv_clock_lfclk_release() and&amp;nbsp;nrf_drv_clock_hfclk_release() the same amount of times?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the serial port baud rate not change with temperature?</title><link>https://devzone.nordicsemi.com/thread/135510?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 08:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3122bbdd-e88d-4df9-9c31-515086c51d88</guid><dc:creator>shark</dc:creator><description>&lt;p&gt;According to your method, the baud rate is stable. However, the current rises by about 40uA, and why the current rises. Turn off the external crystal using &lt;code&gt;nrf_drv_clock_lfclk_release()&lt;/code&gt;&amp;nbsp;and &lt;code&gt;nrf_drv_clock_hfclk_release()&lt;/code&gt;will not work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the serial port baud rate not change with temperature?</title><link>https://devzone.nordicsemi.com/thread/135284?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 06:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ea6b7c8-83c3-4e71-a1ba-a075c00f93df</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The HFRC oscillator is quite temperature sensitive, so the solution is to use the crystal oscillator (HFXC) instead when you need an accurate clock. The simplest is probably to use the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__drv__clock.html?cp=4_0_0_6_9_0_1_0"&gt;clock driver&lt;/a&gt;. First initialize the driver &lt;code&gt;usingnrf_drv_clock_init()&lt;/code&gt;. Then, you can start it by calling&amp;nbsp;&lt;code&gt;nrf_drv_clock_hfclk_request()&lt;/code&gt; and release it when it is no longer needed by calling&amp;nbsp;&lt;code&gt;nrf_drv_clock_hfclk_release()&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>