<?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 SPI  Master mode Send Datas issue in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809968#M2920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try to disable the continuous mode?&lt;/P&gt;&lt;P&gt;If the delay is removed I&amp;nbsp;suppose that it is caused by the computation necessary to update LPSPI configuration to set PCS high after last transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the LPSPI configuration to obtain the same results. Set bits/frame to 40 and for receive and transmit buffers please use uint32_t data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2018 19:30:33 GMT</pubDate>
    <dc:creator>razva_tilimpea</dc:creator>
    <dc:date>2018-10-24T19:30:33Z</dc:date>
    <item>
      <title>S32K146 SPI  Master mode Send Datas issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809965#M2917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The SPI&amp;nbsp; setting as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="111.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75986i531B846F806791AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="111.png" alt="111.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, Send 5 bytes data . &lt;span class="lia-inline-image-display-wrapper" image-alt="4v1044oo1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76044i04520589465A6142/image-size/large?v=v2&amp;amp;px=999" role="button" title="4v1044oo1.png" alt="4v1044oo1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why ?&lt;SPAN style="color: #002000; font-family: Arial,'Microsoft YaHei','FAE软雅黑','B8B体','Malgun Gothic',Meiryo,sans-serif; background-color: #ffffff;"&gt; &lt;/SPAN&gt;There is a delay between the fourth and fifth data.&amp;nbsp; The delay&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #666666; font-family: Arial,'Microsoft YaHei','FAE软雅黑','B8B体','Malgun Gothic',Meiryo,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;time &lt;/SPAN&gt; is &lt;SPAN style="color: #666666; font-family: Arial, 'Microsoft YaHei', '\ FAE软雅黑', '\ B8B体', 'Malgun Gothic', Meiryo, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"&gt;about 14 us.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2018 06:37:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809965#M2917</guid>
      <dc:creator>学辉王</dc:creator>
      <dc:date>2018-10-20T06:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI  Master mode Send Datas issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809966#M2918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the frequency of the SPI is high the CPU doesn't have enough time to fill up the TX fifo.&lt;/P&gt;&lt;P&gt;To avoid this problem I suggest 2 solution:&lt;/P&gt;&lt;P&gt;1. Use LPSPI in DMA mode to reduce&amp;nbsp; the CPU load&lt;/P&gt;&lt;P&gt;2. Increase core frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 12:06:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809966#M2918</guid>
      <dc:creator>razva_tilimpea</dc:creator>
      <dc:date>2018-10-23T12:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI  Master mode Send Datas issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809967#M2919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; padding: 0px; border: 0px #646464; text-align: left; color: #646464; text-transform: none; text-indent: 0px; letter-spacing: normal; font-size: 17.93px; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; vertical-align: baseline; white-space: normal; orphans: 2; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp; Thanks for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; My system oscillator clock(SOSC_CLK) is 8Mhz, SPLL_CLK is 112Mhz, The SPI Clock is SPLLDIV2(56Mhz), Spi Baudrate is 2Mhz.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; As you say,&amp;nbsp;Use LPSPI in DMA mode to send data.&amp;nbsp; But &lt;SPAN style="color: #000011; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif;"&gt;t&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #51626f; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;he delay&lt;/SPAN&gt;&lt;/SPAN&gt; time is still exist.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0px; padding: 0px; border: 0px #646464; text-align: left; color: #646464; text-transform: none; text-indent: 0px; letter-spacing: normal; font-size: 17.93px; font-style: normal; font-variant: normal; text-decoration: none; word-spacing: 0px; vertical-align: baseline; white-space: normal; orphans: 2; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 01:23:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809967#M2919</guid>
      <dc:creator>学辉王</dc:creator>
      <dc:date>2018-10-24T01:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI  Master mode Send Datas issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809968#M2920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try to disable the continuous mode?&lt;/P&gt;&lt;P&gt;If the delay is removed I&amp;nbsp;suppose that it is caused by the computation necessary to update LPSPI configuration to set PCS high after last transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the LPSPI configuration to obtain the same results. Set bits/frame to 40 and for receive and transmit buffers please use uint32_t data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 19:30:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809968#M2920</guid>
      <dc:creator>razva_tilimpea</dc:creator>
      <dc:date>2018-10-24T19:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI  Master mode Send Datas issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809969#M2921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1.&amp;nbsp; Set&amp;nbsp;bits/frame to 8 and disable the continuous mode , it is ok. But i need sending 40 bits data during PCS enable.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #51626f; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;nbsp; &lt;/SPAN&gt;2. &lt;STRONG&gt;Set bits/frame to 40 and for receive and transmit buffers please use uint32_t data.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The&amp;nbsp; pic&amp;nbsp; as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="123.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76341i1FB95D44B2F26868/image-size/large?v=v2&amp;amp;px=999" role="button" title="123.png" alt="123.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #51626f; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt; fifth data&lt;/SPAN&gt; is 0xff, it is wrong data.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 07:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809969#M2921</guid>
      <dc:creator>学辉王</dc:creator>
      <dc:date>2018-10-25T07:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI  Master mode Send Datas issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809970#M2922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is in Interrupt mode or DMA mode?&lt;/P&gt;&lt;P&gt;Can you send me how do you use Send functions and what are the values from tx buffer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 18:39:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-SPI-Master-mode-Send-Datas-issue/m-p/809970#M2922</guid>
      <dc:creator>razva_tilimpea</dc:creator>
      <dc:date>2018-10-25T18:39:08Z</dc:date>
    </item>
  </channel>
</rss>

