<?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: Kinetis I2C problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-I2C-problem/m-p/352056#M17428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved !&lt;/P&gt;&lt;P&gt;Thank you Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2015 14:32:29 GMT</pubDate>
    <dc:creator>Dilebo</dc:creator>
    <dc:date>2015-01-16T14:32:29Z</dc:date>
    <item>
      <title>Kinetis I2C problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-I2C-problem/m-p/352054#M17426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to implement an I2C communication between a Kinetis K12 and a Kinetis KL16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To sum up, it seems that the K12 does not see the signals coming from the KL16. Here is what makes me come to this conclusion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;1. First config: KL16 master - K12 slave&lt;/H3&gt;&lt;P&gt;The master send a frame, but the slave does not detect anything, there is not any interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;2. Second config: K12 master - KL16 slave&lt;/H3&gt;&lt;P&gt;This one is more interesting.&lt;/P&gt;&lt;P&gt;The master send a frame. This frame is detected by the slave (KL16), the IAAS bit is set, the first byte (slave address) is followed by a ACK (SDA LOW on the 9th bit).&lt;/P&gt;&lt;P&gt;But the master (K12) does not see the ACK: I get an interrupt after the address byte is transmitted, but the RXAK bit is set, meaning that the ACK from the slave has not been detected by the master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="setup_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48910iB6C5BAA2520675E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="setup_9.png" alt="setup_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here, we can see the ACK from the slave, but the K12 can not.&lt;/P&gt;&lt;P&gt;There is a small glitch before the ACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the LOW level of the ACK to is too high to be detected. Though, it is ~1V, and from the K12 datasheet, input low voltage maximal value is 0.35*Vdd = ~1.15V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here are my questions: &lt;/P&gt;&lt;P&gt;- Do you think it is possible that the SDA LOW signal is too high to be detected ?&lt;/P&gt;&lt;P&gt;- Do you think the glitch before the ACK can affect the result ?&lt;/P&gt;&lt;P&gt;- May be I'm missing something else ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 13:58:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-I2C-problem/m-p/352054#M17426</guid>
      <dc:creator>Dilebo</dc:creator>
      <dc:date>2015-01-16T13:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis I2C problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-I2C-problem/m-p/352055#M17427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dilebo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of K12, you have to enable Open-Drain in the used pins (PORTx_PCRn[ODE] = 1).&lt;/P&gt;&lt;P&gt;With this the ACK bit should go low all the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know your results.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&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, 16 Jan 2015 14:09:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-I2C-problem/m-p/352055#M17427</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-01-16T14:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis I2C problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-I2C-problem/m-p/352056#M17428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved !&lt;/P&gt;&lt;P&gt;Thank you Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 14:32:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-I2C-problem/m-p/352056#M17428</guid>
      <dc:creator>Dilebo</dc:creator>
      <dc:date>2015-01-16T14:32:29Z</dc:date>
    </item>
  </channel>
</rss>

