<?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 S32K1 LPSPI half duplex without using SDK or RTD in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K1-LPSPI-half-duplex-without-using-SDK-or-RTD/m-p/1759373#M28749</link>
    <description>&lt;P&gt;Hello&lt;SPAN&gt; &lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001" target="_blank"&gt;@danielmartynek&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to use S32K148 LPSPI module to communicate with a RF module. I don't want to use SDK or RTD drivers. The module interface is based on 3-wire SPI (half duplex). The communication method is that first I send a byte(register address) on the data line and then the slave module puts a byte(register read data) on the SDIO (data line) in response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image below is a part of the slave module datasheet. As shown in the picture, the manufacturer recommends that the MCU changes the state of its data line to the input before the last falling edge of the clock, so that it does not overlap with the time, slave turns to output state (which occurs after the mentioned falling edge).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Jembed_0-1700367835846.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250513i02BA8CDC203E48EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jembed_0-1700367835846.png" alt="Jembed_0-1700367835846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I have specified in the image above, I guess that the MCU changes the state of the SDIO line to input, after the recommended edge, and there is an interval of time in which both sides are at output state.&lt;/P&gt;&lt;P&gt;I want to use the register level routine, introduced in this topic:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/td-p/1342666" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/td-p/1342666&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What should I do to make sure that the warned contention will not occur on the SDIO line?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 13:07:06 GMT</pubDate>
    <dc:creator>Jembed</dc:creator>
    <dc:date>2023-11-20T13:07:06Z</dc:date>
    <item>
      <title>S32K1 LPSPI half duplex without using SDK or RTD</title>
      <link>https://community.nxp.com/t5/S32K/S32K1-LPSPI-half-duplex-without-using-SDK-or-RTD/m-p/1759373#M28749</link>
      <description>&lt;P&gt;Hello&lt;SPAN&gt; &lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001" target="_blank"&gt;@danielmartynek&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to use S32K148 LPSPI module to communicate with a RF module. I don't want to use SDK or RTD drivers. The module interface is based on 3-wire SPI (half duplex). The communication method is that first I send a byte(register address) on the data line and then the slave module puts a byte(register read data) on the SDIO (data line) in response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The image below is a part of the slave module datasheet. As shown in the picture, the manufacturer recommends that the MCU changes the state of its data line to the input before the last falling edge of the clock, so that it does not overlap with the time, slave turns to output state (which occurs after the mentioned falling edge).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Jembed_0-1700367835846.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/250513i02BA8CDC203E48EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Jembed_0-1700367835846.png" alt="Jembed_0-1700367835846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I have specified in the image above, I guess that the MCU changes the state of the SDIO line to input, after the recommended edge, and there is an interval of time in which both sides are at output state.&lt;/P&gt;&lt;P&gt;I want to use the register level routine, introduced in this topic:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/td-p/1342666" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K/S32K-3-Wire-SPI-Drivers/td-p/1342666&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What should I do to make sure that the warned contention will not occur on the SDIO line?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 13:07:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K1-LPSPI-half-duplex-without-using-SDK-or-RTD/m-p/1759373#M28749</guid>
      <dc:creator>Jembed</dc:creator>
      <dc:date>2023-11-20T13:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: S32K1 LPSPI half duplex without using SDK or RTD</title>
      <link>https://community.nxp.com/t5/S32K/S32K1-LPSPI-half-duplex-without-using-SDK-or-RTD/m-p/1761963#M28891</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225918"&gt;@Jembed&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please find my test project attached.&lt;/P&gt;
&lt;P&gt;It sends one 16b frame (RXMSK = 1) and reads one 16bit frame (TXMSK = 1) in continous mode (CPHA = 0, CPOL = 0, PINCFG = 2, OUTCFG = 1 ).&lt;/P&gt;
&lt;P&gt;SOUT (PTB16) is connected to a voltage divider, SOUT = 2.7V in High-Z mode.&lt;/P&gt;
&lt;P&gt;As you can see, the SOUT is released (High-Z) at the last falling edge of SCK.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1700661299534.png" style="width: 902px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/251117i280AB2CFAF6BB815/image-dimensions/902x381?v=v2" width="902" height="381" role="button" title="danielmartynek_0-1700661299534.png" alt="danielmartynek_0-1700661299534.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;</description>
      <pubDate>Wed, 22 Nov 2023 13:56:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K1-LPSPI-half-duplex-without-using-SDK-or-RTD/m-p/1761963#M28891</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-11-22T13:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K1 LPSPI half duplex without using SDK or RTD</title>
      <link>https://community.nxp.com/t5/S32K/S32K1-LPSPI-half-duplex-without-using-SDK-or-RTD/m-p/1764873#M29087</link>
      <description>Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;,&lt;BR /&gt;Thanks for your response. Is this behavior confirmed in the S32K1 reference manual or any other official documents from NXP?</description>
      <pubDate>Tue, 28 Nov 2023 11:29:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K1-LPSPI-half-duplex-without-using-SDK-or-RTD/m-p/1764873#M29087</guid>
      <dc:creator>Jembed</dc:creator>
      <dc:date>2023-11-28T11:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32K1 LPSPI half duplex without using SDK or RTD</title>
      <link>https://community.nxp.com/t5/S32K/S32K1-LPSPI-half-duplex-without-using-SDK-or-RTD/m-p/1764934#M29094</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225918"&gt;@Jembed&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It is not explicitly stated in the S32K1xx documentation.&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>Tue, 28 Nov 2023 13:17:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K1-LPSPI-half-duplex-without-using-SDK-or-RTD/m-p/1764934#M29094</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-11-28T13:17:52Z</dc:date>
    </item>
  </channel>
</rss>

