<?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: Resolution of MMA8451 on KL25Z in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426772#M24616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 14 bit mode the range is 0x0000..0xfffc and the final 2 bits are always zero.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The first application at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-KL25Z.html&lt;/A&gt;&lt;SPAN&gt; includes accelerometer operation in 14 bit mode (enabled it with "acc_on" in the I2C menu on the virtual COM port). Compare its output vaues with yours.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It uses 2g mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2015 14:06:33 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2015-11-20T14:06:33Z</dc:date>
    <item>
      <title>Resolution of MMA8451 on KL25Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426771#M24615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using a FRDM-KL25Z board to use the accelerometer MMA8451 on it. The resolution is 14bits so -16384 to 16383. As it is set to +-2g mode (bit 0 and 1 of address 0x0E set to 0), the resolution is 32768/4=4096 step for 1g. When my board is horizontal, I get aproximatly 0,0,4096 for x,y,z. That's normal. But when I move the board in an other position, the value of x,y,z are ALLWAYS even. So in fact the resolution is 2048 steps for 1g. There is something I don't understand.&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 09:04:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426771#M24615</guid>
      <dc:creator>michelmeunier</dc:creator>
      <dc:date>2015-11-20T09:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Resolution of MMA8451 on KL25Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426772#M24616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 14 bit mode the range is 0x0000..0xfffc and the final 2 bits are always zero.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The first application at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-KL25Z.html&lt;/A&gt;&lt;SPAN&gt; includes accelerometer operation in 14 bit mode (enabled it with "acc_on" in the I2C menu on the virtual COM port). Compare its output vaues with yours.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It uses 2g mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 14:06:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426772#M24616</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-11-20T14:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Resolution of MMA8451 on KL25Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426773#M24617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I know that, it's the reason why the number return is ( &amp;gt;&amp;gt;2 ), so I shouldn't have allways even value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 08:19:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426773#M24617</guid>
      <dc:creator>michelmeunier</dc:creator>
      <dc:date>2015-11-21T08:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Resolution of MMA8451 on KL25Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426774#M24618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was no indication originally that you were shifting the result before displaying it. In this case I expect 0x0000..0x3fff as range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some results from my FRDM-KL25Z in 2g 14 bit mode when the board is randomly moved around (I have shifted the values read by &amp;gt;&amp;gt;= 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status/X/Y/Z&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x340c 0x3fb0 0x0ada&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x0f 0x31f2 0x3e93 0x0911&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x30da 0x3a73 0x05ae&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x3338 0x36e9 0x0151&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x39de 0x3059 0x3f43&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x017c 0x2e41 0x01cb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x01ee 0x32a6 0x0476&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x04b6 0x314b 0x0549&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0042 0x36b8 0x0e24&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x3e12 0x02c4 0x0f8f&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0089 0x0960 0x0b7c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x01f5 0x0a72 0x0ce1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x034d 0x3ec1 0x0fdb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0404 0x3de6 0x0f3c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0558 0x3cb3 0x0e77&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x05e7 0x38a6 0x0ea4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0009 0x38f0 0x0e91&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x09 0x347f 0x3b05 0x09a2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x338a 0x3abb 0x0572&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x3603 0x0005 0x37c4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x386e 0x3ac3 0x3201&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x3cf3 0x2e43 0x3bc9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x3b3c 0x2b5f 0x0125&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x3c1e 0x33b9 0x06d9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x09 0x39fb 0x3e8e 0x0fa5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x3c1b 0x3e82 0x0ec1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0096 0x3fd7 0x108c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x013f 0x0055 0x1140&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0118 0x005e 0x0ff3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0117 0x0058 0x0ff2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0111 0x005b 0x0ffa&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x0b 0x0114 0x004f 0x0ffc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0115 0x0056 0x0ffb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x011b 0x005c 0x0ff4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x011d 0x005b 0x1003&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0118 0x0051 0x0fe7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0118 0x0061 0x0fe8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-axis state: 0x00 0x0115 0x0061 0x0ffa&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This shows that the LSB changes in all three axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the attached binary on your board to verify that there is no difference.&lt;/P&gt;&lt;P&gt;Connect to its OpenSDA virtual COM at 115'200 Baud, move to the I2C menu (7) and then turn on the output with "acc_on".&lt;/P&gt;&lt;P&gt;If the behavior is then as expected double check all of your configuration values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 20:34:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426774#M24618</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-11-21T20:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Resolution of MMA8451 on KL25Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426775#M24619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you Mark for your answer. I have test your program on my first FRDM-KL25Z, and the problem is still here, the values are allways even. BUT with my other board the problem disappear!!&lt;/P&gt;&lt;P&gt;I think the MMA8451 is wrong on my first board.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 18:49:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Resolution-of-MMA8451-on-KL25Z/m-p/426775#M24619</guid>
      <dc:creator>michelmeunier</dc:creator>
      <dc:date>2015-11-24T18:49:53Z</dc:date>
    </item>
  </channel>
</rss>

