<?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>Sensors中的主题 Re:  MMA8452Q - I2C interface</title>
    <link>https://community.nxp.com/t5/Sensors/MMA8452Q-I2C-interface/m-p/761173#M4910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/david_diaz"&gt;david_diaz&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;I had modified the I2C speed and also reviewed the device initialization as given in&amp;nbsp; &lt;A href="https://community.nxp.com/docs/DOC-98836"&gt;MMA8451Q - Bare metal example project&amp;nbsp;&lt;/A&gt; . Even after that the problem is not rectified.&lt;/P&gt;&lt;P&gt;To check whether number of samples are generated as per sampling rate, i had performed an experiment where i am acquiring acceleration samples of all the 3-axis for a period of 10 milliseconds. When i kept in 800Hz, instead of 8 samples (per axis) i was getting around 10 to 11 samples and this type of extra samples is followed for all other sampling rates also. As i said previously, i had tried using both polling and interrupt methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help me where can i go wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sainath gupta t&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2017 06:02:46 GMT</pubDate>
    <dc:creator>tvsg</dc:creator>
    <dc:date>2017-11-15T06:02:46Z</dc:date>
    <item>
      <title>MMA8452Q - I2C interface</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452Q-I2C-interface/m-p/761170#M4907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;i am currently using MMA8452Q and&amp;nbsp; i am facing problems with I2C interface. i am having two doubts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. what is the I2C speed (default) of the MMA8452Q and how to change its speed ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I had connected this accelerometer (using breakout board) to Raspberry Pi B+ model and while accessing data (using I2C) i am unable to acquire the acceleration data based on the set sampling rate.&lt;/P&gt;&lt;P&gt;Example, if the sampling rate is fixed at 100Hz instead of obtaining 100 samples per second i am getting more than 100 with values getting repeated.&lt;/P&gt;&lt;P&gt;I had tried polling and interrupt based methods as given in AN4076 but i couldn't solve the issue. I am using &lt;STRONG&gt;WiringPi&lt;/STRONG&gt; library to write and read data using I2C.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:53:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452Q-I2C-interface/m-p/761170#M4907</guid>
      <dc:creator>tvsg</dc:creator>
      <dc:date>2026-02-03T21:53:10Z</dc:date>
    </item>
    <item>
      <title>Re:  MMA8452Q - I2C interface</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452Q-I2C-interface/m-p/761171#M4908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The MMA8452Q device is compatible with the I2C fast-mode interface: &lt;STRONG&gt;&lt;EM&gt;0 to 400kHz.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So, please make sure your MASTER is configured to use I2C module within the baud rate mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In this case, I recommend reviewing the &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-98836"&gt;MMA8451Q - Bare metal example project&lt;/A&gt; and use it as a reference for your design. Please review the device initialization function and compare it with your configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any further question.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 18:22:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452Q-I2C-interface/m-p/761171#M4908</guid>
      <dc:creator>david_diaz</dc:creator>
      <dc:date>2017-11-09T18:22:39Z</dc:date>
    </item>
    <item>
      <title>Re:  MMA8452Q - I2C interface</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452Q-I2C-interface/m-p/761172#M4909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you David. &lt;/P&gt;&lt;P&gt;1. i think i am using an I2C speed of 100KHz. I will change it to 400KHz.&lt;/P&gt;&lt;P&gt;2. I will go through the device initialization declared in the &lt;STRONG&gt;bare metal example project&lt;/STRONG&gt; and will let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sainath gupta t&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 05:10:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452Q-I2C-interface/m-p/761172#M4909</guid>
      <dc:creator>tvsg</dc:creator>
      <dc:date>2017-11-10T05:10:49Z</dc:date>
    </item>
    <item>
      <title>Re:  MMA8452Q - I2C interface</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8452Q-I2C-interface/m-p/761173#M4910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/david_diaz"&gt;david_diaz&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;I had modified the I2C speed and also reviewed the device initialization as given in&amp;nbsp; &lt;A href="https://community.nxp.com/docs/DOC-98836"&gt;MMA8451Q - Bare metal example project&amp;nbsp;&lt;/A&gt; . Even after that the problem is not rectified.&lt;/P&gt;&lt;P&gt;To check whether number of samples are generated as per sampling rate, i had performed an experiment where i am acquiring acceleration samples of all the 3-axis for a period of 10 milliseconds. When i kept in 800Hz, instead of 8 samples (per axis) i was getting around 10 to 11 samples and this type of extra samples is followed for all other sampling rates also. As i said previously, i had tried using both polling and interrupt methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help me where can i go wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sainath gupta t&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 06:02:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8452Q-I2C-interface/m-p/761173#M4910</guid>
      <dc:creator>tvsg</dc:creator>
      <dc:date>2017-11-15T06:02:46Z</dc:date>
    </item>
  </channel>
</rss>

