<?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のトピックLPC1788 SD card interface MCLK clock</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518626#M2779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wella-tabor on Thu Aug 20 05:57:03 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is in the LPC1788 UM10470-SD card interface mentioned some MCLK clock. But no more info about this MCLK clock is given. What is its period? I need it to compute SD_CLK frequency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I beleive this is a typical copy &amp;amp; paste error. I would do the same to take pl180/181 TRM and copy most of its part to the UM. However you should mention at least that you have connected the MCLK to PCLK. I hope I did not overlook it in the UM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:34:18 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:34:18Z</dc:date>
    <item>
      <title>LPC1788 SD card interface MCLK clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518626#M2779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wella-tabor on Thu Aug 20 05:57:03 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is in the LPC1788 UM10470-SD card interface mentioned some MCLK clock. But no more info about this MCLK clock is given. What is its period? I need it to compute SD_CLK frequency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I beleive this is a typical copy &amp;amp; paste error. I would do the same to take pl180/181 TRM and copy most of its part to the UM. However you should mention at least that you have connected the MCLK to PCLK. I hope I did not overlook it in the UM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:34:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518626#M2779</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 SD card interface MCLK clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518627#M2780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Thu Aug 20 11:02:17 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;MCLK ist the CPU core frequency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518627#M2780</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 SD card interface MCLK clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518628#M2781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wella-tabor on Fri Aug 21 00:09:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: wmues&lt;/STRONG&gt;&lt;BR /&gt;MCLK ist the CPU core frequency.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure? What about to set CPU to 120MHz,&amp;nbsp; PCLKDIV = 4? Would it work? The property f(PCLK) &amp;gt;= 3/8 f(MCLK) is not satisfied (PL181) because 30 is not &amp;gt;= 45.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not see such limitation in the UM or datasheet for the LPC1788. And I am pretty sure that LPC1788 uses PL180 or PL181.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518628#M2781</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 SD card interface MCLK clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518629#M2782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wmues on Fri Aug 21 04:07:10 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not know where you have read about MLCK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I set the frequency of the SD card with the following function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;// set the clock
static void lpc178x_mmc_clock(long frequency)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_MCI-&amp;gt;CLOCK = (LPC_MCI-&amp;gt;CLOCK &amp;amp; ~0xFF) | (PeripheralClock / (frequency *2)) | 0x300;&amp;nbsp;&amp;nbsp; // Clock enabled and PwrSave
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So MCI clock is driven by Peripheral Clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518629#M2782</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 SD card interface MCLK clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518630#M2783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wella-tabor on Sun Aug 23 09:00:38 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: wmues&lt;/STRONG&gt;&lt;BR /&gt;I do not know where you have read about MLCK.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read it here: UM10470, Rev. 3.1, page 463. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Table 348. MCI Clock Control register (CLOCK - address 0x400C 0004) bit description&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bit Symbol&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7:0 CLKDIV&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Value Description&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bus clock period:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SD_CLK frequency = MCLK / [2 ́(ClkDiv+1)].&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;..............&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: After a data write, data cannot be written to this register for three MCLK clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;periods plus two PCLK clock periods.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:34:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-SD-card-interface-MCLK-clock/m-p/518630#M2783</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:34:21Z</dc:date>
    </item>
  </channel>
</rss>

