<?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>Large actual baud rate variation when using Baud921600 setting (actual rate: 941176), even with HFCLK derived from using external clock source 32MHz +/-10ppm accuracy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79194/large-actual-baud-rate-variation-when-using-baud921600-setting-actual-rate-941176-even-with-hfclk-derived-from-using-external-clock-source-32mhz--10ppm-accuracy</link><description>Hi 
 We are seeing board to board variations in actual baud rate from NRF5340 for Baud921600 setting, bit time is varying from ~938k to ~952k the HFCLK is derived from external clock 32MHz +/-10ppm accuracy (Epson Q22FA12800025) 
 
 what is the tolerance</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Sep 2021 10:10:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79194/large-actual-baud-rate-variation-when-using-baud921600-setting-actual-rate-941176-even-with-hfclk-derived-from-using-external-clock-source-32mhz--10ppm-accuracy" /><item><title>RE: Large actual baud rate variation when using Baud921600 setting (actual rate: 941176), even with HFCLK derived from using external clock source 32MHz +/-10ppm accuracy</title><link>https://devzone.nordicsemi.com/thread/328345?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 10:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51f4bc52-7ff3-4410-b045-07b7b0e123ff</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="James Lim"]&lt;p&gt;However this would mean that the HFCLK will always be on.&lt;/p&gt;
&lt;p&gt;Do we have to manually trigger the HFCLK start stop for UART TXRX operation?&lt;/p&gt;[/quote]
&lt;p&gt;That is correct. The HFXO must be active when UART RX is active. If you have a added ready signal, this must then not only start the RXD receiver, but also start up the HFXO (and account for the time for settling:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/oscillators/doc/oscillators.html?cp=3_0_0_3_11_4_0#unique_817147230"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/oscillators/doc/oscillators.html?cp=3_0_0_3_11_4_0#unique_817147230&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large actual baud rate variation when using Baud921600 setting (actual rate: 941176), even with HFCLK derived from using external clock source 32MHz +/-10ppm accuracy</title><link>https://devzone.nordicsemi.com/thread/328337?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 09:29:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51bc8377-4f2b-4456-b2ec-658d1b4730e3</guid><dc:creator>James Lim</dc:creator><description>&lt;p&gt;Thanks H&amp;aring;kon.&lt;/p&gt;
&lt;p&gt;By manually triggering HFCLK using TASKS_HFCLKSTART,&amp;nbsp; we are able to get the 941k frequency.&lt;/p&gt;
&lt;p&gt;However this would mean that the HFCLK will always be on.&lt;/p&gt;
&lt;p&gt;Do we have to manually trigger the HFCLK start stop for UART TXRX operation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Large actual baud rate variation when using Baud921600 setting (actual rate: 941176), even with HFCLK derived from using external clock source 32MHz +/-10ppm accuracy</title><link>https://devzone.nordicsemi.com/thread/327763?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 11:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5a33bc9-afc0-4cdc-ad18-87899e035058</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It should be quite stable once the HFCLK source is set to HFXO and its state is running. The actual baudrate is a bit off, around 20kHz, but it shall follow the tolerance of the HFCLK source.&lt;/p&gt;
&lt;p&gt;Based on your description, it sounds like you are running on HFINT (internal RC oscillator). Could you ensure that the HFXO is running by checking this register?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/clock/doc/clock.html?cp=3_0_0_3_10_2_33#register.HFCLKSTAT"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/clock/doc/clock.html?cp=3_0_0_3_10_2_33#register.HFCLKSTAT&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>