<?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>What is the inherent nRF52840 sample rate and how do you change it?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49498/what-is-the-inherent-nrf52840-sample-rate-and-how-do-you-change-it</link><description>Hello, 
 
 I&amp;#39;m working on a project and we&amp;#39;re using the nRF2840 to get data from a BNO080 IMU. 
 Someone already wrote arduino code which works. How does one change the sample rate of the nRF2840? Looked at the datasheet/documentation packet and I couldn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jul 2019 15:29:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49498/what-is-the-inherent-nrf52840-sample-rate-and-how-do-you-change-it" /><item><title>RE: What is the inherent nRF52840 sample rate and how do you change it?</title><link>https://devzone.nordicsemi.com/thread/197194?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 15:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72e809ca-2beb-47ee-be46-210a1983e822</guid><dc:creator>maurieBrookline</dc:creator><description>&lt;p&gt;Thanks Marjeris.&amp;nbsp;The Arduino code specifies an SPI protocol. The original question was about how the sampling rate for the arduino or MC could be changed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems to be included though - I just didn&amp;#39;t understand it when I was reading it the first time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SPI.begin ()&lt;/p&gt;
&lt;p&gt;SPI.setClockDivider(SPI_CLOCK_DIV2);&lt;/p&gt;
&lt;p&gt;.... more lines&lt;/p&gt;
&lt;p&gt;//reset commands&lt;/p&gt;
&lt;p&gt;//write to register&lt;/p&gt;
&lt;p&gt;WriteReg(REG_REF, 0x10);&lt;/p&gt;
&lt;p&gt;WriteReg(REG_MODE0, 0b00101000);//50SPS with SINC1 digital filter 50 HZ and 60HZ normal mode rejection&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the inherent nRF52840 sample rate and how do you change it?</title><link>https://devzone.nordicsemi.com/thread/197193?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 15:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66c9f11a-f098-43f4-8d95-32ee87189307</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Maurie,&lt;/p&gt;
&lt;p&gt;Can you specify which protocol are you using to communicate with the &lt;span style="font-weight:400;"&gt;BNO080&lt;/span&gt;? It seems the BNO080 can communicate with a host over various serial interfaces : SPI, I2C (also called TWI) and UART.&lt;span style="font-family:sans-serif;font-size:16.6px;left:90px;top:869.894px;"&gt;&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:16.6px;left:750.717px;top:869.894px;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Can you also specify what you mean by sample rate? When we talk about sample rate we are usually talking about how fast samples from a sensor are taken. Usually you need to write to an specific register given in the sensor datasheet to change the sample rate of the sensor.&lt;/p&gt;
&lt;p&gt;From the host side (the nRF52840) you can change the configuration of the communication protocol. For example if using UART you can change the frequency and the baudrate.&lt;/p&gt;
&lt;p&gt;And BTW the link you posted was for the devkit user guide, for a complete product specification (datasheet) of the nRF52840 take a look at &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.1.pdf"&gt;this document&lt;/a&gt; or go to the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fkeyfeatures_html5.html&amp;amp;cp=3_0_0"&gt;nRF52840 pages&lt;/a&gt; in our infocenter. You will find more information about the different serial interfaces there.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the inherent nRF52840 sample rate and how do you change it?</title><link>https://devzone.nordicsemi.com/thread/197189?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 15:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa172d2f-2492-430c-b2a2-af1f08e15f35</guid><dc:creator>awneil</dc:creator><description>[quote userid="81432" url="~/f/nordic-q-a/49498/what-is-the-inherent-nrf52840-sample-rate-and-how-do-you-change-it"]sample rate of the nRF2840[/quote]
&lt;p&gt;What do you mean by that?&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t you mean that sampling rate &lt;strong&gt;&lt;em&gt;of the IMU&lt;/em&gt;&lt;/strong&gt; ?&lt;/p&gt;
&lt;p&gt;That will be defined in the &lt;strong&gt;&lt;em&gt;IMU &lt;/em&gt;&lt;/strong&gt;documentation - it is nothing to do with the nRF52.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>