<?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>Processor Expert SoftwareのトピックRe: InteralI2C Bean Test on EVB9S12XEP100</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/InteralI2C-Bean-Test-on-EVB9S12XEP100/m-p/270104#M1750</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;I looked in the project settings and noticed that the Slave address of the I2C1 component is 0, while the master uses target slave address 8 for sending data. This would explain why the communication fails, the slave does not recognize the address. Try setting Slave address property of the I2C1 component to 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2014 16:35:11 GMT</pubDate>
    <dc:creator>cristianzamfire</dc:creator>
    <dc:date>2014-02-10T16:35:11Z</dc:date>
    <item>
      <title>InteralI2C Bean Test on EVB9S12XEP100</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/InteralI2C-Bean-Test-on-EVB9S12XEP100/m-p/270103#M1749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm testing the InternalI2C bean (for HC12X) using an evaluation board EVB9S12XEP100.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since it is the first experience with I2C protocol, and before to use it to&lt;/P&gt;&lt;P&gt;program a Sharp Tuner, I decided to do some training connecting together &lt;/P&gt;&lt;P&gt;the SDA and SCL lines of the two I2C0 and I2C1 ports (using two 2.2 KOhm &lt;/P&gt;&lt;P&gt;resistors for pull-up to Vdd=+5V the two lines SDA and SCL).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; At this point, I've created a simple project (see attachement)&amp;nbsp; integrating&lt;/P&gt;&lt;P&gt; the Processor Expert beans adding two components "I2C0.InternaI2C" and&lt;/P&gt;&lt;P&gt; "I2C1.InternalI2C".&lt;/P&gt;&lt;P&gt;The scope of this SW is simply to send 3 Bytes from I2C0 to I2C1.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; I set the I2C ports as following:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; -&amp;nbsp; I2C0 as MASTER (with Interrupts enabled)&lt;/P&gt;&lt;P&gt; -&amp;nbsp; I2C1 as SLAVE (with Interrupts enabled)&lt;/P&gt;&lt;P&gt; -&amp;nbsp; frequency (SCL=400KHz).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; Therefore:&lt;/P&gt;&lt;P&gt; - The SW is compiled without errors and warning.&lt;/P&gt;&lt;P&gt; - The Events.C callbacks were properly set with the needed flags using the&lt;/P&gt;&lt;P&gt; Tutorial InternalI2C.&lt;/P&gt;&lt;P&gt; - The binary is loaded on the target without errors.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; ######&amp;nbsp; PROBLEM&amp;nbsp; #######&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; The "I2C0_SendBlock()" returns ERR_OK and sentBytes = 3,&lt;/P&gt;&lt;P&gt; but the Event "OnTrasmitData" is not called and therefore the SW go in deadlok waiting endless&lt;/P&gt;&lt;P&gt; for the flag "Completed=1U".&lt;/P&gt;&lt;P&gt; It seems the byte transmission not finish correctly for some problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; If I comment all the synchro loops (while{...}) till to arrive to the&amp;nbsp; "I2C1_ReceiveBlock()"&lt;/P&gt;&lt;P&gt; I get the error id = 10 (no data to receive).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; I've checked the SCL line by an oscilloscope and the clk is 400KHz.&lt;/P&gt;&lt;P&gt; Unfortunately I don't have a Logic Analyzer at the moment.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me to understand where could be the error?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;&lt;P&gt;AndydnA&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-338548"&gt;Project_Andy_IIC.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 15:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/InteralI2C-Bean-Test-on-EVB9S12XEP100/m-p/270103#M1749</guid>
      <dc:creator>andydna</dc:creator>
      <dc:date>2014-01-31T15:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: InteralI2C Bean Test on EVB9S12XEP100</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/InteralI2C-Bean-Test-on-EVB9S12XEP100/m-p/270104#M1750</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;I looked in the project settings and noticed that the Slave address of the I2C1 component is 0, while the master uses target slave address 8 for sending data. This would explain why the communication fails, the slave does not recognize the address. Try setting Slave address property of the I2C1 component to 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 16:35:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/InteralI2C-Bean-Test-on-EVB9S12XEP100/m-p/270104#M1750</guid>
      <dc:creator>cristianzamfire</dc:creator>
      <dc:date>2014-02-10T16:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: InteralI2C Bean Test on EVB9S12XEP100</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/InteralI2C-Bean-Test-on-EVB9S12XEP100/m-p/270105#M1751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Cristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;really thank you for reply and support. Yes you are right about the SLAVE_ID, but there was another problem.&lt;/P&gt;&lt;P&gt;The main problem was the wrong Evaluation Board HW setting to access the available communication ports.&lt;/P&gt;&lt;P&gt;I've checked the MC9S12 pins sharing on my EVB9 and I've seen that the pins PJ6 and PJ7 are shared among IIC0/CAN0/CAN4.&lt;/P&gt;&lt;P&gt;The default board jumper setting use the CAN0 instead of the IIC0. At this point I've disconnetded the board jumpers J420 and J421 and now IIC0 works correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your interesting, &lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;AndydnA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 17:02:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/InteralI2C-Bean-Test-on-EVB9S12XEP100/m-p/270105#M1751</guid>
      <dc:creator>andydna</dc:creator>
      <dc:date>2014-02-10T17:02:38Z</dc:date>
    </item>
  </channel>
</rss>

