<?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>Zephyr - Changing SPI Frequency on NRF52840DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98243/zephyr---changing-spi-frequency-on-nrf52840dk</link><description>I am integrating the Zephyr SPI Bitbang example located here zephyr/samples/drivers/spi_bitbang at main &amp;#183; zephyrproject-rtos/zephyr &amp;#183; GitHub . The frequency of 12.5KHz is configured in code as shown in the image below 
 
 Altering this frequency has no</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Apr 2023 14:38:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98243/zephyr---changing-spi-frequency-on-nrf52840dk" /><item><title>RE: Zephyr - Changing SPI Frequency on NRF52840DK</title><link>https://devzone.nordicsemi.com/thread/420301?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 14:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2cf06ec-adfb-4814-a5ef-f0bd1f377569</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Using an actual SPI peripheral should be easy as there are a lot of samples and articles showing you how to do it. For example an external article for running basic SPI on zephyr can be seen &lt;a href="https://blog.golioth.io/how-to-use-generic-spi-devices-with-zephyr/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A template can be taken from the NCS playground &lt;a href="https://github.com/sigurdnev/ncs-playground/tree/master/samples"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr - Changing SPI Frequency on NRF52840DK</title><link>https://devzone.nordicsemi.com/thread/420135?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 08:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb543427-886f-4483-ae95-3deb3959fa25</guid><dc:creator>Jeff Maigemu</dc:creator><description>&lt;p&gt;I am currently looking to implement this. Please point me to some examples I could use as a reference&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr - Changing SPI Frequency on NRF52840DK</title><link>https://devzone.nordicsemi.com/thread/419553?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 07:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d85d9d9-1a5e-4dbf-b448-251121b05961</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Bitbanging does not go well with throughput achieved on embedded cores. Why wont you use an actial SPI peripheral that comes with our SoC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr - Changing SPI Frequency on NRF52840DK</title><link>https://devzone.nordicsemi.com/thread/418734?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 06:05:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbcbfe30-0491-4868-9a4b-074c50af5d05</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Susheel is out of office for the Easter holiday, and will get back to you on April 11th. Thank you for your patience!&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: Zephyr - Changing SPI Frequency on NRF52840DK</title><link>https://devzone.nordicsemi.com/thread/418592?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 12:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:201045ce-f33b-4a2f-ad90-e9a27c08d259</guid><dc:creator>Jeff Maigemu</dc:creator><description>&lt;p&gt;Thanks for your reply. How would you suggest that I configure my SPI to achieve the maximum rates then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr - Changing SPI Frequency on NRF52840DK</title><link>https://devzone.nordicsemi.com/thread/418380?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 14:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c388c90-0199-4601-9c9d-2f92ec9afc77</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have not tried the SPI bitbanging sample, but I am quite certain that bit banging is a slow process and will take many CPU cycles to bang just one bit of the serial protocol. I have not profiled this serial communication but 12.5Khz could be on the max end of what you can achieve with bit banging for SPI. I cannot say it for sure, since I have not tested this but I do not think you can achieve very high rates compared to 32MHz HFCLK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>