<?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: S32K146 LPSPI Example problem in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K146-LPSPI-Example-problem/m-p/1462397#M15604</link>
    <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Thanks for your answer, I understood I was receiving some frames on RX so I was reading them just to clear the RXFIFO. But the&amp;nbsp;&lt;SPAN&gt;RXMSK bit you suggested seems to be a better option !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2022 11:11:27 GMT</pubDate>
    <dc:creator>f_gaudon</dc:creator>
    <dc:date>2022-05-23T11:11:27Z</dc:date>
    <item>
      <title>S32K146 LPSPI Example problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPSPI-Example-problem/m-p/1453390#M15272</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've got some problems with the LSPSI example.&lt;/P&gt;&lt;P&gt;Before sending a SPI trame my TX and RX fifo counter are 0 .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="f_gaudon_0-1651741411403.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178867i7F75070491B7C818/image-size/medium?v=v2&amp;amp;px=400" role="button" title="f_gaudon_0-1651741411403.png" alt="f_gaudon_0-1651741411403.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After executing the ligne :&amp;nbsp;LPSPI1-&amp;gt;TDR = send; the RX counter has incremented to 1 but not the TX fifo counter ? Can someone explain me why ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="f_gaudon_0-1651741704521.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178869iA28D61273CE353FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="f_gaudon_0-1651741704521.png" alt="f_gaudon_0-1651741704521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides that, I do not understand the ligne :&amp;nbsp;LPSPI1-&amp;gt;SR |= LPSPI_SR_TDF_MASK; /* Clear TDF flag */&lt;/P&gt;&lt;P&gt;Because in the RM, this bit seems not writable.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="f_gaudon_1-1651741552995.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178868i0E0729D508B418F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="f_gaudon_1-1651741552995.png" alt="f_gaudon_1-1651741552995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time and answers,&lt;/P&gt;&lt;P&gt;Florian&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 09:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPSPI-Example-problem/m-p/1453390#M15272</guid>
      <dc:creator>f_gaudon</dc:creator>
      <dc:date>2022-05-05T09:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPSPI Example problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPSPI-Example-problem/m-p/1455556#M15338</link>
      <description>&lt;P&gt;I'm sending a SPI frame every second, the first start correctly but after few seconds, the RX fifo is full (nothing is connected on the SDIN pin) and the CS stay low after sending the last frame.&lt;/P&gt;&lt;P&gt;In the example, the flags cleared are in Read only mode, I still don't get it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 09:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPSPI-Example-problem/m-p/1455556#M15338</guid>
      <dc:creator>f_gaudon</dc:creator>
      <dc:date>2022-05-10T09:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPSPI Example problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPSPI-Example-problem/m-p/1461591#M15572</link>
      <description>&lt;P&gt;Hi Florian,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The 16bit frame written to the TX FIFO goes to the TX shift register and is sent out. Meanwhile, an RX frame is received. That's why you see the frame in the RX FIFO but not in the TX FIFO.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;If you don't want to read the RX data, you can set the RXMSK bit in the command (TCR)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Regarding the RDF, TDF clearing process, you are right, the example is not correct. The flags cannot be cleared by w1c.They get cleared automatically depending on the number of frames in the FIFOs and RXWATER / TXWATER thresholds.&lt;/LI&gt;
&lt;/UL&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 11:26:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPSPI-Example-problem/m-p/1461591#M15572</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-05-20T11:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 LPSPI Example problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-LPSPI-Example-problem/m-p/1462397#M15604</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Thanks for your answer, I understood I was receiving some frames on RX so I was reading them just to clear the RXFIFO. But the&amp;nbsp;&lt;SPAN&gt;RXMSK bit you suggested seems to be a better option !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 11:11:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-LPSPI-Example-problem/m-p/1462397#M15604</guid>
      <dc:creator>f_gaudon</dc:creator>
      <dc:date>2022-05-23T11:11:27Z</dc:date>
    </item>
  </channel>
</rss>

