<?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 Problems in reading onboard mma8451 accelarometer from i2c in mkl25z128vlk4...?? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-in-reading-onboard-mma8451-accelarometer-from-i2c-in/m-p/281860#M10462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i got a code for this one but it seems to be not working i m reading the values from accelarometer and displaying it on the uart .........the probelm is the values are not changing+in my mma read and write function after writhing the addr (address) my program is getting stucked in i2c_wait function.i m very new to this anybody please help me out on this..........&lt;SPAN aria-label="Sad" class="emoticon_sad emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337587"&gt;hal_dev_mma8451.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337587"&gt;hal_i2c.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337587"&gt;hal_i2c.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337587"&gt;main.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337587"&gt;hal_dev_mma8451.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 06:21:49 GMT</pubDate>
    <dc:creator>akshayhv</dc:creator>
    <dc:date>2013-07-19T06:21:49Z</dc:date>
    <item>
      <title>Problems in reading onboard mma8451 accelarometer from i2c in mkl25z128vlk4...??</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-in-reading-onboard-mma8451-accelarometer-from-i2c-in/m-p/281860#M10462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i got a code for this one but it seems to be not working i m reading the values from accelarometer and displaying it on the uart .........the probelm is the values are not changing+in my mma read and write function after writhing the addr (address) my program is getting stucked in i2c_wait function.i m very new to this anybody please help me out on this..........&lt;SPAN aria-label="Sad" class="emoticon_sad emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337587"&gt;hal_dev_mma8451.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337587"&gt;hal_i2c.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337587"&gt;hal_i2c.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337587"&gt;main.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337587"&gt;hal_dev_mma8451.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 06:21:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-in-reading-onboard-mma8451-accelarometer-from-i2c-in/m-p/281860#M10462</guid>
      <dc:creator>akshayhv</dc:creator>
      <dc:date>2013-07-19T06:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in reading onboard mma8451 accelarometer from i2c in mkl25z128vlk4...??</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-in-reading-onboard-mma8451-accelarometer-from-i2c-in/m-p/281861#M10463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;have you enabled the accelerometer? I do it with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;byte MMA1_Enable(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t val, res;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; res = GI2C1_ReadByteAddress8(MMA8451_I2C_ADDR, MMA8451_CTRL_REG_1, &amp;amp;val);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (res!=ERR_OK) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return res;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; val |= MMA8451_ACTIVE_BIT_MASK; /* enable device */&lt;/P&gt;&lt;P&gt;&amp;nbsp; return GI2C1_WriteByteAddress8(MMA8451_I2C_ADDR, MMA8451_CTRL_REG_1, val);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Links to related articles:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/09/21/tutorial-accelerating-the-kl25z-freedom-board/" title="http://mcuoneclipse.com/2012/09/21/tutorial-accelerating-the-kl25z-freedom-board/"&gt;Tutorial: Accelerating the KL25Z Freedom Board | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/03/31/tutorial-creating-a-processor-expert-component-for-an-accelerometer/" title="http://mcuoneclipse.com/2013/03/31/tutorial-creating-a-processor-expert-component-for-an-accelerometer/"&gt;Tutorial: Creating a Processor Expert Component for an Accelerometer | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/04/13/extended-driver-for-the-mma8451q-accelerometer/" title="http://mcuoneclipse.com/2013/04/13/extended-driver-for-the-mma8451q-accelerometer/"&gt;Extended Driver for the MMA8451Q Accelerometer | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 06:43:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-in-reading-onboard-mma8451-accelarometer-from-i2c-in/m-p/281861#M10463</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-07-19T06:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in reading onboard mma8451 accelarometer from i2c in mkl25z128vlk4...??</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-in-reading-onboard-mma8451-accelarometer-from-i2c-in/m-p/281862#M10464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Akshay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;was this suggestion helpful? Please keep us posted :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Monica.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 17:23:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-in-reading-onboard-mma8451-accelarometer-from-i2c-in/m-p/281862#M10464</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-07-30T17:23:30Z</dc:date>
    </item>
  </channel>
</rss>

