<?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中的主题 SC Card with SSP</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SC-Card-with-SSP/m-p/583331#M20827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cto4260 on Sat May 30 11:50:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use an SD Card with my LPC4337. The code, which is use works on another board with the same LPC, the same SD Card and the same Card holder. The only difference are the pins, which are used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First(working) configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOSI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 7, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC5));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MISO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 6, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN&amp;nbsp; | SCU_MODE_FUNC5));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Write Protect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 5, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip Detect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 4, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 3, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSEL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 8, (SCU_MODE_INACT | SCU_MODE_FUNC4));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Clocks M4_SSP0 &amp;amp; APB0_SSPO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_Clock_Enable(CLK_MX_SSP0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_Clock_Enable(CLK_APB0_SSP0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bitrate 400kHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;New(non working configuration):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip Select&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x7, 4, SCU_MODE_FUNC0 | SCU_MODE_INACT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOSI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 8, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 3, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MISO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 7, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN&amp;nbsp; | SCU_MODE_FUNC2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Write Protect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x2, 13, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip Detect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x7, 5, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One additional difference is, that we use a GPIO to select the chip instead of the SSL. The chip select drain on the card holder is always on 0V. Write Protect and Chip Select are an 0V, too. But this is not relevant I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the MOSI and MISO drains I can measure the follwing signal: ( I am trying to init the Card a second time, when init fails).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FZBBQTyI.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/ZBBQTyI.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FBiVYAqm.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/BiVYAqm.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone find a failure in my initialisation of my pins? I am using LPCOpen for the standart initialisations. Im am wondering that this doesn't work, because it works's on another board...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps anyone has an idea, whats wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marvin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:08:23 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:08:23Z</dc:date>
    <item>
      <title>SC Card with SSP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SC-Card-with-SSP/m-p/583331#M20827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cto4260 on Sat May 30 11:50:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use an SD Card with my LPC4337. The code, which is use works on another board with the same LPC, the same SD Card and the same Card holder. The only difference are the pins, which are used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First(working) configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOSI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 7, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC5));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MISO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 6, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN&amp;nbsp; | SCU_MODE_FUNC5));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Write Protect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 5, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip Detect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 4, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 3, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSEL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 8, (SCU_MODE_INACT | SCU_MODE_FUNC4));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Clocks M4_SSP0 &amp;amp; APB0_SSPO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_Clock_Enable(CLK_MX_SSP0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_Clock_Enable(CLK_APB0_SSP0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bitrate 400kHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;New(non working configuration):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip Select&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x7, 4, SCU_MODE_FUNC0 | SCU_MODE_INACT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MOSI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 8, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 3, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MISO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x3, 7, (SCU_MODE_INACT | SCU_MODE_INBUFF_EN&amp;nbsp; | SCU_MODE_FUNC2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Write Protect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x2, 13, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip Detect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SCU_PinMuxSet(0x7, 5, (SCU_MODE_INACT&amp;nbsp; | SCU_MODE_FUNC0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One additional difference is, that we use a GPIO to select the chip instead of the SSL. The chip select drain on the card holder is always on 0V. Write Protect and Chip Select are an 0V, too. But this is not relevant I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the MOSI and MISO drains I can measure the follwing signal: ( I am trying to init the Card a second time, when init fails).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FZBBQTyI.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/ZBBQTyI.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FBiVYAqm.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/BiVYAqm.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone find a failure in my initialisation of my pins? I am using LPCOpen for the standart initialisations. Im am wondering that this doesn't work, because it works's on another board...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps anyone has an idea, whats wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marvin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:08:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SC-Card-with-SSP/m-p/583331#M20827</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:08:23Z</dc:date>
    </item>
  </channel>
</rss>

