<?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>PPI + SPI + Timer.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72746/ppi-spi-timer</link><description>Hi guys. I&amp;#39;m fairly new at embedded development and I&amp;#39;m basically trying to set up a workflow that goes like this: 
 
 
 Toggle a GPIO high - low, with a duty cycle of ~500 nS. 
 Enable the SPI peripheral 
 Get 16 bits 
 Disable the SPI peripheral 
 Sleep</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Mar 2021 14:07:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72746/ppi-spi-timer" /><item><title>RE: PPI + SPI + Timer.</title><link>https://devzone.nordicsemi.com/thread/299830?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 14:07:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d03fb62-5572-44e5-a35c-f13c0c3ad3a5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks to me like the GPIO here is the slave select / chip select. The SPIM hardware does not have support for chip select, but it is supported by the driver. So if you are happy with the timing there, you can get this for free from the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/hardware_driver_spi_master.html"&gt;SPI driver&lt;/a&gt;. If not and you need exact timing, then using GPIOTE and a TIME via PPI is the way to go. For that I suggest you refer to the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ppi_example.html"&gt;PPI example&lt;/a&gt; (assuming you use the nRF5 SDK). I do not see a reason to use PWM here.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>