<?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 communication with ADXL372</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57099/spi-communication-with-adxl372</link><description>My problem seems to be a lot like case numbers 217967 and 243215. 
 I do not have an oscilloscope or logic analyzer. 
 I am using a nRF52840 DK (PCA10056 1.0.0 2018-17) and a nRF52840 (PCA10056 2.0.0 2019-47). I am using the nRF5 SDK v16.0.0 along with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jan 2020 23:27:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57099/spi-communication-with-adxl372" /><item><title>RE: SPI communication with ADXL372</title><link>https://devzone.nordicsemi.com/thread/231769?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 23:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:930c597e-1705-49a2-82fc-43e011fa23c6</guid><dc:creator>matty</dc:creator><description>&lt;p&gt;hmolesworth, Thank you! Those are great ideas. Ever since I burnt a Cypress chip many years ago, I don&amp;#39;t connect anything without double checking. Also Analog Devices is assiduous in there warnings about supply voltages. I will implement your ideas and report back. Thanks again.&lt;/p&gt;
&lt;p&gt;5 hours latter and there is joy in Mudville! To paraphrase Marco in Case ID 116690, I was concentrating on software so much I forgot about the hardware. Thank you hmolesworth. Used shorter jumper wires and gave SCK and MOSI 5mA via H0HI. Prototyping proceeds and this shouldn&amp;#39;t be a problem when the nRF52480 and the ADXL372 are on the same board.&lt;/p&gt;
&lt;p&gt;Also check out Case ID 211119 for good S0S1 vs H0H1 explanation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication with ADXL372</title><link>https://devzone.nordicsemi.com/thread/231745?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 16:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6efbe52d-82fa-416f-8387-d8066092b428</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;You mention testing with an Arduino; hopefully that was with 3.5 volt i/o and not 5 volt given the max supply to the ADXL372 is 3.5 volts. The implication is that the ADXL372 is connected by some leads rather than being close to the nRF52 via PCB traces. The Arduino also has higher pin drive, I imagine, so I would suggest trying boosted drive levels on the nRF52 &lt;em&gt;after&lt;/em&gt; the SPI port is initialised with &lt;em&gt;nrf_drv_spi_init()&lt;/em&gt; as that function uses S0S1 or standard drive. Using a higher SCK frequency of 8MHz also shows more clearly on a &amp;#39;scope any edge bounce caused by the transmission lines being unterminated (I kid you not, this happens).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Change nRF52 driven pins to High Drive 0 and 1:
  nrf_gpio_cfg(SPI0_MOSI_PIN. NRF_GPIO_PIN_DIR_OUTPUT, NRF_GPIO_PIN_INPUT_DISCONNECT, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_H0H1, NRF_GPIO_PIN_NOSENSE);
  nrf_gpio_cfg(SPI0_SCK_PIN,  NRF_GPIO_PIN_DIR_OUTPUT, NRF_GPIO_PIN_INPUT_DISCONNECT, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_H0H1, NRF_GPIO_PIN_NOSENSE);
  nrf_gpio_cfg(SPI0_SS_PIN,   NRF_GPIO_PIN_DIR_OUTPUT, NRF_GPIO_PIN_INPUT_DISCONNECT, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_H0H1, NRF_GPIO_PIN_NOSENSE);
&lt;/pre&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication with ADXL372</title><link>https://devzone.nordicsemi.com/thread/231599?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 10:28:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c1bcb9-c992-4b1a-a546-5a6b7a0eb055</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looking at the code, I can&amp;#39;t find any obvious wrong no. Seems you have very relaxed timing, so that should not be an issue. I guess you can try to connect MISO to MOSI&amp;nbsp;without the&amp;nbsp;&lt;span&gt;adxl372, and see that you are loop backing the data as expected. I think waiting for the logic analyzer is the best way forward, then you can compare working and failing (it may for instance be polarity and phase of the SPI, possible voltage levels, or anything else at the moment unfortunately).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>