<?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>LPC Microcontrollersのトピックclock frequency  of i2c in LPC1347</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/clock-frequency-of-i2c-in-LPC1347/m-p/525666#M8302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sariga on Mon Mar 04 04:03:08 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt; hi ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; i am new to this forum aswell as to lpc microcontrller.i'm using lpc1347 to interface an accelerometer (mma8452q) thru i2c interface which is by default in 100khz..trouble is i dont get from datasheet how to set the clock of i2c..i hav a 12MHz crystal oscillator..know how to set sclh and scll..but how to set pclki2c ? i got this formula,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and lpc1347 in standard/ fast mode (by default)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I 2 C bitfrequency =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PCLKI2C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; ----------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; SCLH + SCLL&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry if i sound too silly, but plzz help..&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:56:13 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:56:13Z</dc:date>
    <item>
      <title>clock frequency  of i2c in LPC1347</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/clock-frequency-of-i2c-in-LPC1347/m-p/525666#M8302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sariga on Mon Mar 04 04:03:08 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt; hi ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; i am new to this forum aswell as to lpc microcontrller.i'm using lpc1347 to interface an accelerometer (mma8452q) thru i2c interface which is by default in 100khz..trouble is i dont get from datasheet how to set the clock of i2c..i hav a 12MHz crystal oscillator..know how to set sclh and scll..but how to set pclki2c ? i got this formula,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and lpc1347 in standard/ fast mode (by default)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I 2 C bitfrequency =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PCLKI2C&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; ----------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; SCLH + SCLL&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry if i sound too silly, but plzz help..&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:56:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/clock-frequency-of-i2c-in-LPC1347/m-p/525666#M8302</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: clock frequency  of i2c in LPC1347</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/clock-frequency-of-i2c-in-LPC1347/m-p/525667#M8303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Paul on Wed May 08 13:39:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hello Sariga&lt;BR /&gt;First, you need to determine the clock to the I2C peripheral which is PCLKI2C.&amp;nbsp; Looking at Figure 3 in the UM10524 User's Manual, you will see that the clock to the I2C peripheral is the main clock divided by the system clock divider.&amp;nbsp; You didn't specify what your main clock was set to, but let's assume that you are using the PLL to bring the clock speed up to&amp;nbsp;72MHz.&amp;nbsp; Most of the time, the system clock divider (SYSAHBCLKDIV) is set to '1', so then the I2C peripheral block will also be 72 MHz.&amp;nbsp; Don't forget to enable the clock to the I2C peripheral by setting bit 5 in SYSAHBCLKCTRL to '1'.&lt;BR /&gt;If you want to get 100kHz from the I2C clock, the equation becomes:&lt;BR /&gt;SCLH + SCLL = (PCLKI2C)/(I2C bit frequency) = (72MHz)/(100kHz) = 720&lt;BR /&gt;So, the total of the SCLH and SCLL registers should be 720.&amp;nbsp; The easiest thing to do is split it evenly between the two, and therefore load the value 360 into each of the SCLH and SCLL registers.&lt;BR /&gt;The I2C specification states that the minimum clock low time for a 100kHz bus should be 4.7us while the minimum clock high time is 4.0 us.&amp;nbsp; The low and high times for this configuration&amp;nbsp;will&amp;nbsp;be 360/72MHz=5.0 us, so we can meet&amp;nbsp;both the I2C clock low and high&amp;nbsp;requirements.&lt;BR /&gt;Hopefully that makes things easier to understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:56:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/clock-frequency-of-i2c-in-LPC1347/m-p/525667#M8303</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:56:14Z</dc:date>
    </item>
  </channel>
</rss>

