<?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>Reading LIS2DH12 register via SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116055/reading-lis2dh12-register-via-spi</link><description>Hi. 
 I am using a custom board on an nRF52810 microcontroller and a LIS2DH12 accelerometer connected to it via SPI. SDK version 2.7.0. 
 Here&amp;#39;s my settings: 
 .dts file --&amp;gt; 
 
 Devicetree visual editor screen --&amp;gt; 
 
 pinctrl file --&amp;gt; 
 
 prj.conf --</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Dec 2024 13:23:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116055/reading-lis2dh12-register-via-spi" /><item><title>RE: Reading LIS2DH12 register via SPI</title><link>https://devzone.nordicsemi.com/thread/512983?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2024 13:23:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3329b7ef-81da-4474-8384-30155a3f8aaa</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delay. Since you are using a custom board I cannot reproduce them here.&lt;/p&gt;
&lt;p&gt;From your project dts files, it looks like you are assigning pins 6,7,8,and 9 from the SPI&amp;#39;s MOSI, MISO, CS and SCK which you confirm are properly connected and solely being used for the purpose.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try reducing the speed from 10MHz to something less than 8MHz as it&amp;#39;s not supported? Do you still face the issue?&lt;/p&gt;
&lt;p&gt;If you still get the issue, maybe you could&amp;nbsp;use&amp;nbsp;GPIO to set and clear the SCK pin and observe the signal on a logic analyzer.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading LIS2DH12 register via SPI</title><link>https://devzone.nordicsemi.com/thread/510557?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 18:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:883cb224-effe-4352-8dbf-7f5f6343f640</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi Priyanka.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, I can confirm that these pins are used exclusively for connecting the accelerometer via SPI and nothing else.&lt;/p&gt;
&lt;p&gt;I even reassigned SCK to another pin (P0.15), but the result was the same - no signal on SCK.&lt;/p&gt;
&lt;p&gt;Does my project work on your hardware?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading LIS2DH12 register via SPI</title><link>https://devzone.nordicsemi.com/thread/510450?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 10:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71632b0e-2c94-4cee-a1b4-6230791ae3b4</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""] I don&amp;#39;t understand why in devicetree editor the maximum frequency is 8MHz, although I set it to 10MHz?[/quote]
&lt;p&gt;I think this is probably because the maximum supported speed for the 52810 is 8MHz :&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5545.pastedimage1731575779753v4.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]For some reason there is no signal on the SCK line (although there is physical contact between the microcontroller and LIS2DH12). [/quote]
&lt;p&gt;Could you check that the pins you have used for the SPI communication , P0.06 - P0.08 are used solely for the SPI communication and are not used otherwise anywhere?&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading LIS2DH12 register via SPI</title><link>https://devzone.nordicsemi.com/thread/509826?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 09:16:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b646202b-1cfa-46b6-ac06-61fcf767f073</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi Priyanka.&lt;br /&gt;Have you been able to identify the problem in the project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading LIS2DH12 register via SPI</title><link>https://devzone.nordicsemi.com/thread/509565?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 20:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8135311-e9fb-463d-9c88-e4493c3f6cce</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Priyanka.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is an archive with the project itself and the *dts and pinctrl files for the custom board.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/SPI-Project.rar"&gt;devzone.nordicsemi.com/.../SPI-Project.rar&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading LIS2DH12 register via SPI</title><link>https://devzone.nordicsemi.com/thread/509559?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 19:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a761850e-2ffb-4436-862a-e5c1634a4fca</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it possible to attach your project file here so that I can try to reproduce the issue?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading LIS2DH12 register via SPI</title><link>https://devzone.nordicsemi.com/thread/509114?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2024 13:16:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b399b149-97b5-437a-9bf7-1f75c721487c</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Any news?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>