<?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>Understanding SPIM3 Hardware CS without SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87578/understanding-spim3-hardware-cs-without-sdk</link><description>Hello, 
 could you please tell me how to configure the Hardware Chip Select Funtionality for SPIM3. I am developing a communication between a sensor and the NRF via SPI transfers over EasyDMA, where NRF is the SPI master. I want to use the PPI to start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 May 2022 11:23:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87578/understanding-spim3-hardware-cs-without-sdk" /><item><title>RE: Understanding SPIM3 Hardware CS without SDK</title><link>https://devzone.nordicsemi.com/thread/366426?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 11:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3484f507-dab9-4048-a49a-b1edd49c9023</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are tre registers that are relevant for CSN on SPIM3. The simplest way to get an overview of how this works is to refer to the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/spim.html?cp=4_0_0_5_24"&gt;SPIM chapter in the PS&lt;/a&gt;, and see how CSN. is configured in the nrfx driver. That essentially just call this function (copy-pasted from nrf_spim.h):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;__STATIC_INLINE void nrf_spim_csn_configure(NRF_SPIM_Type *    p_reg,
                                            uint32_t           pin,
                                            nrf_spim_csn_pol_t polarity,
                                            uint32_t           duration)
{
    p_reg-&amp;gt;PSEL.CSN = pin;
    p_reg-&amp;gt;CSNPOL = polarity;
    p_reg-&amp;gt;IFTIMING.CSNDUR = duration;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;(As a side note, I would generally advice against avoiding drivers unless you have a good reason for doing so, for a&amp;nbsp;few of reasons: They will save you time, they will make your code more readable, and they often contain errata workarounds that it is easy to miss.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>