<?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 Help with SPI in KW40Z in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-with-SPI-in-KW40Z/m-p/612818#M36314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I am referring the FRDMKW40ZUG.pdf which is the user guide for the KW40Z chip. I need to work with the SPI but I see that the SPI is connected to the Flash memory by default on the freedom board. In the user guide in section 4.2.4.1 Serial flash memory (SPI interface), I find this line - "You can share the SPI with other peripherals using the J2 SPI connectors. The normal SPI_SS and the second chip-select must not be active at the same time."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is the second chip select? Is it SPI0_PCS1? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main question is how do I use the SPI in the FRDM KW40Z board?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2016 16:02:47 GMT</pubDate>
    <dc:creator>divyak</dc:creator>
    <dc:date>2016-09-12T16:02:47Z</dc:date>
    <item>
      <title>Help with SPI in KW40Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-with-SPI-in-KW40Z/m-p/612818#M36314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I am referring the FRDMKW40ZUG.pdf which is the user guide for the KW40Z chip. I need to work with the SPI but I see that the SPI is connected to the Flash memory by default on the freedom board. In the user guide in section 4.2.4.1 Serial flash memory (SPI interface), I find this line - "You can share the SPI with other peripherals using the J2 SPI connectors. The normal SPI_SS and the second chip-select must not be active at the same time."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is the second chip select? Is it SPI0_PCS1? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main question is how do I use the SPI in the FRDM KW40Z board?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:02:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-with-SPI-in-KW40Z/m-p/612818#M36314</guid>
      <dc:creator>divyak</dc:creator>
      <dc:date>2016-09-12T16:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SPI in KW40Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-with-SPI-in-KW40Z/m-p/612819#M36315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, as you mentioned SPI in FRDM-KW40Z is default connected to Flash memory, you can refer to the FRDM schematic, you will find:&lt;/P&gt;&lt;P&gt;&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/5471iAC74D9D34C25FE94/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;&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5473iCDDE971064D3DE58/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, SPI flash memory is connected to SPI0 (SPI0_PCS0).&amp;nbsp; If you want to use SPI0 in frdm you can use another PCS, like SPI0_PCS1 that is connected to PTA0 (J2 pin 2) or SPI0_PCS2 in PTC7 (J1 pin 4). You just have to consider, as it said in user manual, that SPI0_PCS0 and second PCS should not be active at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps, attached you can find the frdm schematic, please tell me if you have any question related.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&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>Wed, 14 Sep 2016 04:35:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-with-SPI-in-KW40Z/m-p/612819#M36315</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-09-14T04:35:14Z</dc:date>
    </item>
  </channel>
</rss>

