<?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: SPI and DMA and LTC2600 in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SPI-and-DMA-and-LTC2600/m-p/745248#M7708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pietro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know your KSDK version and board? Does your project work as expected now?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 08:30:46 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2018-04-02T08:30:46Z</dc:date>
    <item>
      <title>SPI and DMA and LTC2600</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SPI-and-DMA-and-LTC2600/m-p/745246#M7706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the&amp;nbsp;XTWR-ADCDAC-LTC. I need to book the&amp;nbsp;LTC2600 for all of the channel at very fast rate.&lt;/P&gt;&lt;P&gt;It would be nice to get the DMA work without any polling or interrupt for updating in burst all of the DAC channels.&lt;/P&gt;&lt;P&gt;It seems impossible to do.&lt;/P&gt;&lt;P&gt;The DAC requires transfer of three or four bytes each one framed by the CS for every channel.&lt;/P&gt;&lt;P&gt;The SPI wants to transfer no more than 2 bytes. The DMA has the option to frame with the CS every transfer or the full&lt;/P&gt;&lt;P&gt;datalength. I don't see how to frame three or four bytes still the transfer continuing without any uC intervention.&lt;/P&gt;&lt;P&gt;The best solution I see is to transfer in chunk of three or four bytes with the CS continuously enabled, than in the DMA callback restart a new transfer with the next frame, all of this eight times for every tick of processing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end there is not so much to get from the DMA respect to the interrupt driven SPI, considering the KSDK function&amp;nbsp;DSPI_MasterTransferEDMA(...) is not so light.&lt;/P&gt;&lt;P&gt;Maybe there is a way to bypass the limitations of the KSDK with some modifications in the initialization code.&lt;/P&gt;&lt;P&gt;I would like to get suggestion on the subject...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 08:52:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SPI-and-DMA-and-LTC2600/m-p/745246#M7706</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2018-03-29T08:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: SPI and DMA and LTC2600</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SPI-and-DMA-and-LTC2600/m-p/745247#M7707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobody is liking this observation.&lt;/P&gt;&lt;P&gt;The question here is serious. The processor I have is fast but the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;DSPI_MasterTransferEDMA(...) takes about 10 uS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The DAC and ADC on the expansion board are meant for fast update, up to the 100 KHz. If the DMA scan need to be reactivated with a call to&amp;nbsp;&lt;SPAN&gt;DSPI_MasterTransferEDMA(...)&amp;nbsp; the uC will stuck there just for restarting the DMA scan.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;The structure of the DMA service as is provided in current KSDK is not suitable for such situation, that I think is commonly happening.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I worked terribly to bypass the problem. I initialized manually the DMA registers to provide a continuous scanning without any reinitialization, and now the processor is just free.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest to add the support for manual filling of&amp;nbsp;an array of PUSHR&amp;nbsp; variables, then feeding the DMA source address with the array.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2018 08:49:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SPI-and-DMA-and-LTC2600/m-p/745247#M7707</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2018-03-31T08:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: SPI and DMA and LTC2600</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SPI-and-DMA-and-LTC2600/m-p/745248#M7708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pietro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know your KSDK version and board? Does your project work as expected now?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 08:30:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SPI-and-DMA-and-LTC2600/m-p/745248#M7708</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2018-04-02T08:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPI and DMA and LTC2600</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SPI-and-DMA-and-LTC2600/m-p/745249#M7709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You for attention&lt;/P&gt;&lt;P&gt;The KSDK is the 2.e, the directory name is &lt;STRONG&gt;SDK_2.3.0_MKV58F1M0xxx24&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I have a working solution I got initializing the DMA by hand, without using the DMA object.&lt;/P&gt;&lt;P&gt;The limit of the solution offered by the KDSK is that evey transfer needs to recall the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;DSPI_MasterTransferEDMA(...) reinitializing the registers with the same values. For repeating service it is too much expensive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;There is no way with actual SDK to recycle the previous settings. And the call costs 10uSecs.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Additionally most of the time the DMA is used endlessly, so the bit of auto stop need to be disabled and the SLAST and DLAST simply roll back.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;This approach is the one that is the most used, at least the way I see for my applications. And for this usage no support is provided, the&amp;nbsp;&lt;SPAN&gt;DSPI_MasterTransferEDMA(...) enables the auto stop bit or rely on the scatter gather.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Now the application is working so I have an optimal solution reading all of the ADC and writing all of the DAC outputs without any uC intervention.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;I prepared an array of PUSHR and I feed in this way the DMA transfer, that automathically cycles the transfer values.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;It is important in my opinion to provide this approach in SDK.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;For now I am happy with what I have,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Pietro&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 08:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/SPI-and-DMA-and-LTC2600/m-p/745249#M7709</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2018-04-03T08:16:09Z</dc:date>
    </item>
  </channel>
</rss>

