<?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: The problem for dual SPI output in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/The-problem-for-dual-SPI-output/m-p/1413351#M47902</link>
    <description>&lt;P&gt;I hope someone can help me!!!!!!!!Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 02:23:35 GMT</pubDate>
    <dc:creator>JAY_tang</dc:creator>
    <dc:date>2022-02-15T02:23:35Z</dc:date>
    <item>
      <title>The problem for dual SPI output</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/The-problem-for-dual-SPI-output/m-p/1413349#M47901</link>
      <description>&lt;P&gt;I use FC9 SPI as the master device. Send 24 clocks by writing three 8-bit data to the FIFO. The picture below is the clock waveform when sending.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JAY_tang_0-1644891353770.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/170508i3E4E413B1D78F36D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JAY_tang_0-1644891353770.jpeg" alt="JAY_tang_0-1644891353770.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I utilize both FC9 SPI and FC3 SPI in the same way, there is a long time gap between 3 8-bit data transmissions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JAY_tang_1-1644891416392.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/170509i92332BF6AB9A2810/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JAY_tang_1-1644891416392.jpeg" alt="JAY_tang_1-1644891416392.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Below is part of my code&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;if((SPI_GetStatusFlags(EXAMPLE_SPI_MASTER) &amp;amp; kSPI_TxEmptyFlag)&amp;amp;&amp;amp;VCC_discharge_flag)&lt;BR /&gt;{&lt;BR /&gt;EXAMPLE_SPI_MASTER-&amp;gt;FIFOWR = 0x74e0008;&lt;BR /&gt;EXAMPLE_SPI_MASTER-&amp;gt;FIFOWR = m | 0x74e0000;&lt;BR /&gt;EXAMPLE_SPI_MASTER-&amp;gt;FIFOWR = 0x75e00FC;&lt;BR /&gt;m = m + 11;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if(m &amp;gt; 0xEE)&lt;BR /&gt;{&lt;BR /&gt;VCC_discharge_flag=0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if((SPI_GetStatusFlags(EXAMPLE_SPI_MASTER_VCCQ) &amp;amp; kSPI_TxEmptyFlag)&amp;amp;&amp;amp;VCCQ_discharge_flag)&lt;BR /&gt;{&lt;BR /&gt;EXAMPLE_SPI_MASTER_VCCQ-&amp;gt;FIFOWR = 0x7470008;&lt;BR /&gt;EXAMPLE_SPI_MASTER_VCCQ-&amp;gt;FIFOWR = n | 0x7470000;&lt;BR /&gt;EXAMPLE_SPI_MASTER_VCCQ-&amp;gt;FIFOWR = 0x75700FC;&lt;BR /&gt;n = n + 11;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if(n &amp;gt; 0xEE)&lt;BR /&gt;{&lt;BR /&gt;VCCQ_discharge_flag=0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 02:19:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/The-problem-for-dual-SPI-output/m-p/1413349#M47901</guid>
      <dc:creator>JAY_tang</dc:creator>
      <dc:date>2022-02-15T02:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: The problem for dual SPI output</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/The-problem-for-dual-SPI-output/m-p/1413351#M47902</link>
      <description>&lt;P&gt;I hope someone can help me!!!!!!!!Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 02:23:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/The-problem-for-dual-SPI-output/m-p/1413351#M47902</guid>
      <dc:creator>JAY_tang</dc:creator>
      <dc:date>2022-02-15T02:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: The problem for dual SPI output</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/The-problem-for-dual-SPI-output/m-p/1413750#M47909</link>
      <description>&lt;P&gt;Dear Tang&lt;/P&gt;
&lt;P&gt;I have read your code, the control part of the FIFOWR register are 0x0x074E, 0x074E and 0x075E, the EOF(End of Frame) bit is NOT set, delay time is not inserted, I think the control code are correct.&lt;/P&gt;
&lt;P&gt;From the spi clock signal waveform on the scope, it appears that the square-waveform &amp;nbsp; clock signal becomes a sine signal, I suppose the SPI clock signal(SCK) frequency is too high, which highlights the gap between two bytes.&lt;/P&gt;
&lt;P&gt;Pls try to reduce the spi clock frequency.&lt;/P&gt;
&lt;P&gt;Hope it can help you&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>Tue, 15 Feb 2022 14:16:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/The-problem-for-dual-SPI-output/m-p/1413750#M47909</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-02-15T14:16:07Z</dc:date>
    </item>
  </channel>
</rss>

