<?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>nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42410/nrf52832-spi-psel-sck</link><description>I use nrf52832 SPIM, and I want there are gaps between every 8clock, so I set NRF_SPIM0-&amp;gt;TXD.MAXCNT = 1; NRF_SPIM0-&amp;gt;RXD.MAXCNT = 1; ,But there is alway more clock than I want,(I want to write 8clock, but there are 16clock), then the nordic engineer tell</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Mar 2019 15:27:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42410/nrf52832-spi-psel-sck" /><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/174856?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 15:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dc0a691-f64c-444d-b161-8839001d4ba7</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Again, I don&amp;#39;t think the problem is from the initializing of the GPIO as the previous project didn&amp;#39;t have the gaps when i initialized the GPIO. I first observed the gaps when the&amp;nbsp;&lt;span&gt;last_valid_cmd[0] = 0 was included.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/173426?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 10:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09f2b618-bfd9-475a-bdbe-aa874197039e</guid><dc:creator>yanli_1226</dc:creator><description>&lt;p&gt;&lt;span&gt;there is the same problem in spi sck when I use the nRF5_SDK_15.0.0_a53641a&lt;/span&gt;&lt;span&gt;, I&amp;nbsp; use the project in \nRF5_SDK_15.0.0_a53641a\examples\peripheral\spi\pca10040\blank\arm5_no_packs, and&amp;nbsp;alternate three files: main.c, nrf_drv_spi.c, nrf_drv_spi.h. main.c is just like below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1551349062417v5.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/spi_5F00_test.rar"&gt;devzone.nordicsemi.com/.../spi_5F00_test.rar&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5226.nrf_5F00_drv_5F00_spi.c"&gt;devzone.nordicsemi.com/.../5226.nrf_5F00_drv_5F00_spi.c&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7215.nrf_5F00_drv_5F00_spi.h"&gt;devzone.nordicsemi.com/.../7215.nrf_5F00_drv_5F00_spi.h&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/81441.main.c"&gt;devzone.nordicsemi.com/.../81441.main.c&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/171302?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 08:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eff87cf7-4eaf-4905-b6eb-1891fffd6967</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Try:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;spi_master_init();&lt;/span&gt;&lt;br /&gt;&lt;span&gt;nrf_gpio_cfg_output(30); // if pin30 is not set output and set1/clear0,spi sck is not right&lt;/span&gt;&lt;br /&gt;&lt;span&gt;nrf_gpio_pin_clear(30);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;//last_valid_cmd[0] = 0;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and see if the issue still appears.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can download our SDK from &lt;a href="https://developer.nordicsemi.com/nRF5_SDK/"&gt;here&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/171294?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 08:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d1e24f6-96a8-46fa-b32d-9cb38ca49d26</guid><dc:creator>yanli_1226</dc:creator><description>&lt;p&gt;config like this:&lt;/p&gt;
&lt;p&gt;spi_master_init();&lt;br /&gt; nrf_gpio_cfg_output(30); // if pin30 is not set output and set1/clear0,spi sck is not right&lt;br /&gt; nrf_gpio_pin_clear(30);&lt;br /&gt; //last_valid_cmd[0] = 0;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;or config like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;spi_master_init();&lt;br /&gt; //nrf_gpio_cfg_output(30); // if pin30 is not set output and set1/clear0,spi sck is not right&lt;br /&gt; //nrf_gpio_pin_clear(30);&lt;br /&gt; last_valid_cmd[0] = 0;&lt;/p&gt;
&lt;p&gt;there are not gaps between every 8clocks, only config like this:&lt;/p&gt;
&lt;p&gt;spi_master_init();&lt;br /&gt; nrf_gpio_cfg_output(30); // if pin30 is not set output and set1/clear0,spi sck is not right&lt;br /&gt; nrf_gpio_pin_clear(30);&lt;br /&gt; last_valid_cmd[0] = 0;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;there are&amp;nbsp; gaps between every 8clocks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/171280?ContentTypeID=1</link><pubDate>Fri, 15 Feb 2019 06:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bd42158-2b77-46d2-8176-c7b4d263ec67</guid><dc:creator>yanli_1226</dc:creator><description>&lt;p&gt;how to get SDK version，I download the example from ARM/pack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/170847?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 11:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01f3d885-b305-4ebe-aa8f-10ed792c6048</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;I meant to write: Which &lt;strong&gt;SDK Version&lt;/strong&gt; are you using? Have you tried commenting out the line l&lt;span&gt;ast_valid_cmd[0] = 0 and see if the issue persists?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/170766?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 07:46:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:668a7451-341b-4570-bde2-daf4fbd2396a</guid><dc:creator>yanli_1226</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1550043945417v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I use the example installed in keil/ARM/pack&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/169858?ContentTypeID=1</link><pubDate>Thu, 07 Feb 2019 08:57:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f56781c9-9992-4685-9f91-7598e53f0ced</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t seem that it is the initialization of the GPIO that is causing the issue but rather the initialization of the last_valid_cmd[0] = 0. Which SDK are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/166986?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 03:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fedf0206-ba37-4ba2-8b30-f70330960dfb</guid><dc:creator>yanli_1226</dc:creator><description>&lt;p&gt;Thanks, the code is just as bellow:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52832_5F00_SPI_5F00_VTEST.rar"&gt;devzone.nordicsemi.com/.../nrf52832_5F00_SPI_5F00_VTEST.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In main.c , if I comment the following, there are not gaps between every 8 SPI SCK&amp;nbsp;&lt;/p&gt;
&lt;p&gt;//nrf_gpio_cfg_output(30);&amp;nbsp; &amp;nbsp; // if pin30 is not set output and set1/clear0,spi sck is not right&lt;br /&gt; //nrf_gpio_pin_clear(30);&lt;br /&gt; //last_valid_cmd[0] = 0;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1548127651235v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I not comment the following,there are gaps be&lt;span&gt;tween every 8 SPI SCK&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf_gpio_cfg_output(30); // if pin30 is not set output and set1/clear0,spi sck is not right&lt;/span&gt;&lt;br /&gt;&lt;span&gt;nrf_gpio_pin_clear(30);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;last_valid_cmd[0] = 0;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1548127713860v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;that&amp;#39;s strange, I don&amp;#39;t know what&amp;#39;s the matter?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/166741?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 08:52:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b1e181c-823e-475b-922a-1f565d4090d6</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;I find this very strange. Could you share your code so I could try to reproduce the error?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/165849?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 03:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63901fbe-0438-497b-95ab-b40403146fb0</guid><dc:creator>yanli_1226</dc:creator><description>&lt;p&gt;the picture is SPI SCK, I want the SPI SCK to have gaps between every 8 clock, so I use&amp;nbsp;&lt;span&gt;NRF_SPIM0-&amp;gt;TXD.MAXCNT = 1; NRF_SPIM0-&amp;gt;RXD.MAXCNT = 1;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P0.30 is an IO, not used as an SPI pin, but I find that , if I not config P0.30 as a output pin, there are&amp;nbsp;not gaps between every 8 clock, just like the picture shows. IF I config&amp;nbsp;P0.30 as a output pin(I config P0.30 like this:nrf_gpio_cfg_output(30); nrf_gpio_pin_clear(30);),&amp;nbsp;there&amp;nbsp;are&amp;nbsp;gaps between every 8 clock just as what I want.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the question is :P0.30 is not used as an SPI pin, why&amp;nbsp;it&amp;nbsp;influences the SPI SCK&amp;nbsp;Waveform。the SPI code is just like bellow:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1547608074223v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1547608089293v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1547608147242v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 spi (PSEL.SCK)</title><link>https://devzone.nordicsemi.com/thread/165513?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 14:32:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d932f87-60e5-4d4e-84ac-33c52f3c5c37</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure i understand your problem.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What do you mean by output pin? The data pin for SPI? A GPIO pin?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;What is shown in the picture? The clock signal? The data line?&lt;/li&gt;
&lt;li&gt;What is meant by not configuring P0.30?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>