<?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 Error Code on MMA68XX in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/Error-Code-on-MMA68XX/m-p/685654#M4429</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 using MMA68XX 100g Accelerometer for my testing.I am able to read the x and y axis through SPI.&lt;/P&gt;&lt;P&gt;I have enabled the signed data for X and Y axis. Sometimes the acceleration read response received over SPI&amp;nbsp; is "512".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this value indicates an error?&lt;/P&gt;&lt;P&gt;how to check the error code status for SPI Acceleration request operation?&lt;/P&gt;&lt;P&gt;In Datasheet it is mentioned as error status would be returned on the next command passed to SPI.is this correct?&lt;/P&gt;&lt;P&gt;Also how to differentiate internal,spi miso error and other errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Data sheet it is mentioned to convert the acceleration "10-bit data" to "Gravity" it need to be multiplied by sensitivity.&lt;/P&gt;&lt;P&gt;Is this correct? or do i have to handle additional calculation for converting "Signed Raw data" to "Gravity" ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2026 22:36:41 GMT</pubDate>
    <dc:creator>purusoth</dc:creator>
    <dc:date>2026-02-03T22:36:41Z</dc:date>
    <item>
      <title>Error Code on MMA68XX</title>
      <link>https://community.nxp.com/t5/Sensors/Error-Code-on-MMA68XX/m-p/685654#M4429</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 using MMA68XX 100g Accelerometer for my testing.I am able to read the x and y axis through SPI.&lt;/P&gt;&lt;P&gt;I have enabled the signed data for X and Y axis. Sometimes the acceleration read response received over SPI&amp;nbsp; is "512".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this value indicates an error?&lt;/P&gt;&lt;P&gt;how to check the error code status for SPI Acceleration request operation?&lt;/P&gt;&lt;P&gt;In Datasheet it is mentioned as error status would be returned on the next command passed to SPI.is this correct?&lt;/P&gt;&lt;P&gt;Also how to differentiate internal,spi miso error and other errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Data sheet it is mentioned to convert the acceleration "10-bit data" to "Gravity" it need to be multiplied by sensitivity.&lt;/P&gt;&lt;P&gt;Is this correct? or do i have to handle additional calculation for converting "Signed Raw data" to "Gravity" ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 22:36:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Error-Code-on-MMA68XX/m-p/685654#M4429</guid>
      <dc:creator>purusoth</dc:creator>
      <dc:date>2026-02-03T22:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error Code on MMA68XX</title>
      <link>https://community.nxp.com/t5/Sensors/Error-Code-on-MMA68XX/m-p/685655#M4430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Puru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you&amp;nbsp; are using the signed configuration the range is from -512 to 511, -512 is indeed the &lt;SPAN class=""&gt;Fault&lt;/SPAN&gt; Response Code (see table 34 from the &lt;A href="http://www.nxp.com/docs/en/data-sheet/MMA68xx.pdf"&gt;MMA68xx datasheet&lt;/A&gt;). The error codes are summarized in Table 30. "SPI Response Message Summary" and later with more detail in section 5.5 "Exception Handling."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct, the response&amp;nbsp; or acceleration data is transmitted on the next SPI message if everything in the communication is correct, otherwise it returns the status error.&lt;/P&gt;&lt;P&gt;I previously mentioned the "SPI Response Message Summary",&amp;nbsp;&amp;nbsp; in this table there is a section named "Error Responses", that tells you how to differentiate from every error response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No additional calculation is needed, just the signed decimal value from the 10-bit digital output multiplied by the sensitivity (g/LSB) and you get the acceleration in Gs. Note that the acceleration is given in LSB/g so you need to calculate the reciprocal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: reciprocal(4.096 LSB/g) x 480 LSB&amp;nbsp; =&amp;nbsp; 117.19 g &amp;nbsp; (trimmed for maximum range)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darío&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 20:38:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Error-Code-on-MMA68XX/m-p/685655#M4430</guid>
      <dc:creator>darioarias</dc:creator>
      <dc:date>2017-07-19T20:38:35Z</dc:date>
    </item>
  </channel>
</rss>

