<?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 How to add a 2nd hardware SPI port into project ? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-a-2nd-hardware-SPI-port-into-project/m-p/887989#M35587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;After the necessity of requiring jumper JP6 to use PORT J4 was pointed out to me I am successfully able to read various stored parameters from the Microchip 25AA02UID EEPROM. Thanks !!&lt;/P&gt;&lt;P&gt;Currently, I am adding sections of that project to my SD card project. While defined in a different manner/location to the EEPROM project, on doing a 'search', both projects have defined 'EXAMPLE_SPI_MASTER' and its associated parameters, which creates several conflicts. The SD Card is using Flexcomm 5, while the EEPROM is using Flexcomm3. I do not want to attach both peripherals to i.e., Flexcomm 5.&lt;/P&gt;&lt;P&gt;To enable Flexcomm3, I modified all of the 'EXAMPLE_SPI_MASTER' related parameters in the combined project to 'EXAMPLE2........" Next I went into 'pin_mux.c' and *uncommented* all of the pin assignments for the Flexcomm 3 SPI signals, CS (SSEL), MOSI, MISO, and SCK. Problem is, seems only half of the signals are working: SCK and MOSI are working, but CS is not. I won't know whether MISO is working till CS works.&lt;/P&gt;&lt;P&gt;Anyone have an idea as to what I'm missing to get CS working.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;P.S. I have attached 2 images: the first is for the correctly working SPI/EEPROM project, the second is for the partially working SPI 3 port.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2019 20:07:45 GMT</pubDate>
    <dc:creator>jameswhitney</dc:creator>
    <dc:date>2019-04-08T20:07:45Z</dc:date>
    <item>
      <title>How to add a 2nd hardware SPI port into project ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-a-2nd-hardware-SPI-port-into-project/m-p/887989#M35587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;After the necessity of requiring jumper JP6 to use PORT J4 was pointed out to me I am successfully able to read various stored parameters from the Microchip 25AA02UID EEPROM. Thanks !!&lt;/P&gt;&lt;P&gt;Currently, I am adding sections of that project to my SD card project. While defined in a different manner/location to the EEPROM project, on doing a 'search', both projects have defined 'EXAMPLE_SPI_MASTER' and its associated parameters, which creates several conflicts. The SD Card is using Flexcomm 5, while the EEPROM is using Flexcomm3. I do not want to attach both peripherals to i.e., Flexcomm 5.&lt;/P&gt;&lt;P&gt;To enable Flexcomm3, I modified all of the 'EXAMPLE_SPI_MASTER' related parameters in the combined project to 'EXAMPLE2........" Next I went into 'pin_mux.c' and *uncommented* all of the pin assignments for the Flexcomm 3 SPI signals, CS (SSEL), MOSI, MISO, and SCK. Problem is, seems only half of the signals are working: SCK and MOSI are working, but CS is not. I won't know whether MISO is working till CS works.&lt;/P&gt;&lt;P&gt;Anyone have an idea as to what I'm missing to get CS working.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;P.S. I have attached 2 images: the first is for the correctly working SPI/EEPROM project, the second is for the partially working SPI 3 port.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 20:07:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-a-2nd-hardware-SPI-port-into-project/m-p/887989#M35587</guid>
      <dc:creator>jameswhitney</dc:creator>
      <dc:date>2019-04-08T20:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a 2nd hardware SPI port into project ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-a-2nd-hardware-SPI-port-into-project/m-p/887990#M35588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; That's very good to hear the JP6 make your EEPROM works OK, thank you for your effort all the time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; About the CS pin, if you test one by one, it works OK or not?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Or just when you combine Two SPI module together have the problems?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; About EXAMPLE_SPI_MASTER, you can just modify the name for two different SPI interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; From my own opinion, about the CS pin, normally, we will use the GPIO function to control the SPI_cs, then it will be more easily to control.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 09:33:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-a-2nd-hardware-SPI-port-into-project/m-p/887990#M35588</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-09T09:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a 2nd hardware SPI port into project ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-a-2nd-hardware-SPI-port-into-project/m-p/887991#M35589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, Kerry,&lt;/P&gt;&lt;P&gt;Thank you for your feedback on my question on adding a 2nd HW SPI port.&lt;/P&gt;&lt;P&gt;I agree in general that it would probably be easier to add -&amp;nbsp; and manually toggle - a 'CS' pin from another port. Before I went in that direction I decided to investigate a little more the contents of my project. When I merged the projects, in the *first project*&amp;nbsp; 'EXAMPLE_SPI_MASTER' and its associated signal components and SPI signals were assigned to *Flexcomm5*. In the *second project* the SPI signals were assigned to *Flexcomm3*. I am using the Flexcomm5 project as the base/starting project. When I went into 'pin_mux.c' of the Flexcomm 5 project, Port 0, Pin 4 (coords: 38) was assigned as 'CLK'/FUNC1', whereas in the&amp;nbsp; in the original Flexcomm3 project, Port 0, Pin 4 (coords: 38) was assigned as a chip select, 'SSEL'/FUNC2. When I changed the Port 0, Pin 4 (coords: 38) pin configuration in the Flexcomm5 project to 'FUNC2' I was able to change the pin functioning to 'SSEL'. I could then also see the results of this change on the scope.&lt;/P&gt;&lt;P&gt;Thanks, and best regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 13:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-a-2nd-hardware-SPI-port-into-project/m-p/887991#M35589</guid>
      <dc:creator>jameswhitney</dc:creator>
      <dc:date>2019-04-10T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a 2nd hardware SPI port into project ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-a-2nd-hardware-SPI-port-into-project/m-p/887992#M35590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So, if you have the new question in the future, welcome to create the new question post, thank you!&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:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 02:41:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-a-2nd-hardware-SPI-port-into-project/m-p/887992#M35590</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-11T02:41:54Z</dc:date>
    </item>
  </channel>
</rss>

