<?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 Miso problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28683/spi-miso-problem</link><description>Hello, 
 I am using nRF SDK 12.2.0 , with nRF52832 on pca10040 hardware, and working with the example in examples/peripheral/spi/main.c to develop a driver for LIS2DE12. When I write a hexadecimal value I find a problem.
I checked with the scope that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Dec 2017 14:23:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28683/spi-miso-problem" /><item><title>RE: spi Miso problem</title><link>https://devzone.nordicsemi.com/thread/113701?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 14:23:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2339622-6892-413a-89b5-b91793bff6d9</guid><dc:creator>Nero</dc:creator><description>&lt;p&gt;@Jørgen I feel like I send ORC byte in writing, because when reading I always read ORC octect in the register&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi Miso problem</title><link>https://devzone.nordicsemi.com/thread/113700?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2017 10:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53a46b89-fb49-4aba-a746-91eec25b6d5a</guid><dc:creator>Nero</dc:creator><description>&lt;p&gt;the problem is that I can read the default values of the registers, but when I try to write and read the register at the same time but I encounter a problem (a byte of ORC bits which is added during the write)
this a example CTRL_REG1(0x20)&lt;/p&gt;
&lt;p&gt;Write funcion
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0167.Capture1.PNG"&gt;Capture1.PNG&lt;/a&gt;
Read function
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/51283.Capture.PNG"&gt;Capture.PNG&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi Miso problem</title><link>https://devzone.nordicsemi.com/thread/113699?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2017 14:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:346e5505-68e4-46b3-a785-3490a4ce0586</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I see. Which function call are you using for sending/receiving the WHO_AM_I command? It is not clear from you code, as there is a lot of function calls commented out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi Miso problem</title><link>https://devzone.nordicsemi.com/thread/113698?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2017 14:29:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ec4ad54-d75c-4016-ba52-fb6a0c741aaa</guid><dc:creator>Nero</dc:creator><description>&lt;p&gt;yes , 0x8F because in read mode bit 0 will be 1 ( Read, 1 = No Addr Inc, 001111 = WhoAmI Reg )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi Miso problem</title><link>https://devzone.nordicsemi.com/thread/113697?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2017 13:40:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:512e94a8-3fcd-41c3-a7ec-346733a9e357</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Fro your screenshot it seems like you are writing 0x8F, but the datasheet of the LIS2DE12 device say that the WHO_AM_I register is located in address 0x0F. Are you sure you are sending the correct command? Please post code snippets showing what you are doing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi Miso problem</title><link>https://devzone.nordicsemi.com/thread/113696?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2017 13:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f878434-34f6-4899-a349-1a21636fce22</guid><dc:creator>Nero</dc:creator><description>&lt;p&gt;I want to read the registerWho I am&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi Miso problem</title><link>https://devzone.nordicsemi.com/thread/113695?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2017 10:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98ec2cd4-60b9-4e28-b293-dca0657c7197</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What do you expect on the MISO line? If you are doing a read operation, I would expect the data on MISO line to be don&amp;#39;t-care while the command is transmitted, and the data afterwards to be what you are requesting. If you do a write operation, all data on MISO will be don&amp;#39;t care.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>