<?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: KEA 128 I2C Help!!! in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA-128-I2C-Help/m-p/643172#M38997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="290757" data-username="maharajshreekumarsood" href="https://community.nxp.com/people/maharajshreekumarsood"&gt;Maharaj Shree Kumar Sood&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I apologize for the delay, please check this projects are for bareboard. you will just have to chance little things to make it works in your board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 20:26:30 GMT</pubDate>
    <dc:creator>Jonathan_Iglesias</dc:creator>
    <dc:date>2017-03-30T20:26:30Z</dc:date>
    <item>
      <title>KEA 128 I2C Help!!!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA-128-I2C-Help/m-p/643171#M38996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i ma trying to run I2C on kea 128 development board. the module which i am testing is I2C0 and the slave device being addressed is MPU IMU 9DOF.&lt;/P&gt;&lt;P&gt;I have done the mandatory setting required for configuring the i2c bus ,like the pin selection, clock rate and all,but i am not able to see anything on DSO of SDA or SCL pin. No clock generation is being done when i am doing some transaction on i2c bus. &amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the I2C driver for KEA which have the necessary function for starting the I2C and configuring it for talking to a slave device.&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I2C_ConfigType i2c_test;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//object to I2C config struct in i2c.h&lt;/P&gt;&lt;P&gt;main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/***I2C (100Khz) Configuration for Current sensor****/&lt;BR /&gt; &lt;BR /&gt; SIM_PINSEL0 &amp;amp;= ~SIM_PINSEL_I2C0PS_MASK; //map i2c0 pins on PTA3,SCL and PTA2,SDA&lt;BR /&gt; i2c_test.u16F = 0x1E; //I2C baud rate = I2C module clock speed (Hz)/(mul × SCL divider) = 20Mhz/(1x192)&lt;BR /&gt; i2c_test.u16OwnA1 = 0x68; //slave address&lt;BR /&gt; i2c_test.sSetting.bI2CEn = 0x01;&lt;BR /&gt; &lt;BR /&gt; I2C_Init(I2C0,&amp;amp;i2c_test);&lt;BR /&gt; &lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; I2C_Start(I2C0);&lt;BR /&gt; I2C_WriteOneByte(I2C0,0x75);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//read WHO_AM_I reg of IMU slave&lt;BR /&gt; I2C_ReadOneByte(I2C0,&amp;amp;i2c_rd,1);&lt;BR /&gt; Uart_SendChar(i2c_rd);&lt;BR /&gt; Uart_SendChar(0x0D);&lt;BR /&gt; I2C_Stop(I2C0);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; LED0_ON;&lt;BR /&gt; delay_ms(500);&lt;BR /&gt; LED0_OFF;&lt;BR /&gt; delay_ms(500);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attached the I2C drivers for ready reference&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;when i run this code, nothing comes in uart port and led also doesn't blink. &amp;nbsp;But if I disable all the I2C related functions, code runs perfect.Where am I going wrong.?????&lt;/P&gt;&lt;P&gt;HELP!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;Thanks&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-337529"&gt;iic.7z.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 12:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA-128-I2C-Help/m-p/643171#M38996</guid>
      <dc:creator>maharajshreekum</dc:creator>
      <dc:date>2017-02-16T12:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: KEA 128 I2C Help!!!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA-128-I2C-Help/m-p/643172#M38997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="290757" data-username="maharajshreekumarsood" href="https://community.nxp.com/people/maharajshreekumarsood"&gt;Maharaj Shree Kumar Sood&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I apologize for the delay, please check this projects are for bareboard. you will just have to chance little things to make it works in your board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 20:26:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA-128-I2C-Help/m-p/643172#M38997</guid>
      <dc:creator>Jonathan_Iglesias</dc:creator>
      <dc:date>2017-03-30T20:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: KEA 128 I2C Help!!!</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA-128-I2C-Help/m-p/643173#M38998</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-avatarid="29234" data-externalid="" data-online="false" data-presence="null" data-userid="238032" data-username="jonathaniglesias" href="https://community.nxp.com/people/jonathaniglesias" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: none; font-size: 14px;"&gt;Jonathan Iglesias&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the i2c files. They were of great help to me for cross checking my builtin i2c functions. Now i have written the code for reading a register from IMU with the help of your .h and .c files. But , the choke is that I am unable to see and clock on my SCL pin on DSO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIM_PINSEL1 &amp;amp;= 0x0000; //map i2c1 pins on PTE1,SCL and PTE0,SDA&lt;BR /&gt; &lt;BR /&gt; i2c_test.u16F = 0x1E;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;//I2C baud rate = I2C module clock speed (Hz)/(mul × SCL divider) = 20Mhz/(1x192)&lt;BR /&gt; //i2c_test.u16OwnA1 = SLAVE_ADRESS; //slave address&lt;BR /&gt; i2c_test.sSetting.bI2CEn = 0x01;&lt;BR /&gt; &lt;BR /&gt; I2C_Init(I2C1,&amp;amp;i2c_test); &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; I2C_start();&lt;BR /&gt; I2C1_D = SLAVE_ADRESS &amp;lt;&amp;lt; 1; /* Send I2C device address with W/R bit = 0 */&lt;BR /&gt; I2C_wait();&lt;BR /&gt; I2C1_D = MPU_WHO_AM_I;&lt;BR /&gt; I2C_repeatedStart();&lt;BR /&gt; I2C0_D = (SLAVE_ADRESS &amp;lt;&amp;lt; 1) | 0x01; /* Send I2C device address this time with W/R bit = 1 */&lt;BR /&gt; I2C_wait();&lt;/P&gt;&lt;P&gt;I2C_enterRxMode();&lt;BR /&gt; I2C_disableAck();&lt;BR /&gt; &lt;BR /&gt; i2c_rd_1 = I2C1_D;&lt;BR /&gt; I2C_wait();&lt;BR /&gt; I2C_stop();&lt;BR /&gt; i2c_rd_1 = I2C1_D; &lt;BR /&gt; Delay(50);&lt;BR /&gt; sprintf(str,"Reg val = %d",i2c_rd_1);&lt;BR /&gt; Uart_SendStr(str);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that my i2c is not getting configured properly on these pins. Although the pins on the sensor side are pulled up with 10k to 3.3V.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, i think i am doing somewhere wrong with I2c configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 10:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KEA-128-I2C-Help/m-p/643173#M38998</guid>
      <dc:creator>maharajshreekum</dc:creator>
      <dc:date>2017-06-13T10:56:48Z</dc:date>
    </item>
  </channel>
</rss>

