<?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>topic Re: SSP Slave mode not working in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596202#M22975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dlo on Mon Jan 11 08:59:09 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Still trying every possible combination in the ssp.h, but to&amp;nbsp; no avail. When I use the ulinkme to debug, the program always hangs inside the ssp.c file: while ( !(LPC_SSP0-&amp;gt;SR &amp;amp; SSPSR_RNE) ); It seems it never receives anything in the buffer to raise the flag. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:24:15 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:24:15Z</dc:date>
    <item>
      <title>SSP Slave mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596201#M22974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dlo on Thu Jan 07 14:36:35 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the code example in lpc11xx.keil-examples-CMSIS-update_2 to implement SPI in slave mode. I configured the ssp.h and ssp.c found in the example folder, but can't seem to get data into the receive buffer. I am using a TotalPhase Aadvark USB to SPI controller to send data to the LPC1111. I've tried changing clock speed and set it as Master and do get a clock output on SCK, but do not see data come out. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help.&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337966"&gt;ssp_0.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337966"&gt;ssp.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337966"&gt;main_19.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596201#M22974</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: SSP Slave mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596202#M22975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dlo on Mon Jan 11 08:59:09 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Still trying every possible combination in the ssp.h, but to&amp;nbsp; no avail. When I use the ulinkme to debug, the program always hangs inside the ssp.c file: while ( !(LPC_SSP0-&amp;gt;SR &amp;amp; SSPSR_RNE) ); It seems it never receives anything in the buffer to raise the flag. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596202#M22975</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: SSP Slave mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596203#M22976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dlo on Mon Jan 11 09:59:26 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I narrowed down the cause. It seems the timer0 initialization is interfering with the SPI. I'm going to look at what register it could be overriding the SPI settings.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596203#M22976</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: SSP Slave mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596204#M22977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dlo on Mon Jan 11 13:13:28 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Working in Slave mode, the master sends 16 bytes of data to the slave, however, only the first byte makes it into the slave buffer. If I send 16 bytes 16 times, then the buffer fills up. However, all with the first byte sent (data string sent is: 0x00 0x11 0x22 0x33 0x33 ... 0xFF). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It does not seem the SPI Data Register is receiving all the bytes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596204#M22977</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: SSP Slave mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596205#M22978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mysepp on Mon Jan 11 13:17:58 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Could it be that device is deselected (CS goes up) after first byte? Have you checked with an oscilloscope or logic analyzer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596205#M22978</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: SSP Slave mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596206#M22979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dlo on Mon Jan 11 13:25:37 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I'm checking with the oscilloscope. I've tried changing CPHA 1 and CPOL 1, but same results. I'm looking at the Master and it is keeping the SSEL pin low for the entire 16 bytes transmission.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596206#M22979</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: SSP Slave mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596207#M22980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dlo on Mon Jan 11 13:40:16 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Oops, accidentally changed the CPOL and CPHA to 1 1 in SPI1, not 0. Made these changes to SPI0 and it is receiving all 16 bytes now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP-Slave-mode-not-working/m-p/596207#M22980</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:18Z</dc:date>
    </item>
  </channel>
</rss>

