<?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: SPI Communication Issue with OA TC6 SPI Protoco in S32K</title>
    <link>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2043147#M45862</link>
    <description>&lt;P&gt;Anyone help me?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 06:36:46 GMT</pubDate>
    <dc:creator>malove</dc:creator>
    <dc:date>2025-02-13T06:36:46Z</dc:date>
    <item>
      <title>SPI Communication Issue with OA TC6 SPI Protoco</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2041454#M45775</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am implementing SPI communication between the &lt;STRONG&gt;S32K314 MCU&lt;/STRONG&gt; and &lt;STRONG&gt;MAC-PHY (LAN8651)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;Control Transaction Read&lt;/STRONG&gt; (where the master reads a register value from the slave), the process follows the &lt;STRONG&gt;OA TC6 SPI protocol&lt;/STRONG&gt; as shown in the image below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malove_0-1739255034643.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323322i52BD74E4E07D6312/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malove_0-1739255034643.png" alt="malove_0-1739255034643.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;S32K314 MCU&lt;/STRONG&gt; has a &lt;STRONG&gt;maximum SPI frame width of 64 bits&lt;/STRONG&gt;. However, in some transactions, the required frame length &lt;STRONG&gt;exceeds 64 bits&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;For example, as shown in the image below, when performing a &lt;STRONG&gt;Protected Write&lt;/STRONG&gt;, the frame consists of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Control Header (32 bits)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Protected Write Data (64 bits)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Total: 96 bits&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malove_1-1739255075501.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323324i136EBA7DFCB380A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malove_1-1739255075501.png" alt="malove_1-1739255075501.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After measuring the waveform, I noticed that &lt;STRONG&gt;if the SPI frame exceeds the configured bit width in the LPSPI Configurator, the SCK clock stops and then resumes for the remaining bits.&lt;/STRONG&gt;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;My Questions:&lt;/STRONG&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Is there a way to send more than 64 bits in a single SPI transaction, or at least reduce the delay between frames?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;If the SCK stops and then resumes to complete the transmission, would this cause any issues with the communication?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 11 Feb 2025 06:25:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2041454#M45775</guid>
      <dc:creator>malove</dc:creator>
      <dc:date>2025-02-11T06:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication Issue with OA TC6 SPI Protoco</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2043147#M45862</link>
      <description>&lt;P&gt;Anyone help me?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 06:36:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2043147#M45862</guid>
      <dc:creator>malove</dc:creator>
      <dc:date>2025-02-13T06:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication Issue with OA TC6 SPI Protoco</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2043824#M45891</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241168"&gt;@malove&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I apologize for the delayed response. Below are the answers to your questions:&lt;BR /&gt;&lt;BR /&gt;The maximum frame size is 64 bits, as it is designed to be AUTOSAR 4.7 compliant, according to the "&lt;A href="https://www.autosar.org/fileadmin/standards/R22-11/CP/AUTOSAR_SWS_SPIHandlerDriver.pdf" target="_blank" rel="noopener"&gt;Specification of SPI Handler/Driver&lt;/A&gt;" documentation provided by AUTOSAR. However, you can split the data into smaller frames and reduce the delay between frames by adjusting the timing parameters, which are outlined in the image below and described in Table 441 of Chapter 70 in the S32K3XX Reference Manual Rev. 9:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RomanVR_0-1739476748120.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323897i1202B8FC7D05ACB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RomanVR_0-1739476748120.png" alt="RomanVR_0-1739476748120.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If the previous transmission has ended and another transmission is initiated to send the remaining bytes of the complete data frame, there should be no communication issues, as long as the SCK continues to run during transmission.&lt;BR /&gt;&lt;BR /&gt;Please let me know if this information is helpful or if you have any further questions.&lt;/P&gt;
&lt;P&gt;- RomanVR.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 19:59:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2043824#M45891</guid>
      <dc:creator>RomanVR</dc:creator>
      <dc:date>2025-02-13T19:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication Issue with OA TC6 SPI Protoco</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2044396#M45904</link>
      <description>&lt;P&gt;Hello, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/243613"&gt;@RomanVR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I have an additional question regarding SPI communication.&lt;/P&gt;&lt;P&gt;I want to transmit a &lt;STRONG&gt;total of 96 bits (32-bit + 32-bit + 32-bit)&lt;/STRONG&gt;.&lt;BR /&gt;Currently, if I set the &lt;STRONG&gt;FrameSize to 32 bits&lt;/STRONG&gt;, the &lt;STRONG&gt;CS (Chip Select) remains LOW&lt;/STRONG&gt; while sending &lt;STRONG&gt;three 32-bit frames&lt;/STRONG&gt; sequentially.&lt;BR /&gt;However, in this case, &lt;STRONG&gt;the SCK stops after each 32-bit transfer before resuming&lt;/STRONG&gt;, which is causing an issue.&lt;/P&gt;&lt;P&gt;From your response, I understand that &lt;STRONG&gt;if FrameSize is set to 64 bits, I can send 64 bits + 32 bits in two separate transfers&lt;/STRONG&gt;.&lt;BR /&gt;But my goal is to &lt;STRONG&gt;transmit all 96 bits continuously without any interruption in SCK (Continuous Transfer)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Is there a way to achieve this, ensuring that &lt;STRONG&gt;SCK does not stop between frames&lt;/STRONG&gt; during the transmission of 96 bits?&lt;BR /&gt;Would enabling &lt;STRONG&gt;TCR[CONT] or TCR[CONTC]&lt;/STRONG&gt; help in solving this issue?&lt;/P&gt;&lt;P&gt;I appreciate your insights.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 08:31:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2044396#M45904</guid>
      <dc:creator>malove</dc:creator>
      <dc:date>2025-02-14T08:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication Issue with OA TC6 SPI Protoco</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2044844#M45931</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241168"&gt;@malove&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your understanding&amp;nbsp;of the frame size is correct, however the frame size is limited by hardware as shown in the image below.&amp;nbsp;Therefore, it is not possible to transmit an only frame of 96 bits.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RomanVR_0-1739572398145.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324099i39BD8A01E48D8570/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RomanVR_0-1739572398145.png" alt="RomanVR_0-1739572398145.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp;the registers in continuous transfer mode are also limited by the maximum frame size as mentioned in chapter 70 of the S32K3XX Reference Manual Rev. 9 (registers CONT, CONTC).&lt;/P&gt;
&lt;P&gt;Please let me know if this information was helpful.&lt;/P&gt;
&lt;P&gt;- RomanVR.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 22:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2044844#M45931</guid>
      <dc:creator>RomanVR</dc:creator>
      <dc:date>2025-02-14T22:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication Issue with OA TC6 SPI Protoco</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2044980#M45940</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/243613"&gt;@RomanVR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you once again for your kind response.&lt;/P&gt;&lt;P&gt;I understood your answer as &lt;STRONG&gt;&lt;EM&gt;"It is not possible to specify a Frame Size exceeding 64 bits."&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, as shown in the image below, enabling the &lt;STRONG&gt;"SPI Enable Large Frame Size"&lt;/STRONG&gt; function allows the generation of a Frame Size exceeding 64 bits.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malove_3-1739748567109.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324146iD39FC9C841770D84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malove_3-1739748567109.png" alt="malove_3-1739748567109.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="malove_5-1739748624581.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324148i2703AA7314CAD3BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malove_5-1739748624581.png" alt="malove_5-1739748624581.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="malove_4-1739748597267.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324147i09AAA76237977480/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malove_4-1739748597267.png" alt="malove_4-1739748597267.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- From top to bottom: SCK, CS, MISO, MOSI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Frame Size is set to 64 bits, the output appears as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malove_2-1739748533360.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324145iEA6484FA0E93491E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malove_2-1739748533360.png" alt="malove_2-1739748533360.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="malove_0-1739748237937.png" style="width: 540px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/324143iA674579955A1D81F/image-dimensions/540x158?v=v2" width="540" height="158" role="button" title="malove_0-1739748237937.png" alt="malove_0-1739748237937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, 64 bits are output, and a gap occurs in between. This seems slightly different from what you described. How should I interpret this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 23:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2044980#M45940</guid>
      <dc:creator>malove</dc:creator>
      <dc:date>2025-02-16T23:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Communication Issue with OA TC6 SPI Protoco</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2045762#M45978</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241168"&gt;@malove&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I apologize for the confusion, I&amp;nbsp;assumed that you were using SPI with MCAL layer,&amp;nbsp;but with IP you can configure a transmission for a data width &amp;gt; 64 bits just as you have shown for the 128 bit transmission.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About the gap you are&amp;nbsp;observing in the clock signal when configuring the frame size of 64 bits, I assume&amp;nbsp;you are transmitting more than 64 bits.&amp;nbsp;If that’s the case the gap is caused because of the differences between the frame size and the data size.&amp;nbsp;Since you are transmitting more information, once the first frame is&amp;nbsp;sent, a second transmission for the remaining bytes is initiated; as a second frame is sent, the SCK goes low before being active again.&lt;/P&gt;
&lt;P&gt;Please let me know if this answers your question and if you have more doubts.&lt;/P&gt;
&lt;P&gt;- RomanVR.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 22:06:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Communication-Issue-with-OA-TC6-SPI-Protoco/m-p/2045762#M45978</guid>
      <dc:creator>RomanVR</dc:creator>
      <dc:date>2025-02-17T22:06:25Z</dc:date>
    </item>
  </channel>
</rss>

