<?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>LPCXpresso IDEのトピックRe: I2C problem</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544477#M8722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Mon Dec 27 07:23:25 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;And now the problem is that no one knows which program writes what data to which device in whatever buffer and reads back something somehow :confused::confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:32:17 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:32:17Z</dc:date>
    <item>
      <title>I2C problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544476#M8721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nagaraj.baddi on Mon Dec 27 06:47:31 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is when i load the program(i.e i2c) in master mode it writes the data but when i read the data from slave, the values are not matching&amp;nbsp; with masterbuffer...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:32:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544476#M8721</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: I2C problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544477#M8722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Mon Dec 27 07:23:25 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;And now the problem is that no one knows which program writes what data to which device in whatever buffer and reads back something somehow :confused::confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:32:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544477#M8722</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: I2C problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544478#M8723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Wenzu on Mon Dec 27 17:04:22 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Nagaraj,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to get the I2C finally working well after 4 days banging my head.( I am a total Noob to ARM and Cortex )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://knowledgebase.nxp.trimm.net/showthread.php?t=538"&gt;Here&lt;/A&gt;&lt;SPAN&gt; , Rob65 kindly posted a working I2C driver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I am using an LPC1343, and not an LPC11xx for which the above driver was written.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For installing it, You need to delete the present I2C from your list, and install this new one v1.10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case, certain devices worked, but others not. Especially on long reads after a re-start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If using 1343, you need to replace the timing values in i2C.h with the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define I2SCLH_SCLH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120 //58&amp;nbsp; /* I2C SCL Duty Cycle High Reg */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define I2SCLL_SCLL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120 //57&amp;nbsp; /* I2C SCL Duty Cycle Low Reg */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now.. works like a Charm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW.. the data is found in I2CSlaveBuffer[0] etc etc.. and not in the Master.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all who helped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best wishes for 2011.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Happy coding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wenzu.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:32:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544478#M8723</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: I2C problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544479#M8724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nagaraj.baddi on Tue Dec 28 00:27:21 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Wenzu,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I worked on Rob65 code. but the result is still same, the content masterbuffer data and after reading the the content of slavebuffer not matched, i.e after debugging&amp;nbsp; masterbuffer[]={-96,0,U,-86,18,4} and slavebuffer[]={-1,-1,-1,-1,0,0} i am not understanding..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for replying..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Nagaraj:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:32:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544479#M8724</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: I2C problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544480#M8725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Thu Dec 30 08:20:03 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;And now the problem is that no one knows which program writes what data to which device in whatever buffer and reads back something somehow :confused::confused:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ya ... I found most of the examples really helpful and I'm glad NXP is putting them out, but the I2C code really jumped out at me in a WTF kind of way :-)&amp;nbsp; I really need to write my own I2C drivers with something a bit easier to debug when you are using more than one I2C device at a time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:32:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-problem/m-p/544480#M8725</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:32:18Z</dc:date>
    </item>
  </channel>
</rss>

