<?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のトピックRe: multi use ssp0</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522719#M5355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by leluno on Sun May 04 11:22:23 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;i want SSP for both because it is faster than SPI and its able to work with DMA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:56:39 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:56:39Z</dc:date>
    <item>
      <title>multi use ssp0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522713#M5349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by leluno on Sun May 04 10:33:51 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a spi-lcd on SSP0/1 and a sd-card on SSP0/0. Even if&amp;nbsp; disconnect the lcd from SSP0, the card does not work. properly. Where could be the problem&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;
void deselect (void)
{
cs_sd_high;/* CS = H */
xchg_spi(0xFF);/* Dummy clock (force DO hi-z for multiple slave SPI) */
//++kk
SSPxCR0 |= (1&amp;lt;&amp;lt;CPOL);
SSPxCR0 |= (1&amp;lt;&amp;lt;CPHA);

__set_PINSEL(1, 20, 0);// Attach SCK0 to I/O pad
__set_PINSEL(1, 23, 0);// Attach MISO0 to I/O pad
__set_PINSEL(1, 24, 0);// Attach MOSI0 to I/O pad
pinSEL(0,15,0b11);//0.15-4:ck
pinSEL(0,17,0b11);//0.17-4:miso
pinSEL(0,18,0b11);//0.18-4:mosi

//SSP0CPSR = 2;//oder 2?
//--kk

}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522713#M5349</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: multi use ssp0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522714#M5350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by leluno on Sun May 04 10:38:45 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;void deselect (void)
{
cs_sd_high;/* CS = H */
xchg_spi(0xFF);/* Dummy clock (force DO hi-z for multiple slave SPI) */
//++kk
SSPxCR0 |= (1&amp;lt;&amp;lt;CPOL);
SSPxCR0 |= (1&amp;lt;&amp;lt;CPHA);
/__set_PINSEL(1, 20, 0);// Attach SCK0 to I/O pad
__set_PINSEL(1, 23, 0);// Attach MISO0 to I/O pad
__set_PINSEL(1, 24, 0);// Attach MOSI0 to I/O pad
pinSEL(0,15,0b11);//0.15-4:ck
pinSEL(0,17,0b11);//0.17-4:miso
pinSEL(0,18,0b11);//0.18-4:mosi

//SSP0CPSR = 2;//oder 2?
//--kk

}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:56:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522714#M5350</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: multi use ssp0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522715#M5351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by capiman on Sun May 04 10:42:14 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;There seem to be missing code (stops abruptly). But also it is not enough, to see what your hardware looks like and what you are trying to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general: You have two SPI slaves (LCD and SD-Card) and your controller is SPI master. Each SPI slave has its own CS (chip select) line?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you control the right chip select when you start working with slave x and release it when work for slave x is done (and everything was transferred)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And then when you work with slave y select the other CS line and also release it, when work is done for slave y?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:56:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522715#M5351</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: multi use ssp0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522716#M5352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by leluno on Sun May 04 10:43:03 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;void deselect (void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cs_sd_high;/* CS = H */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xchg_spi(0xFF);/* Dummy clock (force DO hi-z for multiple slave SPI) */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//++kk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSPxCR0 |= (1&amp;lt;&amp;lt;6);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSPxCR0 |= (1&amp;lt;&amp;lt;7);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__set_PINSEL(1, 20, 0);// Attach SCK0 to I/O pad&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__set_PINSEL(1, 23, 0);// Attach MISO0 to I/O pad&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__set_PINSEL(1, 24, 0);// Attach MOSI0 to I/O pad&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pinSEL(0,15,0b11);//0.15-4:ck&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pinSEL(0,17,0b11);//0.17-4:miso&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pinSEL(0,18,0b11);//0.18-4:mosi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//SSP0CPSR = 2;//oder 2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//--kk&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem with posting this code:??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SSPxCR0 |= (1&amp;lt;&amp;lt;"CPOL);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSPxCR0 |= (1&amp;lt;&amp;lt;"CPHA);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:56:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522716#M5352</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: multi use ssp0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522717#M5353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by leluno on Sun May 04 10:48:55 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for very quick response. Its a 1768 mini -dk2-board. each slave has his own cs-line,&amp;nbsp; When i work with one slave, the other is deselected. when i change lcd from ssp0 to spi, both slaves are working correct&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:56:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522717#M5353</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: multi use ssp0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522718#M5354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by capiman on Sun May 04 11:05:20 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;when i change lcd from ssp0 to spi, both slaves are working correct&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you want more?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:56:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522718#M5354</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: multi use ssp0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522719#M5355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by leluno on Sun May 04 11:22:23 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;i want SSP for both because it is faster than SPI and its able to work with DMA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:56:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/multi-use-ssp0/m-p/522719#M5355</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:56:39Z</dc:date>
    </item>
  </channel>
</rss>

