<?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 frequency accuracy in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-frequency-accuracy/m-p/587081#M27508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Harukana on Wed Apr 10 06:13:34 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: guillaumeL&lt;/STRONG&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; I'm developing an application using I2C interface of the LPC1769. All is working fine but it seems the I2C SCL frequency is not accurate. For example, when I want this frequency at 100kHz it is OK but if I set 400kHz the frequency is only 350 kHz.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; I use the PLL0 with Main oscillator @ 12MHz as input. The setting of the PLL is LPC_SC-&amp;gt;PLL0CFG = 0x10018; (N= 2 &amp;amp; M = 25). Fcco is 300 MHz and I set LPC_SC-&amp;gt;CCLKCFG = 0x02; to get 100MHz as system clock.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; I2C clk is equal to system clock.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Do you know where this frequency "error" can come from?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dear guillaumeL, I am dealing with i2c at the moment and find it very hard to figure out some functions. Could you please offer some help as you are experienced in I2c? thanks very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:49:12 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:49:12Z</dc:date>
    <item>
      <title>I2C frequency accuracy</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-frequency-accuracy/m-p/587079#M27506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by guillaumeL on Tue Nov 20 05:37:47 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I'm developing an application using I2C interface of the LPC1769. All is working fine but it seems the I2C SCL frequency is not accurate. For example, when I want this frequency at 100kHz it is OK but if I set 400kHz the frequency is only 350 kHz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I use the PLL0 with Main oscillator @ 12MHz as input. The setting of the PLL is LPC_SC-&amp;gt;PLL0CFG = 0x10018; (N= 2 &amp;amp; M = 25). Fcco is 300 MHz and I set LPC_SC-&amp;gt;CCLKCFG = 0x02; to get 100MHz as system clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I2C clk is equal to system clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Do you know where this frequency "error" can come from?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:49:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-frequency-accuracy/m-p/587079#M27506</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: I2C frequency accuracy</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-frequency-accuracy/m-p/587080#M27507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_USA on Wed Nov 21 14:07:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: guillaumeL&lt;/STRONG&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; I'm developing an application using I2C interface of the LPC1769. All is working fine but it seems the I2C SCL frequency is not accurate. For example, when I want this frequency at 100kHz it is OK but if I set 400kHz the frequency is only 350 kHz.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Do you know where this frequency "error" can come from?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I2C doesn't operate at a fixed clock speed because the I2C master responds to something called "clock stretching" which happens when the clock is held low by a slave to request more time before the next clock. This can slow down communications. Also, having a high capacitance on the bus or having a pullup resistor that is too large a resistance can cause a similar effect by increasing the amount of time it takes for the clock to rise again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-NXP&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:49:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-frequency-accuracy/m-p/587080#M27507</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: I2C frequency accuracy</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-frequency-accuracy/m-p/587081#M27508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Harukana on Wed Apr 10 06:13:34 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: guillaumeL&lt;/STRONG&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; I'm developing an application using I2C interface of the LPC1769. All is working fine but it seems the I2C SCL frequency is not accurate. For example, when I want this frequency at 100kHz it is OK but if I set 400kHz the frequency is only 350 kHz.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; I use the PLL0 with Main oscillator @ 12MHz as input. The setting of the PLL is LPC_SC-&amp;gt;PLL0CFG = 0x10018; (N= 2 &amp;amp; M = 25). Fcco is 300 MHz and I set LPC_SC-&amp;gt;CCLKCFG = 0x02; to get 100MHz as system clock.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; I2C clk is equal to system clock.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Do you know where this frequency "error" can come from?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dear guillaumeL, I am dealing with i2c at the moment and find it very hard to figure out some functions. Could you please offer some help as you are experienced in I2c? thanks very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:49:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/I2C-frequency-accuracy/m-p/587081#M27508</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:49:12Z</dc:date>
    </item>
  </channel>
</rss>

