<?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: [imx6qp] i2c clock setting in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6qp-i2c-clock-setting/m-p/516791#M83990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The following comments - I hope - helps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="I2C_clock.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59439i21ECB037D9BD937F/image-size/large?v=v2&amp;amp;px=999" role="button" title="I2C_clock.jpg" alt="I2C_clock.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The I2C uses PERCLK_ROOT as its clock source. PERCLK_ROOT is derived from&lt;/P&gt;&lt;P&gt;IPG_CLK_ROOT. The IPG_CLK_ROOT runs at 66 MHz with default dividers, as&lt;/P&gt;&lt;P&gt;shown in the above figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&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, 09 Jun 2016 09:45:34 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2016-06-09T09:45:34Z</dc:date>
    <item>
      <title>[imx6qp] i2c clock setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6qp-i2c-clock-setting/m-p/516790#M83989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to change the i2C clock to 100KHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i2c_imx says following, in my understanding is 24000000 / 240 = 100000.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;i2c_imx_set_clk&amp;gt; I2C_CLK=24000000, REQ DIV=240&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;i2c_imx_set_clk&amp;gt; IFDR[IC]=0xf, REAL DIV=240&lt;/P&gt;&lt;P&gt;*clock source is "clk24m"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But,I checked the SCL line using oscilloscope, I can see about &lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;255KHz&lt;/STRONG&gt;&lt;/SPAN&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If source clock changed to "ipg"(66MHz), i2c_imx says,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;i2c_imx_set_clk&amp;gt; I2C_CLK=66000000, REQ DIV=660&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;i2c_imx_set_clk&amp;gt; IFDR[IC]=0x39, REAL DIV=768&lt;/P&gt;&lt;P&gt;calculated clock value is 66000000 / 768 = 85937.5, and I can see about 86KHz on the SCL line(probably correct).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So , &lt;SPAN lang="en"&gt;I wanted to check the value of IFDR register, but the memtool returned "Bus error".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;[Question]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt; 1. &lt;SPAN lang="en"&gt;When the clock source is a 24MHz, why correct setting is not performed?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt; 2. Why memtool returned "Bus Error" ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Taro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 07:43:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6qp-i2c-clock-setting/m-p/516790#M83989</guid>
      <dc:creator>taroyamamoto</dc:creator>
      <dc:date>2016-06-08T07:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: [imx6qp] i2c clock setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6qp-i2c-clock-setting/m-p/516791#M83990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The following comments - I hope - helps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="I2C_clock.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59439i21ECB037D9BD937F/image-size/large?v=v2&amp;amp;px=999" role="button" title="I2C_clock.jpg" alt="I2C_clock.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The I2C uses PERCLK_ROOT as its clock source. PERCLK_ROOT is derived from&lt;/P&gt;&lt;P&gt;IPG_CLK_ROOT. The IPG_CLK_ROOT runs at 66 MHz with default dividers, as&lt;/P&gt;&lt;P&gt;shown in the above figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&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, 09 Jun 2016 09:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6qp-i2c-clock-setting/m-p/516791#M83990</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-06-09T09:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: [imx6qp] i2c clock setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6qp-i2c-clock-setting/m-p/516792#M83991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your replay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My understanding are....&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;1. I2C clock source &lt;SPAN&gt;can be used only&lt;/SPAN&gt; IPG.&lt;BR /&gt;2. Be set to 100KHz, actually &lt;SPAN&gt;it becomes&lt;/SPAN&gt; &lt;SPAN&gt;86KHz.&lt;/SPAN&gt;&lt;BR /&gt;3. Just the output of 100KHz or 400KHz is &lt;SPAN&gt;impossible&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Correct ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Taro&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 22:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6qp-i2c-clock-setting/m-p/516792#M83991</guid>
      <dc:creator>taroyamamoto</dc:creator>
      <dc:date>2016-06-12T22:55:31Z</dc:date>
    </item>
  </channel>
</rss>

