<?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>3-wire SPI interface</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4446/3-wire-spi-interface</link><description>I am trying to connect an accelerometer to my board. Unfortunately I only have enough GPIO&amp;#39;s available to configure for a 3-wire SPI interface. However I can&amp;#39;t find any information on how to configure the nRF51822 for a 3-wire SPI interface, or how it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Nov 2014 01:55:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4446/3-wire-spi-interface" /><item><title>RE: 3-wire SPI interface</title><link>https://devzone.nordicsemi.com/thread/15790?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2014 01:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28efe1aa-0b0c-4bb8-a5f3-20d0fdfd8823</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;and as I said, no there is no way to combine SDI and SDO. So if you want bi-directional comms, you need at least 3 GPIOs, CLK, SDI and SDO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3-wire SPI interface</title><link>https://devzone.nordicsemi.com/thread/15789?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2014 01:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5735356b-ff88-4a9c-8d63-406db28d08c0</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;The wording the RM was a little abstract in its description of 3-wire configuration.  I understand that the CS must be handled by the application.  What I meant was if there was a solution which involved a standard SPI 3-wire interface which combines SDI &amp;amp; SDO.&lt;/p&gt;
&lt;p&gt;I am currently using a GPIO to power this external IC.  I may hardwire the accelerometer to Vcc and use this GPIO for the CS.&lt;/p&gt;
&lt;p&gt;Thanks for the help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 3-wire SPI interface</title><link>https://devzone.nordicsemi.com/thread/15788?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2014 01:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae17a522-59db-474a-9723-39341782b09b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Rather depends what you mean. You only need 3 GPIOs to implement SPI; MISO, MOSI and SCLK, as the nrf51 doesn&amp;#39;t support chip select.&lt;/p&gt;
&lt;p&gt;If you only have 2 GPIOs available and only need transmission in one direction, you can just connect clock + whichever of the two data lines you need and leave the other one unconfigured in the register.&lt;/p&gt;
&lt;p&gt;If however you are talking about the 1/2 duplex version of SPI which uses one data line (SISO) and one clock line for bi-directional comms, you can&amp;#39;t do it with the nrf51822 SPI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>