<?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のトピックLPC11C14 + LPCOpen_v2_00a + SPI</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C14-LPCOpen-v2-00a-SPI/m-p/585746#M21310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by motz on Tue Oct 07 07:29:28 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to communicate with the NXP FlexRay star coupler (TJA1085) via SPI. I use the ssp example from the LPCopen_v2_00a.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I disabled the LOOPBACK_TEST, changed SSP_DATA_BITS to 16 and of course I changed the pins in Init_SSP_PinMux().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although in LOOPBACK_TEST mode I always receive the bytes I send, in normal mode I do not receive anything. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Due to the star coupler I changed the ssp_format.clockMode to SSP_CLOCK_MODE1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nooby question but what do I have to change in the example code to send and receive data? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the LPC11C14 with an external oscillator (25MHz). Therefore I changed in board.c OscRateIn = 25000000 and in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SystemInit() the parameter of Chip_Clock_SetupSystemPLL(1,1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My SSP Clock Paramters are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCR = 179&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CPSDVSR = 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:25:43 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:25:43Z</dc:date>
    <item>
      <title>LPC11C14 + LPCOpen_v2_00a + SPI</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C14-LPCOpen-v2-00a-SPI/m-p/585746#M21310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by motz on Tue Oct 07 07:29:28 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to communicate with the NXP FlexRay star coupler (TJA1085) via SPI. I use the ssp example from the LPCopen_v2_00a.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I disabled the LOOPBACK_TEST, changed SSP_DATA_BITS to 16 and of course I changed the pins in Init_SSP_PinMux().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although in LOOPBACK_TEST mode I always receive the bytes I send, in normal mode I do not receive anything. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Due to the star coupler I changed the ssp_format.clockMode to SSP_CLOCK_MODE1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nooby question but what do I have to change in the example code to send and receive data? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the LPC11C14 with an external oscillator (25MHz). Therefore I changed in board.c OscRateIn = 25000000 and in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_SystemInit() the parameter of Chip_Clock_SetupSystemPLL(1,1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My SSP Clock Paramters are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SCR = 179&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CPSDVSR = 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C14-LPCOpen-v2-00a-SPI/m-p/585746#M21310</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:25:43Z</dc:date>
    </item>
  </channel>
</rss>

