<?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: KL27 I2C Speed Problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-I2C-Speed-Problem/m-p/733134#M44832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is obviously that your SDK is not the most update one. I use SDK 2.3 and the code is different with yours. Please try the example frdmkl27z_driver_example_i2c_i2c_example. You can modify masterConfig.baudRate_Bps as you wish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2018 09:06:27 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2018-05-09T09:06:27Z</dc:date>
    <item>
      <title>KL27 I2C Speed Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-I2C-Speed-Problem/m-p/733132#M44830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not quite getting the initialization of the I2C baud rate. Normally, I use the same speed of I2C for all my projects so this is never an issue. Now, I am using an SDK from somebody and they want to set their own I2C speeds for their ICs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached I2C.c file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have "acquired" this code from the KDS 2.0 SDK library - or at least it is close. Copyright preserved. :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My MCU is a:&amp;nbsp; MKL27Z256VFM4&lt;/P&gt;&lt;P&gt;System Bus Speed: 48 MHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to get the speeds I need when I put this on the scope. Not even close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems pretty clunky to get the I2Cx_F settings this way but I'm sure there is a good reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also getting locking up when in I2C wait states when using the setting suggested for 20 kbps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read the double-buffering causes lock ups at these slower speeds. But, the SDI I am using from this vendor is hardcoding a rate of 20 kbps. Even when I override the inbound 20 kbps to 50 kbps the problem still occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 00:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-I2C-Speed-Problem/m-p/733132#M44830</guid>
      <dc:creator>philhale</dc:creator>
      <dc:date>2018-05-09T00:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: KL27 I2C Speed Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-I2C-Speed-Problem/m-p/733133#M44831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you suggest a good I2C0_F setting for 20, 40, 100, and 400 kbps?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 01:25:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-I2C-Speed-Problem/m-p/733133#M44831</guid>
      <dc:creator>philhale</dc:creator>
      <dc:date>2018-05-09T01:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: KL27 I2C Speed Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-I2C-Speed-Problem/m-p/733134#M44832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is obviously that your SDK is not the most update one. I use SDK 2.3 and the code is different with yours. Please try the example frdmkl27z_driver_example_i2c_i2c_example. You can modify masterConfig.baudRate_Bps as you wish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 09:06:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL27-I2C-Speed-Problem/m-p/733134#M44832</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-05-09T09:06:27Z</dc:date>
    </item>
  </channel>
</rss>

