<?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: Unable to communicate using external I2C in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-communicate-using-external-I2C/m-p/636081#M5497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mahendra,&lt;/P&gt;&lt;P&gt;- Please pay attention that , if you use the processor expert , you needn't configure&lt;/P&gt;&lt;P&gt;the registers for initialize I2C . After configure the I2C component , then the initialize&lt;/P&gt;&lt;P&gt;code can generate :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5951iE8F5D9681D2926D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-From your detail of the IICSDA and IICSCL signal, i think the I2C have not been start ..&lt;/P&gt;&lt;P&gt;So recommend you first refer the demo i mentioned last time to test .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2016 07:22:45 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-09-22T07:22:45Z</dc:date>
    <item>
      <title>Unable to communicate using external I2C</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-communicate-using-external-I2C/m-p/636078#M5494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have a question regarding the external&amp;nbsp;I2C&amp;nbsp;block in Processor expert. I am using CodeWarrior version 10.6.4 and the micro controller is part of the MC9S12ZVC&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;family&amp;nbsp;and I&amp;nbsp;am using a&amp;nbsp;USB multilink universal debugger to communicate. I am trying to receive messages from my processor to a tilt sensor (MMA8653FCR1). When I step into the code of the receive block (EI2C1_RecvBlock) it looks like the data is never received. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="164719_164719.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122254iDA7CD919A6E20A36/image-size/large?v=v2&amp;amp;px=999" role="button" title="164719_164719.png" alt="164719_164719.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5495i1243B593BD43EC8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;As per the code above, the value of acknowledge is always set to '1' which I assume means that the tilt sensor has received the data request. Below is a screenshot of the configuration -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="164783_164783.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122255i4B73AF805E52820F/image-size/large?v=v2&amp;amp;px=999" role="button" title="164783_164783.png" alt="164783_164783.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5521i599147066042E801/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Is there some sort of basic mistake that I am committing ? Also am I supposed to see pulses in the IICSCL or IICSDA lines when I transmit data (using EI2C1_SendBlock) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Once again I would deeply appreciate it if someone could provide some insight.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Sincerely,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Mahendra&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 22:17:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-communicate-using-external-I2C/m-p/636078#M5494</guid>
      <dc:creator>jmu</dc:creator>
      <dc:date>2016-09-20T22:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to communicate using external I2C</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-communicate-using-external-I2C/m-p/636079#M5495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Mahendra&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;First i recommend you use one Scope to check the send signal and&lt;/P&gt;&lt;P&gt;receive signal on &lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;IICSCL and IICSDA lines .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;If the signal is right , then you can&amp;nbsp;&amp;nbsp; refer to the Typical usage : right click &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;the component , then select "help on component" :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/7055iB306D8FA74C9ED45/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hope it helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 09:26:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-communicate-using-external-I2C/m-p/636079#M5495</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-09-21T09:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to communicate using external I2C</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-communicate-using-external-I2C/m-p/636080#M5496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Thank you for your&amp;nbsp;quick response. I connected the IICSDA and IICSCL lines to a scope. The&amp;nbsp;&lt;SPAN&gt;IICSDA line is being pulled upto 4.5 volts and IICSCL line stays at 0 volts. I am not seeing a pulse in either of the lines. Do you think there is a register I need to set in order to see the clock pulses ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I assigned the register IIC0IBCR register to 0xB0 which enables IIC bus module, sets Master mode and sets the transmit bit. Although when I do this the register IIC0IBSR gets set to 0xA4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5318i152875CC540B0358/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you think this could be one of the problems ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is a snippet of the part of the code which&amp;nbsp;transmits and receives data -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5319i082FA97A59D2C056/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It looks like the main problem is the lack of clock pulses on the IIC0SCL line. Do let&amp;nbsp;me know&amp;nbsp;your thoughts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Once again deeply appreciate your insight.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mahendra&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:27:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-communicate-using-external-I2C/m-p/636080#M5496</guid>
      <dc:creator>jmu</dc:creator>
      <dc:date>2016-09-21T20:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to communicate using external I2C</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-communicate-using-external-I2C/m-p/636081#M5497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mahendra,&lt;/P&gt;&lt;P&gt;- Please pay attention that , if you use the processor expert , you needn't configure&lt;/P&gt;&lt;P&gt;the registers for initialize I2C . After configure the I2C component , then the initialize&lt;/P&gt;&lt;P&gt;code can generate :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5951iE8F5D9681D2926D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-From your detail of the IICSDA and IICSCL signal, i think the I2C have not been start ..&lt;/P&gt;&lt;P&gt;So recommend you first refer the demo i mentioned last time to test .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 07:22:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Unable-to-communicate-using-external-I2C/m-p/636081#M5497</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-09-22T07:22:45Z</dc:date>
    </item>
  </channel>
</rss>

