<?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: Basic SPI Communication Workflow in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Basic-SPI-Communication-Workflow/m-p/630421#M24789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Christian Ostermeier,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please test the lpcopen code for Embeddedartists eval LPC1788 board directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can download the lpcopen code from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/hardware-development-tools/lpcxpresso-boards/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="http://www.nxp.com/products/software-and-tools/hardware-development-tools/lpcxpresso-boards/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;LPCOpen Software for LPC17XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After it works on your board, you can refer to that code to modify it.&lt;/P&gt;&lt;P&gt;I find you didn't initialize the SPI pin at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&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>Fri, 20 Jan 2017 07:43:45 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-01-20T07:43:45Z</dc:date>
    <item>
      <title>Basic SPI Communication Workflow</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Basic-SPI-Communication-Workflow/m-p/630420#M24788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using a LPC1788 on the EmbeddedArtists Eval Board and would like to communicate other devices via SPI.&lt;/P&gt;&lt;P&gt;After including the lpc177x_8x_ssp library i am using the following code to initialise :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SSP_CFG_Type SSP_ConfigStruct;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SSP_ConfigStruct.CPHA = SSP_CPHA_FIRST;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SSP_ConfigStruct.CPOL = SSP_CPOL_HI;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SSP_ConfigStruct.ClockRate = 1000000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SSP_ConfigStruct.Mode = SSP_MASTER_MODE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SSP_ConfigStruct.FrameFormat = SSP_FRAME_SPI;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SSP_ConfigStruct.Databit = SSP_DATABIT_8;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SSP_Init(LPC_SSP0,&amp;amp;SSP_ConfigStruct);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SSP_Cmd(LPC_SSP0,ENABLE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the main loop i try to do :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;SSP_SendData(LPC_SSP0,0x05);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Using&amp;nbsp; a scope i can not see any pulses on the clock line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;What am i missing here ? Can someone point out the basic syntax to read and write a register from/to a SPI-device for me ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:46:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Basic-SPI-Communication-Workflow/m-p/630420#M24788</guid>
      <dc:creator>easter91</dc:creator>
      <dc:date>2017-01-19T14:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Basic SPI Communication Workflow</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Basic-SPI-Communication-Workflow/m-p/630421#M24789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Christian Ostermeier,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please test the lpcopen code for Embeddedartists eval LPC1788 board directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can download the lpcopen code from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/hardware-development-tools/lpcxpresso-boards/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="http://www.nxp.com/products/software-and-tools/hardware-development-tools/lpcxpresso-boards/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;LPCOpen Software for LPC17XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After it works on your board, you can refer to that code to modify it.&lt;/P&gt;&lt;P&gt;I find you didn't initialize the SPI pin at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&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>Fri, 20 Jan 2017 07:43:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Basic-SPI-Communication-Workflow/m-p/630421#M24789</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-20T07:43:45Z</dc:date>
    </item>
  </channel>
</rss>

