<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: SD Card Interface with MCF51JM128</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219315#M11129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Paven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if it is the same case but check the link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;message.id=7443#M7443" target="test_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;message.id=7443#M7443&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Celso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Oct 2009 00:28:47 GMT</pubDate>
    <dc:creator>celsoken</dc:creator>
    <dc:date>2009-10-04T00:28:47Z</dc:date>
    <item>
      <title>SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219314#M11128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I am working on a project which requires SD-Card Interface. I use SPI1 of the MCF51JM128 for communicating with the SD Card. I couldnt able to initialize the SD-Card, when I send the CMD0 and waiting for the response 0x01, I am always getting the response as 0xFF instead of 0x01. I changed the baud rates, clock polarites(CPHA,CPOL) all in vain. Then, I tried the SPI communication with another board(SLAVE). I can able to achieve the communication between these boards. I dont know where I am wrong, I followed the same code of "SD_Reader_V2.mcp". The only difference is I am using SPI1 insted of SPI2. I need some help to solve this problem. Kindly waiting for positive reply. Thanks, Pavendhan Yadav&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Oct 2009 18:45:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219314#M11128</guid>
      <dc:creator>Paven</dc:creator>
      <dc:date>2009-10-03T18:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219315#M11129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Paven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if it is the same case but check the link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;message.id=7443#M7443" target="test_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&amp;amp;message.id=7443#M7443&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Celso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Oct 2009 00:28:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219315#M11129</guid>
      <dc:creator>celsoken</dc:creator>
      <dc:date>2009-10-04T00:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219316#M11130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Celso,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion.&lt;/P&gt;&lt;P&gt;I had already tried the same but didn't get the correct response.&lt;/P&gt;&lt;P&gt;I also checked the whole forum regarding the SDCard interface and tried out the suggestions in the posts all are in vain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So can you please find me a possible way to get this sorted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 12:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219316#M11130</guid>
      <dc:creator>Paven</dc:creator>
      <dc:date>2009-10-05T12:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219317#M11131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Paven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you could try to run your software on SPI2 at the same hardware, maybe your software is a little bit different. Open your premises, don't assume everyhing is right. If you get stuck on it, it could take weeks to get out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you scoped the SPI lines?&lt;/P&gt;&lt;P&gt;If you want help in your code, maybe it would be better to post it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Celso&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 18:24:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219317#M11131</guid>
      <dc:creator>celsoken</dc:creator>
      <dc:date>2009-10-05T18:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219318#M11132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Celso,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attachment for my code and schematic of my hardware.&lt;/P&gt;&lt;P&gt;I tried the SPI communication with another board and it seems to be working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest me if any changes to be made on the code or on the hardware.&lt;/P&gt;&lt;P&gt;I can't try the same on SPI2 because I am using those pins for some I/O functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to scoop the lines while in debug mode by single stepping&lt;/P&gt;&lt;P&gt;I got the correct signals on SS1 pin and couldn't able to see any pulses&amp;nbsp;on the other pins (MOSI,MISO,SPCLK)but can see&amp;nbsp;some kind of level changes (looks like spikes)on it initially.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paven&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/CFCOMM/7825_1_code.c" rel="nofollow" target="_self"&gt;code.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/CFCOMM/7825_2_schematic.jpg" rel="nofollow" target="_self"&gt;schematic.jpg&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-05&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;10:27 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 18:46:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219318#M11132</guid>
      <dc:creator>Paven</dc:creator>
      <dc:date>2009-10-05T18:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219319#M11133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know your processor frequency, I'm working on 24 MHz and the SPI baud rates don't match on yours.&lt;/P&gt;&lt;P&gt;In my case I've got SPIBR=0x15 for 400KHz and 0x11 for 3 MHz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;celso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 19:30:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219319#M11133</guid>
      <dc:creator>celsoken</dc:creator>
      <dc:date>2009-10-05T19:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219320#M11134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Celso,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My processor frequency is 16MHz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spi baud rate = bus clock/(prescalar*divisor)&amp;nbsp;&amp;nbsp; // Refer page 337 on MCF51JM128RM.pdf&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 8MHz/(5*4)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 400KHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case, your processor freq is 24MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, baud rate = 12MHz/(2*64)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; 93750Hz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am confused.&lt;/P&gt;&lt;P&gt;Can you just explain your baud rate calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 20:04:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219320#M11134</guid>
      <dc:creator>Paven</dc:creator>
      <dc:date>2009-10-05T20:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219321#M11135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Paven,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The frequency I was talking about is the internal frequency.&lt;/P&gt;&lt;P&gt;I've checked and I'm working on 187,5KHz on low speed and 3 MHz on hi-speed.&lt;/P&gt;&lt;P&gt;I can't check in on scope right now, but I'll probably check this week.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Celso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 20:45:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219321#M11135</guid>
      <dc:creator>celsoken</dc:creator>
      <dc:date>2009-10-05T20:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219322#M11136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;Dear Celso,&lt;BR /&gt;&lt;BR /&gt;Thanks for your kind co-operation.&lt;BR /&gt;I am waiting for your quick reply.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Paven&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 13:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219322#M11136</guid>
      <dc:creator>Paven</dc:creator>
      <dc:date>2009-10-07T13:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219323#M11137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Celso,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have tried to&amp;nbsp;shot the sequences of the SPI data (MOSI) that is sent to the SD Card.&lt;/P&gt;&lt;P&gt;I shot that and added in the attachment for your view.&lt;/P&gt;&lt;P&gt;The first 10 0xFF 's were the delay for 80 clocks with CS = 0.&lt;/P&gt;&lt;P&gt;Then, I send 8 0xFF 's with CS = 1 and that data is not seen the MOSI pin.&lt;/P&gt;&lt;P&gt;Then I send the command, 4 zero's and CRC.&lt;/P&gt;&lt;P&gt;After I tried to read from the SD Card with retry count 25.&lt;/P&gt;&lt;P&gt;But, I am always getting 0xFF &amp;nbsp;as the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this may give some clue to you about the issue.&lt;/P&gt;&lt;P&gt;Waiting for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paven&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/CFCOMM/7867_CHECK.JPG" rel="nofollow" target="_self"&gt;CHECK.JPG&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-07&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;08:59 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 14:35:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219323#M11137</guid>
      <dc:creator>Paven</dc:creator>
      <dc:date>2009-10-07T14:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: SD Card Interface with MCF51JM128</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219324#M11138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Have you tried pull-ups? Before configuring pins from input (default) to output, have you turned them to high state? Specifically for the chip select pin. If it's low, it will be detected as a SPI transaction. Are the SPI pins only connected to your SD card connector? Or some of them are shared?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2009 04:05:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/SD-Card-Interface-with-MCF51JM128/m-p/219324#M11138</guid>
      <dc:creator>PaoloRenzo</dc:creator>
      <dc:date>2009-10-09T04:05:07Z</dc:date>
    </item>
  </channel>
</rss>

