<?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>[NRF52] Internal Clock without Crystal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22933/nrf52-internal-clock-without-crystal</link><description>Hi, 
 I had a problem with my NRF52 chips. I&amp;#39;m using one BL652 (Laird) with SoftDevice s132 (4.0.2) and a standalone nRF52832 also with the same SoftDevice. I was trying to Communicate them via UART. The BL652 module has Radio+Crystal (Ext Osc) and the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Jun 2017 22:46:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22933/nrf52-internal-clock-without-crystal" /><item><title>RE: [NRF52] Internal Clock without Crystal</title><link>https://devzone.nordicsemi.com/thread/90215?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 22:46:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27eb0846-01af-4aac-8dd7-65731afa9e4b</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;If you can figure out what the nominal offset is for your HFINT, you could choose a baudrate that is a little closer to reality.  So, if your 32MHz is 25% slow you could choose a rate 1/.75 (33.3% faster). There is a little granularity on the enumerations for baud rate on the UART drivers.  It is not all 2x.  Plus it looks like they are just setting a register for a divider.  So, with a little research you might be able to make the nRF do fractional rates.&lt;/p&gt;
&lt;p&gt;But, ideally you should place the 32MHz next time.  It&amp;#39;ll save a lot of headaches.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52] Internal Clock without Crystal</title><link>https://devzone.nordicsemi.com/thread/90214?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 19:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3159063-aae5-463b-942f-10786557b0c0</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Ok, so just to clarify you have 2 nRF&amp;#39;s one is in a BL652 using bluetooth and the other does not use bluetooth and does not have an external 32MHz but they communicate to each other via wired UART?  And, further since the second nRF doesn&amp;#39;t have a 32MHz xtal the UART baudrate can be plus or minus a bit. Correct?&lt;/p&gt;
&lt;p&gt;I think you will always have issues getting UART comms to work under that scenario. You can try using flow control and also slowing down the data rate. This will improve the situation. But with UART comms there is no shared clock so the accuracy of either end is influenced by the relative clock differences.&lt;/p&gt;
&lt;p&gt;If I had to choose I would probably use a communication method that uses a clock master such as SPI. You can do megabit data rates with SPI but the range isn&amp;#39;t as great as UART or especially RS232 if you are using a level shifter for 232 comms.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52] Internal Clock without Crystal</title><link>https://devzone.nordicsemi.com/thread/90216?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 17:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b442418-8a87-4c42-829b-044d90995882</guid><dc:creator>Felipe Ribas</dc:creator><description>&lt;p&gt;Thanks for your answer. I posted here some comment but I think I misunderstood you. I think I get it now. But one question remains: How to make a reliable UART communication (stable baudrate) without a crystal? Is that any chance I could achieve that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [NRF52] Internal Clock without Crystal</title><link>https://devzone.nordicsemi.com/thread/90213?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 16:47:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ec4c06-771a-4e2d-a3b2-bef9353205e2</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;All communications on the nRF are based on HFCLK.  I don&amp;#39;t believe anything is so slow that it can use the LFCLK.&lt;/p&gt;
&lt;p&gt;The only calibration mechanism the SD has is for the internal RTC. The RTC is mainly a sleep/wake clock and the calibration is required to meet a +/-250ppm spec for bluetooth. It also drives the app_timer.&lt;/p&gt;
&lt;p&gt;There is no calibration mechanism for HFINT. If you are using HFINT for the uart your baudrate will be off. This is noted in the datasheet pg 338. &amp;quot;Baud rate. Accuracy depends on the HFCLK source selected.&amp;quot;
HFINT is not that accurate. That is noted a few times in the spec.  It&amp;#39;s main purpose is to provide a lower power solution for clocking the processor when things are not that time critical. That is why the SD won&amp;#39;t run on HFINT it will only run on HFEXT.&lt;/p&gt;
&lt;p&gt;Actually I am surprised you got the SD to start without an external 32MHz. I thought the code prevented you from doing that.&lt;/p&gt;
&lt;p&gt;The external HF clock is critical for data timing and more critical to keep the bluetooth radio on the correct frequency. All the 2.4GHz channels are derived from the 32MHz crystal.  So the ppm accuracy of the xtal will be the same ppm accuracy of your carrier in the 2.4GHz band.
You may find your data connection problems are due to the bluetooth radio being off channel if it is indeed running on HFINT.&lt;/p&gt;
&lt;p&gt;Hope that answers your question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>