<?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>Kinetis MicrocontrollersのトピックRe: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252879#M7269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI CAN U SEND ME THE CODE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 13:27:44 GMT</pubDate>
    <dc:creator>sreenathreddy</dc:creator>
    <dc:date>2015-03-30T13:27:44Z</dc:date>
    <item>
      <title>FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252870#M7260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the MMA8451Q accelerometer with I2C communication. I don't want to use process expert. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I've studied closely the I2C module for kinetics family from the kl25z manuel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; and the MMA8451Q from the Data Sheet &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.newark.com%2Fpdfs%2Ftecharticles%2Ffreescale%2FMMA8451Q.pdf" rel="nofollow" target="_blank"&gt;http://www.newark.com/pdfs/techarticles/freescale/MMA8451Q.pdf&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've studied the code generated from process expert, but it uses interruption so it is a little bit different, making the comparison between the programs harder.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;My code is attached, it is small, simple and I commented it to help the comprehension. I'm will be really glad to answer any doubts about it. When I run it, my read function only returns 0xff or 0x00 from the I2C0_D, no matter what.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone has harcoded this before or know what can be wrong with it? I would appreciate any help on that.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&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-337467"&gt;main.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2014 22:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252870#M7260</guid>
      <dc:creator>humbertoaboud</dc:creator>
      <dc:date>2014-02-22T22:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252871#M7261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;first I want to mention that the Processor Expert I2C driver can be with or without interrupts: using interrupts is just the normal case (at least for me).&lt;/P&gt;&lt;P&gt;Have you seen the Freescale provided example code on:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL25Z&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL25Z&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;FRDM-KL25Z: Freescale Freedom Development Platform for Kinetis KL14/15/24/25 MCUs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;I recommend that you use a logic analyzer to check the signals on the bus, as many things could be wrong. You even could use a FRDM-KL25Z as logic analyzer (see &lt;A href="http://mcuoneclipse.com/2013/10/20/tutorial-using-the-frdm-kl25z-as-low-power-board/" title="http://mcuoneclipse.com/2013/10/20/tutorial-using-the-frdm-kl25z-as-low-power-board/"&gt;Tutorial: Using the FRDM-KL25Z as Low Power Board | MCU on Eclipse&lt;/A&gt;). Make sure that you verify your internal clock distribution settings, as there is an errata on this (see &lt;A href="http://mcuoneclipse.com/2012/12/05/kl25z-and-i2c-missing-repeated-start-condition/" title="http://mcuoneclipse.com/2012/12/05/kl25z-and-i2c-missing-repeated-start-condition/"&gt;KL25Z and I2C: Missing Repeated Start Condition | MCU on Eclipse&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 08:02:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252871#M7261</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-02-23T08:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252872#M7262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this example and it works great.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" data-containerid="11146" data-containertype="14" data-objectid="98836" data-objecttype="102" href="https://community.freescale.com/docs/DOC-98836"&gt;https://community.freescale.com/docs/DOC-98836&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 18:36:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252872#M7262</guid>
      <dc:creator>juanm</dc:creator>
      <dc:date>2014-02-23T18:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252873#M7263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the help Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use process expert, with or without interrupts, I'm trying to code everything by myself. Fortunately, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I fixed my code today, it had two problems:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First, my I2C read register function used to change to the receiver mode before waiting for the conclusion of the transmission.&lt;/LI&gt;&lt;LI&gt;And second, for some reason my code was setting the control register of the MMA8451Q in the wrong address, setting 0x1A instead of 0x2A. Fixing those two issues it works perfectly!&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will post my code here later so if someday someone wants to do it by coding it can be used it as reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 22:42:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252873#M7263</guid>
      <dc:creator>humbertoaboud</dc:creator>
      <dc:date>2014-02-24T22:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252874#M7264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the help juanm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example you sent me made me figure out that I was using the wrong address of the control register one of the MMA8451, as I wrote in reply to Erich. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It was still not working though, then I figured out that my I2C read register function used to change to the receiver mode before waiting for the conclusion of the transmission. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fixing those two things did the job, and it works perfectly now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will post my code here later so if someday someone wants to do it by coding it can be used it as reference, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 22:46:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252874#M7264</guid>
      <dc:creator>humbertoaboud</dc:creator>
      <dc:date>2014-02-24T22:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252875#M7265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi, I would greatly appreciate it if you could post your updated code. I'm having trouble using the I2C communication, and I also don't want to use Processor Expert. Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 21:21:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252875#M7265</guid>
      <dc:creator>lilyann</dc:creator>
      <dc:date>2015-01-27T21:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252876#M7266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lily&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" title="http://www.utasker.com/kinetis/FRDM-KL25Z.html"&gt;http://www.utasker.com/kinetis/FRDM-KL25Z.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/docs/uTasker/uTaskerIIC.PDF" title="http://www.utasker.com/docs/uTasker/uTaskerIIC.PDF"&gt;http://www.utasker.com/docs/uTasker/uTaskerIIC.PDF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All code available. Doesn't need PE. Automatic I2C deal-lock recovery built in. Kinetis, I2C and project can be simulated in VisualStudio.&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;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" target="_blank"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;KL25: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" target="_blank"&gt;µTasker Kinetis FRDM-KL25Z support&lt;/A&gt; / &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-KL25Z48M.html" target="_blank"&gt;µTasker Kinetis TWR-KL25Z48M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 21:51:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252876#M7266</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-01-27T21:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252877#M7267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please upload the code related to i2c,its needed to my project &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 04:47:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252877#M7267</guid>
      <dc:creator>sreenathreddy</dc:creator>
      <dc:date>2015-03-28T04:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252878#M7268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI CAN U SEND ME THE CODE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 05:31:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252878#M7268</guid>
      <dc:creator>sreenathreddy</dc:creator>
      <dc:date>2015-03-28T05:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252879#M7269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI CAN U SEND ME THE CODE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 13:27:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252879#M7269</guid>
      <dc:creator>sreenathreddy</dc:creator>
      <dc:date>2015-03-30T13:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-kl25z problem when hardcoding I2C for MMA8451Q module</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252880#M7270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/humbertoaboud"&gt;humbertoaboud&lt;/A&gt;&lt;/SPAN&gt; Hello, &lt;SPAN lang="en"&gt;please send me a reference or the project itself. It is important to work &lt;SPAN&gt;without mistakes and&lt;/SPAN&gt; failures.​&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 12:12:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-kl25z-problem-when-hardcoding-I2C-for-MMA8451Q-module/m-p/252880#M7270</guid>
      <dc:creator>dmitrybriskiy</dc:creator>
      <dc:date>2016-08-09T12:12:22Z</dc:date>
    </item>
  </channel>
</rss>

