<?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>S32K中的主题 S32K3_SPI_CS problem, when using GPIO to simulate CS</title>
    <link>https://community.nxp.com/t5/S32K/S32K3-SPI-CS-problem-when-using-GPIO-to-simulate-CS/m-p/1564367#M19225</link>
    <description>&lt;P&gt;Hi, all&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;FONT&gt;When I used GPIO to simulate spi's CS, the data was wrong.Can you give me some help?&lt;BR /&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&amp;nbsp; In RTD2.0.0, &amp;nbsp;Lpspi_Ip_AsyncTransmit() calls Lpspi_TransmitTxInit() to initialize the transmission clock and reset. If the (CPOL = 1) mode is used, a low level pulse is generated each time on the SCK. If I use GPIO to simulate the CS pin of the chip, it will be interfered by this low pulse, resulting in abnormal data.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 267px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202964iC32F73FDA2E86A6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 412px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202965iEB2537977C8E2807/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;BRs.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 11:13:04 GMT</pubDate>
    <dc:creator>wuxianlong</dc:creator>
    <dc:date>2022-12-05T11:13:04Z</dc:date>
    <item>
      <title>S32K3_SPI_CS problem, when using GPIO to simulate CS</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-SPI-CS-problem-when-using-GPIO-to-simulate-CS/m-p/1564367#M19225</link>
      <description>&lt;P&gt;Hi, all&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;FONT&gt;When I used GPIO to simulate spi's CS, the data was wrong.Can you give me some help?&lt;BR /&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp;&amp;nbsp; In RTD2.0.0, &amp;nbsp;Lpspi_Ip_AsyncTransmit() calls Lpspi_TransmitTxInit() to initialize the transmission clock and reset. If the (CPOL = 1) mode is used, a low level pulse is generated each time on the SCK. If I use GPIO to simulate the CS pin of the chip, it will be interfered by this low pulse, resulting in abnormal data.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 267px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202964iC32F73FDA2E86A6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 412px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202965iEB2537977C8E2807/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;BRs.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 11:13:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-SPI-CS-problem-when-using-GPIO-to-simulate-CS/m-p/1564367#M19225</guid>
      <dc:creator>wuxianlong</dc:creator>
      <dc:date>2022-12-05T11:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3_SPI_CS problem, when using GPIO to simulate CS</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-SPI-CS-problem-when-using-GPIO-to-simulate-CS/m-p/1566140#M19314</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/191389"&gt;@wuxianlong&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;As seen in the Lpspi_TransmitTxInit function, it is necessary to reset all the registers due to errata ERR050456. As you saw, this is generating the low pulse that is interfering.&lt;BR /&gt;What I suggest is that you modify this function and send the CS after the reset to ensure that does not interfere with the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 18:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-SPI-CS-problem-when-using-GPIO-to-simulate-CS/m-p/1566140#M19314</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2022-12-07T18:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3_SPI_CS problem, when using GPIO to simulate CS</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-SPI-CS-problem-when-using-GPIO-to-simulate-CS/m-p/1613453#M21296</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also using GPIO to simulate CS. I am trying to communicate with an external flash which has a flow chart of:&lt;/P&gt;&lt;P&gt;1 - Write command&lt;/P&gt;&lt;P&gt;2 - Read response&lt;/P&gt;&lt;P&gt;during which CS should be low. However, it is impossible in this case since in second step inevitably an extra pulse will be sent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any workaround for this case?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 17:16:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-SPI-CS-problem-when-using-GPIO-to-simulate-CS/m-p/1613453#M21296</guid>
      <dc:creator>S3RD4R</dc:creator>
      <dc:date>2023-03-11T17:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3_SPI_CS problem, when using GPIO to simulate CS</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-SPI-CS-problem-when-using-GPIO-to-simulate-CS/m-p/1851962#M34514</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm facing the same problem as you. Could you please tell me how you managed to resolve it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 01:48:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-SPI-CS-problem-when-using-GPIO-to-simulate-CS/m-p/1851962#M34514</guid>
      <dc:creator>NemoZhang</dc:creator>
      <dc:date>2024-04-23T01:48:59Z</dc:date>
    </item>
  </channel>
</rss>

