<?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 KL16 I2C does not generate repeated start condition (PE) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485880#M29822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar to these two,&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/12/05/kl25z-and-i2c-missing-repeated-start-condition/#comment-79338" title="http://mcuoneclipse.com/2012/12/05/kl25z-and-i2c-missing-repeated-start-condition/#comment-79338"&gt;KL25Z and I2C: Missing Repeated Start Condition | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/327423"&gt;Kinetis K - I2C: Repeat start cannot be generated&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On an MKL16 (128 flash version) I am seeing a missing repeat start bug when using the I2C_LDD Processor Expert component. I tried many clock path options including many that set the final I2C0 prescaler to 0 and 1, and the issue persists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2016-02-24 at 1.51.39 PM.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55042i5763B29A5B4401DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2016-02-24 at 1.51.39 PM.png" alt="Screen Shot 2016-02-24 at 1.51.39 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="kl-no-repeat-start-i2c.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55092i4B9AAD2F94BF1E48/image-size/large?v=v2&amp;amp;px=999" role="button" title="kl-no-repeat-start-i2c.PNG" alt="kl-no-repeat-start-i2c.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be a write to the i2c address 0x68. Here's an example of what I expect (this was generated using a different device/master)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="kl-no-repeat-start-i2c-working-example.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55127iAFA420491FF6E73C/image-size/large?v=v2&amp;amp;px=999" role="button" title="kl-no-repeat-start-i2c-working-example.PNG" alt="kl-no-repeat-start-i2c-working-example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Edit: A blank project with only an I2C component seems to work fine. The issue must be with the use of I2C0 at the same time as some other component.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Edit: False alarm: a blank PE project with only an I2C component shows the same issue.&lt;/P&gt;&lt;P&gt;Edit: Tried operating at 3.3v instead of 1.8v, same result. I cannot find any working configuration for i2c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2016 21:59:37 GMT</pubDate>
    <dc:creator>jacobjennings</dc:creator>
    <dc:date>2016-02-24T21:59:37Z</dc:date>
    <item>
      <title>KL16 I2C does not generate repeated start condition (PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485880#M29822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar to these two,&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/12/05/kl25z-and-i2c-missing-repeated-start-condition/#comment-79338" title="http://mcuoneclipse.com/2012/12/05/kl25z-and-i2c-missing-repeated-start-condition/#comment-79338"&gt;KL25Z and I2C: Missing Repeated Start Condition | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/327423"&gt;Kinetis K - I2C: Repeat start cannot be generated&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On an MKL16 (128 flash version) I am seeing a missing repeat start bug when using the I2C_LDD Processor Expert component. I tried many clock path options including many that set the final I2C0 prescaler to 0 and 1, and the issue persists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2016-02-24 at 1.51.39 PM.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55042i5763B29A5B4401DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2016-02-24 at 1.51.39 PM.png" alt="Screen Shot 2016-02-24 at 1.51.39 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="kl-no-repeat-start-i2c.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55092i4B9AAD2F94BF1E48/image-size/large?v=v2&amp;amp;px=999" role="button" title="kl-no-repeat-start-i2c.PNG" alt="kl-no-repeat-start-i2c.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be a write to the i2c address 0x68. Here's an example of what I expect (this was generated using a different device/master)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="kl-no-repeat-start-i2c-working-example.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55127iAFA420491FF6E73C/image-size/large?v=v2&amp;amp;px=999" role="button" title="kl-no-repeat-start-i2c-working-example.PNG" alt="kl-no-repeat-start-i2c-working-example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Edit: A blank project with only an I2C component seems to work fine. The issue must be with the use of I2C0 at the same time as some other component.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Edit: False alarm: a blank PE project with only an I2C component shows the same issue.&lt;/P&gt;&lt;P&gt;Edit: Tried operating at 3.3v instead of 1.8v, same result. I cannot find any working configuration for i2c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 21:59:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485880#M29822</guid>
      <dc:creator>jacobjennings</dc:creator>
      <dc:date>2016-02-24T21:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: KL16 I2C does not generate repeated start condition (PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485881#M29823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacob Jennings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you tell me you also want to use the KL16 to generate the I2C code: 0X68+ACK which like your another master device? But you now use the KL16 just get the 0XD0+NACK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It seems you set the wrong configuration in the PE component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Could you please upload your PE project, I need to help you to check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your reply!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 02:25:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485881#M29823</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-02-25T02:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: KL16 I2C does not generate repeated start condition (PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485882#M29824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an example project and the result I see in logic analyzer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="kl-no-repeat-start-i2c-test-project.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55020i444A40C750276F36/image-size/large?v=v2&amp;amp;px=999" role="button" title="kl-no-repeat-start-i2c-test-project.PNG" alt="kl-no-repeat-start-i2c-test-project.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://d.pr/f/1dsxU" title="http://d.pr/f/1dsxU"&gt;i2c-test-kl16.zip • Droplr&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 03:26:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485882#M29824</guid>
      <dc:creator>jacobjennings</dc:creator>
      <dc:date>2016-02-25T03:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: KL16 I2C does not generate repeated start condition (PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485883#M29825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacob Jennings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to get the 0X68 in the I2C bus, please modify the code in your project main.c:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CI2C1_SelectSlaveDevice(CI2C1_DeviceData, LDD_I2C_ADDRTYPE_7BITS, &lt;SPAN style="color: #e23d39;"&gt;0x68&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; to&lt;/P&gt;&lt;P&gt;&amp;nbsp; CI2C1_SelectSlaveDevice(CI2C1_DeviceData, LDD_I2C_ADDRTYPE_7BITS, &lt;SPAN style="color: #e23d39;"&gt;(0x68&amp;gt;&amp;gt;1)&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because you choose the 7bits address, then the address data which you send will choose the lower 7bits and &amp;lt;&amp;lt;1 used as the data send in the I2C bus line.&lt;/P&gt;&lt;P&gt;Please modify the code, and try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have question, please contact with me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 04:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485883#M29825</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-02-25T04:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: KL16 I2C does not generate repeated start condition (PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485884#M29826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course! I love a simple solution. Thank you &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 05:39:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485884#M29826</guid>
      <dc:creator>jacobjennings</dc:creator>
      <dc:date>2016-02-25T05:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: KL16 I2C does not generate repeated start condition (PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485885#M29827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacob Jennnings,&lt;/P&gt;&lt;P&gt;Did you test it with my suggest?&lt;/P&gt;&lt;P&gt;After you modify the code, did you get the 0X68+ACK in the I2C bus wave?&lt;/P&gt;&lt;P&gt;If you still not ok, please give your test wave with the modified code.&lt;/P&gt;&lt;P&gt;If you still have question, please contact with me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 05:46:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485885#M29827</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-02-25T05:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: KL16 I2C does not generate repeated start condition (PE)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485886#M29828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jingjing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did confirm that this produced the correct result from the logic analyzer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 06:05:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16-I2C-does-not-generate-repeated-start-condition-PE/m-p/485886#M29828</guid>
      <dc:creator>jacobjennings</dc:creator>
      <dc:date>2016-02-25T06:05:38Z</dc:date>
    </item>
  </channel>
</rss>

