<?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: 3-Wire SPI Configuration SDK in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1659282#M3115</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188570"&gt;@maximillion&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The S32K1 does not need to have HW modification, if you configure MOSI as input and output you don have to use any pin for the MISO signal in the PORT module. Also for the other device, the connections depend on its specifications.&lt;/P&gt;
&lt;P&gt;Regarding the Configuration Register 1 (CFGR1) value, PINCFG configures SOUT as input and output data, OUTCFG configures the output data as tristated when chip select is negated and PCSCFG configures PCS[3:2] for chip select function. For 3-wire SPI CFGR1 = 0x6000001 is correct, the other bits depend on your application.&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2023 18:53:55 GMT</pubDate>
    <dc:creator>VaneB</dc:creator>
    <dc:date>2023-05-29T18:53:55Z</dc:date>
    <item>
      <title>3-Wire SPI Configuration SDK</title>
      <link>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1657475#M3108</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;"The functions implemented at the SDK for LPSPI do not have "native support" for 3-wire. So it required to make some changes to support half duplex mode." according to this sentence I have changed to support half duplex mode.&amp;nbsp;I changed to support half duplex mode these functions LPSPI_DRV_MasterInit(..), LPSPI_SetPinConfigMode(..) according to reference manual.&lt;/P&gt;&lt;P&gt;Below is the only information I found in the reference manual about tristate SPI.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="maximillion_0-1685002591791.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/224820i21E10AF958D87AB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="maximillion_0-1685002591791.png" alt="maximillion_0-1685002591791.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;According to this information my CFGR1 value is&amp;nbsp;Hex:0x6000001.&amp;nbsp;&lt;/P&gt;&lt;P&gt;lpspi_pin_config_t pinCfg is =&amp;nbsp;LPSPI_SDO_IN_OUT.&lt;/P&gt;&lt;P&gt;lpspi_data_out_config_t dataOutConfig =&amp;nbsp;LPSPI_DATA_OUT_TRISTATE.&lt;/P&gt;&lt;P&gt;bool pcs3and2Enable = true.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please confirm that configuration and CFGR1 value.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Secondly is there any require HW modification like depicted in the below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="maximillion_1-1685003023627.jpeg" style="width: 294px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/224821iDD9FF791D207CB63/image-dimensions/294x117?v=v2" width="294" height="117" role="button" title="maximillion_1-1685003023627.jpeg" alt="maximillion_1-1685003023627.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Our schematic design does not have a 10K resistor between MOSI and MISO; instead, it has a 0-ohm resistor. MUST there be a 10K or 1K resistor? Please confirm schematic design.&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I use&amp;nbsp;S32SDK_S32K1xx_RTM_3.0.0 and S32 Design Studio v2.2&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I know&lt;/P&gt;&lt;P&gt;"Included on the RTDs comes an example of SPI half duplex transfer. I suggest you take a look at this software supported by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=S32DS-3-4&amp;amp;_gl=1*c7vvtf*_ga*NTcxMDk4NDc3LjE2ODQ5OTY2ODM.*_ga_WM5LE0KMSH*MTY4NTAwMTI1MC4yLjEuMTY4NTAwMjE2My4wLjAuMA.." target="_blank" rel="noopener nofollow noreferrer"&gt;S32DS v3.4&lt;/A&gt;.&lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K1-RTD44-D" target="_blank" rel="noopener nofollow noreferrer"&gt;Real-Time Drivers for S32K1&lt;/A&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>Thu, 25 May 2023 08:29:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1657475#M3108</guid>
      <dc:creator>maximillion</dc:creator>
      <dc:date>2023-05-25T08:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: 3-Wire SPI Configuration SDK</title>
      <link>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1658646#M3111</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188570"&gt;@maximillion&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I answered you in this &lt;A href="https://community.nxp.com/t5/S32K/9-Bit-SPI-with-DMA/m-p/1656341/highlight/false#M23235" target="_self"&gt;post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 22:19:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1658646#M3111</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-05-26T22:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: 3-Wire SPI Configuration SDK</title>
      <link>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1658750#M3112</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Secondly is there any require HW modification like depicted in the below.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Isn't the CFGR1 value the same in all 3-wire SPI configurations? So can you confirm that value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for answering my those questions.&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2023 14:10:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1658750#M3112</guid>
      <dc:creator>maximillion</dc:creator>
      <dc:date>2023-05-28T14:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: 3-Wire SPI Configuration SDK</title>
      <link>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1659282#M3115</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188570"&gt;@maximillion&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The S32K1 does not need to have HW modification, if you configure MOSI as input and output you don have to use any pin for the MISO signal in the PORT module. Also for the other device, the connections depend on its specifications.&lt;/P&gt;
&lt;P&gt;Regarding the Configuration Register 1 (CFGR1) value, PINCFG configures SOUT as input and output data, OUTCFG configures the output data as tristated when chip select is negated and PCSCFG configures PCS[3:2] for chip select function. For 3-wire SPI CFGR1 = 0x6000001 is correct, the other bits depend on your application.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 18:53:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1659282#M3115</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-05-29T18:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: 3-Wire SPI Configuration SDK</title>
      <link>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1659844#M3119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still confused about TXMSK.&lt;BR /&gt;Let me explain my LPSPI0 configuration.&lt;BR /&gt;1- I use DMA for SPI configuration and I did not set any RX DMA channel because would transmit and receive data at same channel. I set only TX DMA channel. PS continuous is not selected and and bits/frame value is 9.&lt;/P&gt;&lt;P&gt;So TX DMA channel should receive and transmit data. In that case according to your mention TXMSK should be set. I set TXMSK at the LPSPI_DRV_MasterStartTransfer function. Is this correct?&lt;BR /&gt;But when I called LPSPI_DRV_MasterGetTransferStatus it return STATUS_BUSY. This value has not changed any time.&lt;/P&gt;&lt;P&gt;Do you have any advice about this topic?&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 10:32:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/3-Wire-SPI-Configuration-SDK/m-p/1659844#M3119</guid>
      <dc:creator>maximillion</dc:creator>
      <dc:date>2023-05-30T10:32:11Z</dc:date>
    </item>
  </channel>
</rss>

