<?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: I2C write register stuck at i2c_Wait() K60N512 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-write-register-stuck-at-i2c-Wait-K60N512/m-p/409968#M23083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hui_Ma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were right about the fact that the sensor didn't reply with the ACK signal because it was burned. My problem was the energy supply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Iulia &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 06:32:44 GMT</pubDate>
    <dc:creator>neagoeiulia</dc:creator>
    <dc:date>2015-05-08T06:32:44Z</dc:date>
    <item>
      <title>I2C write register stuck at i2c_Wait() K60N512</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-write-register-stuck-at-i2c-Wait-K60N512/m-p/409966#M23081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I try to use the I2C module to configure a CMOS sensor from a Kinetis K60N512&amp;nbsp; in an application but it gets stuck after the instruction&lt;EM style="font-weight: inherit; font-family: inherit;"&gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;I2C0_D = u8RegisterAddress;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; &lt;/STRONG&gt;at &lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;i2c_Wait();.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;It worked a&amp;nbsp; few times, but now it's stopped. Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;void OV7675WriteRegister(unsigned char u8RegisterAddress, unsigned char u8Data)&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;{&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp; // send data to slave&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp; IIC_StartTransmission(SlaveID,MWSR);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp; i2c_Wait();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp; I2C0_D = u8RegisterAddress;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; i2c_Wait(); // here is the problem i don't understand&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp; I2C0_D = u8Data;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp; i2c_Wait();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp; i2c_Stop();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp; Pause();&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Can anyone tell me what is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Thanks&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Iulia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 16:29:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-write-register-stuck-at-i2c-Wait-K60N512/m-p/409966#M23081</guid>
      <dc:creator>neagoeiulia</dc:creator>
      <dc:date>2015-05-07T16:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: I2C write register stuck at i2c_Wait() K60N512</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-write-register-stuck-at-i2c-Wait-K60N512/m-p/409967#M23082</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;I would recommend customer to refer &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=TWR-K60D100M&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;Kinetis 100MHz Rev 2 Example Projects&lt;/A&gt;, which provides I2C demo (get data from accelerator sensor MMA8451).&lt;/P&gt;&lt;P&gt;I could not find customer in code to check the I2C slave ACK signal, the problem could be the CMOS sensor doesn't ACK the slave address.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&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>Fri, 08 May 2015 03:52:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-write-register-stuck-at-i2c-Wait-K60N512/m-p/409967#M23082</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-05-08T03:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: I2C write register stuck at i2c_Wait() K60N512</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-write-register-stuck-at-i2c-Wait-K60N512/m-p/409968#M23083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hui_Ma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were right about the fact that the sensor didn't reply with the ACK signal because it was burned. My problem was the energy supply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Iulia &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 06:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-write-register-stuck-at-i2c-Wait-K60N512/m-p/409968#M23083</guid>
      <dc:creator>neagoeiulia</dc:creator>
      <dc:date>2015-05-08T06:32:44Z</dc:date>
    </item>
  </channel>
</rss>

