<?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>SPI - one clock cycle missing?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14553/spi---one-clock-cycle-missing</link><description>Hi, 
 My settings are:
NRF_DRV_SPI_FREQ_1M, NRF_DRV_SPI_MODE_2, NRF_DRV_SPI_BIT_ORDER_MSB_FIRST. 
 I&amp;#39;m trying to readback 0xD8. The proper value should be 0x71. Instead, I&amp;#39;m getting 0xB8. If I understand MODE 2 correctly, I&amp;#39;m doing the following:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Jun 2016 23:33:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14553/spi---one-clock-cycle-missing" /><item><title>RE: SPI - one clock cycle missing?</title><link>https://devzone.nordicsemi.com/thread/55576?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 23:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95e7abff-4433-4a02-b059-d92028ca3d29</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Looking at the arrows on the trace you&amp;#39;ve attached the Salae is set up to sample on the falling edge of the clock, which is why it&amp;#39;s showing 0xB8. And that is Mode 2, clock active low, data captured on the leading edge which is falling, not rising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>