<?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: Why do subsequent I2C reads not work ??</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535008#M4392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Mon Mar 21 09:39:53 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;That's courageous :)&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zero without your terrific sense of humor this forum would be very boring.:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did William Shakespeare know about pointers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[I]By indirections find directions out.&amp;nbsp; Hamlet.[/I]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:38:39 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:38:39Z</dc:date>
    <item>
      <title>Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535004#M4388</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 Mar 21 05:09:03 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm reading interrupt driven and interrupt triggered I2C data from a sensor with I2C0 'master' on an LPCXpresso1769 @120Mhz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As long as I'm reading the same sensor, data comes in fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I try to read the second sensor on the same I2C bus, the data of the [U]first sensor[/U] read gets garbled up, and only the data from the [U]last called[/U] I2C read appears correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried a couple of examples, including the one from this thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://knowledgebase.nxp.trimm.net/showthread.php?t=1636&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also tried flagging when the I2C read ends( case 0x58: in the ISR), zeroing all buffers after this flag ( about 5uS 'lost' in this loop) and then reading from the second sensor, again, with no success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the trick ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also noticing that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#define MAX_TIMEOUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00FFFFFF&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;acts purely as a delay on the initial clocking !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am reading at 400KHz clock, and my timeout has to be&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#define MAX_TIMEOUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001F&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;for reliable clocking out of data, without system hanging.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changed also Pullup resistors to a selection of 2k2, 4k7, 10K.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quite lost !!! :eek::eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535004#M4388</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535005#M4389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Mon Mar 21 08:50:45 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post your code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535005#M4389</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535006#M4390</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 Mar 21 09:12:44 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok.. let me edit it to make it readable and slightly more presentable,and I'll post it. :D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535006#M4390</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535007#M4391</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 Mar 21 09:22:10 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Wenzu&lt;/STRONG&gt;&lt;BR /&gt;I am also noticing that:&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#define MAX_TIMEOUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00FFFFFF&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;acts purely as a delay on the initial clocking !!!&lt;BR /&gt; &lt;BR /&gt;I am reading at 400KHz clock, and my timeout has to be&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#define MAX_TIMEOUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001F&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;for reliable clocking out of data, without system hanging.&lt;BR /&gt; &lt;BR /&gt;Quite lost !!! &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused::confused: That's no delay, that's TIMEOUT. It's used to get out of a loop while waiting for something. You've allowed your I2C code to break waiting for I2C data. That's courageous &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535007#M4391</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535008#M4392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Mon Mar 21 09:39:53 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;That's courageous :)&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zero without your terrific sense of humor this forum would be very boring.:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did William Shakespeare know about pointers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[I]By indirections find directions out.&amp;nbsp; Hamlet.[/I]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535008#M4392</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535009#M4393</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 Mar 21 13:35:27 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a good thing that I told the 'doctor' everything I was feeling, and also gave [I]pointers[/I] as to what was seeming very strange to me...(max_timeout)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Speaking about courage, and pointers...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is all I needed. Thanks Zero for [I]pointing [/I]it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You just 'fkn' ;) hit the nail on the head !!:DLOL:D!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quick test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Calling and reading the I2C bus 'freely' from the main loop, the outputs from all devices sharing the bus are working fine and giving correct results. What [U]wa[/U]s happening to the I2C ISR was that&amp;nbsp; I2CMasterState was never going above 0x100 due to the [U]timeout [/U]being too narrow. Therefore I2CEngine never 'recovered'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, now that at least I know that 'free run' read works from all sensors, I started to read again from the interrupt trigger that the first I2C device gives me... the data ready interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However in this case, as soon as the trigger occurs and the I2C read is called, the timeout on startup just 'pulse stretches' beyond the next ISR trigger that calls again to read a fresh set of values = brainfreeze.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is absolutely the reason why I shortened the timeout in the first place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A single read was working well, but when I changed the address to read another device, the read of the first device was cut short ( no timeout&amp;nbsp; to give chance ) and the next call was made.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once again, thanks Dr.Zero.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Was this a good prognosis ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now off to understand [I]why[/I] this is happening. Do you have another [I]pointer[/I], Doc ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535009#M4393</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535010#M4394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Tue Mar 22 12:23:25 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Wenzu&lt;/STRONG&gt;&lt;BR /&gt;Ok.. let me edit it to make it readable and slightly more presentable,and I'll post it. :D&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you forgotten?:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535010#M4394</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535011#M4395</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 Tue Mar 22 13:22:01 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Larry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The I2C code I was experimenting with is exactly the one that was posted in the previous link. When I stripped down everything else to post, it came almost exactly to the zipped file, except the registers I added for accessing the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After Zero's [I]pointer[/I] , and also, as I was stripping down the code for posting, subsequent reads immediately worked ( topic name redundant ?? ;), whenever I was reading I2C freely, and not according to the data ready interrupt coming out from this device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still not successful in achieving what I want, but that's because I'm a [I]( [/I]somewhat [I]courageous[/I] ;) nooob. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Re-reading the UM is helping, as well as learning how to control interrupt priorities.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, now that I confirmed that the quoted example works, and learned/identified/visualized where all ISR's are happening in the I2C example, I need to spend some more sleepless nights trying to figure out what I need to tailor in my use to be able to have successful interrupt reading without any interference from other parts of the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if an RTOS is the solution, but as I really have thirst to learn keen coding, I want to still pursue this challenge. :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535011#M4395</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535012#M4396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Tue Mar 22 13:53:01 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Wenzu,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am mainly interested in the sensors that you are using and thought you were coming up with something magical.:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think Dr. Zero is a fitting title.&amp;nbsp; He certainly deserves it.:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this why we have Public and Private?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Many things, having full reference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; To one consent, may work contrariously"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;William Shakespeare&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;King Henry V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535012#M4396</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535013#M4397</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 Tue Mar 22 14:02:59 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Magical ?? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Magical if I manage to learn what interrupt pending clear, masks, etc and what they're used for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for sensors....Larry, my guess is that you already know ;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535013#M4397</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535014#M4398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Tue Mar 22 14:15:56 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Wenzu&lt;/STRONG&gt;&lt;BR /&gt;I'm reading interrupt driven and interrupt triggered I2C data from a sensor with I2C0 'master' on an LPCXpresso1769 @120Mhz.&lt;BR /&gt; &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Contrary to what everybody thinks I am not psychic, well maybe a little.:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sensor?&amp;nbsp; If it's proprietary you don't need to answer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535014#M4398</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535015#M4399</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 Tue Mar 22 14:32:57 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Larry, Im trying to make my first steps to read an IMU3000 and ADXL345 combo as sold by sparkfun. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However..... my status till now....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Free I2C on the main loop works. If I do a sprintf, to see data, I get a 5-8ms break in the comms to the sensors. But, one would want to read the sensors fulltime, almost continuously.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I've tried GPIO / ExtInt / Timer / PWM interrupts to read the I2C bus at intervals, but all reliably fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) It even fails if I bring the interrupt handler in the main.c file and not leave it external in an #include.( just trying !!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) the only way I could [U]manually[/U] trigger a read, is if I put the I2C read in the main loop, under control of UART trigger when I send any character. So I know that a trigger actually works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So next step is... how to make this automatic, continuous, and give reliable results without freezing or giving incorrect readings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535015#M4399</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535016#M4400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jherrera8 on Tue Oct 11 14:36:24 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, so I know this thread was a while ago, but I am trying to do the same thing. I have a very similar IMU from SparkFun. Did you ever get this working? I would be very interested in seeing your code for this.:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535016#M4400</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why do subsequent I2C reads not work ??</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535017#M4401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Thu May 03 19:53:20 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Wenzu, do you still&amp;nbsp; have the code you post in the beginning of this thread?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:38:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Why-do-subsequent-I2C-reads-not-work/m-p/535017#M4401</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:38:44Z</dc:date>
    </item>
  </channel>
</rss>

