<?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: I2C Basics in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Basics/m-p/427345#M24695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read a little more on the I2C spec, I am supposing since there is no slave, i.e., no ack bit that this would cause my issue???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2015 16:50:05 GMT</pubDate>
    <dc:creator>bitjockey</dc:creator>
    <dc:date>2015-11-19T16:50:05Z</dc:date>
    <item>
      <title>I2C Basics</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Basics/m-p/427344#M24694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Newbie to using I2C on a KE06 FRDM board. I set the PE component up per the help file on it in KDS. (I2C1 channel on PTE0 and PTE1) I have the interrupt setting the transmitted flag True and a timer loop that transmits the same message every 160mS.&amp;nbsp; I have the 4.7k pullups on the line. My question is if I don't have another I2C device connected to the bus should I be able to see the clock and data lines toggling with a scope? Or must a slave device be connected for I2C to operate properly? Currently the interrupt never fires and the program is stuck here: Highlighted in red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CI2C1_SelectSlaveDevice(I2C1_Ptr, LDD_I2C_ADDRTYPE_7BITS, SlaveID); /* Select Slave to write to */&lt;/P&gt;&lt;P&gt;&amp;nbsp; Error = CI2C1_MasterSendBlock(I2C1_Ptr, OutDataPtr, 4U, LDD_I2C_SEND_STOP); /* Send OutData (4 bytes) on the I2C bus and generates a stop condition to end transmission */&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #303030;"&gt;&amp;nbsp; &lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;while (!DataTransmittedFlg) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Wait until OutData are transmitted */&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; DataTransmittedFlg = FALSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 16:26:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Basics/m-p/427344#M24694</guid>
      <dc:creator>bitjockey</dc:creator>
      <dc:date>2015-11-19T16:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Basics</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Basics/m-p/427345#M24695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read a little more on the I2C spec, I am supposing since there is no slave, i.e., no ack bit that this would cause my issue???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 16:50:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Basics/m-p/427345#M24695</guid>
      <dc:creator>bitjockey</dc:creator>
      <dc:date>2015-11-19T16:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Basics</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Basics/m-p/427346#M24696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will see the clocks and slave address on the data line and a NACK as you mention. you might want to look for a function on the PE generated code that asks for the transaction status, which probably sets a "NACK Received" flag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 18:09:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Basics/m-p/427346#M24696</guid>
      <dc:creator>carlos_neri</dc:creator>
      <dc:date>2015-11-26T18:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Basics</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Basics/m-p/427347#M24697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-KE06Z.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-KE06Z.html&lt;/A&gt;&lt;SPAN&gt; which includes KE06 I2C operation, including simuation of the KE06, I2C and the accelerometer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If using PE you may find that nothing is in fact controlling the DatatransmittedFlg and you may need to add its control in the I2C interrupt.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I2C: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/docs/uTasker/uTaskerIIC.PDF" rel="nofollow"&gt;http://www.utasker.com/docs/uTasker/uTaskerIIC.PDF&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KE: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-KE02Z.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-KE02Z40M.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z40M.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-KE04Z.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-KE04Z.html&lt;/A&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-KE06Z.html" rel="nofollow"&gt;http://www.utasker.com/kinetis/FRDM-KE06Z.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 21:48:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Basics/m-p/427347#M24697</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-11-26T21:48:11Z</dc:date>
    </item>
  </channel>
</rss>

