<?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: S32k146 SPI lines in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32k146-SPI-lines/m-p/2105317#M49266</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250953"&gt;@Benin_R&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The LPSPI HW module allows these two options only:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1748350489593.png" style="width: 787px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339962i7129CF265CB55D20/image-dimensions/787x107?v=v2" width="787" height="107" role="button" title="danielmartynek_0-1748350489593.png" alt="danielmartynek_0-1748350489593.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In your use case, set OUTCFG to 1 = Output data is tris-tated when chip select is negated.&lt;/P&gt;
&lt;P&gt;If the module tri-states the MOSI pin, the line is floating, and due to capacitance or leakage, it may appear to be driven/pulled during the transaction.&amp;nbsp;To ensure MOSI is low when the module stri-states the pin, use an external pull-down.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The internal pull devices are weak and available for digital inputs only:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_2-1748351056055.png" style="width: 785px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339967i89F9D59ED426C761/image-dimensions/785x236?v=v2" width="785" height="236" role="button" title="danielmartynek_2-1748351056055.png" alt="danielmartynek_2-1748351056055.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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2025 13:05:42 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2025-05-27T13:05:42Z</dc:date>
    <item>
      <title>S32k146 SPI lines</title>
      <link>https://community.nxp.com/t5/S32K/S32k146-SPI-lines/m-p/2105127#M49245</link>
      <description>&lt;P&gt;I'm working with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;S32K146 microcontroller&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and interfacing it with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ADS8341 ADC&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;over SPI. In this setup, the S32K146 acts as the SPI master, and the ADS8341 is the slave device.&lt;/P&gt;&lt;P&gt;According to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;timing diagram in the ADS8341 datasheet&lt;/STRONG&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;MOSI line is expected to stay low&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;during the entire slave response phase (after the command is sent from the master). However, in our implementation, we observe that the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;MOSI line goes high at the end of the transaction&lt;/STRONG&gt;, even though no pull-up or pull-down resistors are connected to the line.&lt;/P&gt;&lt;P&gt;We modified the&amp;nbsp;&lt;STRONG&gt;LPSPI driver to tri-stating the MOSI pin&lt;/STRONG&gt;. Still we are getting a high pulse after the slave talks. This doesn't align with the ADS8341's timing requirements.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My questions are:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is this the expected behaviour of the LPSPI driver?&lt;/LI&gt;&lt;LI&gt;Is there a configuration in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;LPSPI driver&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(or SDK) that allows us to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;keep the MOSI line low (driven low)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;during the entire transaction, including the slave response phase?&lt;/LI&gt;&lt;LI&gt;Has anyone encountered a similar issue when interfacing with ADCs like the ADS8341 that expect specific idle states on MOSI?&lt;/LI&gt;&lt;LI&gt;Would adding an external pull-down resistor be a recommended workaround, or is there a cleaner solution via software configuration?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any insights or suggestions would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 09:20:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k146-SPI-lines/m-p/2105127#M49245</guid>
      <dc:creator>Benin_R</dc:creator>
      <dc:date>2025-05-27T09:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: S32k146 SPI lines</title>
      <link>https://community.nxp.com/t5/S32K/S32k146-SPI-lines/m-p/2105317#M49266</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250953"&gt;@Benin_R&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The LPSPI HW module allows these two options only:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1748350489593.png" style="width: 787px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339962i7129CF265CB55D20/image-dimensions/787x107?v=v2" width="787" height="107" role="button" title="danielmartynek_0-1748350489593.png" alt="danielmartynek_0-1748350489593.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In your use case, set OUTCFG to 1 = Output data is tris-tated when chip select is negated.&lt;/P&gt;
&lt;P&gt;If the module tri-states the MOSI pin, the line is floating, and due to capacitance or leakage, it may appear to be driven/pulled during the transaction.&amp;nbsp;To ensure MOSI is low when the module stri-states the pin, use an external pull-down.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The internal pull devices are weak and available for digital inputs only:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_2-1748351056055.png" style="width: 785px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339967i89F9D59ED426C761/image-dimensions/785x236?v=v2" width="785" height="236" role="button" title="danielmartynek_2-1748351056055.png" alt="danielmartynek_2-1748351056055.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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 13:05:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k146-SPI-lines/m-p/2105317#M49266</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-05-27T13:05:42Z</dc:date>
    </item>
  </channel>
</rss>

