<?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: IIC Bus Busy always active - how do I clear it? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/IIC-Bus-Busy-always-active-how-do-I-clear-it/m-p/339907#M21077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the IIC bus was not biased properly, as a result the processor would determine that the bus was busy (sometimes showing it, sometimes not).&amp;nbsp; You can't enter master mode when the bus is busy, only slave mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the solution was to properly bias the SDA anc SCL lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 20:35:19 GMT</pubDate>
    <dc:creator>matthewreed</dc:creator>
    <dc:date>2014-12-15T20:35:19Z</dc:date>
    <item>
      <title>IIC Bus Busy always active - how do I clear it?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/IIC-Bus-Busy-always-active-how-do-I-clear-it/m-p/339906#M21076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever I enable the IIC module the Bus Busy bit is set.&amp;nbsp; I'm the only master on the line, the lines are pulled high.&amp;nbsp; No start signal has been generated.&amp;nbsp; Why is the bus busy?&amp;nbsp; How do I clear it?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frustrated...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17474_17474.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120076iBCE1075D421594CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="17474_17474.gif" alt="17474_17474.gif" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="destroy_iphone.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48064iDF8645845005981F/image-size/large?v=v2&amp;amp;px=999" role="button" title="destroy_iphone.gif" alt="destroy_iphone.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ok, not always.&amp;nbsp; After a bit of messing with it the busy bit is not always set.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But - I can't set MST (master) bit.&amp;nbsp; This has always been true, I thought it was related to the busy bit.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even in the debugger, I set the master bit and it immediately clears.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't get it?&amp;nbsp; Why would it not set?&amp;nbsp; I've set the pins to GPIO output and written to them, they work fine.&amp;nbsp; Why won't master work?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17476_17476.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120077i21D66EE2BD3B22D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="17476_17476.gif" alt="17476_17476.gif" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="teemingcolddiplodocus.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48073iD8FE981C5C9ED40A/image-size/large?v=v2&amp;amp;px=999" role="button" title="teemingcolddiplodocus.gif" alt="teemingcolddiplodocus.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 15:50:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/IIC-Bus-Busy-always-active-how-do-I-clear-it/m-p/339906#M21076</guid>
      <dc:creator>matthewreed</dc:creator>
      <dc:date>2014-12-10T15:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: IIC Bus Busy always active - how do I clear it?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/IIC-Bus-Busy-always-active-how-do-I-clear-it/m-p/339907#M21077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the IIC bus was not biased properly, as a result the processor would determine that the bus was busy (sometimes showing it, sometimes not).&amp;nbsp; You can't enter master mode when the bus is busy, only slave mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the solution was to properly bias the SDA anc SCL lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 20:35:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/IIC-Bus-Busy-always-active-how-do-I-clear-it/m-p/339907#M21077</guid>
      <dc:creator>matthewreed</dc:creator>
      <dc:date>2014-12-15T20:35:19Z</dc:date>
    </item>
  </channel>
</rss>

