<?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>LPCXpresso IDEのトピックSPI on LPC11U14</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580498#M24563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sophio on Thu Apr 12 06:34:56 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have ported the SPI example of LPC11C24 to my board (LPC11U14).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And I also have followed the user manual to change the settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I connect the MISO and MOSI to LOOPBACK test.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][LEFT][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( i = 0; i &amp;lt; SSP_BUFSIZE; i++ )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;src_addr&lt;/SPAN&gt;&lt;I&gt; = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])i;&amp;nbsp;&amp;nbsp; // source[/SIZE]&lt;BR /&gt;[SIZE=2]dest_addr&lt;I&gt; = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //destination[/LEFT]&lt;BR /&gt;}&lt;BR /&gt;[/SIZE] &lt;BR /&gt;However the result is:&lt;BR /&gt;[SIZE=2][LEFT]the send data [0]is: 160&lt;BR /&gt;the receive data [0] is: 0&lt;BR /&gt;the send data [1]is: 15&lt;BR /&gt;the receive data [1] is: 1&lt;BR /&gt;the send data [2]is: 0&lt;BR /&gt;the receive data [2] is: 2&lt;BR /&gt;the send data [3]is: 0&lt;BR /&gt;the receive data [3] is: 3&lt;BR /&gt;the send data [4]is: 52&lt;BR /&gt;the receive data [4] is: 4&lt;BR /&gt;the send data [5]is: 2&lt;BR /&gt;the receive data [5] is: 5&lt;BR /&gt;the send data [6]is: 0&lt;BR /&gt;the receive data [6] is: 6&lt;BR /&gt;the send data [7]is: 16&lt;BR /&gt;the receive data [7] is: 7&lt;BR /&gt;the send data [8]is: 8&lt;BR /&gt;the receive data [8] is: 8&lt;BR /&gt;the send data [9]is: 9&lt;BR /&gt;the receive data [9] is: 9&lt;BR /&gt;the send data [10]is: 10&lt;BR /&gt;the receive data [10] is: 10&lt;BR /&gt;the send data [11]is: 11&lt;BR /&gt;the receive data [11] is: 11&lt;BR /&gt;the send data [12]is: 12&lt;BR /&gt;the receive data [12] is: 12&lt;BR /&gt;the send data [13]is: 13&lt;BR /&gt;the receive data [13] is: 13&lt;BR /&gt;the send data [14]is: 14&lt;BR /&gt;the receive data [14] is: 14&lt;BR /&gt;the send data [15]is: 15[/LEFT]&lt;BR /&gt;the receive data [15] is: 15&lt;BR /&gt; &lt;BR /&gt;It seems like that the receive data is the same as what i want to send. But the first byte of the send data is changed. I do not know why, could anyone help me?thanks in advance.&lt;BR /&gt;[/SIZE]&lt;/I&gt;&lt;/I&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:12:31 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:12:31Z</dc:date>
    <item>
      <title>SPI on LPC11U14</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580498#M24563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sophio on Thu Apr 12 06:34:56 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have ported the SPI example of LPC11C24 to my board (LPC11U14).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And I also have followed the user manual to change the settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I connect the MISO and MOSI to LOOPBACK test.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][LEFT][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( i = 0; i &amp;lt; SSP_BUFSIZE; i++ )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;src_addr&lt;/SPAN&gt;&lt;I&gt; = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])i;&amp;nbsp;&amp;nbsp; // source[/SIZE]&lt;BR /&gt;[SIZE=2]dest_addr&lt;I&gt; = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //destination[/LEFT]&lt;BR /&gt;}&lt;BR /&gt;[/SIZE] &lt;BR /&gt;However the result is:&lt;BR /&gt;[SIZE=2][LEFT]the send data [0]is: 160&lt;BR /&gt;the receive data [0] is: 0&lt;BR /&gt;the send data [1]is: 15&lt;BR /&gt;the receive data [1] is: 1&lt;BR /&gt;the send data [2]is: 0&lt;BR /&gt;the receive data [2] is: 2&lt;BR /&gt;the send data [3]is: 0&lt;BR /&gt;the receive data [3] is: 3&lt;BR /&gt;the send data [4]is: 52&lt;BR /&gt;the receive data [4] is: 4&lt;BR /&gt;the send data [5]is: 2&lt;BR /&gt;the receive data [5] is: 5&lt;BR /&gt;the send data [6]is: 0&lt;BR /&gt;the receive data [6] is: 6&lt;BR /&gt;the send data [7]is: 16&lt;BR /&gt;the receive data [7] is: 7&lt;BR /&gt;the send data [8]is: 8&lt;BR /&gt;the receive data [8] is: 8&lt;BR /&gt;the send data [9]is: 9&lt;BR /&gt;the receive data [9] is: 9&lt;BR /&gt;the send data [10]is: 10&lt;BR /&gt;the receive data [10] is: 10&lt;BR /&gt;the send data [11]is: 11&lt;BR /&gt;the receive data [11] is: 11&lt;BR /&gt;the send data [12]is: 12&lt;BR /&gt;the receive data [12] is: 12&lt;BR /&gt;the send data [13]is: 13&lt;BR /&gt;the receive data [13] is: 13&lt;BR /&gt;the send data [14]is: 14&lt;BR /&gt;the receive data [14] is: 14&lt;BR /&gt;the send data [15]is: 15[/LEFT]&lt;BR /&gt;the receive data [15] is: 15&lt;BR /&gt; &lt;BR /&gt;It seems like that the receive data is the same as what i want to send. But the first byte of the send data is changed. I do not know why, could anyone help me?thanks in advance.&lt;BR /&gt;[/SIZE]&lt;/I&gt;&lt;/I&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:12:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580498#M24563</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: SPI on LPC11U14</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580499#M24564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Apr 12 07:29:25 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: sophio&lt;/STRONG&gt;&lt;BR /&gt;[SIZE=2]It seems like that the receive data is the same as what i want to send. But the first byte of the send data is changed. I do not know why, could anyone help me?thanks in advance.&lt;BR /&gt;[/SIZE]&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't know what you are doing in detail, but reading first 8 bytes wrong indicated that that's a FIFO problem :rolleyes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;11.3 Features&lt;BR /&gt;• Compatible with Motorola SPI, 4-wire TI SSI, and National Semiconductor Microwire&lt;BR /&gt;buses.&lt;BR /&gt;• Synchronous Serial Communication.&lt;BR /&gt;• Supports master or slave operation.&lt;BR /&gt;• [COLOR=Red]Eight-frame FIFOs for both transmit and receive.[/COLOR]&lt;BR /&gt;• 4-bit to 16-bit frame.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:12:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580499#M24564</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: SPI on LPC11U14</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580500#M24565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gbm on Thu Apr 12 07:44:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not possible to guess what might be the nature of your problem without seeing your bad code used to send, receive and display the SPI data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:12:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580500#M24565</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: SPI on LPC11U14</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580501#M24566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sophio on Thu Apr 12 23:54:46 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;sry, i forgot to put my code, here is my code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* SPI read and write buffer size */[/COLOR][/SIZE][/COLOR][/SIZE][/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#define [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]SSP_BUFSIZE 16[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#define[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] FIFOSIZE 8[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#define [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]SSP_NUM 0[/SIZE] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]src_addr[SSP_BUFSIZE];[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] dest_addr[SSP_BUFSIZE];[/SIZE] [/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]void[/COLOR][/SIZE][/COLOR][/SIZE][/B] [SIZE=2][B]SSP_LoopbackTest[/B]( [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] portNum )[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2]{[/SIZE] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] i;[/SIZE] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]if[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ( portNum == 0 )[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2]{[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#if[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]!USE_CS[/SIZE] [/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Set SSEL pin to output low. */[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2]GPIOSetValue( PORT0, 2, 0 );[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#endif[/COLOR][/SIZE][/COLOR][/SIZE][/B][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2]i = 0;[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ( i &amp;lt;= SSP_BUFSIZE )[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2]{[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* to check the RXIM and TXIM interrupt, I send a block data at one time[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]based on the FIFOSIZE(8). */[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]SSP_Send( portNum, ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] *)&amp;amp;src_addr&lt;/SPAN&gt;&lt;I&gt;, FIFOSIZE );[/SIZE] [/LEFT]&lt;BR /&gt;[/LEFT]&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Wait until the Busy bit is cleared. */[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ( LPC_SSP0-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]SR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] &amp;amp; SSPSR_BSY );[/SIZE] [/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* If RX interrupt is enabled, below receive routine can be [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]also handled inside the ISR. */[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]SSP_Receive( portNum, ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] *)&amp;amp;dest_addr&lt;I&gt;, FIFOSIZE );[/SIZE] [/LEFT]&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Wait until the Busy bit is cleared. */[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ( LPC_SSP0-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]SR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] &amp;amp; SSPSR_BSY );[/SIZE] [/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]i += FIFOSIZE;[/SIZE] [/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]}[/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#if[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]!USE_CS[/SIZE] &lt;BR /&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Set SSEL pin to output high. */[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]GPIOSetValue( PORT0, 2, 1 );[/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#endif[/COLOR][/SIZE][/COLOR][/SIZE][/B][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]}[/SIZE]&lt;BR /&gt;&lt;BR /&gt;[SIZE=2]....[/SIZE] [/LEFT]&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]int [/COLOR][/SIZE][/COLOR][/SIZE][/B][/SIZE][SIZE=2][SIZE=2][B]main[/B] ([/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]void[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2])[/SIZE][/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2][SIZE=2]{[/SIZE][/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] i;[/SIZE] [/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]SystemInit();[/SIZE] [/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]SSP_IOConfig( SSP_NUM ); [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* initialize SSP port*/[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]SSP_Init( SSP_NUM ); [/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Initialize GPIO (sets up clock) */[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f][/LEFT]&lt;BR /&gt;[/COLOR][/SIZE][SIZE=2]GPIOInit();[/SIZE]&lt;BR /&gt;&lt;BR /&gt;[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]for[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ( i = 0; i &amp;lt; SSP_BUFSIZE; i++ )[/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]{[/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]src_addr&lt;I&gt; = ([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2])i;[/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]dest_addr&lt;I&gt; = 0;[/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2]}[/SIZE][/LEFT]&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;[SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][B]while[/B][/COLOR][/SIZE]&lt;BR /&gt;[LEFT][/COLOR][/SIZE][SIZE=2][COLOR=#000000](1) [/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]// loop forever added[/COLOR][/SIZE][/COLOR][/SIZE]&lt;BR /&gt;&lt;BR /&gt;[SIZE=2][B]{[/B][/SIZE]&lt;BR /&gt;[LEFT][SIZE=2][B]SSP_LoopbackTest( SSP_NUM );[/B][/SIZE][/LEFT]&lt;BR /&gt;[/LEFT]&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;[LEFT][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][B]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][B] ( i = 0; i &amp;lt; SSP_BUFSIZE; i++ )[/B][/SIZE][/LEFT]&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;[LEFT][SIZE=2][B]{[/B][/SIZE]&lt;BR /&gt;[LEFT][B][SIZE=2][COLOR=#642880][SIZE=2][COLOR=#642880]printf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"the send data [%d]is: %d\n"[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][B], i,src_addr&lt;I&gt;);[/B][/SIZE]&lt;BR /&gt;[B][SIZE=2][COLOR=#642880][SIZE=2][COLOR=#642880]printf[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"the receive data [%d] is: %d\n"[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][B],i, dest_addr&lt;I&gt;);[/B][/SIZE]&lt;BR /&gt;[SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][B]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][B] ( src_addr&lt;I&gt; != dest_addr&lt;I&gt; )[/B][/SIZE]&lt;BR /&gt;[SIZE=2][B]{[/B][/SIZE]&lt;BR /&gt;[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]( 1 ); [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Verification failed */[/COLOR][/SIZE][/COLOR][/SIZE][/B]&lt;BR /&gt;[SIZE=2][B]}[/B][/SIZE]&lt;BR /&gt;[SIZE=2][B]} [/B][/SIZE]&lt;BR /&gt;[SIZE=2][B]}[/B][/SIZE]&lt;BR /&gt;[SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][B]return[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][B] 0;[/B][/SIZE][/LEFT]&lt;BR /&gt;[/LEFT]&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;[LEFT][SIZE=2][B]}[/B][/SIZE][/LEFT]&lt;BR /&gt;[/COLOR][/SIZE][/COLOR][/SIZE][/SIZE]&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:12:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580501#M24566</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: SPI on LPC11U14</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580502#M24567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sophio on Fri Apr 13 00:22:57 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f] [/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f][LEFT]/*****************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;** Function name: SSP_Send&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;** Descriptions: Send a block of data to the SSP port, the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;** first parameter is the buffer pointer, the 2nd &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;** parameter is the block length.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;** parameters: port #, buffer pointer, and the block length&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;** Returned value: None&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;** [/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*****************************************************************************/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]void[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [B]SSP_Send[/B]( [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] portNum, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] *buf, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Length )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Dummy = Dummy;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( i = 0; i &amp;lt; Length; i++ )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( portNum == 0 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Move on only if NOT busy and TX FIFO not full. */[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( (LPC_SSP0-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]SR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] &amp;amp; (SSPSR_TNF|SSPSR_BSY)) != SSPSR_TNF );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SSP0-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]DR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = *buf;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;buf++;[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]#if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] !LOOPBACK_MODE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( (LPC_SSP0-&amp;gt;SR &amp;amp; (SSPSR_BSY|SSPSR_RNE)) != SSPSR_RNE );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Whenever a byte is written, MISO FIFO counter increments, Clear FIFO &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on MISO. Otherwise, when SSP0Receive() is called, previous data byte&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is left in the FIFO. */[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]Dummy = LPC_SSP0-&amp;gt;DR;[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]#else[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT][/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Wait until the Busy bit is cleared. */[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( LPC_SSP0-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]SR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] &amp;amp; SSPSR_BSY );[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]#endif[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]else[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; .....[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][LEFT]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]return[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f][LEFT]/*****************************************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;** Function name: SSP_Receive&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;** &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*****************************************************************************/[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]void[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [B]SSP_Receive[/B]( [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] portNum, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint8_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] *buf, [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Length )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]for[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( i = 0; i &amp;lt; Length; i++ )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][LEFT][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( portNum == 0 )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]#if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] !LOOPBACK_MODE[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]#if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] SSP_SLAVE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( !(LPC_SSP0-&amp;gt;SR &amp;amp; SSPSR_RNE) );[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]#else[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]LPC_SSP0-&amp;gt;DR = 0xFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Wait until the Busy bit is cleared */[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( (LPC_SSP0-&amp;gt;SR &amp;amp; (SSPSR_BSY|SSPSR_RNE)) != SSPSR_RNE );[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#else[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ( !(LPC_SSP0-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]SR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] &amp;amp; SSPSR_RNE) );[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]#endif[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]*buf = LPC_SSP0-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]DR[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;buf++;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]else[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ....[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][SIZE=2][LEFT]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]return[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][LEFT]#endif[/B][/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:12:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-on-LPC11U14/m-p/580502#M24567</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:12:34Z</dc:date>
    </item>
  </channel>
</rss>

