<?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>LPC Microcontrollers中的主题 I2C sample question</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538927#M11754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by avass on Sat Feb 02 19:44:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if any of you came across the same problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hooked up my LIS331DL to my board in I2C mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running the I2C sample CMSIS ( after changing the target address ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCL-SCL (pull-up), SDA-SDA (pull-up), SDO-GND, CS-GND&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The I2CInit(comes back), but the I2CEngine hangs in waiting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked and there is no INTR at all. Again, I'm using the i2c sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-A&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:38:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:38:51Z</dc:date>
    <item>
      <title>I2C sample question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538927#M11754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by avass on Sat Feb 02 19:44:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder if any of you came across the same problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hooked up my LIS331DL to my board in I2C mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running the I2C sample CMSIS ( after changing the target address ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCL-SCL (pull-up), SDA-SDA (pull-up), SDO-GND, CS-GND&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The I2CInit(comes back), but the I2CEngine hangs in waiting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked and there is no INTR at all. Again, I'm using the i2c sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-A&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538927#M11754</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: I2C sample question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538928#M11755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by martinho on Sun Feb 03 07:43:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the datasheet You need to set CS to Vdd_IO not GND to put the LIS331DL in I2C mode!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:38:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538928#M11755</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: I2C sample question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538929#M11756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by avass on Sun Feb 03 23:23:53 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, my mistake, you are right. As a matter of fact, I have CS on VDD... There is no interrupt coming in after the initial START condition.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538929#M11756</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: I2C sample question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538930#M11757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by WHolderness on Tue Jun 04 13:58:35 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;I'm having a similar issue now, after I set the start bit, the interrupt never fires to say its ready. Oddly, it works for a few transfers, then stops working and hangs in I2C_Start on a LPC4300.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Did you ever resolve your issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538930#M11757</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: I2C sample question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538931#M11758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mozmck on Thu Jun 13 10:39:07 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;I'm having a similar problem with a LPC1114 I believe.&amp;nbsp; I've stripped my code down to just initializing the I2C and trying to send some data.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have a systick timer running and toggling a pin, and when I set LPC_I2C-&amp;amp;gt;CONSET = I2CONSET_STA to start transmission, the pin quits toggling which indicates to me that the systick timer quits.&amp;nbsp; The I2C interrupt does not get run either.&amp;nbsp; What can I look for to fix this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:38:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538931#M11758</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: I2C sample question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538932#M11759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mozmck on Thu Jun 13 14:53:57 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Ok, my problem turned out to be a dumb mistake.&amp;nbsp; One part of the mistake I believe is that I did not clear the SI interrupt flag in one part of the interrupt handler (which happened to be the part that was being executed due to another dumb mistake), so the interrupt kept being called which put the chip into an endless loop.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;So, maybe one thing to check if the chip seems to hang is to make sure the SI flag is cleared in all possible cases in the I2C interrupt handler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538932#M11759</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: I2C sample question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538933#M11760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kwinchell on Tue Jun 18 14:11:06 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;It sounds like you solved your problem.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;But for the benefit of others who might never be getting their I2C interrupt, Check how you left the state of your AA Flag.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If you cleared this flag (LPC_I2C-&amp;amp;gt;CONCLR = 1 &amp;amp;lt;&amp;amp;lt; 2, or LPC_I2C-&amp;amp;gt;CONCLR = 4), then it will not receive a new command, and no interrupt.&lt;/P&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-sample-question/m-p/538933#M11760</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:38:55Z</dc:date>
    </item>
  </channel>
</rss>

