<?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 Master read results in &amp;quot;zeros&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19272/nrf52832-spi-master-read-results-in-zeros</link><description>Update 1/27/2016 
 Just reviewing again the pins + schematic; I am using the following pins:

 SCK P0.07
 CS P0.08
 MOSI P0.06

 MISO P0.05/AIN3


 Looing at the MISO pin, it seems this is the only one that is &amp;quot;different&amp;quot; than the other 3 pins</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Jan 2017 14:54:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19272/nrf52832-spi-master-read-results-in-zeros" /><item><title>RE: nRF52832 SPI Master read results in "zeros"</title><link>https://devzone.nordicsemi.com/thread/74689?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 14:54:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aff2cd4-beff-48fb-a9c3-651925890797</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I&amp;#39;m glad you figured it out :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI Master read results in "zeros"</title><link>https://devzone.nordicsemi.com/thread/74688?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 14:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87646c53-9bd0-4bcf-bdd5-c1f8758e1288</guid><dc:creator>leey</dc:creator><description>&lt;p&gt;Thank you Sigurd !. After spending some time enabling debugging and looking at the drivers, still can&amp;#39;t find anything wrong.
Then looking again at the scopes data; suddenly it all makes sense.
We made a last minute change to power the nRF52 with 3.3V; what I don&amp;#39;t realize is that the ADC is still powered by 1.8V; so the respond from the ADC is 1.8V digital logic, which is just below the needed threshold for logic states for nRF52(with 3.3V VDD).
For the time being, I lowered the VDD to 2.5V and ALL is well.
Thank again for all the response and help.
It is not a wasted effort for me; as I am now more familiar with the Nordic SPI drivers and the approach in creating the drivers etc...
Thanks, Lee&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI Master read results in "zeros"</title><link>https://devzone.nordicsemi.com/thread/74686?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 14:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b38d354-917d-42f7-88ac-1d7518fe5c92</guid><dc:creator>leey</dc:creator><description>&lt;p&gt;Thank you Sigurd !.
After spending some time enabling debugging and looking at the drivers, still can&amp;#39;t find anything wrong.&lt;/p&gt;
&lt;p&gt;Then looking again at the scopes data; suddenly it all makes sense.&lt;/p&gt;
&lt;p&gt;We made a last minute change to power the nRF52 with 3.3V; what I don&amp;#39;t realize is that the ADC is still powered by 1.8V; so the respond from the ADC is 1.8V digital logic, which is just below the needed threshold for logic states for nRF52(with 3.3V VDD).&lt;/p&gt;
&lt;p&gt;For the time being, I lowered the VDD to 2.5V and ALL is well.&lt;/p&gt;
&lt;p&gt;Thank again for all the response and help.&lt;/p&gt;
&lt;p&gt;It is not a wasted effort for me; as I am now more familiar with the Nordic SPI drivers and the approach in creating the drivers etc...&lt;/p&gt;
&lt;p&gt;Thanks,
Lee&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI Master read results in "zeros"</title><link>https://devzone.nordicsemi.com/thread/74683?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 14:03:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61693082-075f-498f-880d-9d2593e74a9f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I just tested the spi-master example on the nRF52-DK, with these settings:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;//APP_ERROR_CHECK(NRF_LOG_INIT(NULL));

//NRF_LOG_INFO(&amp;quot;SPI example\r\n&amp;quot;);

nrf_drv_spi_config_t spi_config = NRF_DRV_SPI_DEFAULT_CONFIG;
spi_config.ss_pin   = 8;
spi_config.miso_pin = 5;
spi_config.mosi_pin = 6;
spi_config.sck_pin  = 7;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and it worked just fine.&lt;/p&gt;
&lt;p&gt;Also make sure that you are using the correct SPI mode. The default mode is &amp;quot;SCK active high, sample on leading edge of clock&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI Master read results in "zeros"</title><link>https://devzone.nordicsemi.com/thread/74687?ContentTypeID=1</link><pubDate>Sat, 28 Jan 2017 19:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e8716c6-7d43-4822-867c-ad90d31ff42c</guid><dc:creator>leey</dc:creator><description>&lt;p&gt;Commented UART, NRF_LOGs etc... from the sdk_config.h file; commented also GPIOTE option; still same issue ?&lt;/p&gt;
&lt;p&gt;Probably something obvious but at the moment, can&amp;#39;t seem to figure out why I cam not getting data as shown on the MISO pin itself ?&lt;/p&gt;
&lt;p&gt;I am working on our own PCB board; so hard to change the pins assignment; try a few, but getting shorts in a few places; tiny pins and no test pads or vias to put test wires on.&lt;/p&gt;
&lt;p&gt;Thanks,
Lee&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI Master read results in "zeros"</title><link>https://devzone.nordicsemi.com/thread/74684?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 17:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04b221a9-a3e3-4c88-87c8-570b8c0d9e9e</guid><dc:creator>leey</dc:creator><description>&lt;p&gt;I am not using UART; so a straight copy of the SPI examples from SDK 12.2.0; I removed all calls to LED inits and replace the pin used from the ones used in the examples to my set of pins; noted that the SCK, CS and MOSI pins seems to work as I am getting expected MISO data(on the scopes) but not on internal registers&lt;/p&gt;
&lt;p&gt;It seems that somehow maybe I need to add another init for pin P0.05 as it is also can be used as Analog input; so far this seems the only thing that I can think of.&lt;/p&gt;
&lt;p&gt;I will look again at my codes and remove all relevant of any UART or any LOGs stuff&lt;/p&gt;
&lt;p&gt;Thanks,
Lee&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI Master read results in "zeros"</title><link>https://devzone.nordicsemi.com/thread/74685?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 17:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c9ff637-ae62-4f75-abfb-02f8b7b09726</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;As seen &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Fdevelopment%2Fdev_kit_v1.1.0%2Fhw_conn_interf.html&amp;amp;cp=2_2_2_3_1_3"&gt;here&lt;/a&gt;, Pin P0.05 to P0.08 are by default used by the UART. Please check if you are using the UART module. If you are able to, you should also try switch to different pins to check if that solves the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI Master read results in "zeros"</title><link>https://devzone.nordicsemi.com/thread/74682?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 07:09:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90599f49-a041-4739-9635-3f4aeb5bda1c</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;You will need to post a snippet of your code, as you are almost certainly doing something wrong, as MISO clearly has data on it.&lt;/p&gt;
&lt;p&gt;I would also check which pin you have connected to MISO vs what you have configured in the code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>