<?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: S32K SPI Slave mode in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K-SPI-Slave-mode/m-p/1419554#M14160</link>
    <description>&lt;P&gt;&lt;A href="mailto:Hi@sunW" target="_blank"&gt;Hi@sunW&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you said :&lt;/SPAN&gt;&lt;SPAN&gt;If Master ChipSelect pin is low, slave SPI chipSelect set low. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;this is not right.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the slave cs pin direction should be set to Input, and the voltage level of the&amp;nbsp;CS signal which depends on Master 's CS control only.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;take a look at the example project:lpspi_transfer_s32k14x, it will show the LPSPI Master and Slave functionalities.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 06:31:40 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2022-02-25T06:31:40Z</dc:date>
    <item>
      <title>S32K SPI Slave mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K-SPI-Slave-mode/m-p/1419431#M14155</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two S32K144 EV board.&lt;/P&gt;&lt;P&gt;One board set SPI master. Other board set SPI Slave.&lt;/P&gt;&lt;P&gt;SPI master pin is&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPI0_CLK(PB2)&lt;/P&gt;&lt;P&gt;SPI0_MISO(PB3)&lt;/P&gt;&lt;P&gt;SPI0_MOSI(PB4)&lt;/P&gt;&lt;P&gt;SPI0_CS(PB0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SLAVE&lt;/P&gt;&lt;P&gt;SPI1_CLK(PD0)&lt;/P&gt;&lt;P&gt;SPI1_MISO(PD2)&lt;/P&gt;&lt;P&gt;SPI1_MOSI(PD1)&lt;/P&gt;&lt;P&gt;SPI1_CS(PD3)&lt;/P&gt;&lt;P&gt;In case master, I set Chip select pin Software GPIO&lt;/P&gt;&lt;P&gt;In case slave, I set chip Hardware cs.&lt;/P&gt;&lt;P&gt;but&amp;nbsp; I can't understand SPI slave cs timing.&lt;/P&gt;&lt;P&gt;If Master ChipSelect pin is low, slave SPI chipSelect set low.&lt;/P&gt;&lt;P&gt;How do i check SPI slave chipselect low?&lt;/P&gt;&lt;P&gt;Master sudo code&lt;/P&gt;&lt;P&gt;- cs low&lt;/P&gt;&lt;P&gt;- SPI_transmit&lt;/P&gt;&lt;P&gt;- SPI receive&lt;/P&gt;&lt;P&gt;- cs high&lt;/P&gt;&lt;P&gt;slave Sudo code&lt;/P&gt;&lt;P&gt;- get cs pin low (how do i check pin low?)&lt;/P&gt;&lt;P&gt;- SPI_receive data&lt;/P&gt;&lt;P&gt;- SPI_transmit&lt;/P&gt;&lt;P&gt;- get cd pin high&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI_PIN.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/171739i560AB913662EE12D/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI_PIN.PNG" alt="SPI_PIN.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 01:55:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-SPI-Slave-mode/m-p/1419431#M14155</guid>
      <dc:creator>SunW</dc:creator>
      <dc:date>2022-02-25T01:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32K SPI Slave mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K-SPI-Slave-mode/m-p/1419554#M14160</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@sunW" target="_blank"&gt;Hi@sunW&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you said :&lt;/SPAN&gt;&lt;SPAN&gt;If Master ChipSelect pin is low, slave SPI chipSelect set low. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;this is not right.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the slave cs pin direction should be set to Input, and the voltage level of the&amp;nbsp;CS signal which depends on Master 's CS control only.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;take a look at the example project:lpspi_transfer_s32k14x, it will show the LPSPI Master and Slave functionalities.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 06:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-SPI-Slave-mode/m-p/1419554#M14160</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2022-02-25T06:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: S32K SPI Slave mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K-SPI-Slave-mode/m-p/1419795#M14173</link>
      <description>&lt;P&gt;I already saw this project.&lt;/P&gt;&lt;P&gt;Buy i can't find method&amp;nbsp;&lt;/P&gt;&lt;P&gt;When do i get slave data in MISO.&lt;/P&gt;&lt;P&gt;I try to set cs pin as port interrupt.&lt;/P&gt;&lt;P&gt;So Spi communicaion is not working.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:42:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-SPI-Slave-mode/m-p/1419795#M14173</guid>
      <dc:creator>SunW</dc:creator>
      <dc:date>2022-02-25T12:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: S32K SPI Slave mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K-SPI-Slave-mode/m-p/1420390#M14195</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@SunW" target="_blank" rel="noopener"&gt;Hi@SunW&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I understand what you mean, you want to enable send &amp;amp;receive by reading the status of CS pin, but the CS pin is not a GPIO port in this example project, so you can't do it through IO interrupt( i guess this is the reason why the SPI communication is not working. )&lt;/P&gt;
&lt;P&gt;This answer is very similar to your question, you can refer to this answer.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32-SDK/How-do-I-know-if-the-SPI-slave-has-received-the-data/m-p/849975" target="_self"&gt;https://community.nxp.com/t5/S32-SDK/How-do-I-know-if-the-SPI-slave-has-received-the-data/m-p/849975&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 08:24:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-SPI-Slave-mode/m-p/1420390#M14195</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2022-02-28T08:24:58Z</dc:date>
    </item>
  </channel>
</rss>

