<?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のトピックRe: S32K 3-Wire SPI Drivers</title>
    <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352489#M12382</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181172"&gt;@Vijay_Arwapally&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please try without CONT/CONTC, these are for continuous transfer.&lt;/P&gt;
&lt;P&gt;Do you see any LPSPI error flags?&lt;/P&gt;
&lt;P&gt;Can you share the project so that I can test it?&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;</description>
    <pubDate>Fri, 08 Oct 2021 08:07:03 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2021-10-08T08:07:03Z</dc:date>
    <item>
      <title>S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342666#M12155</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61445"&gt;@nxp&lt;/a&gt;, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide me with example drivers for 3 Wire SPI or Half Duplex configuration?&lt;/P&gt;&lt;P&gt;SDK doesn't seem to have this capability directly.&lt;/P&gt;&lt;P&gt;Transaction with sensors looks like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vijay_Arwapally_0-1632129021555.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156495i1D27ED7E244B44A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vijay_Arwapally_0-1632129021555.png" alt="Vijay_Arwapally_0-1632129021555.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 09:35:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342666#M12155</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-09-20T09:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342693#M12157</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181172"&gt;@Vijay_Arwapally&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can pass NULL to the receiveBuffer parameter.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1632133587767.png" style="width: 580px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156501iBCDE7C2412FD05C9/image-dimensions/580x369?v=v2" width="580" height="369" role="button" title="danielmartynek_0-1632133587767.png" alt="danielmartynek_0-1632133587767.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And you don't have to use any pin for the MISO signal in the PORT module.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 10:27:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342693#M12157</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-09-20T10:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342711#M12159</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;The communication to the interfaced sensor isn't unidirectional. S32K has to send and receive data from the sensor, as specified in the diagram.&lt;/P&gt;&lt;P&gt;Passing a NULL to receive isn't valid, basically the master still need to provide clk and cs while the data line is driven by slave.&lt;/P&gt;&lt;P&gt;Your answer doesn't seem to right in this context.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 10:48:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342711#M12159</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-09-20T10:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342719#M12160</link>
      <description>&lt;P&gt;I see, thank you.&lt;/P&gt;
&lt;P&gt;The SDK does not support that but the LPSPI module does.&lt;/P&gt;
&lt;P&gt;Please refer to the RM.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1632135896990.png" style="width: 626px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156506iFC5003EB88056AEB/image-dimensions/626x83?v=v2" width="626" height="83" role="button" title="danielmartynek_0-1632135896990.png" alt="danielmartynek_0-1632135896990.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1632135963889.png" style="width: 718px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156507i37031D2A9BD91DCD/image-dimensions/718x129?v=v2" width="718" height="129" role="button" title="danielmartynek_1-1632135963889.png" alt="danielmartynek_1-1632135963889.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_2-1632136013826.png" style="width: 718px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156508i75853B3E7869498D/image-dimensions/718x128?v=v2" width="718" height="128" role="button" title="danielmartynek_2-1632136013826.png" alt="danielmartynek_2-1632136013826.png" /&gt;&lt;/span&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 11:07:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342719#M12160</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-09-20T11:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342740#M12162</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;:&lt;/P&gt;&lt;P&gt;Can you provide some additional information abt these register fields? how should they be controlled in below situations?&lt;/P&gt;&lt;P&gt;1. S32K sends 'n' bytes data to Sensor, no response expected.&lt;/P&gt;&lt;P&gt;2. S32K sends 'x' bytes of command, expected 'n' bytes response from slave, additionally PCS line shouldn't be re-asserted.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 11:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342740#M12162</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-09-20T11:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342787#M12165</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181172"&gt;@Vijay_Arwapally&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You need to use different commands for the operations.&lt;/P&gt;
&lt;P&gt;Please note that the Transmit Command Register (TCR) is not just a register, it is a FIFO, so do not use read-modify-write operations on the register but write the register with 32bit words.&lt;/P&gt;
&lt;P&gt;In order to send data, first write a command with RXMSK set and then all the data to the&amp;nbsp;Transmit Data Register (TDR).&lt;/P&gt;
&lt;P&gt;To receive a frame from the Slave device, write a command with&amp;nbsp;TXMSK set.&lt;/P&gt;
&lt;P&gt;Please read Section 51.4.2.1 Transmit and Command FIFO commands in the RM.&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;</description>
      <pubDate>Mon, 20 Sep 2021 13:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1342787#M12165</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-09-20T13:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1349146#M12285</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;:&lt;/P&gt;&lt;P&gt;Tried the above approach by modifying the required implementation in SDK files.&lt;/P&gt;&lt;P&gt;Below are the issues currently being faced:&lt;/P&gt;&lt;P&gt;Weather RXMSK is set/cleared, RDR has no valid data. Always reads Zero. Is there something I missing here?&lt;/P&gt;&lt;P&gt;RX Interrupt is triggered and the length seems to be matching with data on bus, but the data value isn't populated to RDR register.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 13:00:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1349146#M12285</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-09-30T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1349181#M12287</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181172"&gt;@Vijay_Arwapally&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If RXMSK = 1, the RX data are masked so this is expected.&lt;/P&gt;
&lt;P&gt;Please close the register/memory views in the debugger so that it can't read the RDR register.&lt;/P&gt;
&lt;P&gt;The SDK does not support this implementation and I can't help you with the modifications.&lt;/P&gt;
&lt;P&gt;I would focus on the TCR register and how the commends are being written.&lt;/P&gt;
&lt;P&gt;But I think it would be easier to write your own LPSPI functions.&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, 30 Sep 2021 14:15:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1349181#M12287</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-09-30T14:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1351653#M12357</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried to perform the below operation, but still unable to get the SPI transaction correct on the bus:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Command byte is 0x8F, expected 1 byte response from slave device.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code snippet:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;while&lt;/STRONG&gt;((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_MBF_SHIFT!=0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Reset FIFO */&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPSPI1-&amp;gt;CR |= LPSPI_CR_RRF(1)|LPSPI_CR_RTF(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPSPI1-&amp;gt;CR |= LPSPI_CR_RRF(1)|LPSPI_CR_RTF(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPSPI1-&amp;gt;SR = 0x3F00;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Check for FIFO &lt;U&gt;availablity&lt;/U&gt; */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;while&lt;/STRONG&gt;((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_TDF_SHIFT==0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPSPI1-&amp;gt;TCR&amp;nbsp;&amp;nbsp; = LPSPI_TCR_CPOL(1) | LPSPI_TCR_CPHA(1)|LPSPI_TCR_LSBF(0)|LPSPI_TCR_CONT(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;|LPSPI_TCR_PRESCALE(2)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;|LPSPI_TCR_PCS(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;|LPSPI_TCR_FRAMESZ(7)|LPSPI_TCR_RXMSK(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Send &lt;U&gt;cmd&lt;/U&gt; byte of 0x8F */&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPSPI1-&amp;gt;TDR = 0x8F;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Send command with TXMSK for response */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;while&lt;/STRONG&gt;((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_TDF_SHIFT==0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPSPI1-&amp;gt;TCR = LPSPI_TCR_CPOL(1) | LPSPI_TCR_CPHA(1)|LPSPI_TCR_LSBF(0)|LPSPI_TCR_CONTC(1)|LPSPI_TCR_CONT(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;|LPSPI_TCR_PRESCALE(2)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;|LPSPI_TCR_PCS(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;|LPSPI_TCR_FRAMESZ(7)|LPSPI_TCR_RXMSK(0)|LPSPI_TCR_TXMSK(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* End of transfer */&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;while&lt;/STRONG&gt;((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_TDF_SHIFT==0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPSPI1-&amp;gt;TCR = ((LPSPI1-&amp;gt;TCR) &amp;amp; (~LPSPI_TCR_CONTC_MASK));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logic analyser Capture:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vijay_Arwapally_0-1633586225566.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158426i9073F5118E15FEA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vijay_Arwapally_0-1633586225566.png" alt="Vijay_Arwapally_0-1633586225566.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please let me know why isn’t the CS extending for the TXMSK byte?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 05:57:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1351653#M12357</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-10-07T05:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352342#M12377</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;Any comments on the code snippet?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 05:37:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352342#M12377</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-10-08T05:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352489#M12382</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181172"&gt;@Vijay_Arwapally&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please try without CONT/CONTC, these are for continuous transfer.&lt;/P&gt;
&lt;P&gt;Do you see any LPSPI error flags?&lt;/P&gt;
&lt;P&gt;Can you share the project so that I can test it?&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;</description>
      <pubDate>Fri, 08 Oct 2021 08:07:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352489#M12382</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-10-08T08:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352641#M12388</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;Attached the sample project. CONT/CONTC needs to used, as I would need continuous transfer, without CS being reasserted for command and response.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 11:47:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352641#M12388</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-10-08T11:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352660#M12389</link>
      <description>&lt;P&gt;The project you posted uses SDK. I don't see the code you posted earlier.&lt;/P&gt;
&lt;P&gt;Is this really it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 12:16:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352660#M12389</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-10-08T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352667#M12390</link>
      <description>&lt;P&gt;Sorry for the wrong upload, Attached the correct project.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 12:23:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1352667#M12390</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-10-08T12:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1353403#M12399</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp; Did you get a chance to review the code?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 08:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1353403#M12399</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-10-11T08:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1353532#M12401</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181172"&gt;@Vijay_Arwapally&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I modified the project (attached), especially the LPSPI1_ReadReg() function.&lt;/P&gt;
&lt;P&gt;I get 0x8F80 on the bus.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1633955073379.png" style="width: 716px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158779i4A5864E3A5AFEE65/image-dimensions/716x154?v=v2" width="716" height="154" role="button" title="danielmartynek_0-1633955073379.png" alt="danielmartynek_0-1633955073379.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Probably because I don't use any slave on the bus and the data line slowly discharges.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 12:25:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1353532#M12401</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-10-11T12:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1354660#M12426</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;This seems like working for only 1 byte read from slave.&lt;/P&gt;&lt;P&gt;What would be the sequence to TCR, incase it is required to read multiple bytes from slave?&lt;/P&gt;&lt;P&gt;Below sequence to TCR doesn't seem to work:&lt;/P&gt;&lt;P&gt;/* Check for FIFO availablity */&lt;BR /&gt;while((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_TDF_SHIFT==0);&lt;BR /&gt;LPSPI1-&amp;gt;TCR = LPSPI_TCR_CPOL(1) | LPSPI_TCR_CPHA(1)|LPSPI_TCR_LSBF(0)|LPSPI_TCR_CONT(1)&lt;BR /&gt;|LPSPI_TCR_PRESCALE(2)&lt;BR /&gt;|LPSPI_TCR_PCS(0)&lt;BR /&gt;|LPSPI_TCR_FRAMESZ(7)|LPSPI_TCR_RXMSK(1)|LPSPI_TCR_TXMSK(0);&lt;BR /&gt;/* Send cmd byte of 0x8F */&lt;BR /&gt;LPSPI1-&amp;gt;TDR = 0x8F;&lt;/P&gt;&lt;P&gt;/* Send command with TXMSK for response */&lt;BR /&gt;while((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_TDF_SHIFT==0);&lt;BR /&gt;LPSPI1-&amp;gt;TCR = LPSPI_TCR_CPOL(1) | LPSPI_TCR_CPHA(1)|LPSPI_TCR_LSBF(0)|LPSPI_TCR_CONTC(1)|LPSPI_TCR_CONT(1)&lt;BR /&gt;|LPSPI_TCR_PRESCALE(2)&lt;BR /&gt;|LPSPI_TCR_PCS(0)&lt;BR /&gt;|LPSPI_TCR_FRAMESZ(7)|LPSPI_TCR_RXMSK(0)|LPSPI_TCR_TXMSK(1);&lt;/P&gt;&lt;P&gt;/* Send command with TXMSK for response */&lt;BR /&gt;while((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_TDF_SHIFT==0);&lt;BR /&gt;LPSPI1-&amp;gt;TCR = LPSPI_TCR_CPOL(1) | LPSPI_TCR_CPHA(1)|LPSPI_TCR_LSBF(0)|LPSPI_TCR_CONTC(1)|LPSPI_TCR_CONT(1)&lt;BR /&gt;|LPSPI_TCR_PRESCALE(2)&lt;BR /&gt;|LPSPI_TCR_PCS(0)&lt;BR /&gt;|LPSPI_TCR_FRAMESZ(7)|LPSPI_TCR_RXMSK(0)|LPSPI_TCR_TXMSK(1);&lt;BR /&gt;&lt;BR /&gt;while((LPSPI1-&amp;gt;SR &amp;amp; LPSPI_SR_TDF_MASK)&amp;gt;&amp;gt;LPSPI_SR_TDF_SHIFT==0);&lt;BR /&gt;LPSPI1-&amp;gt;TCR = LPSPI_TCR_CPOL(1) | LPSPI_TCR_CPHA(1)|LPSPI_TCR_LSBF(0)|LPSPI_TCR_CONTC(0)|LPSPI_TCR_CONT(0)&lt;BR /&gt;|LPSPI_TCR_PRESCALE(2)&lt;BR /&gt;|LPSPI_TCR_PCS(0)&lt;BR /&gt;|LPSPI_TCR_FRAMESZ(7)|LPSPI_TCR_RXMSK(0)|LPSPI_TCR_TXMSK(1);&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 06:10:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1354660#M12426</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-10-13T06:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1354791#M12427</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp; Also is there a better way to use FIFO, for TXMSK(1), without using RDF flag set status.&lt;/P&gt;&lt;P&gt;We would need a final driver to work in interrupt manner rather than polling mechanism.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 08:35:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1354791#M12427</guid>
      <dc:creator>Vijay_Arwapally</dc:creator>
      <dc:date>2021-10-13T08:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1354812#M12428</link>
      <description>&lt;P&gt;Hello&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181172"&gt;@Vijay_Arwapally&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I haven't tested the new code, but I assume it does not work because you don't read the RX data.&lt;/P&gt;
&lt;P&gt;Do you use the Receive Error Flag set?&lt;/P&gt;
&lt;P&gt;You can increase the RXWATER level from 0, the RDF will be set once there are 3 words - for example, and then you can read the FIFO until RDF = 0.&lt;/P&gt;
&lt;P&gt;And as you mentioned, you can use the Receive Data Interrupt (IER_RDIE) instead of polling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 08:58:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1354812#M12428</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-10-13T08:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32K 3-Wire SPI Drivers</title>
      <link>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1356562#M12466</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181172"&gt;@Vijay_Arwapally&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you don't have to use SDK, the new RTD LPSPI driver supports the half-duplex mode.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1634311714432.png" style="width: 580px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/159240iCE9E62B80BF564BE/image-dimensions/580x515?v=v2" width="580" height="515" role="button" title="danielmartynek_1-1634311714432.png" alt="danielmartynek_1-1634311714432.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you need to keep CS asserted between the TX and the RX functions, you would need to use GPIO as CS and disconnect the LPSPI signal from the pin in the PORT module.&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;</description>
      <pubDate>Fri, 15 Oct 2021 15:29:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/m-p/1356562#M12466</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-10-15T15:29:14Z</dc:date>
    </item>
  </channel>
</rss>

