<?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: I need an I2C Slave sample</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I-need-an-I2C-Slave-sample/m-p/479590#M4085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shuichi Yokota:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there is no example code for emulating an EEPROM memory in I2C slave mode with KSDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the example projects you found:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The &lt;STRONG&gt;i2c_interrupt_transfer&lt;/STRONG&gt; indeed requires fixed buffer lengths for transmission and reception, since it uses the transactional APIs from the I2C driver. I think this project would not be useful in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The &lt;STRONG&gt;i2c_interrupt&lt;/STRONG&gt; project has fixed buffer lengths just to demonstrate the use of the driver APIs. You can actually take this project to understand the use of the slave mode APIs and construct your application. Then you have to redesign the interrupt handler for the EEPROM use case. In the example project the handler is called &lt;STRONG&gt;I2C_SLAVE_IRQHandler()&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Mar 2016 00:04:01 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2016-03-19T00:04:01Z</dc:date>
    <item>
      <title>I need an I2C Slave sample</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I-need-an-I2C-Slave-sample/m-p/479589#M4084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi, I'm looking for sample codes for I2C on MK22F which works as I2C slave just like EEPROM device.&lt;/P&gt;&lt;P style="text-align: left;"&gt;A external master (maybe PC) sends 1 or 2 bytes register address followed by write data, or a master sends 1 or 2 bytes register address then read data.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; text-align: left;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I have already tested I2C slave interrupt and slave interrupt_transfer samples in the KSDK, but they are not enough cause it seems they need fixed buffer length for slave transfer.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; text-align: left;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Do you have any ideas ?&lt;/P&gt;&lt;P style="text-align: left;"&gt;I'm a new to Kinetis so your any advice will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 07:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I-need-an-I2C-Slave-sample/m-p/479589#M4084</guid>
      <dc:creator>shuichiy</dc:creator>
      <dc:date>2016-03-16T07:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: I need an I2C Slave sample</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I-need-an-I2C-Slave-sample/m-p/479590#M4085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shuichi Yokota:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there is no example code for emulating an EEPROM memory in I2C slave mode with KSDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the example projects you found:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The &lt;STRONG&gt;i2c_interrupt_transfer&lt;/STRONG&gt; indeed requires fixed buffer lengths for transmission and reception, since it uses the transactional APIs from the I2C driver. I think this project would not be useful in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The &lt;STRONG&gt;i2c_interrupt&lt;/STRONG&gt; project has fixed buffer lengths just to demonstrate the use of the driver APIs. You can actually take this project to understand the use of the slave mode APIs and construct your application. Then you have to redesign the interrupt handler for the EEPROM use case. In the example project the handler is called &lt;STRONG&gt;I2C_SLAVE_IRQHandler()&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2016 00:04:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I-need-an-I2C-Slave-sample/m-p/479590#M4085</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2016-03-19T00:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: I need an I2C Slave sample</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I-need-an-I2C-Slave-sample/m-p/479591#M4086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I have created an emulation of EEPROM memory based on the i2c_interrupt sample. It handles some signals such as a stop condition, and works with memory address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shuichi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 05:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I-need-an-I2C-Slave-sample/m-p/479591#M4086</guid>
      <dc:creator>shuichiy</dc:creator>
      <dc:date>2016-03-22T05:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: I need an I2C Slave sample</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I-need-an-I2C-Slave-sample/m-p/479592#M4087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/shuichiy"&gt;shuichiy&lt;/A&gt;‌, Can you take a look at my implementation for the simulated EEPROM I2C slave device in&amp;nbsp;&lt;A href="https://community.nxp.com/message/842400"&gt;https://community.nxp.com/message/842400&lt;/A&gt;&amp;nbsp;&amp;nbsp;. It is based on the same example but I've rewritten the ISR and cannot get multiple byte reads to work. Did you get this working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 04:49:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I-need-an-I2C-Slave-sample/m-p/479592#M4087</guid>
      <dc:creator>lucasrangit</dc:creator>
      <dc:date>2016-10-19T04:49:56Z</dc:date>
    </item>
  </channel>
</rss>

