<?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 Remove gap between SPI bytes in transfer (i.MX8M Mini). in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Remove-gap-between-SPI-bytes-in-transfer-i-MX8M-Mini/m-p/1710088#M211306</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using SPI and DMA to transfer data to an external device.&amp;nbsp; This is currently functional, but there is a gap between each byte that I would like to remove to reduce the transfer time.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8 bit burst transfer" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237703i268000E898DF8292/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExistingProcess.png" alt="8 bit burst transfer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;8 bit burst transfer&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the current process I have in place with incrementing data (0x00, 0x01,0x02, 0x03, etc.), showing the gap between each byte.&lt;/P&gt;&lt;P&gt;I verified that the&amp;nbsp;ECSPIx_PERIODREG.SAMPLE_PERIOD is 0.&amp;nbsp; I believe I should be able to reduce the gaps between bytes by adjusting the burst size (ECSPIx_CONREG.BURST_LENGTH).&amp;nbsp; I tested with a burst length of 16 bits (instead of 8 bits for the above example).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16 bit burst width" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237704iD50B43593383215C/image-size/large?v=v2&amp;amp;px=999" role="button" title="16bitBurst.png" alt="16 bit burst width" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;16 bit burst width&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The 16-bit burst width is now sending 16 bits of clock data for each 8 bits of data (which is incorrect).&amp;nbsp; I did notice that there was no longer a gap between the 16 bits of clock data.&amp;nbsp; I think there should be some combination to make this work, but I haven't determined how.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan K.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 19:03:21 GMT</pubDate>
    <dc:creator>DanKSI</dc:creator>
    <dc:date>2023-08-23T19:03:21Z</dc:date>
    <item>
      <title>Remove gap between SPI bytes in transfer (i.MX8M Mini).</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Remove-gap-between-SPI-bytes-in-transfer-i-MX8M-Mini/m-p/1710088#M211306</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using SPI and DMA to transfer data to an external device.&amp;nbsp; This is currently functional, but there is a gap between each byte that I would like to remove to reduce the transfer time.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8 bit burst transfer" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237703i268000E898DF8292/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExistingProcess.png" alt="8 bit burst transfer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;8 bit burst transfer&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the current process I have in place with incrementing data (0x00, 0x01,0x02, 0x03, etc.), showing the gap between each byte.&lt;/P&gt;&lt;P&gt;I verified that the&amp;nbsp;ECSPIx_PERIODREG.SAMPLE_PERIOD is 0.&amp;nbsp; I believe I should be able to reduce the gaps between bytes by adjusting the burst size (ECSPIx_CONREG.BURST_LENGTH).&amp;nbsp; I tested with a burst length of 16 bits (instead of 8 bits for the above example).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16 bit burst width" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237704iD50B43593383215C/image-size/large?v=v2&amp;amp;px=999" role="button" title="16bitBurst.png" alt="16 bit burst width" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;16 bit burst width&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The 16-bit burst width is now sending 16 bits of clock data for each 8 bits of data (which is incorrect).&amp;nbsp; I did notice that there was no longer a gap between the 16 bits of clock data.&amp;nbsp; I think there should be some combination to make this work, but I haven't determined how.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan K.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 19:03:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Remove-gap-between-SPI-bytes-in-transfer-i-MX8M-Mini/m-p/1710088#M211306</guid>
      <dc:creator>DanKSI</dc:creator>
      <dc:date>2023-08-23T19:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Remove gap between SPI bytes in transfer (i.MX8M Mini).</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Remove-gap-between-SPI-bytes-in-transfer-i-MX8M-Mini/m-p/1710986#M211406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products,&lt;/P&gt;
&lt;P&gt;That value doesn't seem modifiable by a register in ECSPI module,&lt;/P&gt;
&lt;P&gt;And also in data sheet max value doesn't have a reference to a formula involving a clocks count nor a register field,&lt;/P&gt;
&lt;P&gt;Could I see the SS signal behaviour aligned to these diagrams you sent?&lt;/P&gt;
&lt;P&gt;Seems like that is the problem and as you said, you'd solve that using burst mode if supported by target.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 20:29:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Remove-gap-between-SPI-bytes-in-transfer-i-MX8M-Mini/m-p/1710986#M211406</guid>
      <dc:creator>JosephAtNXP</dc:creator>
      <dc:date>2023-08-24T20:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Remove gap between SPI bytes in transfer (i.MX8M Mini).</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Remove-gap-between-SPI-bytes-in-transfer-i-MX8M-Mini/m-p/1711529#M211457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The specific peripheral I am communicating with doesn't need the SS line, so it doesn't exist.&amp;nbsp; I am guessing that the SS line would normally pulse during the gap period.&amp;nbsp; I think there should be a way to reduce the number of these gaps, but I may be having an issue with how SPI is interacting with DMA.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 14:37:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Remove-gap-between-SPI-bytes-in-transfer-i-MX8M-Mini/m-p/1711529#M211457</guid>
      <dc:creator>DanKSI</dc:creator>
      <dc:date>2023-08-25T14:37:18Z</dc:date>
    </item>
  </channel>
</rss>

