<?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: LPC1114 I2c issues</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596995#M32083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Sun Mar 25 00:51:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Vidar&lt;/STRONG&gt;&lt;BR /&gt;Im trying to test the I2C communication between two&amp;nbsp; lpc expresso boards with an oscilloscope using example code from&amp;nbsp; red_code.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might want to explain a bit more on which "example from red_code"&amp;nbsp; you are using. Probably you are referring to the examples from Code Red&amp;nbsp; that are delivered with the LPCXpresso environment (from the&amp;nbsp; lpcxpresso\Examples\NXP\LPC1000\LPC11xx\ directory ?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And which of the examples ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you make any changes to the examples ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which pins did you connect between the two devices ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any pull ups (if you see a high voltage I expect there are) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First of all, try this with just the master board (no slave connected) - you should at least see the start condition and the slave address on the I2C lines. Then, instead of using an lpc1114 as a slave you might want to use a readily existing I2C device (I/O port expander or something like a 24LC08 EEPROM).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have one of those 'modern' oscilloscopes with an LCD screen? Then you could trigger on a falling edge on the SDA line to capture the start condition and the slave address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you could also have a look (&lt;/SPAN&gt;&lt;A href="http://http://bikealive.nl/i2c-driver-for-lpc1xxx.html"&gt;here&lt;/A&gt;&lt;SPAN&gt;) at my website - there is a newer version of the I2C driver (master mode only) but more importantly, it also shows a logic analyzer picture of an I2C transaction that might be helpfull.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Rob&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:59:21 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:59:21Z</dc:date>
    <item>
      <title>LPC1114 I2c issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596991#M32079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Vidar on Sat Mar 24 05:27:06 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im not too familiar with programming the NxP yet. Im trying to test the I2C communication between two lpc expresso boards with an oscilloscope using example code from red_code. The problem is that we can't see any events on the oscilloscope besides that both SDA and SCL lines are pulled high(pull-up resistors are 4,7k). Is there any common mistakes that may be the problem? Help will be highly appreciated:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vidar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:59:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596991#M32079</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 I2c issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596992#M32080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kamat on Sat Mar 24 06:20:11 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Vidar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you are not transmitting data continuously over the I2C, then there will simply be a quick burst and no activity on the bus thereafter. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use a digital storage oscilloscope in a single trigger mode so that it can capture this hard to notice event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:59:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596992#M32080</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 I2c issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596993#M32081</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 Sat Mar 24 07:40:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Common mistakes are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Forget to use pullups :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 Forget to enable clock for I2C and IOCON in SYSAHBCLKCTRL :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 Forget to set pin function to I2C :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't see any signals you should use your debugger (Peripherals View) to check:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 SYSAHBCLKCTRL clock settings &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 Correct I2C Pin function in IOCONFIG register&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 If I2C engine is really trying to write/read something :rolleyes:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:59:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596993#M32081</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 I2c issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596994#M32082</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 Sat Mar 24 09:42:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Vidar&lt;/STRONG&gt;&lt;BR /&gt;...we can't see any events on the oscilloscope...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure which sample you are using, but if you use i2c sample in&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ...\LPCXpresso_4.2.0_264\lpcxpresso\Examples\NXP\LPC1000\LPC11xx\NXP_LPCXpresso1114-302_2011-02-07.zip&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you should see a few short signals at PIO0_5 (I2C-SDA) / PIO0_4 (I2C-SCL) after starting the program even it there's nothing connected (except pullups of course) :):)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:59:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596994#M32082</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 I2c issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596995#M32083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Sun Mar 25 00:51:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Vidar&lt;/STRONG&gt;&lt;BR /&gt;Im trying to test the I2C communication between two&amp;nbsp; lpc expresso boards with an oscilloscope using example code from&amp;nbsp; red_code.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might want to explain a bit more on which "example from red_code"&amp;nbsp; you are using. Probably you are referring to the examples from Code Red&amp;nbsp; that are delivered with the LPCXpresso environment (from the&amp;nbsp; lpcxpresso\Examples\NXP\LPC1000\LPC11xx\ directory ?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And which of the examples ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you make any changes to the examples ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which pins did you connect between the two devices ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any pull ups (if you see a high voltage I expect there are) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First of all, try this with just the master board (no slave connected) - you should at least see the start condition and the slave address on the I2C lines. Then, instead of using an lpc1114 as a slave you might want to use a readily existing I2C device (I/O port expander or something like a 24LC08 EEPROM).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have one of those 'modern' oscilloscopes with an LCD screen? Then you could trigger on a falling edge on the SDA line to capture the start condition and the slave address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you could also have a look (&lt;/SPAN&gt;&lt;A href="http://http://bikealive.nl/i2c-driver-for-lpc1xxx.html"&gt;here&lt;/A&gt;&lt;SPAN&gt;) at my website - there is a newer version of the I2C driver (master mode only) but more importantly, it also shows a logic analyzer picture of an I2C transaction that might be helpfull.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Rob&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:59:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-I2c-issues/m-p/596995#M32083</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:59:21Z</dc:date>
    </item>
  </channel>
</rss>

