<?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: I2C Slave Mode for LPC8N04 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802415#M32237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;can not&amp;nbsp;find&amp;nbsp; related function for Transmit and Receive data in slave mode in &lt;A href="mailto:I@C_8Nxx.c"&gt;i2c_8Nxx.c&lt;/A&gt;&amp;nbsp; library.&amp;nbsp;I need to read my address from Master but can not find slave read&amp;nbsp; function at the first step.&lt;/P&gt;&lt;P&gt;I really appreciate if you can give some hint toward it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2018 13:33:34 GMT</pubDate>
    <dc:creator>syazdanp</dc:creator>
    <dc:date>2018-06-20T13:33:34Z</dc:date>
    <item>
      <title>I2C Slave Mode for LPC8N04</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802414#M32236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I look for I2C slave mode example code for LPC8N04 , dose anyone know a nice source code example even for similar chip, documents,.... to start? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:17:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802414#M32236</guid>
      <dc:creator>syazdanp</dc:creator>
      <dc:date>2018-06-20T13:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave Mode for LPC8N04</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802415#M32237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;can not&amp;nbsp;find&amp;nbsp; related function for Transmit and Receive data in slave mode in &lt;A href="mailto:I@C_8Nxx.c"&gt;i2c_8Nxx.c&lt;/A&gt;&amp;nbsp; library.&amp;nbsp;I need to read my address from Master but can not find slave read&amp;nbsp; function at the first step.&lt;/P&gt;&lt;P&gt;I really appreciate if you can give some hint toward it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:33:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802415#M32237</guid>
      <dc:creator>syazdanp</dc:creator>
      <dc:date>2018-06-20T13:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave Mode for LPC8N04</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802416#M32238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Audrey Jam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unfortunately, until now, about the sample code, we just have the i2c_8Nxx.c, we still don't have the dedicated i2c sample code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; About the document, please refer tot he LPC8N04 user manual I2C chapter:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/user-guide/UM11074.pdf" title="https://www.nxp.com/docs/en/user-guide/UM11074.pdf"&gt;https://www.nxp.com/docs/en/user-guide/UM11074.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Actually, in the the i2c_8Nxx.c, there has some slave read and send data, it is in handleSlaveXferState function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; About the slave address, actually, it is configured in the slave code, then when the master send the according slave addres, the I2C slave will match, and will get the according status in teh I2C status register. You don't need to read the slave address from master in the slave code.&amp;nbsp; The slave address can be set with function setSlaveAddr.&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;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Thu, 21 Jun 2018 03:29:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802416#M32238</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-06-21T03:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave Mode for LPC8N04</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802417#M32239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, I will use it and let you know if i need more clarification.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 12:47:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802417#M32239</guid>
      <dc:creator>syazdanp</dc:creator>
      <dc:date>2018-06-21T12:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave Mode for LPC8N04</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802418#M32240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: black;"&gt;I have developed my project with I2C LPC8N04 &amp;nbsp;to use in &amp;nbsp;slave Mode implemented based on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background: white;"&gt;LPC8N04-MCUXpresso-BSP.zip from NXP and chapter 16 I2C of user Manual&lt;/SPAN&gt;. My slave address is 0x1E coming from master, but by using &amp;nbsp;interrupt based operation I am not able to see my slave address or having &amp;nbsp;any communication with master. I have tried&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: black; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: black; border: none windowtext 1.0pt; padding: 0in;"&gt;Chip_I2C_EventHandler which does not work and then using poling &amp;nbsp;Chip_I2C_EventHandlerPolling, but still my I2C does not work.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: black;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;My second problem is setting right address mask. Please see the attached file. I really appreciate if you can take a look and see which part of my setting is wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have set (in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;LPC_I2C_T)&amp;nbsp; &amp;nbsp;I2C_Regs.CONSET= 0x44; //&amp;nbsp; 01000100&amp;nbsp; based on manual , but my SI bit never changes to 1.&amp;nbsp; I set consent and slave address&amp;nbsp; registers ,and did not config rest of registers, am i wrong?Thanks in advance, best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 12:31:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802418#M32240</guid>
      <dc:creator>syazdanp</dc:creator>
      <dc:date>2018-06-22T12:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave Mode for LPC8N04</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802419#M32241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Audrey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It seems you missed the attached file, please attach it again, please also tell me what the I2C data and detail address you want to send in the I2C bus, I will check it on my side when I have time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Thu, 28 Jun 2018 02:53:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Slave-Mode-for-LPC8N04/m-p/802419#M32241</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-06-28T02:53:21Z</dc:date>
    </item>
  </channel>
</rss>

