<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MMA8452 freefall detection in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854484#M5417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Justin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to hear that, such troubles with I2C communication are quite common, that is why I always recommend to read the&amp;nbsp;&lt;SPAN style="color: #666666; background-color: #ffffff;"&gt;WHO_AM_I register at first as well as previously written registers.&amp;nbsp;Using a logic analyzer or an oscilloscope&amp;nbsp;helps a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff;"&gt;Tomas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2019 08:36:32 GMT</pubDate>
    <dc:creator>TomasVaverka</dc:creator>
    <dc:date>2019-01-25T08:36:32Z</dc:date>
    <item>
      <title>MMA8452 freefall detection</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854480#M5413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to detect free fall detection as per&amp;nbsp;AN4070 application note, below&amp;nbsp;are the register settings i have configured&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MMA8452_CTRL1_REG =&amp;nbsp;0x20;&amp;nbsp; //Set the device in 50 Hz ODR, Standby&lt;/P&gt;&lt;P&gt;MMA8452_FF_MT_CFG=&amp;nbsp;0xA0; //Configuration Register set for Freefall Detection enabling “AND” condition, OAE = 0, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Enabling X, Y, Z and the Latch&lt;/P&gt;&lt;P&gt;MMA8452_FF_MT_THS = 0x03; //0.2g/0.063g = 3.17 counts //Round to 3 counts&lt;BR /&gt;MMA8452_FF_MT_COUNT = 0x06; //120 ms/20 ms (steps) = 6 counts&lt;/P&gt;&lt;P&gt;MMA8452_CTRL4_REG&amp;nbsp;= 0x00;&amp;nbsp; //Enable Motion/Freefall Interrupt Function in the System&lt;BR /&gt;MMA8452_CTRL5_REG=&amp;nbsp;0x00;&amp;nbsp; //Route the Motion/Freefall Interrupt Function to INT2 hardware pin&amp;nbsp;&lt;BR /&gt; IMMA8452_CTRL1_REG&amp;nbsp; = MMA8452_CTRL1_REG | 0x01;&amp;nbsp; //Put the device in Active Mode, 50 Hz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This configuration is followed by reading&amp;nbsp;MMA8452_INT_SOURCE register, and the result is 0xFF;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and followed by reading MMA8452_FF_MT_SRC register&lt;SPAN&gt;, and the result of this register is also 0xFF;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reading of register MMA8452_FF_MT_SRC&amp;nbsp;should have cleared the freefall interuupt, and interrupt is always active and not clearing at all. Is there anything i am missing out? (I am not using hardware pin INT2 now, as there is hardware limitation)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:57:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854480#M5413</guid>
      <dc:creator>jusantony89</dc:creator>
      <dc:date>2026-02-03T21:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8452 freefall detection</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854481#M5414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Justin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First off, could you please double check that you are able to read the WHO_AM_I register (0x0D) and&amp;nbsp;other previously initialized registers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Then please try to change MMA8452_CTRL4_REG&amp;nbsp;= 0x00 to&amp;nbsp;&lt;SPAN&gt;MMA8452_CTRL4_REG&amp;nbsp;= 0x04.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Tomas&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 11:55:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854481#M5414</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2019-01-23T11:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8452 freefall detection</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854482#M5415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Tomas,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;I have corrected control Register 4 value to&amp;nbsp;0x04. Still not successful.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #666666; font-size: 14px; "&gt;I tried to read WHO_AM_I register (0x0D)&amp;nbsp;and the result is also 0xFF, It is supposed to be 0x2A,right?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #666666; font-size: 14px; "&gt;I have verified the presence of 0x1C device in my I2C line and it is showing up correctly.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #666666; font-size: 14px; "&gt;I also tried reading 6 bytes of data continuously&amp;nbsp;from&amp;nbsp;0x01 to 0x06 , I am able to read the data and is acknowledged&amp;nbsp;properly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #666666; font-size: 14px; "&gt;Here also the first data byte&amp;nbsp;received is always 0xFF, remaining 5 data bytes are changing as per the&amp;nbsp;acceleration too.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #666666; font-size: 14px; "&gt;Meanwhile the same loop have another I2C based 1 byte memory write and read, and that works perfectly fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #666666; font-size: 14px; "&gt;Any comments!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 12:12:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854482#M5415</guid>
      <dc:creator>jusantony89</dc:creator>
      <dc:date>2019-01-24T12:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8452 freefall detection</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854483#M5416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Tomas,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MMA8452 is working fine, free fall also detecting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed my I2C communication mode for write operation (when write&amp;nbsp;is used to set register for next read)&lt;/P&gt;&lt;P&gt;to&amp;nbsp;&lt;STRONG&gt;Complete the transfer without a Stop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Earlier i was using Full transfer with Start and Stop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Justin&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 06:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854483#M5416</guid>
      <dc:creator>jusantony89</dc:creator>
      <dc:date>2019-01-25T06:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8452 freefall detection</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854484#M5417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Justin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to hear that, such troubles with I2C communication are quite common, that is why I always recommend to read the&amp;nbsp;&lt;SPAN style="color: #666666; background-color: #ffffff;"&gt;WHO_AM_I register at first as well as previously written registers.&amp;nbsp;Using a logic analyzer or an oscilloscope&amp;nbsp;helps a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff;"&gt;Tomas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 08:36:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452-freefall-detection/m-p/854484#M5417</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2019-01-25T08:36:32Z</dc:date>
    </item>
  </channel>
</rss>

