<?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: SPI Master example for LPC54618</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821317#M32866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Followed this thread&amp;nbsp;&lt;A href="https://community.nxp.com/thread/460672"&gt;LPC54618 SPI Interrupt example code not work&lt;/A&gt;&amp;nbsp;and now the problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Oct 2018 11:41:00 GMT</pubDate>
    <dc:creator>shaheenshamshad</dc:creator>
    <dc:date>2018-10-20T11:41:00Z</dc:date>
    <item>
      <title>SPI Master example for LPC54618</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821313#M32862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using OM13094 kit with MCUXpresso IDE and SDK version 2.3.1.&lt;/P&gt;&lt;P&gt;I am trying to use SPI Master example and&amp;nbsp; J11 connector of the Kit.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SPI_j11.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73747i58FC92781D0CB588/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI_j11.PNG" alt="SPI_j11.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have used&amp;nbsp;lpcxpresso54618_driver_examples_spi_spi_interrupt example and changed the SPI-SSEL pin in pin_mux.c file as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;const uint32_t port4_pin6_config = (/* Pin is configured as FC9_CTS_SDA_SSEL0 */&lt;BR /&gt; IOCON_PIO_FUNC2 |&lt;BR /&gt; /* Selects pull-up function */&lt;BR /&gt; IOCON_PIO_MODE_PULLUP |&lt;BR /&gt; /* Input function is not inverted */&lt;BR /&gt; IOCON_PIO_INV_DI |&lt;BR /&gt; /* Enables digital function */&lt;BR /&gt; IOCON_PIO_DIGITAL_EN |&lt;BR /&gt; /* Input filter disabled */&lt;BR /&gt; IOCON_PIO_INPFILT_OFF |&lt;BR /&gt; /* Standard mode, output slew rate control is enabled */&lt;BR /&gt; IOCON_PIO_SLEW_STANDARD |&lt;BR /&gt; /* Open drain is disabled */&lt;BR /&gt; IOCON_PIO_OPENDRAIN_DI);&lt;BR /&gt; /* PORT3 PIN30 (coords: K13) is configured as FC9_CTS_SDA_SSEL0 */&lt;BR /&gt; IOCON_PinMuxSet(IOCON, 4U, 6U, port4_pin6_config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Slave Controller (not NXP MCU) is configured as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI_Params_init(&amp;amp;spiParams);&lt;BR /&gt; spiParams.frameFormat = SPI_POL1_PHA1;&lt;BR /&gt; spiParams.mode = SPI_SLAVE;&lt;BR /&gt; spiParams.transferCallbackFxn = transferCompleteFxn;&lt;BR /&gt; spiParams.transferMode = SPI_MODE_CALLBACK;&lt;BR /&gt; slaveSpi = SPI_open(Board_SPI_SLAVE, &amp;amp;spiParams);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So modified the SPI example for master controller (OM13094) as;&lt;/P&gt;&lt;P&gt;SPI_MasterGetDefaultConfig(&amp;amp;masterConfig);&lt;BR /&gt; sourceClock = EXAMPLE_SPI_MASTER_CLK_FREQ;&lt;BR /&gt; masterConfig.polarity = kSPI_ClockPolarityActiveLow;&lt;BR /&gt; masterConfig.phase = kSPI_ClockPhaseSecondEdge;&lt;BR /&gt; masterConfig.baudRate_Bps = 1000000U;&lt;BR /&gt; masterConfig.sselNum = (spi_ssel_t)EXAMPLE_SPI_SSEL;&lt;BR /&gt; masterConfig.sselPol = (spi_spol_t)EXAMPLE_SPI_SPOL;&lt;BR /&gt; SPI_MasterInit(EXAMPLE_SPI_MASTER, &amp;amp;masterConfig, sourceClock);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting response as;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="slave rcvd.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/73748i124EE75404BAC272/image-size/large?v=v2&amp;amp;px=999" role="button" title="slave rcvd.PNG" alt="slave rcvd.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;If you have other example code kindly share.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2018 14:42:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821313#M32862</guid>
      <dc:creator>shaheenshamshad</dc:creator>
      <dc:date>2018-10-03T14:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master example for LPC54618</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821314#M32863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi s s,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you also change the EXAMPLE_SPI_SSEL to 1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please note:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74332i3D3179B354B599F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;P4_6 is the SSEL1, so you need to modify code:&lt;/P&gt;&lt;P&gt;#define EXAMPLE_SPI_SSEL 0&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;#define EXAMPLE_SPI_SSEL 1&lt;/P&gt;&lt;P&gt;Then try it again.&lt;/P&gt;&lt;P&gt;Besides, I think you also can check the SPI bus wave, whether the SPI bus data have the problems.&lt;/P&gt;&lt;P&gt;If you don't modify the SSEL to PIO4_6, just use the original code P3_30, do you also have the problems?&lt;/P&gt;&lt;P&gt;The original code without modification we have tested, it has no problem.&lt;/P&gt;&lt;P&gt;So, I highly suggest you use the newest SDK, and try it again, please download it from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;https://mcuxpresso.nxp.com/en/welcome&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 03:39:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821314#M32863</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-10-09T03:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master example for LPC54618</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821315#M32864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;Yes, I have changed SSEL to 1.&lt;/P&gt;&lt;P&gt;Ok, I am trying with&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;P3_30 for which I have to change JS27 and will update you here soon.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SS&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 06:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821315#M32864</guid>
      <dc:creator>shaheenshamshad</dc:creator>
      <dc:date>2018-10-09T06:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master example for LPC54618</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821316#M32865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;I have changed JS27 and install JP6.&lt;/P&gt;&lt;P&gt;Image of the connection below:&lt;span class="lia-inline-image-display-wrapper" image-alt="IMG_20181009_130005.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74079iFBF6623E1A131D27/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_20181009_130005.jpg" alt="IMG_20181009_130005.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using example&amp;nbsp;&lt;STRONG&gt;lpcxpresso54618_driver_examples_spi_spi_interrupt&amp;nbsp;&lt;/STRONG&gt;from&amp;nbsp; SDK version 2.4.1 but data&amp;nbsp;from destination buffer is :&amp;nbsp;&lt;STRONG&gt;The 63 data is wrong, the data received is 255.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;SS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 07:50:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821316#M32865</guid>
      <dc:creator>shaheenshamshad</dc:creator>
      <dc:date>2018-10-09T07:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master example for LPC54618</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821317#M32866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Followed this thread&amp;nbsp;&lt;A href="https://community.nxp.com/thread/460672"&gt;LPC54618 SPI Interrupt example code not work&lt;/A&gt;&amp;nbsp;and now the problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2018 11:41:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821317#M32866</guid>
      <dc:creator>shaheenshamshad</dc:creator>
      <dc:date>2018-10-20T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master example for LPC54618</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821318#M32867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So sorry for my later reply, a little overloaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes, it's also relate to the board version which I have tested in the previous time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you have the further question, just let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 07:13:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Master-example-for-LPC54618/m-p/821318#M32867</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-10-23T07:13:20Z</dc:date>
    </item>
  </channel>
</rss>

