<?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>PSEL.MOSI How to select MOSI pins? Need clarification.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69607/psel-mosi-how-to-select-mosi-pins-need-clarification</link><description>I&amp;#39;m looking at the datasheet for the NRF52832 because I&amp;#39;ll be using it with a Raytac module and I&amp;#39;d like to know for sure how the SPI pins are set. 
 
 I see in the datasheet there are registers such as PSEL.MOSI, PSEL.MISO etc and these registers are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Dec 2020 22:03:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69607/psel-mosi-how-to-select-mosi-pins-need-clarification" /><item><title>RE: PSEL.MOSI How to select MOSI pins? Need clarification.</title><link>https://devzone.nordicsemi.com/thread/285465?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 22:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25430929-8147-497d-8755-3f1e72936dcd</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Quick sample of low-level and Nordic driver:&lt;/p&gt;
&lt;p&gt;NRF_SPIM0-&amp;gt;PSEL.MOSI = 12;&lt;/p&gt;
&lt;p&gt;nrf_drv_spi_config_t spi_config = NRF_DRV_SPI_DEFAULT_CONFIG;&lt;br /&gt;spi_config.mosi_pin = 12; // SPI_MOSI_PIN;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PSEL.MOSI How to select MOSI pins? Need clarification.</title><link>https://devzone.nordicsemi.com/thread/285464?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 21:53:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:908326d3-6f9c-44e6-905d-57279fe8b77c</guid><dc:creator>polishdude20</dc:creator><description>&lt;p&gt;Ok thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PSEL.MOSI How to select MOSI pins? Need clarification.</title><link>https://devzone.nordicsemi.com/thread/285463?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 21:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97e48ab0-7945-4f83-876a-1b1343885b81</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Ah, there are two options, use the Nordic library drivers which have examples there is a config call for each peripheral, or you can use low-level drivers which is what I showed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PSEL.MOSI How to select MOSI pins? Need clarification.</title><link>https://devzone.nordicsemi.com/thread/285459?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 20:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50568791-5f8e-41e1-a4c0-5db169430f5d</guid><dc:creator>polishdude20</dc:creator><description>&lt;p&gt;Ah so in the programming environment if you set PSEL.MOSI = 12 like that it will automatically know what it is? Or is that in some config files somewhere?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PSEL.MOSI How to select MOSI pins? Need clarification.</title><link>https://devzone.nordicsemi.com/thread/285458?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 20:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3c0182a-7961-4a2b-9d2e-da0c2709b3e3</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Like this:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;PSEL.MOSI = 12;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;There is a macro for decoding port pins on parts with P0, P1 etc but for the nRF52832 the above is simpler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>