<?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 s32k314 spi clock and mode in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k314-spi-clock-and-mode/m-p/2345522#M57721</link>
    <description>&lt;P&gt;hello.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using s32ds RTD4.0.0 and s32k314.&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i am developing spi communication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i test work well spi mode1,2 (cpol 0, cpha 1 / cpol0, cpha 0).&lt;/P&gt;&lt;P&gt;this modes work well.&lt;/P&gt;&lt;P&gt;but i should use spi mode 3 and it does not work well. data has crack.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i check clock.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spi clock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/381328i903EB94FCB76BBA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so before clock start, that has weird clock.&amp;nbsp;&lt;/P&gt;&lt;P&gt;why s32k314 make that? every modes are same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fortunately, Modes 1 and 2 are read because their clock idle state is 0. However, Modes 3 and 4 are read when their clock idle state is 1, so a problem occurs due to the clock in that photo.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. How can I get rid of that noise before the clock starts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;I am using PS0 for SPI communication. However, to receive data from the SPI-enabled IC chip, I need to set the CS (Critical State) to low via GPIO to receive 4 bytes to determine the data length, and then maintain the CS to receive data up to that length. Currently, I am receiving data by controlling the CS via GPIO as shown in the picture (for example only). Please let me know if there is a way to achieve this functionality by assigning it to PS0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 851px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/381327i496F8758EFBAE5D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Note: SPI communication modes 1 and 2 work well, but modes 3 and 4 do not function properly. (Interesting data is inserted due to the clock.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank to help.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Apr 2026 23:26:20 GMT</pubDate>
    <dc:creator>rlaxortn</dc:creator>
    <dc:date>2026-04-05T23:26:20Z</dc:date>
    <item>
      <title>s32k314 spi clock and mode</title>
      <link>https://community.nxp.com/t5/S32K/s32k314-spi-clock-and-mode/m-p/2345522#M57721</link>
      <description>&lt;P&gt;hello.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using s32ds RTD4.0.0 and s32k314.&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i am developing spi communication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i test work well spi mode1,2 (cpol 0, cpha 1 / cpol0, cpha 0).&lt;/P&gt;&lt;P&gt;this modes work well.&lt;/P&gt;&lt;P&gt;but i should use spi mode 3 and it does not work well. data has crack.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i check clock.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;spi clock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/381328i903EB94FCB76BBA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so before clock start, that has weird clock.&amp;nbsp;&lt;/P&gt;&lt;P&gt;why s32k314 make that? every modes are same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fortunately, Modes 1 and 2 are read because their clock idle state is 0. However, Modes 3 and 4 are read when their clock idle state is 1, so a problem occurs due to the clock in that photo.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. How can I get rid of that noise before the clock starts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;I am using PS0 for SPI communication. However, to receive data from the SPI-enabled IC chip, I need to set the CS (Critical State) to low via GPIO to receive 4 bytes to determine the data length, and then maintain the CS to receive data up to that length. Currently, I am receiving data by controlling the CS via GPIO as shown in the picture (for example only). Please let me know if there is a way to achieve this functionality by assigning it to PS0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 851px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/381327i496F8758EFBAE5D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Note: SPI communication modes 1 and 2 work well, but modes 3 and 4 do not function properly. (Interesting data is inserted due to the clock.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank to help.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2026 23:26:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k314-spi-clock-and-mode/m-p/2345522#M57721</guid>
      <dc:creator>rlaxortn</dc:creator>
      <dc:date>2026-04-05T23:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: s32k314 spi clock and mode</title>
      <link>https://community.nxp.com/t5/S32K/s32k314-spi-clock-and-mode/m-p/2346103#M57750</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;rlaxortn&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;1.Regarding your first question, the clock is pulled low at the beginning, which is similar to a known issue description.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 494px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/381412i994E51DEF7BEEE3D/image-dimensions/494x397?v=v2" width="494" height="397" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can try modifying it as follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 487px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/381411i11CA05C5605A59EB/image-dimensions/487x284?v=v2" width="487" height="284" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2.Regarding your second question, I don't understand why you didn't send the entire length of 4 + 19 = 23 bits at once, instead of sending 4 and 19 bytes separately.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2026 08:22:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k314-spi-clock-and-mode/m-p/2346103#M57750</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2026-04-07T08:22:47Z</dc:date>
    </item>
  </channel>
</rss>

