<?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 i.mx6 i2c set to slave? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-i2c-set-to-slave/m-p/637119#M97051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need set i.mx6's i2c to slave mode.But not&amp;nbsp;occur&amp;nbsp;interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is my initialization step:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;writeb(0x20, i2c_imx-&amp;gt;base + IMX_I2C_IADR);//set i2c slave addr to 0x20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;writeb(I2CR_IEN, i2c_imx-&amp;gt;base + IMX_I2C_I2CR);//enable i2c&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;temp = readb(i2c_imx-&amp;gt;base + IMX_I2C_I2CR);//&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;temp |= I2CR_IIEN;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; writeb(temp, i2c_imx-&amp;gt;base + IMX_I2C_I2CR);//enable i2c interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then other device i2c send to mx6, and i.mx6 &lt;SPAN style="color: #ff0000;"&gt;not&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;occur&amp;nbsp;interrupt&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Who knows what's the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shannon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2017 07:59:27 GMT</pubDate>
    <dc:creator>guohn</dc:creator>
    <dc:date>2017-02-15T07:59:27Z</dc:date>
    <item>
      <title>i.mx6 i2c set to slave?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-i2c-set-to-slave/m-p/637119#M97051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need set i.mx6's i2c to slave mode.But not&amp;nbsp;occur&amp;nbsp;interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is my initialization step:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;writeb(0x20, i2c_imx-&amp;gt;base + IMX_I2C_IADR);//set i2c slave addr to 0x20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;writeb(I2CR_IEN, i2c_imx-&amp;gt;base + IMX_I2C_I2CR);//enable i2c&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;temp = readb(i2c_imx-&amp;gt;base + IMX_I2C_I2CR);//&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;temp |= I2CR_IIEN;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; writeb(temp, i2c_imx-&amp;gt;base + IMX_I2C_I2CR);//enable i2c interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then other device i2c send to mx6, and i.mx6 &lt;SPAN style="color: #ff0000;"&gt;not&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;occur&amp;nbsp;interrupt&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Who knows what's the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shannon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 07:59:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-i2c-set-to-slave/m-p/637119#M97051</guid>
      <dc:creator>guohn</dc:creator>
      <dc:date>2017-02-15T07:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6 i2c set to slave?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-i2c-set-to-slave/m-p/637120#M97052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shannon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as stated in sect.35.3 Driver Features attached Linux Manual :&lt;/P&gt;&lt;P&gt;The I2C driver does not support the I2C slave mode of operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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>Wed, 15 Feb 2017 10:24:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-i2c-set-to-slave/m-p/637120#M97052</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-02-15T10:24:33Z</dc:date>
    </item>
  </channel>
</rss>

