<?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: I2C1 on K64F - not working in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725713#M44402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Please download the&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuxpresso.nxp.com%2Fen%2Fwelcome" rel="nofollow" target="_blank"&gt;SDK_2.3.0_FRDM-K64F&lt;/A&gt; &lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;package refer&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="11554" data-containertype="14" data-content-finding="Community" data-objectid="333304" data-objecttype="102" href="https://community.nxp.com/docs/DOC-333304"&gt;Generating a downloadable MCUXpresso SDK v.2 package&lt;/A&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;And then you can find the i2c interrupt example in it's folder. (For example: C:\SDK_2.3.0_FRDM-K64F\boards\frdmk64f\driver_examples\i2c\interrupt)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;The example is configured 2 instances I2C , one as I2C master , another as I2C slave.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="I2C0 I2C1 K64.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44692iA8B1A75AD67503B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="I2C0 I2C1 K64.PNG" alt="I2C0 I2C1 K64.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="I2C1 slave.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44670iFCD5C5EB0581BD27/image-size/large?v=v2&amp;amp;px=999" role="button" title="I2C1 slave.PNG" alt="I2C1 slave.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2018 03:17:41 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2018-03-06T03:17:41Z</dc:date>
    <item>
      <title>I2C1 on K64F - not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725709#M44398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tryignt o sue the I2C1 port of a K64F, have been able to toggle the pins using GPIO mode to prove that they are connected,&lt;/P&gt;&lt;P&gt;When I try and use the standrad library code it gets stuck at waiting for the followign code&lt;/P&gt;&lt;P&gt;while (!(base-&amp;gt;S &amp;amp; kI2C_IntPendingFlag))&lt;BR /&gt; {&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;both SCL and SDA remain high which suggest that its not driving the I2C lines onto the pins, trying to use PTC10/11 pins.&lt;/P&gt;&lt;P&gt;the config tool generatyed the followign code for the pins&lt;BR /&gt; /* PORTC10 (pin 82) is configured as I2C1_SCL */&lt;BR /&gt; PORT_SetPinMux(PORTC, 10U, kPORT_MuxAlt5);&lt;/P&gt;&lt;P&gt;PORTC-&amp;gt;PCR[10] = ((PORTC-&amp;gt;PCR[10] &amp;amp;&lt;BR /&gt; /* Mask bits to zero which are setting */&lt;BR /&gt; (~(PORT_PCR_PS_MASK | PORT_PCR_PE_MASK | PORT_PCR_ODE_MASK | PORT_PCR_ISF_MASK)))&lt;/P&gt;&lt;P&gt;/* Pull Select: Internal pullup resistor is enabled on the corresponding pin, if the&lt;BR /&gt; * corresponding PE field is set. */&lt;BR /&gt; | (uint32_t)(kPORT_PullUp)&lt;/P&gt;&lt;P&gt;/* Open Drain Enable: Open drain output is enabled on the corresponding pin, if the pin is&lt;BR /&gt; * configured as a digital output. */&lt;BR /&gt; | PORT_PCR_ODE(kPORT_OpenDrainEnable));&lt;/P&gt;&lt;P&gt;/* PORTC11 (pin 83) is configured as I2C1_SDA */&lt;BR /&gt; PORT_SetPinMux(PORTC, 11U, kPORT_MuxAlt5);&lt;/P&gt;&lt;P&gt;PORTC-&amp;gt;PCR[11] = ((PORTC-&amp;gt;PCR[11] &amp;amp;&lt;BR /&gt; /* Mask bits to zero which are setting */&lt;BR /&gt; (~(PORT_PCR_PS_MASK | PORT_PCR_PE_MASK | PORT_PCR_ODE_MASK | PORT_PCR_ISF_MASK)))&lt;/P&gt;&lt;P&gt;/* Pull Select: Internal pullup resistor is enabled on the corresponding pin, if the&lt;BR /&gt; * corresponding PE field is set. */&lt;BR /&gt; | (uint32_t)(kPORT_PullUp)&lt;/P&gt;&lt;P&gt;/* Open Drain Enable: Open drain output is enabled on the corresponding pin, if the pin is&lt;BR /&gt; * configured as a digital output. */&lt;BR /&gt; | PORT_PCR_ODE(kPORT_OpenDrainEnable));&lt;BR /&gt; &lt;BR /&gt;Any ideas?&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2018 13:49:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725709#M44398</guid>
      <dc:creator>davidatkins</dc:creator>
      <dc:date>2018-03-04T13:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: I2C1 on K64F - not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725710#M44399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that the PORTC I2C1 pins are configured as muxalt2 not muxalt5, this is from looking at the outptu of the config tool, nto sure which is correct now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2018 16:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725710#M44399</guid>
      <dc:creator>davidatkins</dc:creator>
      <dc:date>2018-03-04T16:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: I2C1 on K64F - not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725711#M44400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi david,&lt;/P&gt;&lt;P&gt;Would you please tell us which MCUXpresso Config Tools are you using?&lt;/P&gt;&lt;P&gt;I am using &lt;A href="https://mcuxpresso.nxp.com/en/pins"&gt;online&lt;/A&gt; and &lt;A href="https://www.nxp.com/support/developer-resources/software-development-tools/mcuxpresso-software-and-tools/mcuxpresso-config-tools-pins-clocks-peripherals:MCUXpresso-Config-Tools?tab=Design_Tools_Tab"&gt;offline&lt;/A&gt; MCUXpresso Config Tools, both of them can generate correct codes.&lt;/P&gt;&lt;P&gt;PORT_SetPinMux(PORTC, 11U, kPORT_MuxAlt2);&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MCUXpresso Config Tools offline.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34366i24A3B49F8F33971B/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCUXpresso Config Tools offline.png" alt="MCUXpresso Config Tools offline.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MCUXpresso Config Tools online.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34398iBE768C4E91536FE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCUXpresso Config Tools online.png" alt="MCUXpresso Config Tools online.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The i2c interrupt in&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;SDK_2.3.0_FRDM-K64F&lt;/A&gt; also generate correct codes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PTC10 PTC11 I2C1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34375i32390B82491B7206/image-size/large?v=v2&amp;amp;px=999" role="button" title="PTC10 PTC11 I2C1.PNG" alt="PTC10 PTC11 I2C1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 06:50:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725711#M44400</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-03-05T06:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: I2C1 on K64F - not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725712#M44401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the offline tools, is there a working example of working I2C1 port anywhere, I’m sure it’s going to be a config issues but the config tool does not generate the same code for I2C1 as it does I2C0, the i2c init function is not crated for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented a GPIO bit bang i2c using the pins and that works but is slow, so the circuity looks ok just the software side I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 07:25:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725712#M44401</guid>
      <dc:creator>davidatkins</dc:creator>
      <dc:date>2018-03-05T07:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: I2C1 on K64F - not working</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725713#M44402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Please download the&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuxpresso.nxp.com%2Fen%2Fwelcome" rel="nofollow" target="_blank"&gt;SDK_2.3.0_FRDM-K64F&lt;/A&gt; &lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;package refer&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="11554" data-containertype="14" data-content-finding="Community" data-objectid="333304" data-objecttype="102" href="https://community.nxp.com/docs/DOC-333304"&gt;Generating a downloadable MCUXpresso SDK v.2 package&lt;/A&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;And then you can find the i2c interrupt example in it's folder. (For example: C:\SDK_2.3.0_FRDM-K64F\boards\frdmk64f\driver_examples\i2c\interrupt)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;The example is configured 2 instances I2C , one as I2C master , another as I2C slave.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="I2C0 I2C1 K64.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44692iA8B1A75AD67503B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="I2C0 I2C1 K64.PNG" alt="I2C0 I2C1 K64.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="I2C1 slave.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44670iFCD5C5EB0581BD27/image-size/large?v=v2&amp;amp;px=999" role="button" title="I2C1 slave.PNG" alt="I2C1 slave.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 03:17:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C1-on-K64F-not-working/m-p/725713#M44402</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-03-06T03:17:41Z</dc:date>
    </item>
  </channel>
</rss>

