<?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 4-Wire Master Issue with SPI Sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15139/nrf52832-spi-4-wire-master-issue-with-spi-sample</link><description>I have been trying to adapt the following example project to work with my SPI peripheral device (LIS2DE12 Accelerometer):
nRF5_SDK_11.0.0_89a8197\examples\peripheral\spi\pca10040\arm5_no_packs 
 My device has been flashed with S132 2.0. 
 Info on this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Aug 2016 13:43:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15139/nrf52832-spi-4-wire-master-issue-with-spi-sample" /><item><title>RE: nRF52832 SPI 4-Wire Master Issue with SPI Sample</title><link>https://devzone.nordicsemi.com/thread/57791?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 13:43:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e90efa8e-28a6-4e2a-be5b-ab68e00ebce0</guid><dc:creator>Mark J</dc:creator><description>&lt;p&gt;Yes. Issue was with measurement and not actual signals.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI 4-Wire Master Issue with SPI Sample</title><link>https://devzone.nordicsemi.com/thread/57790?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 11:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:928d3010-7a94-460c-989f-ed1f2136167f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@mjanke : Have you been able to resolve the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI 4-Wire Master Issue with SPI Sample</title><link>https://devzone.nordicsemi.com/thread/57789?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2016 00:09:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcc38ff2-a27c-4a02-b7cb-ab3faac63ed0</guid><dc:creator>Mark J</dc:creator><description>&lt;p&gt;Thanks Daniel. The reception of the leading 0xFF is clear to me now. The strange scope signals remain a mystery and are most likely just an issue with the scope or my setup of it (I am a software guy who hasn&amp;#39;t used one for a few decades). I will get a hardware engineer more involved in an effort to resolve.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI 4-Wire Master Issue with SPI Sample</title><link>https://devzone.nordicsemi.com/thread/57788?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 23:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fd97279-f1f6-4baa-9088-27100febb3cb</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;RK - great feedback.&lt;/p&gt;
&lt;p&gt;Mark - I am also confused by this &amp;#39;contention&amp;#39; concept; it&amp;#39;s the slave&amp;#39;s job to drive the MISO pin. Also, as RK pointed out, most SPI slave devices will either clock out a status byte or garbage for the first byte of a transaction because they don&amp;#39;t know what you want to do until they&amp;#39;ve read at least a byte of data. From the datasheet linked above:&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;quot;&amp;quot;
bit 8-15
: data DO(7:0) (read mode). This is the data that is read from the device (MSb first).
&amp;quot;&amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;Bits 0-7 in read mode are garbage for this device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI 4-Wire Master Issue with SPI Sample</title><link>https://devzone.nordicsemi.com/thread/57787?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 23:34:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ec724c1-5ada-4ec3-9284-59011a6bec5c</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&amp;quot;there appears to be contention on the MISO, MOSI and Clock lines.&amp;quot; is really totally meaningless, it just doesn&amp;#39;t say anything beyond &amp;quot;I don&amp;#39;t understand the signals&amp;quot;. The peripheral just doesn&amp;#39;t produce signals with 1/2 voltages so either there&amp;#39;s a connection issue on the board, and it would have to be a very odd one, or the scope&amp;#39;s not showing the signal properly. The SPI module doesn&amp;#39;t produce signals which look like that, whatever you do to it.&lt;/p&gt;
&lt;p&gt;As to the rest, since SPI clocks data in at the same time it clocks data out, throwing away the first few received bytes is not unusual because the first few bytes are clocked in from the slave before it&amp;#39;s received the bytes with the request, and those bytes are often either 0xFF or 0x00, ie with no data to send the slave just clocks out 1s or 0s. So that sounds completely usual to me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI 4-Wire Master Issue with SPI Sample</title><link>https://devzone.nordicsemi.com/thread/57786?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 20:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97e0d7b1-63b7-4441-8d87-a09f0b5a84cb</guid><dc:creator>Mark J</dc:creator><description>&lt;p&gt;RK - thanks for the response.&lt;/p&gt;
&lt;p&gt;No DK used. This is a custom device with solid trace supporting VDD and Gnd connections between an nRF52832 and accelerometer.&lt;/p&gt;
&lt;p&gt;Since posting, I have had some success using the driver. I am now reading 2 bytes (even though 1 is returned) and I am consistently getting 0xFF and then the byte that contains peripheral register data. I am also able to write peripheral register data and read back modifications. To get this, I changed the mode to &amp;quot;...Mode_0&amp;quot;, set the speed to 8 Mbps and I am throwing out the first byte returned from the driver (always 0xFF).&lt;/p&gt;
&lt;p&gt;I am still very concerned that I am seeing the scope output shown and will hope that someone from Nordic can offer a suggestion. Our hardware engineer has suggested that there appears to be contention on the MISO, MOSI and Clock lines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 SPI 4-Wire Master Issue with SPI Sample</title><link>https://devzone.nordicsemi.com/thread/57785?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 03:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a5bde1-5e83-4462-be61-5d417973e532</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Last time I had levels doing something silly like that I had a grounding issue, are you sure your dev board and your sensor have the same VDD and their grounds connected directly and firmly together? When I didn&amp;#39;t have that right, the whole sensor chip floated up and down as GPIOs went high and low.&lt;/p&gt;
&lt;p&gt;You should also fix your outstanding scope setup issue because it makes the results at least a little suspect.&lt;/p&gt;
&lt;p&gt;SPI is a driven protocol, so pullups/pulldowns aren&amp;#39;t required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>