<?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>Mapping Pins to Serial Preference</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62069/mapping-pins-to-serial-preference</link><description>For either the nrf52840 or the nrf52833 which pins are responsible for configuring the serial preference SPI, UART and I2C and how to map them. Are they any software examples of this?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jun 2020 08:44:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62069/mapping-pins-to-serial-preference" /><item><title>RE: Mapping Pins to Serial Preference</title><link>https://devzone.nordicsemi.com/thread/253707?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2020 08:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1928111d-ae73-47f5-bff0-9d8b67d4ed9f</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;In examples/peripheral/spi/main.c line 84.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mapping Pins to Serial Preference</title><link>https://devzone.nordicsemi.com/thread/253648?ContentTypeID=1</link><pubDate>Sun, 07 Jun 2020 02:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03385072-957e-489b-be87-6e42853cbd7a</guid><dc:creator>Sherwood</dc:creator><description>&lt;p&gt;In the SPIM Driver example where in the code are the mosi,miso,sck&amp;nbsp;pins assigned to their respective gpio ports? They are defined as&amp;nbsp;&lt;a class="code" title="This value can be provided instead of a pin number for signals MOSI, MISO, and Slave Select to specif..." href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrfx__spim.html#ga5294e56c58c298b1610d19035b249f75"&gt;NRFX_SPIM_PIN_NOT_USED&lt;/a&gt;&lt;span&gt;, but where are they assigned to the physical pins&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mapping Pins to Serial Preference</title><link>https://devzone.nordicsemi.com/thread/253190?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 08:10:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa15d510-22d1-4cc7-8ab9-122cfc681c1c</guid><dc:creator>haakonsh</dc:creator><description>[quote user="LogicTechMassaMicrowave"]Second question are all gpio pins of the nrf52833 capable of being configured as a serial port?[/quote]
&lt;p&gt;&amp;nbsp;Yes.&amp;nbsp;&lt;/p&gt;
[quote user="LogicTechMassaMicrowave"]Thank you for the quick response. I am quite new to the nordic devices and interfacing them through SPI. Would it be possible for you to walk me through an example detailing the configuration of pins capable of SPI,UART and I2C.&amp;nbsp;[/quote]
&lt;p&gt;Any example uses the driver API, I suggest you read&amp;nbsp;&lt;a title="SPIM driver" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrfx__spim.html?cp=7_1_6_9_0_32_0"&gt;SPIM driver&lt;/a&gt;&amp;nbsp;API documentation&amp;nbsp;when going through the &lt;a title="SPI Master Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/spi_master_example.html?cp=7_1_4_6_39"&gt;SPI Master Example&lt;/a&gt;, as well as read the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html?cp=4_2_0_30#concept_j35_hv2_wr"&gt;SPIM — Serial peripheral interface master with EasyDMA&lt;/a&gt;&amp;nbsp;chapter of the product specification.&amp;nbsp;Most API calls to the driver will eventually result in a read or write to one of the peripheral&amp;#39;s&amp;nbsp;&lt;a title="  Registers  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html?cp=4_2_0_30_5#unique_1705305083"&gt;Registers&lt;/a&gt;, by reading the specification of the peripheral you can understand what any driver function does by looking at what values is written to what register.&amp;nbsp;&lt;br /&gt;You can at any point in time in a debug session halt the CPU and read the values of the SPIM register to see whether it is configured correctly or not, by comparing it to the&amp;nbsp;&lt;a title="  Registers  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html?cp=4_2_0_30_5#unique_1705305083"&gt;Registers&lt;/a&gt;&amp;nbsp;description.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;For instance, the&amp;nbsp;&lt;a title="  PSEL.SCK  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html?cp=4_2_0_30_5_4#register.PSEL.SCK"&gt;PSEL.SCK&lt;/a&gt;,&amp;nbsp;&lt;a title="  PSEL.MOSI  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html?cp=4_2_0_30_5_5#register.PSEL.MOSI"&gt;PSEL.MOSI&lt;/a&gt;, and&amp;nbsp;&lt;a title="  PSEL.MISO  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html?cp=4_2_0_30_5_6#register.PSEL.MISO"&gt;PSEL.MISO&lt;/a&gt;&amp;nbsp;register controls the pin selections.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mapping Pins to Serial Preference</title><link>https://devzone.nordicsemi.com/thread/253137?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 22:47:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6933d6d8-de61-4fc4-b919-52c5dd4afdb5</guid><dc:creator>Sherwood</dc:creator><description>&lt;p&gt;Thank you for the quick response. I am quite new to the nordic devices and interfacing them through SPI. Would it be possible for you to walk me through an example detailing the configuration of pins capable of SPI,UART and I2C.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Second question are all gpio pins of the nrf52833 capable of being configured as a serial port?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mapping Pins to Serial Preference</title><link>https://devzone.nordicsemi.com/thread/252916?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 08:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:211c5ff1-8b72-463b-b0fd-f7f245327d09</guid><dc:creator>haakonsh</dc:creator><description>[quote user=""]which pins are responsible for configuring the serial preference SPI, UART and I2C and how to map them. [/quote]
&lt;p&gt;&amp;nbsp;It&amp;#39;s SW controlled. See any peripheral example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>