<?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 data transfer using DMA and PIT? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-data-transfer-using-DMA-and-PIT/m-p/705653#M43320</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;yes, this can be achieved.&lt;/P&gt;&lt;P&gt;Use "Always enabled" together with PIT Trigger.&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/32603iDF6801A4F1517CA7/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;Configure the descriptor for Always Enabled channel in a way that it starts 5 SPI transfers - you can write to DMASERQ register to enable DMA channel which sends data to SPI. You should set d_req (disable request) bit to disable DMA channel after 5 bytes.&lt;/P&gt;&lt;P&gt;You can enable interrupt (int_maj bit) in descriptor for Always Enabled channel, so you will get an interrupt when last 5-byte SPI transfer is triggered.&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, 19 Oct 2017 06:14:37 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2017-10-19T06:14:37Z</dc:date>
    <item>
      <title>SPI data transfer using DMA and PIT?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-data-transfer-using-DMA-and-PIT/m-p/705652#M43319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SPI data transfer using DMA and PIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uC: MPC 5643&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Want to send 5 SPI commands for 20 times with PIT configuration.&lt;/P&gt;&lt;P&gt;2. Configure PIT0 for time x and PIT1 for 20 * x and send first 5 SPI commands in DMA and retrigger the same set of commands for 20 times.&lt;/P&gt;&lt;P&gt;3. Once 20 iterations completed, PIT1 must trigger interrupt and disable PIT&lt;/P&gt;&lt;P&gt;4. This I am trying to achieve without software intervention, the software intervenation will be after 20 iteration to service the interrupt.&lt;/P&gt;&lt;P&gt;5. I am not able to achieve this with MPC56, How can achieve this? Is there any dependency&lt;/P&gt;&lt;P&gt;6. The PIT0 is not triggering DMA after first transfer, configured the registers in DMA_MUX, Once the PIT0 triggers DMA data transfer, do we need software intervantion or it is possible to send data transfer without software intervation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 11:33:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-data-transfer-using-DMA-and-PIT/m-p/705652#M43319</guid>
      <dc:creator>santoshalagawad</dc:creator>
      <dc:date>2017-10-13T11:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: SPI data transfer using DMA and PIT?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-data-transfer-using-DMA-and-PIT/m-p/705653#M43320</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;yes, this can be achieved.&lt;/P&gt;&lt;P&gt;Use "Always enabled" together with PIT Trigger.&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/32603iDF6801A4F1517CA7/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;Configure the descriptor for Always Enabled channel in a way that it starts 5 SPI transfers - you can write to DMASERQ register to enable DMA channel which sends data to SPI. You should set d_req (disable request) bit to disable DMA channel after 5 bytes.&lt;/P&gt;&lt;P&gt;You can enable interrupt (int_maj bit) in descriptor for Always Enabled channel, so you will get an interrupt when last 5-byte SPI transfer is triggered.&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, 19 Oct 2017 06:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-data-transfer-using-DMA-and-PIT/m-p/705653#M43320</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2017-10-19T06:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: SPI data transfer using DMA and PIT?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-data-transfer-using-DMA-and-PIT/m-p/705654#M43321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Lukas,&lt;/P&gt;&lt;P&gt;I have some more questions.&lt;/P&gt;&lt;P&gt;1. I want to send 5 SPI Commands (May increase to 15 SPI Commands)of 32bit for 20 times, with help of PIT timer.(PIT1, PIT2)&lt;/P&gt;&lt;P&gt;2. For 5SPI commands, I have configured PIT2 and Source of DMA&amp;nbsp;as SPI1 Tx for DMA channel 2(0,1,2)&lt;/P&gt;&lt;P&gt;3. To check the&amp;nbsp;20 times transfer, I have configured PIT1 with value as 20 * PIT2, PIT2 as ISR, once it raises ISR, I will read the buffer.&lt;/P&gt;&lt;P&gt;4. Will this work for retriggering of SPI commands or I need to do some software handling after 5SPI commands.&lt;/P&gt;&lt;P&gt;5. For Reception, how to handle the data (overflow)&amp;nbsp;without intervention of software&amp;nbsp;in between.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-data-transfer-using-DMA-and-PIT/m-p/705654#M43321</guid>
      <dc:creator>santoshalagawad</dc:creator>
      <dc:date>2017-10-19T09:56:05Z</dc:date>
    </item>
  </channel>
</rss>

