<?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: i2c LPC11C24 Stuck in Busy Line in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/i2c-LPC11C24-Stuck-in-Busy-Line/m-p/543181#M12638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to LPC11Cxx User Manual (&lt;A href="http://www.nxp.com/documents/user_manual/UM10398.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank" title="http://www.nxp.com/documents/user_manual/UM10398.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;http://www.nxp.com/documents/user_manual/UM10398.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pd…&lt;/A&gt; ) status 0x68 means that Arbitration lost in SLA + R/W as master:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="State.jpg"&gt;&lt;IMG alt="State.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/37003i50105AC902C13403/image-size/large?v=v2&amp;amp;px=999" title="State.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So, it seems that SLA + W bit are being sent and you got an arbitration lost status (another master activity on the bus?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to debug the MasterHandler function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use interrupt driver mode:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_146957053932586" data-renderedposition="1029_8_1192_32" jivemacro_uid="_146957053932586"&gt;&lt;P&gt;/* Set default mode to interrupt */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i2c_set_mode(id, 0);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IRQ for I2C0 is enabled and inside this ISR, the i2c_state_handling function is called. If you debug further, you will end up at handleMasterXferState function (i2c_11xx.c, line 176) that is in charged to validate transfer status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2020 13:37:09 GMT</pubDate>
    <dc:creator>isaacavila</dc:creator>
    <dc:date>2020-11-02T13:37:09Z</dc:date>
    <item>
      <title>i2c LPC11C24 Stuck in Busy Line</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/i2c-LPC11C24-Stuck-in-Busy-Line/m-p/543180#M12637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate any comments/thoughs about this:&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I`m using a PLC11C24 Dev Board for an i2c communication program. &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However my setup seems to get stuck here: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155266_155266.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121933iC182005476944981/image-size/large?v=v2&amp;amp;px=999" role="button" title="155266_155266.png" alt="155266_155266.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36182i79984C7A705D42E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems that the line stays busy. Osciloscope shows a falling edge on SCA as well as on SCL, when I use debugging mode.&lt;/P&gt;&lt;P&gt;I also get a State 0X68 &lt;/P&gt;&lt;P&gt;Attached is my complete main file for your refence. &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also my hardware setup is just 2 pull up resistors on SCA on SCL, no slave device. I'm assuming I should see a Start Pulse + Slave Address + R/W bit and no ACK return bit (since there is no slave device). But this is not happening.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate any help on this.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337957"&gt;practice_i2c.c.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 00:03:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/i2c-LPC11C24-Stuck-in-Busy-Line/m-p/543180#M12637</guid>
      <dc:creator>mtm</dc:creator>
      <dc:date>2016-07-07T00:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: i2c LPC11C24 Stuck in Busy Line</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/i2c-LPC11C24-Stuck-in-Busy-Line/m-p/543181#M12638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to LPC11Cxx User Manual (&lt;A href="http://www.nxp.com/documents/user_manual/UM10398.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank" title="http://www.nxp.com/documents/user_manual/UM10398.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;http://www.nxp.com/documents/user_manual/UM10398.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pd…&lt;/A&gt; ) status 0x68 means that Arbitration lost in SLA + R/W as master:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="State.jpg"&gt;&lt;IMG alt="State.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/37003i50105AC902C13403/image-size/large?v=v2&amp;amp;px=999" title="State.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So, it seems that SLA + W bit are being sent and you got an arbitration lost status (another master activity on the bus?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to debug the MasterHandler function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use interrupt driver mode:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_146957053932586" data-renderedposition="1029_8_1192_32" jivemacro_uid="_146957053932586"&gt;&lt;P&gt;/* Set default mode to interrupt */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i2c_set_mode(id, 0);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IRQ for I2C0 is enabled and inside this ISR, the i2c_state_handling function is called. If you debug further, you will end up at handleMasterXferState function (i2c_11xx.c, line 176) that is in charged to validate transfer status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/i2c-LPC11C24-Stuck-in-Busy-Line/m-p/543181#M12638</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2020-11-02T13:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: i2c LPC11C24 Stuck in Busy Line</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/i2c-LPC11C24-Stuck-in-Busy-Line/m-p/543182#M12639</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" data-content-finding="Community" data-userid="284341" data-username="mtm" href="https://community.nxp.com/people/mtm" style="background-color: transparent; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #5e89c1; fill: #5e89c1; font-family: &amp;amp;quot; helvetica neue&amp;amp;quot;,helvetica,arial,&amp;amp;quot;lucida grande&amp;amp;quot;,sans-serif; font-size: 11.93px; font-style: normal; font-variant: normal; font-weight: 600; letter-spacing: normal; orphans: 2; text-align: center; text-decoration: none; text-indent: 0px; text-transform: none; transition-delay: 0s; transition-duration: 0.1s; transition-property: color; transition-timing-function: cubic-bezier(0, 0, 1, 1); vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none #5e89c1;"&gt;mtm&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you resolved your problem?&lt;/P&gt;&lt;P&gt;Could you be kindly to share how you resolved it?&lt;/P&gt;&lt;P&gt;Because I also met a similar issue as you (the difference is that I am using NHS3100 board/kit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is appreciated if you could share anything or advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 05:37:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/i2c-LPC11C24-Stuck-in-Busy-Line/m-p/543182#M12639</guid>
      <dc:creator>aresmarser</dc:creator>
      <dc:date>2018-03-23T05:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: i2c LPC11C24 Stuck in Busy Line</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/i2c-LPC11C24-Stuck-in-Busy-Line/m-p/543183#M12640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest to have a look at &lt;A _jive_internal="true" href="https://community.nxp.com/message/996139?commentID=996139#comment-1093691"&gt;my comment and code suggestions&lt;/A&gt;. Maybe you can patch your code accordingly to alleviate the i2c issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 14:34:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/i2c-LPC11C24-Stuck-in-Busy-Line/m-p/543183#M12640</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2018-12-19T14:34:45Z</dc:date>
    </item>
  </channel>
</rss>

