<?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>about NRF52832 spi read and write</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49173/about-nrf52832-spi-read-and-write</link><description>Hi, 
 I am using NRF52832 for development without bluetooth SDK, NFC and RTC. 
 I am using a development board with SPI and a slave device that can communicate normally (using easy dma). 
 SCK---p0.29 MOSI---p0.31 MISO---p0.30 CS---p0.6 . 
 Later we made</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jan 2020 17:43:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49173/about-nrf52832-spi-read-and-write" /><item><title>RE: about NRF52832 spi read and write</title><link>https://devzone.nordicsemi.com/thread/227763?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 17:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35eefedd-7193-476e-b39c-866eb975cc44</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Even though the pins P0.0 and P0.1 might have be configured correctly in the code to not use the crystal, it is worth checking the register in case code elsewhere is overwriting that setting. I use this for special pins:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    // 32kHz Osc pins can be used as GPIOs or 32kHz Oscillator, special case
    if ( (PinId == PIN_XL2) &amp;amp;&amp;amp; (NRF_CLOCK-&amp;gt;LFCLKSRC &amp;amp; 0x000001) ) return &amp;quot;RTC-OSC-OUT&amp;quot;;
    if ( (PinId == PIN_XL1) &amp;amp;&amp;amp; (NRF_CLOCK-&amp;gt;LFCLKSRC &amp;amp; 0x000001) ) return &amp;quot;RTC-OSC-IN&amp;quot;;

    // NFC pins can be used as GPIOs or NFC, special case
    if ( (PinId == PIN_NFC1) &amp;amp;&amp;amp; ((NRF_UICR-&amp;gt;NFCPINS &amp;amp; UICR_NFCPINS_PROTECT_Msk) == (UICR_NFCPINS_PROTECT_NFC &amp;lt;&amp;lt; UICR_NFCPINS_PROTECT_Pos)) ) return &amp;quot;NFC 1&amp;quot;;
    if ( (PinId == PIN_NFC2) &amp;amp;&amp;amp; ((NRF_UICR-&amp;gt;NFCPINS &amp;amp; UICR_NFCPINS_PROTECT_Msk) == (UICR_NFCPINS_PROTECT_NFC &amp;lt;&amp;lt; UICR_NFCPINS_PROTECT_Pos)) ) return &amp;quot;NFC 2&amp;quot;;

    // Reset pin can be used as GPIOs or nReset, special case
    if ( (PinId == PIN_NRESET)                          // 21
     &amp;amp;&amp;amp; (((NRF_UICR-&amp;gt;PSELRESET[0] &amp;amp; UICR_PSELRESET_CONNECT_Msk) == (UICR_PSELRESET_CONNECT_Connected &amp;lt;&amp;lt; UICR_PSELRESET_CONNECT_Pos))
     &amp;amp;&amp;amp;  ((NRF_UICR-&amp;gt;PSELRESET[1] &amp;amp; UICR_PSELRESET_CONNECT_Msk) == (UICR_PSELRESET_CONNECT_Connected &amp;lt;&amp;lt; UICR_PSELRESET_CONNECT_Pos))) ) return &amp;quot;nRESET&amp;quot;;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In other words break and look at&amp;nbsp;&lt;em&gt;NRF_CLOCK-&amp;gt;LFCLKSRC&lt;/em&gt;, if the LS-bit is set then SPI will not work on those pins&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about NRF52832 spi read and write</title><link>https://devzone.nordicsemi.com/thread/227730?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 15:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10045c59-d6a1-4236-ae84-22f803b42009</guid><dc:creator>imCort</dc:creator><description>&lt;p&gt;I have the same problem.&lt;/p&gt;
&lt;p&gt;I use P0.0 as MOSI and P0.1 as SCLK, it didn&amp;#39;t work fine even if I carefully configured the LFCLK to RC in order to use P0.0 and P0.1 as normal GPIOs.&lt;/p&gt;
&lt;p&gt;Is there any hardware bugs for this two pin to use it in SPI mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about NRF52832 spi read and write</title><link>https://devzone.nordicsemi.com/thread/195575?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 09:40:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08ad6d52-f956-4914-8353-5f78c69c0b34</guid><dc:creator>awneil</dc:creator><description>[quote userid="78049" url="~/f/nordic-q-a/49173/about-nrf52832-spi-read-and-write/195563"]I don&amp;#39;t know why the levels on MOSI MISO are abnormal[/quote]
&lt;p&gt;So ,again, you need to&amp;nbsp;&lt;span&gt;investigate why that might be happening ...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about NRF52832 spi read and write</title><link>https://devzone.nordicsemi.com/thread/195563?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 09:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82ad6b3f-1a1c-4bf1-83c1-7ce95e975092</guid><dc:creator>tangyu</dc:creator><description>&lt;p&gt;&lt;span class="tgt"&gt;Use oscilloscope to measure the state of SPI four pins.&lt;/span&gt;&lt;span class="tgt"&gt;But I don&amp;#39;t know why the levels on MOSI MISO are abnormal.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about NRF52832 spi read and write</title><link>https://devzone.nordicsemi.com/thread/195548?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 08:50:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14cbd115-341d-4878-8e08-43ac16d0d2cf</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So what have you done to investigate why that might be happening?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.avrfreaks.net/comment/2418156#comment-2418156" rel="noopener noreferrer" target="_blank"&gt;How To Debug&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about NRF52832 spi read and write</title><link>https://devzone.nordicsemi.com/thread/195545?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 08:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55be75b2-c77a-4844-aea8-43bffde05c5d</guid><dc:creator>tangyu</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="tgt"&gt;I measured the current circuit board SPI signal.&lt;/span&gt;&lt;span class="tgt"&gt;CLK CS signal is normal.&lt;/span&gt;&lt;span class="tgt"&gt;The MISO and MOSI signals are just a high level and then a low level, no waveform of data is generated.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about NRF52832 spi read and write</title><link>https://devzone.nordicsemi.com/thread/195520?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 07:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80609fb5-43d7-4b75-a581-550a060be0c7</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So have you used an oscilloscope to see what&amp;#39;s actually happening?&lt;/p&gt;
&lt;p&gt;What happens if you try these pins on your &amp;quot;development board&amp;quot;&amp;nbsp; &amp;nbsp;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about NRF52832 spi read and write</title><link>https://devzone.nordicsemi.com/thread/195518?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 07:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2164323-a152-4524-a0d8-b015919354bf</guid><dc:creator>tangyu</dc:creator><description>&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;嗨，&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;执行读写操作时，SPI无法正确读写。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;数据手册中未发现使用限制。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;SPI的读/写将被卡在读/写中，这意味着它无法访问读/写完成中断。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0285.SPI.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/SPI2.jpg" /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1561967611997v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about NRF52832 spi read and write</title><link>https://devzone.nordicsemi.com/thread/195514?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 07:38:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98593496-f16d-4d33-909d-d13e75aca9a4</guid><dc:creator>awneil</dc:creator><description>[quote userid="78049" url="~/f/nordic-q-a/49173/about-nrf52832-spi-read-and-write"]communication is not normal[/quote]
&lt;p&gt;In what way(s), exactly, is it &amp;quot;not normal&amp;quot; ?&lt;/p&gt;
[quote userid="78049" url="~/f/nordic-q-a/49173/about-nrf52832-spi-read-and-write"]Do i need additional configuration when using p0.0 p0.1 as the peripheral IO?[/quote]
&lt;p&gt;Have you checked the &lt;strong&gt;Product Specification&lt;/strong&gt; to see if there are any specific requirements or limitations on amy of those those pins ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>