<?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>S32K中的主题 Re: LPSPI FRAMESZ and Receive Data Register</title>
    <link>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1889421#M36716</link>
    <description>&lt;P&gt;There is 4x32b RX FIFO disabled by default.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1718707863682.png" style="width: 594px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/284644iB94C24F3224CEB0A/image-dimensions/594x180?v=v2" width="594" height="180" role="button" title="danielmartynek_0-1718707863682.png" alt="danielmartynek_0-1718707863682.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1718707956067.png" style="width: 591px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/284646i79080B526FDCCE06/image-dimensions/591x68?v=v2" width="591" height="68" role="button" title="danielmartynek_1-1718707956067.png" alt="danielmartynek_1-1718707956067.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 10:53:55 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2024-06-18T10:53:55Z</dc:date>
    <item>
      <title>LPSPI FRAMESZ and Receive Data Register</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1887242#M36573</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm interfacing S32K3xx with an external flash memory. This chip requires different size command and data combinations. For example, to read the status register one needs to send 1 byte command and wait for 1 byte of data to appear on the MISO line. Frame size can range from 8 bits to several bytes. Is there a way to interface this chip without needing changing FRAMESZ each time?&lt;BR /&gt;&lt;BR /&gt;In the above example, I couldn't just send 1 byte of command. I had to send an extra dummy byte to allow for the memory chip to respond. So, my frame size had to be 16 bits long. I have other use cases where I am sending 1 byte of command + 3 bytes of address + 10 bytes of data (just an example). It seem like each time my data changes I have to modify the FRAMESZ.&lt;BR /&gt;&lt;BR /&gt;Another question: It seem like to get correct data in the SPI data register I have to read that register each time I send out a frame. Is this how the SPI set up?&lt;BR /&gt;&lt;BR /&gt;LPSPI1_transmit_16bits(tx_16bits); /* Transmit half word (16 bits) on LPSPI1 */&lt;BR /&gt;LPSPI1_16bits_read = LPSPI1_receive_16bits(); /* Receive half word on LSPI1 */&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help!&lt;BR /&gt;&lt;BR /&gt;Vusal&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 18:27:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1887242#M36573</guid>
      <dc:creator>vusal</dc:creator>
      <dc:date>2024-06-13T18:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI FRAMESZ and Receive Data Register</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1887735#M36604</link>
      <description>&lt;P&gt;Hello Vusal,&lt;/P&gt;
&lt;P&gt;I understand you need to keep CS asserted throughout the whole 14-byte transfer (using the example, 1 byte of command + 3 bytes of address + 10 bytes of data).&lt;/P&gt;
&lt;P&gt;For that, the LPSPI Continous mode can be used (TCR[CONT = 1]).&lt;/P&gt;
&lt;P&gt;FRAMESZ can be set to 8bit frames.&lt;/P&gt;
&lt;P&gt;The LPSPI will keep CS asserted until a new command with TCR[CONT = 0].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RTD LPSPI_IP driver&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1718355095205.png" style="width: 638px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/284194iBA4B0C80A465C77F/image-dimensions/638x708?v=v2" width="638" height="708" role="button" title="danielmartynek_0-1718355095205.png" alt="danielmartynek_0-1718355095205.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Call the function below with Length = 14.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1718355278613.png" style="width: 779px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/284195i92A88A113AEA4DDC/image-dimensions/779x123?v=v2" width="779" height="123" role="button" title="danielmartynek_1-1718355278613.png" alt="danielmartynek_1-1718355278613.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 08:57:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1887735#M36604</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-06-14T08:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI FRAMESZ and Receive Data Register</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1888870#M36674</link>
      <description>&lt;P&gt;Hi Daniel,&lt;BR /&gt;&lt;BR /&gt;Thank you for your message. This fixed the issue.&lt;BR /&gt;&lt;BR /&gt;One more quick question:&amp;nbsp;&lt;SPAN&gt;It seem like to get correct data in the SPI data register I have to read that register each time I send out a frame. Is this how the SPI set up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPSPI1_transmit_16bits(tx_16bits); /* Transmit half word (16 bits) on LPSPI1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPSPI1_16bits_read = LPSPI1_receive_16bits(); /* Receive half word on LSPI1 */&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Vusal&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 17:21:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1888870#M36674</guid>
      <dc:creator>vusal</dc:creator>
      <dc:date>2024-06-17T17:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI FRAMESZ and Receive Data Register</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1889421#M36716</link>
      <description>&lt;P&gt;There is 4x32b RX FIFO disabled by default.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1718707863682.png" style="width: 594px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/284644iB94C24F3224CEB0A/image-dimensions/594x180?v=v2" width="594" height="180" role="button" title="danielmartynek_0-1718707863682.png" alt="danielmartynek_0-1718707863682.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1718707956067.png" style="width: 591px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/284646i79080B526FDCCE06/image-dimensions/591x68?v=v2" width="591" height="68" role="button" title="danielmartynek_1-1718707956067.png" alt="danielmartynek_1-1718707956067.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 10:53:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1889421#M36716</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-06-18T10:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI FRAMESZ and Receive Data Register</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1889503#M36720</link>
      <description>Thank you!</description>
      <pubDate>Tue, 18 Jun 2024 12:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-FRAMESZ-and-Receive-Data-Register/m-p/1889503#M36720</guid>
      <dc:creator>vusal</dc:creator>
      <dc:date>2024-06-18T12:40:57Z</dc:date>
    </item>
  </channel>
</rss>

