<?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>LPC Microcontrollers中的主题 LPC55S26 Fast SPI Using DMA</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S26-Fast-SPI-Using-DMA/m-p/1562956#M50914</link>
    <description>&lt;P&gt;I need to send 25 bytes using SPI several times within 100us.&amp;nbsp; I have tried using the&amp;nbsp; spi_dma_b2b_transfer_master example, modified for 12MHz baud, but this has a setup time of around 42us between transfers.&amp;nbsp; This seems to be because I have to setup the DMA every time I use it.&amp;nbsp; See attached file single_channel.&lt;/P&gt;&lt;P&gt;Is there a way to set this up once and send on demand?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, the next best option is to chain several descriptors and fire in one go.&amp;nbsp; I have tried to get this going but without success.&amp;nbsp; See attached file chanied_descriptors.&amp;nbsp; This sends 8 bytes then stops but the frame signal continues for the full 25 bytes.&amp;nbsp; The delay between SPI sends is the same at 42us.&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 17:46:12 GMT</pubDate>
    <dc:creator>RBlight</dc:creator>
    <dc:date>2022-12-01T17:46:12Z</dc:date>
    <item>
      <title>LPC55S26 Fast SPI Using DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S26-Fast-SPI-Using-DMA/m-p/1562956#M50914</link>
      <description>&lt;P&gt;I need to send 25 bytes using SPI several times within 100us.&amp;nbsp; I have tried using the&amp;nbsp; spi_dma_b2b_transfer_master example, modified for 12MHz baud, but this has a setup time of around 42us between transfers.&amp;nbsp; This seems to be because I have to setup the DMA every time I use it.&amp;nbsp; See attached file single_channel.&lt;/P&gt;&lt;P&gt;Is there a way to set this up once and send on demand?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, the next best option is to chain several descriptors and fire in one go.&amp;nbsp; I have tried to get this going but without success.&amp;nbsp; See attached file chanied_descriptors.&amp;nbsp; This sends 8 bytes then stops but the frame signal continues for the full 25 bytes.&amp;nbsp; The delay between SPI sends is the same at 42us.&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 17:46:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S26-Fast-SPI-Using-DMA/m-p/1562956#M50914</guid>
      <dc:creator>RBlight</dc:creator>
      <dc:date>2022-12-01T17:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S26 Fast SPI Using DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S26-Fast-SPI-Using-DMA/m-p/1563348#M50922</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First of all, pls check the SPI delay register as the following pic, which I copied from UM11126.pdf.&lt;/P&gt;
&lt;P&gt;If you have set the register all zero, I suppose that the transfer interval between two transfer frame(25-bytes-transfer + transfer_Interval + 25-bytss-transfer + transfer_Interval.....) is too long, because during the transfer interval, the LPC is executing the DMA ISR, which includes the call-back function.&lt;/P&gt;
&lt;P&gt;For you call-back function, I suppose it is too complicated, you have chain callback function, in the case, you have to simplify the callback function.&lt;/P&gt;
&lt;P&gt;If you use DMA chaining mode, but the DMA isr is still executed, that is why the transfer interval is not improved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1669967678240.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202596i8957906825842ABC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1669967678240.png" alt="xiangjun_rong_0-1669967678240.png" /&gt;&lt;/span&gt;&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;</description>
      <pubDate>Fri, 02 Dec 2022 08:32:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S26-Fast-SPI-Using-DMA/m-p/1563348#M50922</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-12-02T08:32:04Z</dc:date>
    </item>
  </channel>
</rss>

