<?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>Kinetis Software Development Kit中的主题 Re: I2C1 as Master on FRDM-K22F</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603947#M6217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sandeep sharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I copy your file to the KSDK2.1-FRDM-K22 board, and use the logic analyzer to check the I2C wave in PTC10(i2c_scl), and PTC11(I2C_SDA), I get this wave:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11103iDE966B5A17517FCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;9 bit: 7bit address(0x23) +1bit(W) +1bit(NACK).&lt;/P&gt;&lt;P&gt;Your slave really didn't give ACK.&lt;/P&gt;&lt;P&gt;Please add external 10Kpull up in the i2c wave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, because you just use the I2C master mode, then you don't need to add the slave code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&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>Thu, 12 Jan 2017 07:26:44 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-01-12T07:26:44Z</dc:date>
    <item>
      <title>I2C1 as Master on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603942#M6212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a FRDM K22F board (MK22FN512VLH12) and &amp;nbsp;connected one light sensor to it.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have connected I2C sensor on I2C1 module of the board.[Pin55 as I2C1_SCL&amp;nbsp;&amp;amp; Pin 56 as I2C1_SDA] and configured it as I2C Master.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Slave address for my device is 0x23. I have modified&amp;nbsp;freertos_i2c_frdmk22f&amp;nbsp;code to test it.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i am trying to write on this slave address, I am getting error [Error code:- 0x451:- kStatus_I2C_Addr_Nak. NAK received during the address probe]&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help here,where i did mistake and how to proceed.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep S&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-338854"&gt;freertos_i2c.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 11:42:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603942#M6212</guid>
      <dc:creator>sandeepajesh</dc:creator>
      <dc:date>2017-01-10T11:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: I2C1 as Master on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603943#M6213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep sharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This is not the code problem, your slave give NACK, it seems your slave didn't give response, you can check the I2C wave in the I2C bus.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Whether the I2C wave meet your slave device demand, please also check your slave datasheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&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>Thu, 12 Jan 2017 02:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603943#M6213</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-12T02:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: I2C1 as Master on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603944#M6214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the Response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes Kerry, I placed a oscilloscope in between and tried to see waves. After configuring the I2C1 as Master at clock 400000Hz ,i think we should be able to see clock on the line.But I can't see anything on the scope, even on SCL line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why i was suspecting problem from the FRDM-K22F I2C side. Anything else that i can try here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 02:53:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603944#M6214</guid>
      <dc:creator>sandeepajesh</dc:creator>
      <dc:date>2017-01-12T02:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: I2C1 as Master on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603945#M6215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sandeep sharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Ok, I will check your code, and reply you later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&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>Thu, 12 Jan 2017 03:14:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603945#M6215</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-12T03:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: I2C1 as Master on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603946#M6216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will wait for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 04:54:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603946#M6216</guid>
      <dc:creator>sandeepajesh</dc:creator>
      <dc:date>2017-01-12T04:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: I2C1 as Master on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603947#M6217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sandeep sharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I copy your file to the KSDK2.1-FRDM-K22 board, and use the logic analyzer to check the I2C wave in PTC10(i2c_scl), and PTC11(I2C_SDA), I get this wave:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11103iDE966B5A17517FCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;9 bit: 7bit address(0x23) +1bit(W) +1bit(NACK).&lt;/P&gt;&lt;P&gt;Your slave really didn't give ACK.&lt;/P&gt;&lt;P&gt;Please add external 10Kpull up in the i2c wave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, because you just use the I2C master mode, then you don't need to add the slave code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&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>Thu, 12 Jan 2017 07:26:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C1-as-Master-on-FRDM-K22F/m-p/603947#M6217</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-12T07:26:44Z</dc:date>
    </item>
  </channel>
</rss>

