<?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>LIS2DH12 interrupt configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58093/lis2dh12-interrupt-configuration</link><description>Hello, 
 I&amp;#39;m currently trying to configure the LIS2DH12 interrupt pin to wake up the CPU from sleep. I&amp;#39;m using SDK 15.2 with nRF52832. In the SDK there are files on the LIS2DH12 and there are two functions that I think might be for my case: 
 
 I&amp;#39;m not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Feb 2020 13:15:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58093/lis2dh12-interrupt-configuration" /><item><title>RE: LIS2DH12 interrupt configuration</title><link>https://devzone.nordicsemi.com/thread/235725?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 13:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76025a1d-4ec0-4296-93dd-68e041436be0</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;There is a good driver here&amp;nbsp;&lt;a href="https://github.com/IOsonata/IOsonata/blob/master/src/sensors/accel_lis2dh12.cpp"&gt;github.com/.../accel_lis2dh12.cpp&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH12 interrupt configuration</title><link>https://devzone.nordicsemi.com/thread/235691?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 11:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3f82d54-113d-4677-a588-472f81cd276a</guid><dc:creator>Fikri Saman</dc:creator><description>&lt;p&gt;To anyone that is interested, here is the following configuration that I did and it works on my board :&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;void sensor_init(void){

    ...
    
    LIS2DH12_INT1_PIN_CFG(m_lis2dh12,0,1,0,0,0,0,1,0);
    err = lis2dh12_cfg_commit(&amp;amp;m_lis2dh12);
    APP_ERROR_CHECK(err);

    LIS2DH12_INT1_CFG(m_lis2dh12,50,0,0,0,0,0,1,0,1,0,1);
    err = lis2dh12_cfg_commit(&amp;amp;m_lis2dh12);
    APP_ERROR_CHECK(err);
    
    ...

}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH12 interrupt configuration</title><link>https://devzone.nordicsemi.com/thread/235637?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 07:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f37c7b5f-7f6b-4ee0-a2c6-427079ca7307</guid><dc:creator>Otso Jousimaa</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure on how exactly it would work with that Nordic macro, here&amp;#39;s how I do it on ST drivers:&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;a href="https://github.com/ruuvi/ruuvi.drivers.c/blob/e23f24bf0902e0fb0edcaba00f28bd33dba64079/src/interfaces/acceleration/ruuvi_interface_lis2dh12.c#L949"&gt;https://github.com/ruuvi/ruuvi.drivers.c/blob/e23f24bf0902e0fb0edcaba00f28bd33dba64079/src/interfaces/acceleration/ruuvi_interface_lis2dh12.c#L949 &lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;* Enable high-pass on INT1 to not trigger due to gravity.&lt;br /&gt;* Enable Interrupt 1 on pin 2 (pin 1 is reserved for watermark in my case).&lt;br /&gt;* Enable interrupt on XYZ axis high.&lt;br /&gt;* Convert desired threshold to LSB, depending on the set scale.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s possible to determine the exact bytes from datasheet.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH12 interrupt configuration</title><link>https://devzone.nordicsemi.com/thread/235615?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 07:05:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:831da19a-e450-4a17-8bbb-61f6dc2ec9ef</guid><dc:creator>Fikri Saman</dc:creator><description>&lt;p&gt;Hi Otso,&lt;br /&gt;&lt;br /&gt;Sorry for the lack of detail. I&amp;#39;m still new to this but essentially I want LIS2DH12 to wake up the CPU when there is a huge movement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LIS2DH12 interrupt configuration</title><link>https://devzone.nordicsemi.com/thread/235542?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 15:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2f42c95-9f00-4bee-b302-94013f95f004</guid><dc:creator>Otso Jousimaa</dc:creator><description>&lt;p&gt;First you should&amp;nbsp;let us know when exactly LIS2DH12 should wake the CPU. FIFO buffer overflow? Some activity threshold exceeded?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ST also provides drivers for their ICs,&amp;nbsp;&lt;a href="https://github.com/STMicroelectronics/STMems_Standard_C_drivers"&gt;github.com/.../STMems_Standard_C_drivers&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>