<?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+DMA  periodic triggering problem encountered in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966602#M14565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you do not require to send data periodically in given intervals, you do not need to use PIT triggering.&lt;/P&gt;&lt;P&gt;DMA request for SPI transmission is asserted anytime when transmit buffer is not full. You can check this SW example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-334012"&gt;https://community.nxp.com/docs/DOC-334012&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is written for another device and there's no DMA_MUX but it shows DMA settings, at least.&lt;/P&gt;&lt;P&gt;You are supposed to write only one word to PUSHR register per one DMA request. So, NBYTES should be set to 4, CITER and BITER should be number of words you want to send.&lt;/P&gt;&lt;P&gt;If you configure it in this way, I believe it will work (with or without PIT trigger, both should work).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2019 08:07:50 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2019-06-17T08:07:50Z</dc:date>
    <item>
      <title>SPI+DMA  periodic triggering problem encountered</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966597#M14560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is my question:&lt;/P&gt;&lt;P&gt;i intend to use DMA transmit the data from RAM area to SPI_PUSHR, not just single trigger ablity,&amp;nbsp; i do&amp;nbsp; follow the instruction of UM ,Page 743, DMA channels with periodic triggering capability , but it just did not work , code is as follows:&lt;/P&gt;&lt;P&gt;DMAMUX_1.CHCFG[0].R = 0x0;// 16 DMA channel&amp;nbsp;&lt;BR /&gt; init_edma_tcd_16();//&amp;nbsp; &amp;nbsp;16 DMA channel transmit from source (RAM area)to destination(SPI_PUSHR buffer) 128bytes one time&lt;BR /&gt; PIT_Init(); //&amp;nbsp; &amp;nbsp; configure the PIT channel 2 to the corresponding perodic triggers for DMA&amp;nbsp;&lt;BR /&gt; DMAMUX_1.CHCFG[0].R = 0xC3;//&amp;nbsp; &amp;nbsp;enable&amp;nbsp; DMA channnel in periodic triggering capability&lt;/P&gt;&lt;P&gt;anyone ever do this function?or any suggestion? accroding to UM , we can&amp;nbsp; definitly achieve the DMA channel with&amp;nbsp;&lt;SPAN&gt;periodic triggering capability.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 08:27:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966597#M14560</guid>
      <dc:creator>彭冬冬</dc:creator>
      <dc:date>2019-06-11T08:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: SPI+DMA  periodic triggering problem encountered</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966598#M14561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which device is that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 10:14:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966598#M14561</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-06-13T10:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: SPI+DMA  periodic triggering problem encountered</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966599#M14562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi，&lt;/P&gt;&lt;P&gt;im using the MPC5744 chip&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2019 01:10:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966599#M14562</guid>
      <dc:creator>彭冬冬</dc:creator>
      <dc:date>2019-06-14T01:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: SPI+DMA  periodic triggering problem encountered</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966600#M14563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see you are using TCD16 - DMAMUX_1[0]. That means PIT channel 0 should be used for triggering, not channel 2. Source of peripheral trigger is DSPI_TFFF and the number of this source is 3 but this is not a channel, it's the source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you give this a try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:11:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966600#M14563</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-06-14T12:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: SPI+DMA  periodic triggering problem encountered</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966601#M14564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry to reply you late!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, i agree with you ,i should use the PIT channel 0 , i tried ,but it seems still one time DMA transmit, i dont know why,&lt;/P&gt;&lt;P&gt;finding&amp;nbsp; some hint ,but i still cant figure this out ,may be i miss some part of configuration, you can see this in details Page 744 from UM.&lt;/P&gt;&lt;P&gt;i&amp;nbsp; do follow the part of DMA channel with the triggering capabilities.&lt;/P&gt;&lt;P&gt;2. is there any way to trigger DMA transmit mutiply times except the PIT ways?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87178iCC9ABCBBF7CFC836/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. from the picture ,we can see if we wanna trigger the DMA request mutiply, it need two condition&lt;/P&gt;&lt;P&gt;one is the Trigger ,that is PIT timers , two, meanwhile , there need a Peripheral request when Trigger happened at the this time ,&lt;/P&gt;&lt;P&gt;so i think if&amp;nbsp; lack a peripheral request when PIT works, but how (now im using SPI TFFF)?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;colin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 02:09:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966601#M14564</guid>
      <dc:creator>彭冬冬</dc:creator>
      <dc:date>2019-06-17T02:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: SPI+DMA  periodic triggering problem encountered</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966602#M14565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you do not require to send data periodically in given intervals, you do not need to use PIT triggering.&lt;/P&gt;&lt;P&gt;DMA request for SPI transmission is asserted anytime when transmit buffer is not full. You can check this SW example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-334012"&gt;https://community.nxp.com/docs/DOC-334012&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is written for another device and there's no DMA_MUX but it shows DMA settings, at least.&lt;/P&gt;&lt;P&gt;You are supposed to write only one word to PUSHR register per one DMA request. So, NBYTES should be set to 4, CITER and BITER should be number of words you want to send.&lt;/P&gt;&lt;P&gt;If you configure it in this way, I believe it will work (with or without PIT trigger, both should work).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 08:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966602#M14565</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2019-06-17T08:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: SPI+DMA  periodic triggering problem encountered</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966603#M14566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Lukas,&lt;/P&gt;&lt;P&gt;1.actually i wanna use this&amp;nbsp; DMA function to do the EEPROM data storage, cos it is much faster without CPU interference,&lt;/P&gt;&lt;P&gt;so aim to fill the PUSHUR register with an data array ,&amp;nbsp; i already reliaze the function of DMA transmit but only one time everytime&amp;nbsp; power the board up, the problem is how can i trigger the next DMA transmit, cos the data storaged in arry is always changing ,so i need&amp;nbsp; lanuch another new&amp;nbsp;DMA transmit&amp;nbsp;everytime i update the data in the array, not just once.&lt;/P&gt;&lt;P&gt;2.whether i use the PIT or not ,so what i have to do when i need launch another DMA transmit&amp;nbsp; if i dont use the PIT triggering&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks ,lukas ,sincerely ,i will think about what you said carefully, continue to focus on this question&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;have good day!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 09:58:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-DMA-periodic-triggering-problem-encountered/m-p/966603#M14566</guid>
      <dc:creator>彭冬冬</dc:creator>
      <dc:date>2019-06-17T09:58:03Z</dc:date>
    </item>
  </channel>
</rss>

