<?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 Microcontrollers中的主题 Re: I2C at low speed put out wrong data</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401966#M22342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You say that you are seeing incorrect data sent at 2 kHz.&amp;nbsp; Are you sure your baud rate is 2 kHz?&amp;nbsp; By my calculations, with a 20 MHz bus clock speed, the minimum baud rate you could assign is ~79 kHz.&amp;nbsp; Could you try setting your bus clock speed to 500 kHz?&amp;nbsp; (That would be a core clock frequency of 2 MHz with a divide of 4 to make 500 kHz).&amp;nbsp; Please let me know if that doesn't work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 15:24:53 GMT</pubDate>
    <dc:creator>chris_brown</dc:creator>
    <dc:date>2015-04-16T15:24:53Z</dc:date>
    <item>
      <title>I2C at low speed put out wrong data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401963#M22339</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 am using KL15, and&amp;nbsp; I am trying to use I2C with very low data rate (2kHz, I am using EE893 sensor), but when I send data in output, the data is wrong (I must send 0x71 as address, and i see on the oscilloscope 0x7F) and after a numbers of retrasmission, nothing go out!&amp;nbsp; When I set the speed at 100kHz, the data in output is correct and it doesn't stop after a number of retrasmission!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 12:56:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401963#M22339</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2015-04-13T12:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: I2C at low speed put out wrong data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401964#M22340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would love to try to help.&amp;nbsp; I have to admit that I have never heard of this problem before though.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using a Freescale software package for your application?&amp;nbsp; If so, what software offering are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, it would be good to know your bus clock and core clock frequencies as well as the I2C settings and snippets of your code if possible.&amp;nbsp; My initial impression is that there is some timing issue between what your code is doing and the status of the I2C module (i.e., maybe the core is writing registers before the I2C module is really ready to be changed).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 18:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401964#M22340</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2015-04-13T18:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: I2C at low speed put out wrong data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401965#M22341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi Christopher,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I am using KDS 1.1.1, the core clock is 40MHz and bus clock is 20MHz.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I am using this code (libohiboard library): &lt;A href="https://github.com/ohilab/libohiboard/blob/develop/source/i2c_KL15Z4.c"&gt;https://github.com/ohilab/libohiboard/blob/develop/source/i2c_KL15Z4.c&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;and in the code I write:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/*************************** CODE ******************************/&lt;/P&gt;&lt;P&gt;uint8_t EE893_rxMessage[2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iic_Config co2IicConfig = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .sclPin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = CO2_SCL_PIN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .sdaPin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = CO2_SDA_PIN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .baudRate&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2000,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .devType&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = IIC_MASTER_MODE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .addressMode = IIC_SEVEN_BIT,&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iic_init(IIC1,&amp;amp;co2IicConfig);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iic_readBytes (IIC0,0x71,EE893_rxMessage,2,IIC_STOP);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;/*************************** CODE ******************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 07:03:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401965#M22341</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2015-04-15T07:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: I2C at low speed put out wrong data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401966#M22342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You say that you are seeing incorrect data sent at 2 kHz.&amp;nbsp; Are you sure your baud rate is 2 kHz?&amp;nbsp; By my calculations, with a 20 MHz bus clock speed, the minimum baud rate you could assign is ~79 kHz.&amp;nbsp; Could you try setting your bus clock speed to 500 kHz?&amp;nbsp; (That would be a core clock frequency of 2 MHz with a divide of 4 to make 500 kHz).&amp;nbsp; Please let me know if that doesn't work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 15:24:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401966#M22342</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2015-04-16T15:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: I2C at low speed put out wrong data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401967#M22343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get a chance to try my suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 21:54:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401967#M22343</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2015-04-29T21:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: I2C at low speed put out wrong data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401968#M22344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;whit 20MHz and the SCL divider setted to 3840 (without MUL), we can use a&amp;nbsp; 5kHz as baudrate. I can't use 500kHz of bus clock... I need more speeds!!! (like 20MHz)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marco &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 13:16:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401968#M22344</guid>
      <dc:creator>MarcoGiammarini</dc:creator>
      <dc:date>2015-05-12T13:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: I2C at low speed put out wrong data</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401969#M22345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point I think we would like to see some scope-captures of the I2C signals at this 5KHz rate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 20:43:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-at-low-speed-put-out-wrong-data/m-p/401969#M22345</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2015-05-13T20:43:48Z</dc:date>
    </item>
  </channel>
</rss>

