<?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: How to get SPI working with the LPC4330 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-SPI-working-with-the-LPC4330/m-p/596470#M31799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JohnR on Mon Apr 08 05:52:32 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure that the default parameters set are appropriate for your interface?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your code the default structure is used thus in lpc43xx_sssp.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f] &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]void[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [B]SSP_ConfigStructInit[/B]([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]SSP_CFG_Type[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] *SSP_InitStruct)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CPHA[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_CPHA_FIRST;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CPOL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_CPOL_HI;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]ClockRate[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = 100000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Databit[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_DATABIT_8;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Mode[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_MASTER_MODE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]FrameFormat[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_FRAME_SPI;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my code I had to alter [COLOR=#0000c0]CPHA[/COLOR][SIZE=2] to match the SPI device used&amp;nbsp; thus[/SIZE]&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]void[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [B]SSP_ConfigInit[/B]([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]SSP_CFG_Type[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] *SSP_InitStruct)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CPHA[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_CPHA_SECOND; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//SSP_CPHA_FIRST[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CPOL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_CPOL_HI;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]ClockRate[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = 100000; [/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Databit[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_DATABIT_8;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Mode[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_MASTER_MODE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]FrameFormat[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_FRAME_SPI;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JohnR.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:58:03 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:58:03Z</dc:date>
    <item>
      <title>How to get SPI working with the LPC4330</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-SPI-working-with-the-LPC4330/m-p/596469#M31798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kye on Sun Apr 07 19:00:44 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to get the LPC4330 to output SPI data, but, I'm encountering problems getting the basic demo code working. I've download the following library &lt;/SPAN&gt;&lt;A href="http://"&gt;http://lpcware.com/content/nxpfile/lpc4350apdlzip&lt;/A&gt;&lt;SPAN&gt; for controlling the SSP1 peripheral and I'm trying to get the SSP Master example code working found in the Examples/SSP sub directory in the peripheral library. I'm using the Keil version of the project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only changes I've made are to disable the debug output, use SSP1 instead of SSP0, and change the pin muxes for my particular setup. I am using a custom board to develop with, but, I've got the clock setup just like the LPC development board for the 4330.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've attached the example code I'm using, there really isn't much to it. If anyone can point me in the right direction for what I am doing wrong it will be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also attached is the output wave form I am getting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:58:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-SPI-working-with-the-LPC4330/m-p/596469#M31798</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SPI working with the LPC4330</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-SPI-working-with-the-LPC4330/m-p/596470#M31799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JohnR on Mon Apr 08 05:52:32 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure that the default parameters set are appropriate for your interface?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your code the default structure is used thus in lpc43xx_sssp.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f] &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]void[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [B]SSP_ConfigStructInit[/B]([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]SSP_CFG_Type[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] *SSP_InitStruct)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CPHA[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_CPHA_FIRST;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CPOL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_CPOL_HI;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]ClockRate[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = 100000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Databit[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_DATABIT_8;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Mode[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_MASTER_MODE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]FrameFormat[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_FRAME_SPI;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my code I had to alter [COLOR=#0000c0]CPHA[/COLOR][SIZE=2] to match the SPI device used&amp;nbsp; thus[/SIZE]&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]void[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [B]SSP_ConfigInit[/B]([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]SSP_CFG_Type[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] *SSP_InitStruct)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CPHA[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_CPHA_SECOND; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//SSP_CPHA_FIRST[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]CPOL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_CPOL_HI;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]ClockRate[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = 100000; [/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Databit[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_DATABIT_8;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]Mode[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_MASTER_MODE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SSP_InitStruct-&amp;gt;[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]FrameFormat[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = SSP_FRAME_SPI;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JohnR.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:58:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-SPI-working-with-the-LPC4330/m-p/596470#M31799</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SPI working with the LPC4330</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-SPI-working-with-the-LPC4330/m-p/596471#M31800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kye on Mon Apr 08 13:49:03 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I haven't even gotten that far. I can't even get it to output normal looking SPI data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:58:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/How-to-get-SPI-working-with-the-LPC4330/m-p/596471#M31800</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:58:04Z</dc:date>
    </item>
  </channel>
</rss>

