<?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 Software Development Kit中的主题 Re: KSDK 2.0 I2C Slave Interrupt - Works except can't read multiple bytes</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-2-0-I2C-Slave-Interrupt-Works-except-can-t-read-multiple/m-p/648637#M6983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For completeness here is another version that uses 16-bit data addresses since that is what was originally requested. It&amp;nbsp;does not support 8-bit data addresses. And it's&amp;nbsp;not able to address more&amp;nbsp;then the current 32 byte transfer&amp;nbsp;buffer (or simulated EEPROM) but that's easy to change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 04:45:58 GMT</pubDate>
    <dc:creator>lucasrangit</dc:creator>
    <dc:date>2016-10-20T04:45:58Z</dc:date>
    <item>
      <title>KSDK 2.0 I2C Slave Interrupt - Works except can't read multiple bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-2-0-I2C-Slave-Interrupt-Works-except-can-t-read-multiple/m-p/648636#M6982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an implementation of an I2C EEPROM slave based on the&amp;nbsp;KSDK_2.0.0-FRDM-KL27Z/boards/frdmkl27z/driver_examples/i2c/interrupt project requested in&amp;nbsp;&lt;A _jive_internal="true" data-containerid="11234" data-containertype="14" data-objectid="387717" data-objecttype="1" href="https://community.nxp.com/thread/387717"&gt;I need an I2C Slave sample&lt;/A&gt;&amp;nbsp;&amp;nbsp;. It uses 1 byte data addresses and supports reading an writing simulating an&amp;nbsp;EEPROM or other register mapped device device.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDK:&amp;nbsp;&lt;A _jive_internal="true" class="" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.nxp.com%2Flgfiles%2Fsdk%2FSDK_2.0_FRDM-KL27Z.zip"&gt;http://cache.nxp.com/lgfiles/sdk/SDK_2.0_FRDM-KL27Z.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Single and multi-byte writes work. Single and no data address byte reads work. However, multi-byte reads do not work.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Single-byte read: S 0x77 [A] 0x02 [A] S 0x77 [A] [0x03] N P&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="166048_166048.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122379i2E0F35355EA8ABF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="166048_166048.png" alt="166048_166048.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="single-byte-read.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4243i14991C4FE927779A/image-size/large?v=v2&amp;amp;px=999" role="button" title="single-byte-read.png" alt="single-byte-read.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Multi-byte read:&amp;nbsp;&lt;SPAN&gt;S 0x77 [A] 0x02 [A] S 0x77 [A] [0x03] A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="166118_166118.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122380i4AE0A251577581F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="166118_166118.png" alt="166118_166118.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="multi-byte-read.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4278i4468F11FAAC9D73F/image-size/large?v=v2&amp;amp;px=999" role="button" title="multi-byte-read.png" alt="multi-byte-read.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I suspect my issue is in how/where I handle the ACK/NAK from the host after writing the data to the I2C-&amp;gt;D register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Attached is my code which to replace the i2c_interrupt.c in the&amp;nbsp;&lt;SPAN&gt;KSDK_2.0.0-FRDM-KL27Z/boards/frdmkl27z/driver_examples/i2c/interrupt project.&lt;/SPAN&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-339156"&gt;i2c_interrupt.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 04:47:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-2-0-I2C-Slave-Interrupt-Works-except-can-t-read-multiple/m-p/648636#M6982</guid>
      <dc:creator>lucasrangit</dc:creator>
      <dc:date>2016-10-19T04:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK 2.0 I2C Slave Interrupt - Works except can't read multiple bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-2-0-I2C-Slave-Interrupt-Works-except-can-t-read-multiple/m-p/648637#M6983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For completeness here is another version that uses 16-bit data addresses since that is what was originally requested. It&amp;nbsp;does not support 8-bit data addresses. And it's&amp;nbsp;not able to address more&amp;nbsp;then the current 32 byte transfer&amp;nbsp;buffer (or simulated EEPROM) but that's easy to change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 04:45:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-2-0-I2C-Slave-Interrupt-Works-except-can-t-read-multiple/m-p/648637#M6983</guid>
      <dc:creator>lucasrangit</dc:creator>
      <dc:date>2016-10-20T04:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK 2.0 I2C Slave Interrupt - Works except can't read multiple bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-2-0-I2C-Slave-Interrupt-Works-except-can-t-read-multiple/m-p/648638#M6984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running into the&amp;nbsp;&lt;A href="https://community.nxp.com/thread/377611"&gt;https://community.nxp.com/thread/377611&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:50:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-2-0-I2C-Slave-Interrupt-Works-except-can-t-read-multiple/m-p/648638#M6984</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2016-10-20T11:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: KSDK 2.0 I2C Slave Interrupt - Works except can't read multiple bytes</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-2-0-I2C-Slave-Interrupt-Works-except-can-t-read-multiple/m-p/648639#M6985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lucas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you still having issues? was it related to &lt;A _jive_internal="true" class="" data-containerid="2019" data-containertype="14" data-objectid="377611" data-objecttype="1" href="https://community.nxp.com/thread/377611"&gt;Double Buffered I2C Difficulties (eg. KL27)&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 00:07:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KSDK-2-0-I2C-Slave-Interrupt-Works-except-can-t-read-multiple/m-p/648639#M6985</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-11-08T00:07:34Z</dc:date>
    </item>
  </channel>
</rss>

