<?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: LPC54608 SPI communication failure ( LPC54608 as Slave SPI ) in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-SPI-communication-failure-LPC54608-as-Slave-SPI/m-p/1752413#M54635</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Because only about 0.1% processors have the issue, I suppose your software and hardware are correct. But if pulling-down the /CS pin of LPC54608 with software configuration can solve the the issue, it is okay.&lt;/P&gt;
&lt;P&gt;For the boards with issue, as you know that there are multiple /CS pin for the same SPI module, you can try to select the other /CS pin as an alternative.&lt;/P&gt;
&lt;P&gt;I have no idea why pull-down /CS with software configuration can solve the issue.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 02:43:02 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2023-11-06T02:43:02Z</dc:date>
    <item>
      <title>LPC54608 SPI communication failure ( LPC54608 as Slave SPI )</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-SPI-communication-failure-LPC54608-as-Slave-SPI/m-p/1743616#M54502</link>
      <description>&lt;P&gt;Hi everyone, I discovered an issue with SPI communication issues with LPC54608 today.&lt;/P&gt;&lt;P&gt;We consider &lt;STRONG&gt;i.MX8&lt;/STRONG&gt; as the Master SPI and &lt;STRONG&gt;LPC54608&lt;/STRONG&gt; as the Slave SPI, and the communication with CS is effective at low&amp;nbsp;voltage levels. The CS pins of &lt;STRONG&gt;i.MX8&lt;/STRONG&gt; and &lt;STRONG&gt;LPC54608&lt;/STRONG&gt; are pulled up by default. When &lt;STRONG&gt;i.MX8&lt;/STRONG&gt; needs to transmit data to &lt;STRONG&gt;LPC54608&lt;/STRONG&gt; through SPI, &lt;STRONG&gt;i.MX8&lt;/STRONG&gt; will configure the CS pin to output 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CS configurations of NXP LPC54608" style="width: 484px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246138iE89DD2713A5905F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="CS configurations.png" alt="CS configurations of NXP LPC54608" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;CS configurations of NXP LPC54608&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN&gt;Currently, most of the 18000 machines we tested have normal SPI communication, but there are still 20 machines that may experience communication issues between i.MX8 and LPC54608.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;The problem is that &lt;STRONG&gt;LPC54608's&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;SPI interrupt&lt;/STRONG&gt;&amp;nbsp;cannot enter. Using an oscilloscope to measure the machine with SPI communication failure, it was found that &lt;SPAN&gt;&lt;STRONG&gt;LPC54608’s&amp;nbsp;DI pin&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;can receive data, but &lt;SPAN&gt;&lt;STRONG&gt;LPC54608’s&amp;nbsp;DO pin&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;cannot send data. &lt;STRONG&gt;I would like to ask for your insights.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI Connection" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246128i01CE31927211B408/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI Connection.png" alt="SPI Connection" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SPI Connection&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We tried to set &lt;SPAN&gt;&lt;STRONG&gt;LPC54608’s&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; CS pin&lt;/STRONG&gt;&amp;nbsp;to &lt;STRONG&gt;pull down&lt;/STRONG&gt;, and surprisingly, SPI communication became possible between &lt;STRONG&gt;i.MX8&lt;/STRONG&gt; and &lt;SPAN&gt;&lt;STRONG&gt;LPC54608&lt;/STRONG&gt;&lt;/SPAN&gt;. However, it is puzzling that whether &lt;SPAN&gt;&lt;STRONG&gt;LPC54608’s&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; CS pin&lt;/STRONG&gt; is set to &lt;STRONG&gt;pull down&lt;/STRONG&gt; or &lt;STRONG&gt;pull up&lt;/STRONG&gt;, &lt;STRONG&gt;the voltage waveform of LPC54608’s CS is correct&lt;/STRONG&gt;. For some unknown reason, when &lt;SPAN&gt;&lt;STRONG&gt;LPC54608’s&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; CS pin&lt;/STRONG&gt; is set to &lt;STRONG&gt;pull up&lt;/STRONG&gt;, communication between &lt;STRONG&gt;i.MX8&lt;/STRONG&gt; and &lt;SPAN&gt;&lt;STRONG&gt;LPC54608&lt;/STRONG&gt;&lt;/SPAN&gt; of this machine cannot be achieved.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LPC54608 CS pull_down" style="width: 473px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246136i1B38A26CB69B600D/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC54608 CS pull_down.png" alt="LPC54608 CS pull_down" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;LPC54608 CS pull_down&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LPC54608 CS pull_up" style="width: 475px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246137iEFDF51138484C030/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC54608 CS pull_up.png" alt="LPC54608 CS pull_up" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;LPC54608 CS pull_up&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can it be possible if we want to set &lt;SPAN&gt;&lt;STRONG&gt;LPC54608’s&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; CS pin&lt;/STRONG&gt; to pull down, which will result in the &lt;STRONG&gt;current&lt;/STRONG&gt; flowing from &lt;STRONG&gt;i.MX8&lt;/STRONG&gt; and &lt;SPAN&gt;&lt;STRONG&gt;LPC54608&lt;/STRONG&gt;&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;Or do you have any more reasonable suggestions for correction?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 09:27:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-SPI-communication-failure-LPC54608-as-Slave-SPI/m-p/1743616#M54502</guid>
      <dc:creator>mega32</dc:creator>
      <dc:date>2023-10-25T09:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 SPI communication failure ( LPC54608 as Slave SPI )</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-SPI-communication-failure-LPC54608-as-Slave-SPI/m-p/1744053#M54514</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When the SPI of LPC54606 is configured as spi slave mode, both the /CS and SCK pins of the LPC54608 are in input mode, the SPI master generates the signal to drive /CS and SCK. If the master drives the /CS in push/pull mode, it does not matter whether you configure the /CS pin of LPC65408 in pull up or down mode, it does matter when the /CS pin of LPC54608 is float. BTW, from the two pictures you gave in both /CS pull-up and down, I do not see any difference for the waveform of /CS signal.&lt;/P&gt;
&lt;P&gt;From theory, any /CS low and SCK toggling will make the slave SPI work, but if you configure the /CS in pull-down mode, it can solve the SPI issue, it is okay.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 02:17:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-SPI-communication-failure-LPC54608-as-Slave-SPI/m-p/1744053#M54514</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-10-23T02:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 SPI communication failure ( LPC54608 as Slave SPI )</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-SPI-communication-failure-LPC54608-as-Slave-SPI/m-p/1747787#M54557</link>
      <description>&lt;P&gt;Dear Mr. &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;:&lt;BR /&gt;Thank you for your answer.&lt;BR /&gt;Yes, as you said 'If the master drives the /CS in push/pull mode, it does not matter whether you configure the /CS pin of LPC65408 in pull up or down mode, it does matter when the /CS pin of LPC54608 is float.',&lt;BR /&gt;but out of 18000 machines, 20 of them have the problem I described.&lt;BR /&gt;I would like to know the reasons for this problem.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yours sincerely,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mega32&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 10:16:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-SPI-communication-failure-LPC54608-as-Slave-SPI/m-p/1747787#M54557</guid>
      <dc:creator>mega32</dc:creator>
      <dc:date>2023-10-27T10:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 SPI communication failure ( LPC54608 as Slave SPI )</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-SPI-communication-failure-LPC54608-as-Slave-SPI/m-p/1752413#M54635</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Because only about 0.1% processors have the issue, I suppose your software and hardware are correct. But if pulling-down the /CS pin of LPC54608 with software configuration can solve the the issue, it is okay.&lt;/P&gt;
&lt;P&gt;For the boards with issue, as you know that there are multiple /CS pin for the same SPI module, you can try to select the other /CS pin as an alternative.&lt;/P&gt;
&lt;P&gt;I have no idea why pull-down /CS with software configuration can solve the issue.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 02:43:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-SPI-communication-failure-LPC54608-as-Slave-SPI/m-p/1752413#M54635</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-11-06T02:43:02Z</dc:date>
    </item>
  </channel>
</rss>

