<?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>Arduino SPI PIN number</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30956/arduino-spi-pin-number</link><description>Hi Dev Zone, 
 I am going to communicate my nRF52840 Preview DK with an arduino shield. I am checking the PIN number. According to the information about the Arduino board, the SPI pins are 10,11,12,13. Corresponding to nRF52840 Preview DK, they are p1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Mar 2018 06:49:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30956/arduino-spi-pin-number" /><item><title>RE: Arduino SPI PIN number</title><link>https://devzone.nordicsemi.com/thread/122545?ContentTypeID=1</link><pubDate>Fri, 02 Mar 2018 06:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8913dda6-4309-4583-ab16-ad1de54e7271</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Regarding second point file st7565LCD.c is using spi transaction manager so you will not find direct access to registers as it is too high abstraction layer for SPI. You can read a bit more about SPI transaction manager&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_nrf_spi_mngr.html?cp=4_0_0_3_44"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Functions used for communication:&lt;/p&gt;
&lt;p&gt;nrf_spi_mngr_schedule&amp;nbsp; - you can schedule many transactions which will be processed via interrupts when the bus is free.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nrf_spi_mngr_perform -&amp;nbsp;you can schedule one&amp;nbsp;transaction and you will wait until it is finished.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arduino SPI PIN number</title><link>https://devzone.nordicsemi.com/thread/122522?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 23:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69d32b25-432e-48ee-bbf3-8d29d4897644</guid><dc:creator>Ree Wang</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;In st7565LCD.c file,&lt;/p&gt;
&lt;p&gt;1) Could you please tell me which functions are used to read and write data to SPI peripheral device?&lt;/p&gt;
&lt;p&gt;2) Is it possible to&amp;nbsp;&lt;span&gt;read&amp;nbsp;and write the registers such as SPDR, SPSR and how to access the bit such as SPIF?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sorry about these specific questions. The Arudino shield I am using uses a 3rd party library and AVR library, in that library, it uses SPDR, SPSR register and set register&amp;#39;s bit.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arduino SPI PIN number</title><link>https://devzone.nordicsemi.com/thread/122520?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 22:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6938c59f-8cf0-4f49-8f04-164d60a31afe</guid><dc:creator>Ree Wang</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arduino SPI PIN number</title><link>https://devzone.nordicsemi.com/thread/122229?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 08:17:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dbfebed-5a03-4ea0-8b45-1346dec15762</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Example SPI configuration for Arduino shield can be found in file st7565LCD.c (sdk\nrf5\examples\peripheral\spi_master_using_nrf_spi_mngr)&lt;/p&gt;
&lt;p&gt;It has following configuration:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;.sck_pin = ARDUINO_13_PIN,&lt;br /&gt;.mosi_pin = ARDUINO_11_PIN,&lt;br /&gt;.miso_pin = NRF_DRV_SPI_PIN_NOT_USED,&lt;br /&gt;.ss_pin = ARDUINO_10_PIN,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Arduino SPI PIN number</title><link>https://devzone.nordicsemi.com/thread/122223?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 07:43:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7950e85d-29a8-4c4c-becf-16bff22361e7</guid><dc:creator>Liverpool007</dc:creator><description>&lt;p&gt;You can redefine the pin numbers as per your requirenment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>