<?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: SPI questions 1769 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566381#M18422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu May 30 12:59:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: qwerty&lt;/STRONG&gt;&lt;BR /&gt;Here's the zipped project, I am using CooCox IDE to develop it.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, can't read that. This is a LPCXpresso forum, perhaps it's useful to ask in a CooCox forum?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.coocox.org/forum/index.php?language=en&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:20:26 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:20:26Z</dc:date>
    <item>
      <title>SPI questions 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566376#M18417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by qwerty on Thu May 30 01:28:04 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, would like to ask about using SPI with the LCP1769. Right now I am trying to set it up, and using a scope I am only getting random signals from the SCLK. Hope I can get some advice here. My code:&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;#include &amp;lt;stdio.h&amp;gt;
#include "LPC17xx.h"
#include "lpc_types.h"
#include "lpc17xx_systick.h"
#include "lpc17xx_clkpwr.h"
#include "lpc17xx.h"
#include "lpc_types.h"
#include "semihosting.h"
#include "lpc17xx_pinsel.h"
#include "lpc17xx_timer.h"
#include "lpc17xx_spi.h"

static void init_spi(void)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; PINSEL_CFG_Type PinCfg;
&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI_CFG_Type SPICfg;

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize SPI1 pin connect */
&amp;nbsp;&amp;nbsp;&amp;nbsp; PinCfg.Funcnum = 2;
&amp;nbsp;&amp;nbsp;&amp;nbsp; PinCfg.Pinnum = 6;
&amp;nbsp;&amp;nbsp;&amp;nbsp; PinCfg.Portnum = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; PINSEL_ConfigPin(&amp;amp;PinCfg);
&amp;nbsp;&amp;nbsp;&amp;nbsp; PinCfg.Pinnum = 7;
&amp;nbsp;&amp;nbsp;&amp;nbsp; PINSEL_ConfigPin(&amp;amp;PinCfg);
&amp;nbsp;&amp;nbsp;&amp;nbsp; PinCfg.Pinnum = 8;
&amp;nbsp;&amp;nbsp;&amp;nbsp; PINSEL_ConfigPin(&amp;amp;PinCfg);
&amp;nbsp;&amp;nbsp;&amp;nbsp; PinCfg.Pinnum = 9;
&amp;nbsp;&amp;nbsp;&amp;nbsp; PINSEL_ConfigPin(&amp;amp;PinCfg);

&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI_Init(LPC_SPI, &amp;amp;SPICfg);
}

int main(void)
{

&amp;nbsp;&amp;nbsp;&amp;nbsp; init_spi();
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI_ReceiveData(LPC_SPI);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566376#M18417</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: SPI questions 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566377#M18418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu May 30 02:29:38 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: qwerty&lt;/STRONG&gt;&lt;BR /&gt;Hope I can get some advice here...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;... post the project and describe your hardware (LPCXpresso1769? connected to ?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information is useful :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566377#M18418</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: SPI questions 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566378#M18419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by qwerty on Thu May 30 12:10:08 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently that's all there is to my code, trying to interface to SPI. But I am very new to the concept.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use the accelerometer MPU6000 which can use either I2C or SPI.&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>Thu, 16 Jun 2016 02:20:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566378#M18419</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: SPI questions 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566379#M18420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu May 30 12:24:13 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you export and post your project, someone else can test it with all the included libraries. Otherwise it's a big guessing game which can take a long time :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to get fast help, it's useful to post a complete project and describe your hardware. I don't know which libraries you are using, which project settings are used and which hardware we are talking about...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:20:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566379#M18420</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: SPI questions 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566380#M18421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by qwerty on Thu May 30 12:47:58 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the zipped project, I am using CooCox IDE to develop it. LPC1769 as master to MPU6000 slave.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any advice...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:20:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566380#M18421</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: SPI questions 1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566381#M18422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu May 30 12:59:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: qwerty&lt;/STRONG&gt;&lt;BR /&gt;Here's the zipped project, I am using CooCox IDE to develop it.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, can't read that. This is a LPCXpresso forum, perhaps it's useful to ask in a CooCox forum?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.coocox.org/forum/index.php?language=en&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:20:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPI-questions-1769/m-p/566381#M18422</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:20:26Z</dc:date>
    </item>
  </channel>
</rss>

