<?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: LPCXpresso LPC1347 I2C in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725442#M29330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can use the LPC1347 lpcopen I2C code, but you must modify the code to meet your I2C slave demand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you test the I2C bus wave? After check the I2C wave, you will know the detail problem, you need to locate the problem at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please check the I2C wave, then also reply it to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When the master send the I2C data to the slave, whether the I2C bus data is really the slave needed or not? Is the I2C slave the the ACK?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Anyway, check the I2C wave, compare the I2C data, check the ACK state.&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>Mon, 05 Mar 2018 09:51:08 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2018-03-05T09:51:08Z</dc:date>
    <item>
      <title>LPCXpresso LPC1347 I2C</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725441#M29329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ladies and Gents,&lt;/P&gt;&lt;P&gt;Im near enough ready to go back to Arduino having spent 3 weeks and getting really nowhere with this board other than Blinking the LED and using UART.&lt;/P&gt;&lt;P&gt;So I am trying to use an external I2C RTC DS3231 which i can have working in minutes on Arduino, but on this when working through the terrible example for I2C i am still unable to get anywhere as it is always stuck on I2C_STATUS_BUSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't believe how difficult this is in LPCOpen, any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725441#M29329</guid>
      <dc:creator>rayroutledge</dc:creator>
      <dc:date>2018-03-02T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso LPC1347 I2C</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725442#M29330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can use the LPC1347 lpcopen I2C code, but you must modify the code to meet your I2C slave demand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you test the I2C bus wave? After check the I2C wave, you will know the detail problem, you need to locate the problem at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please check the I2C wave, then also reply it to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When the master send the I2C data to the slave, whether the I2C bus data is really the slave needed or not? Is the I2C slave the the ACK?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Anyway, check the I2C wave, compare the I2C data, check the ACK state.&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>Mon, 05 Mar 2018 09:51:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725442#M29330</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-03-05T09:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso LPC1347 I2C</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725443#M29331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using the "periph_i2c" example provided by NXP in LPCOpen. Using the example exactly as it is that also gets stuck in the loop below waiting for the status to change.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void Chip_I2C_EventHandler(I2C_ID_T id, I2C_EVENT_T event)&lt;BR /&gt;{&lt;BR /&gt; struct i2c_interface *iic = &amp;amp;i2c[id];&lt;BR /&gt; volatile I2C_STATUS_T *stat;&lt;/P&gt;&lt;P&gt;/* Only WAIT event needs to be handled */&lt;BR /&gt; if (event != I2C_EVENT_WAIT) {&lt;BR /&gt; return;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;stat = &amp;amp;iic-&amp;gt;mXfer-&amp;gt;status;&lt;BR /&gt; /* Wait for the status to change */&lt;BR /&gt; while (*stat == I2C_STATUS_BUSY) {}&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So i do not believe this is a good example to go by as it has problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 11:41:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725443#M29331</guid>
      <dc:creator>rayroutledge</dc:creator>
      <dc:date>2018-03-05T11:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso LPC1347 I2C</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725444#M29332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Give you the code bundle code for LPC1347, this I2C code will be more easy to understand, it is based on the register control directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can try it, if you still have problems, please also give me your I2C bus wave, it's very important to the problem analysis.&lt;/P&gt;&lt;P&gt;&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>Tue, 06 Mar 2018 04:28:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725444#M29332</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-03-06T04:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso LPC1347 I2C</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725445#M29333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was have the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem was in missing __USE_LPCOPEN define i project definitions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 10:44:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725445#M29333</guid>
      <dc:creator>Magnetron</dc:creator>
      <dc:date>2018-04-11T10:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso LPC1347 I2C</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725446#M29334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you guide me where to define __USE_LPCOPEN in the project definitions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 22:09:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725446#M29334</guid>
      <dc:creator>rocketbot27</dc:creator>
      <dc:date>2020-06-02T22:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso LPC1347 I2C</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725447#M29335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="360186" data-username="madhukar.arora@colorado.edu" href="https://community.nxp.com/people/madhukar.arora@colorado.edu" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Madhukar Arora&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If you have any issues, you can create your own question post, then the LPC engineer will help you directly in your own question post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 08:20:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-LPC1347-I2C/m-p/725447#M29335</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-06-03T08:20:21Z</dc:date>
    </item>
  </channel>
</rss>

