<?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 Question On MMA7660 Offset Calibration in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/Question-On-MMA7660-Offset-Calibration/m-p/359969#M1075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;according to AN3841 "&lt;/SPAN&gt;Performing Offset Calibration using theMMA7660FC&lt;SPAN style="font-size: 12pt;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;//Hold MMA7660FC on horizontal plane, put it in active mode and get the shift value &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;X_Shift = (64 times reading sum)/64*(-2) &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Y_Shift = (64 times reading sum)/64*(-2) &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Z_Shift = ((64 times reading sum)/64-21) *(-2)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;My question is how to get the X_shift,&lt;SPAN style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;Y_shift and &lt;SPAN style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;Z_shift?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #434343; font-family: Tahoma, Arial; background-color: #f2f2f2;"&gt;Is obtained from the register of &lt;/SPAN&gt;REG00-REG02?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2026 21:17:10 GMT</pubDate>
    <dc:creator>wxb</dc:creator>
    <dc:date>2026-02-03T21:17:10Z</dc:date>
    <item>
      <title>Question On MMA7660 Offset Calibration</title>
      <link>https://community.nxp.com/t5/Sensors/Question-On-MMA7660-Offset-Calibration/m-p/359969#M1075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;according to AN3841 "&lt;/SPAN&gt;Performing Offset Calibration using theMMA7660FC&lt;SPAN style="font-size: 12pt;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;//Hold MMA7660FC on horizontal plane, put it in active mode and get the shift value &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;X_Shift = (64 times reading sum)/64*(-2) &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Y_Shift = (64 times reading sum)/64*(-2) &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;Z_Shift = ((64 times reading sum)/64-21) *(-2)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;My question is how to get the X_shift,&lt;SPAN style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;Y_shift and &lt;SPAN style="color: #000000; font-family: 微软雅黑; font-size: 14px;"&gt;Z_shift?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #434343; font-family: Tahoma, Arial; background-color: #f2f2f2;"&gt;Is obtained from the register of &lt;/SPAN&gt;REG00-REG02?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:17:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Question-On-MMA7660-Offset-Calibration/m-p/359969#M1075</guid>
      <dc:creator>wxb</dc:creator>
      <dc:date>2026-02-03T21:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Question On MMA7660 Offset Calibration</title>
      <link>https://community.nxp.com/t5/Sensors/Question-On-MMA7660-Offset-Calibration/m-p/359970#M1076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct, &lt;SPAN style="color: black;"&gt;“(64 times reading sum)/64” is equal to get the average value in 64 reads of REG00 (for the example of X_Shift), so, &lt;/SPAN&gt;for example, X_Shift would be the result of the average value of reading REG00 64 times *-2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also could be seen as:&lt;/P&gt;&lt;P&gt;X_Shift = (sum of 64 times reading REG00)/64*-2&lt;/P&gt;&lt;P&gt;Y_Shift = (sum of 64 times reading REG01)/64*-2&lt;/P&gt;&lt;P&gt;Z_Shift = ((sum of 64 times reading REG02)/64-21)*-2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense to you? Please let me know if still not clear.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jose Reyes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 21:24:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Question-On-MMA7660-Offset-Calibration/m-p/359970#M1076</guid>
      <dc:creator>reyes</dc:creator>
      <dc:date>2014-10-29T21:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Question On MMA7660 Offset Calibration</title>
      <link>https://community.nxp.com/t5/Sensors/Question-On-MMA7660-Offset-Calibration/m-p/359971#M1077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thinks for your reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to reads the x-axis、y-axis and z-axis tilt angle as following codes ,&lt;SPAN style="color: #ff0000;"&gt;if get reg00&amp;nbsp; is 22 ,can i think this time the x-aixs angle is 0 °?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; How to understand the MMA7660 Datasheet&amp;nbsp; "APPENDIX C - MMA7660FC ACQUISITION CODE TABLE" ,Angle X or Y blank meaning when 6-bit result is 22 - 42. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="SH_RESERVED" style="color: #0000ff;"&gt;float&lt;/SPAN&gt; TILT_XY[&lt;SPAN class="SH_BUILTIN" style="color: #ff0000;"&gt;64&lt;/SPAN&gt;] = {&lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;2.69&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;5.38&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;8.08&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;10.81&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;13.55&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;16.33&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;19.16&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;22.02&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;24.95&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;27.95&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;31.04&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;34.23&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;37.54&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;41.01&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;44.68&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;48.59&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;52.83&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;57.54&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;62.95&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;69.64&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;79.86&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;0&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-79.86&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-69.64&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-62.95&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-57.54&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-52.83&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-48.59&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-44.68&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-41.01&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-37.54&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-34.23&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-31.04&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-27.95&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-24.95&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-22.02&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-19.16&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-16.33&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-13.55&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-10.81&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-8.08&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-5.38&lt;/SPAN&gt;, &lt;SPAN class="SH_BUILTIN"&gt;-2.69&lt;/SPAN&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; float AngleX;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;SPAN class="SH_COMMENT" style="color: #008000;"&gt;Device initialization&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="SH_COMMENT" style="color: #008000;"&gt;&lt;SPAN class="SH_COMMENT" style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Reads the reg00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = MMA7660_GetResult(&lt;SPAN style="color: #ff0000;"&gt;reg00&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;SPAN style="color: #008000;"&gt;Get the X-axis angle&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt; AngleX =&amp;nbsp; TILT_XY[&lt;SPAN style="color: #ff0000;"&gt;x&lt;/SPAN&gt;];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 01:28:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Question-On-MMA7660-Offset-Calibration/m-p/359971#M1077</guid>
      <dc:creator>wxb</dc:creator>
      <dc:date>2014-10-30T01:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question On MMA7660 Offset Calibration</title>
      <link>https://community.nxp.com/t5/Sensors/Question-On-MMA7660-Offset-Calibration/m-p/359972#M1078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every g-force value bigger than +1g or lower than -1g cannot be converted in angle measurement since you would not be measuring “Static Acceleration” (used to measure tilt angulations), the reason is that the reference is the 1g from gravity force. If the value is bigger than +1g or lower than -1g, then an additional force called “Dynamic Acceleration” (movement for example) would be added to the formula, and no tilt angle measurement is possible for this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the formula to calculate the angle according to the g-force measured is:&lt;/P&gt;&lt;P&gt;Angle = ASIN(g-value)*180/Pi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it is not possible to calculate ASIN values for numbers bigger than 1 (or lower than -1).&lt;/P&gt;&lt;P&gt;*Remember that ASIN(1) = 90°&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for values between 22 and 42 (in the 6-bit result column), there is no valid data angle (it is not 0 either). If you get a number between 22 and 42 it means that an external force (additional to the gravity force) is applied (linear movement for example), and if you get a number between 28 and 36 means that you should be shaking the device.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jose Reyes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 17:17:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Question-On-MMA7660-Offset-Calibration/m-p/359972#M1078</guid>
      <dc:creator>reyes</dc:creator>
      <dc:date>2014-10-30T17:17:28Z</dc:date>
    </item>
  </channel>
</rss>

