<?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>Kinetis MicrocontrollersのトピックRe: SPI as 3 wire and gpio pin for cs</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-as-3-wire-and-gpio-pin-for-cs/m-p/1064792#M57185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="345131" data-username="vijith.g@honeywell.com" href="https://community.nxp.com/people/vijith.g@honeywell.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;vijith G&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;Do you want to use just one SPI module, and use two CS pin as the different&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;sensor&amp;nbsp;SPI select pin?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp; If yes, I suggest you define two GPIO directly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp; Then the SPI interface just configure 3 pins: SPI_CLK, SPI_MOSI, SPI_MISO&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp; &amp;nbsp;Then two GPIO as the different SPI_CS, before you send the data, set the CS pin as high.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp; &amp;nbsp;When you want to send the SPI data to the sensor, then set the CS GPIO pin as low.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp; &amp;nbsp;You even don't need to configure the SPI related CS register, just control the GPIO register, and the SPI send receive and control register.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;If you still have questions about it, please kindly let me know.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;Kerry&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&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="border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&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>Mon, 06 Jul 2020 06:35:44 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2020-07-06T06:35:44Z</dc:date>
    <item>
      <title>SPI as 3 wire and gpio pin for cs</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-as-3-wire-and-gpio-pin-for-cs/m-p/1064791#M57184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on sensor interface which have two SPI interfaces. For accessing data, I have to use different cs pin. So please let me know how will i configure spi as 3 wire interface&amp;nbsp;and gpio for cs, as I don’t have proper details about registers both spi and gpio. I am using&amp;nbsp;K60P144M150SF3 microcontroller. I am using spi 0 for spi interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know anybody having any details about it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please share the application or user guide of this&amp;nbsp;K60P144M150SF3&amp;nbsp;microcontroller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Vijith G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2020 15:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-as-3-wire-and-gpio-pin-for-cs/m-p/1064791#M57184</guid>
      <dc:creator>vijith_g1</dc:creator>
      <dc:date>2020-07-04T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: SPI as 3 wire and gpio pin for cs</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-as-3-wire-and-gpio-pin-for-cs/m-p/1064792#M57185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="345131" data-username="vijith.g@honeywell.com" href="https://community.nxp.com/people/vijith.g@honeywell.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;vijith G&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;Do you want to use just one SPI module, and use two CS pin as the different&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;sensor&amp;nbsp;SPI select pin?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp; If yes, I suggest you define two GPIO directly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp; Then the SPI interface just configure 3 pins: SPI_CLK, SPI_MOSI, SPI_MISO&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp; &amp;nbsp;Then two GPIO as the different SPI_CS, before you send the data, set the CS pin as high.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp; &amp;nbsp;When you want to send the SPI data to the sensor, then set the CS GPIO pin as low.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp; &amp;nbsp;You even don't need to configure the SPI related CS register, just control the GPIO register, and the SPI send receive and control register.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;If you still have questions about it, please kindly let me know.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;Kerry&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&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="border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px; font-size: 14px;"&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>Mon, 06 Jul 2020 06:35:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-as-3-wire-and-gpio-pin-for-cs/m-p/1064792#M57185</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-07-06T06:35:44Z</dc:date>
    </item>
  </channel>
</rss>

