<?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 S32K148 SPI Slave Mode Example in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1254281#M10378</link>
    <description>&lt;P&gt;Can anyone provide an example code for the SPI slave mode? The Design Studio only has code for Master mode configuration. I have trouble in setting the configuration registers and using the PCS (chip select) pins.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 13:06:56 GMT</pubDate>
    <dc:creator>RahulL</dc:creator>
    <dc:date>2021-03-30T13:06:56Z</dc:date>
    <item>
      <title>S32K148 SPI Slave Mode Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1254281#M10378</link>
      <description>&lt;P&gt;Can anyone provide an example code for the SPI slave mode? The Design Studio only has code for Master mode configuration. I have trouble in setting the configuration registers and using the PCS (chip select) pins.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 13:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1254281#M10378</guid>
      <dc:creator>RahulL</dc:creator>
      <dc:date>2021-03-30T13:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 SPI Slave Mode Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1255053#M10405</link>
      <description>&lt;P&gt;Hi, for instance example used both, master and slave.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;lpspi_transfer_s32k148&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_0-1617205465370.png" style="width: 695px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141077iFD58655E66B1625A/image-dimensions/695x306?v=v2" width="695" height="306" role="button" title="davidtosenovjan_0-1617205465370.png" alt="davidtosenovjan_0-1617205465370.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 15:44:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1255053#M10405</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-03-31T15:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 SPI Slave Mode Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1255585#M10414</link>
      <description>&lt;P&gt;Hey David,&lt;/P&gt;&lt;P&gt;Thank you for your response. I will check this example. But, I am trying non SDK application. It would be great if you can help me with an example for non SDK application.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 07:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1255585#M10414</guid>
      <dc:creator>RahulL</dc:creator>
      <dc:date>2021-04-01T07:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 SPI Slave Mode Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1255743#M10418</link>
      <description>&lt;P&gt;I have found some simple example on the following thread, apparently tested by my colleague.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/SPI-configuration-master-slave-S32K148/m-p/863053" target="_blank"&gt;https://community.nxp.com/t5/S32K/SPI-configuration-master-slave-S32K148/m-p/863053&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 10:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1255743#M10418</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-04-01T10:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 SPI Slave Mode Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1256562#M10437</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Sorry for the delay, I have checked the example code suggested by you.&lt;/P&gt;&lt;P&gt;In my application, I am using S32K148 Eval board as a master SPI device and a 20 X 4 LCD (NHD-0420D3Z-FL-GBW-V3) as a SPI slave device. In the application I am using the same&amp;nbsp;&lt;STRONG&gt;LPSPI1_init_master()&lt;/STRONG&gt; function given in the example to initialize the S32K148 as a master device.&lt;/P&gt;&lt;P&gt;In the application, I am trying to display characters on the LCD. When I run the application in debug mode (by using step into, step over options) I am able to print the characters on the LCD without any issues. But when I am trying to do it in free run, I am able to see just 2-3 characters printed on the LCD. If I pause the execution, I can see it is waiting at the line, &lt;STRONG&gt;while((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_TDF_SHIFT==0);&amp;nbsp;&lt;/STRONG&gt;in the&amp;nbsp;&lt;STRONG&gt;LPSPI1_transmit_16bits&lt;/STRONG&gt; (uint16_t send) function.&lt;/P&gt;&lt;P&gt;Now if I again resume the execution, again 2-3 characters are printed on the LCD screen and again the same scenario repeats. Again if I pause and resume again 2-3 characters are printed. I have attached the program files for reference. Please let me know if I have to make any changes.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 06:04:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1256562#M10437</guid>
      <dc:creator>RahulL</dc:creator>
      <dc:date>2021-04-05T06:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 SPI Slave Mode Example</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1262797#M10572</link>
      <description>&lt;P&gt;Apparently you dont fulfill timing required by SPI slave. Please consult SPI protocol requirement by SPI slave device.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 12:08:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-SPI-Slave-Mode-Example/m-p/1262797#M10572</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-04-15T12:08:18Z</dc:date>
    </item>
  </channel>
</rss>

