<?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: S32K148 LPSPI match configuration in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1641589#M22458</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209475"&gt;@SONGTAOSI&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The SDK driver should terminate the transfer in the CONT mode after the 5th byte, there is no need to do it in the user code.&lt;/P&gt;
&lt;P&gt;Which version of the SDK do you use?&lt;/P&gt;
&lt;P&gt;You use the non-blocking transfer function which returns immediately while the transfer is still ongoing. Thus the delay. But you can use the blocking function instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you need the CONT mode though?&lt;/P&gt;
&lt;P&gt;You can simply set the frame size to 40bits and leave CONT = 0.&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>Thu, 27 Apr 2023 12:42:32 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2023-04-27T12:42:32Z</dc:date>
    <item>
      <title>S32K148 LPSPI match configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1639561#M22356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when I test the LPSPI_CFGR1_MATCFG bit ,There is one question that bothers me。&lt;/P&gt;&lt;P&gt;I configure LPSPI0 as master,LPSPI1 as slave. LPSPI1 transfer 5 datas[0x64,0x63,0x62,0x61,0x60] to LPSPI0, and&lt;/P&gt;&lt;P&gt;LPSPI0-&amp;gt;CFGR1 |= LPSPI_CFGR1_MATCFG(3);&amp;nbsp;&lt;/P&gt;&lt;P&gt;LPSPI0-&amp;gt;IER |= LPSPI_IER_DMIE_MASK;//LPSPI_IER_DMIE_MASK;&lt;BR /&gt;LPSPI0-&amp;gt;TCR |= LPSPI_TCR_CONT_MASK;&amp;nbsp; //连续传输&lt;/P&gt;&lt;P&gt;LPSPI0-&amp;gt;CFGR0 |= LPSPI_CFGR0_RDMO_MASK; //仅接收匹配&lt;/P&gt;&lt;P&gt;LPSPI0-&amp;gt;DMR0 = 0x60; //最后一个数据进行匹配；&lt;BR /&gt;LPSPI0-&amp;gt;DMR1 = 0x59;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After testing, I found that the last one data can't match with DMR0 and DMR1,regardless&amp;nbsp;LPSPI_CFGR1_MATCFG(3) or 4,5,6,7.&lt;/P&gt;&lt;P&gt;Looking forward to your reply！Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 08:06:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1639561#M22356</guid>
      <dc:creator>SONGTAOSI</dc:creator>
      <dc:date>2023-04-25T08:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI match configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1639821#M22369</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209475"&gt;@SONGTAOSI&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You use the continuous transfer mode (CONT = 1).&lt;/P&gt;
&lt;P&gt;Do you terminate the continous transfer with a new TCR command?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 13:39:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1639821#M22369</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-04-25T13:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI match configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1640072#M22376</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you for your reply，but I'm sorry I didn't understand "&lt;SPAN&gt;Do you terminate the continous transfer with a new TCR command?&lt;/SPAN&gt;&amp;nbsp;"&amp;nbsp; . I only config CONT=1，PCS is always keep asserted. I can match 4 datas except the last one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 00:52:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1640072#M22376</guid>
      <dc:creator>SONGTAOSI</dc:creator>
      <dc:date>2023-04-26T00:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI match configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1640314#M22384</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209475"&gt;@SONGTAOSI&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you negate the PCS (terminate the transfer) after the last frame?&lt;/P&gt;
&lt;P&gt;This is done by writing the TCR FIFO with a new command.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1682494644910.png" style="width: 707px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/220881iAB0FB95F2BED5CF8/image-dimensions/707x76?v=v2" width="707" height="76" role="button" title="danielmartynek_0-1682494644910.png" alt="danielmartynek_0-1682494644910.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;danielmartynek_0-1682494644910.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 07:38:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1640314#M22384</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-04-26T07:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI match configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1641576#M22455</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your answer is very useful,Thank you so much.But I have another doubt.&lt;/P&gt;&lt;P&gt;if i transfer data quantity exceed 4, it should add a delay between Transfer and new TCR.&lt;/P&gt;&lt;P&gt;LPSPI_DRV_MasterTransfer(INST_LPSPI_1, master_buffer.tx, master_buffer.rx, 5);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;delayCycles(100);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;LPSPI_SetTxCommandReg(LPSPI0, &amp;amp;txCmdCfgSet );&lt;/P&gt;&lt;P&gt;the picture is add delay,it's ok&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SONGTAOSI_0-1682598094814.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/221112iFD71AF602F21BA50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SONGTAOSI_0-1682598094814.png" alt="SONGTAOSI_0-1682598094814.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SONGTAOSI_0-1682598094814.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this picture is not add delay, after transfer 4 data,the PCS is negate.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SONGTAOSI_1-1682598328518.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/221113iCFDF6EF23E8C7062/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SONGTAOSI_1-1682598328518.png" alt="SONGTAOSI_1-1682598328518.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SONGTAOSI_1-1682598328518.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this because the FIFO size Max is 4 word?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 12:26:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1641576#M22455</guid>
      <dc:creator>SONGTAOSI</dc:creator>
      <dc:date>2023-04-27T12:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI match configuration</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1641589#M22458</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209475"&gt;@SONGTAOSI&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The SDK driver should terminate the transfer in the CONT mode after the 5th byte, there is no need to do it in the user code.&lt;/P&gt;
&lt;P&gt;Which version of the SDK do you use?&lt;/P&gt;
&lt;P&gt;You use the non-blocking transfer function which returns immediately while the transfer is still ongoing. Thus the delay. But you can use the blocking function instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you need the CONT mode though?&lt;/P&gt;
&lt;P&gt;You can simply set the frame size to 40bits and leave CONT = 0.&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>Thu, 27 Apr 2023 12:42:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-LPSPI-match-configuration/m-p/1641589#M22458</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-04-27T12:42:32Z</dc:date>
    </item>
  </channel>
</rss>

