<?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 DMA Channel 4 Interrupt Problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-Channel-4-Interrupt-Problem/m-p/852481#M51232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the MKE14Z256.&lt;/P&gt;&lt;P&gt;My application is using 6 DMA channels. 2 UARTs RX and TX use Channels 0-3.&lt;/P&gt;&lt;P&gt;Channel 4 is set up to move ADC Data when conversion completes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DMA Channel 4 is set up to move 8 32 bit words to memory, and I can see that this completes.&lt;/P&gt;&lt;P&gt;The data is transferred and&amp;nbsp;DMA-TCD4-CSR -&amp;gt; DONE bit gets set and&amp;nbsp;&lt;SPAN&gt;DMA-TCD4-CSR -&amp;gt; INTMAJOR gets set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also DMA-INT-&amp;gt;INT4 gets set and the Reference Manual says : "The outputs of this register are directly routed to the interrupt controller."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NVIC ISER indicates that the DMA0/4 transfer complete interrupt is enabled (Bit 0).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No interrupt occurs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, if I cause an interrupt on DMA Channel 0,&amp;nbsp;DMA0_04_DriverIRQHandler(void) also checks the Channel 4 interrupt bit and executes the interrupt routine.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It appears that the DMA Channel 4 interrupt bit does not cause an interrupt. Am I missing something?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2019 12:43:38 GMT</pubDate>
    <dc:creator>john_power</dc:creator>
    <dc:date>2019-01-22T12:43:38Z</dc:date>
    <item>
      <title>DMA Channel 4 Interrupt Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-Channel-4-Interrupt-Problem/m-p/852481#M51232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the MKE14Z256.&lt;/P&gt;&lt;P&gt;My application is using 6 DMA channels. 2 UARTs RX and TX use Channels 0-3.&lt;/P&gt;&lt;P&gt;Channel 4 is set up to move ADC Data when conversion completes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The DMA Channel 4 is set up to move 8 32 bit words to memory, and I can see that this completes.&lt;/P&gt;&lt;P&gt;The data is transferred and&amp;nbsp;DMA-TCD4-CSR -&amp;gt; DONE bit gets set and&amp;nbsp;&lt;SPAN&gt;DMA-TCD4-CSR -&amp;gt; INTMAJOR gets set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also DMA-INT-&amp;gt;INT4 gets set and the Reference Manual says : "The outputs of this register are directly routed to the interrupt controller."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NVIC ISER indicates that the DMA0/4 transfer complete interrupt is enabled (Bit 0).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No interrupt occurs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, if I cause an interrupt on DMA Channel 0,&amp;nbsp;DMA0_04_DriverIRQHandler(void) also checks the Channel 4 interrupt bit and executes the interrupt routine.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It appears that the DMA Channel 4 interrupt bit does not cause an interrupt. Am I missing something?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 12:43:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-Channel-4-Interrupt-Problem/m-p/852481#M51232</guid>
      <dc:creator>john_power</dc:creator>
      <dc:date>2019-01-22T12:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: DMA Channel 4 Interrupt Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-Channel-4-Interrupt-Problem/m-p/852482#M51233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To answer my own question, there appears to be a&amp;nbsp;sneaky register in the SIM block called SIM_MISCTRL which has DMA_INT_SEL bits to select between shared channels. This is very confusing as there is an implication in several places that the interrupts are ORed together, but this register implies that DMA_INT_SEL[0] == 0 selects DMA Channel 0 and 1 selects DMA Channel 4. This documentation is very poor. There is no reference to this in the DMA part of the manual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 14:33:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-Channel-4-Interrupt-Problem/m-p/852482#M51233</guid>
      <dc:creator>john_power</dc:creator>
      <dc:date>2019-01-22T14:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: DMA Channel 4 Interrupt Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-Channel-4-Interrupt-Problem/m-p/852483#M51234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have bought up a good point since there are a number of Kinetis parts that share eDMA channel interrupts:&lt;BR /&gt;- KE14Z/KE15Z - can select whether channels 0/4, 1/5, 2/6 or 3/7 are connected to the 4 available interrupt vectors (&lt;EM&gt;either/or&lt;/EM&gt;)&lt;BR /&gt;- KL28 - are physically &lt;EM&gt;OR&lt;/EM&gt;ed (shared) with no further configuration option&lt;BR /&gt;- KL82 - can be optionally &lt;EM&gt;OR&lt;/EM&gt;ed (default is to having only 0,1,2 and 3 connected), as well as channels 4,5,6, and 7 can optionally be handled as extended interrupts via the INTMUX (then effectively 8 independent interrupt vectors)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be others but these show that there is no real pattern as to how the 'shared' interrupt are actually implemented. &lt;BR /&gt;If the lower order shared interrupts only are used it is simple and the same on all parts, but if the higher order shared ones are needed one must carefully study and maybe make some tests to be sure. Additional configuration and/or handling is needed and the fact that it may not always be possible to use all channel interrupts at the same time needs to be carefully considered when the channel allocation is defined (and possibly when the actual chip to be used is determined).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete KE14Z/KE15Z solutions, training and support:http://www.utasker.com/kinetis.html&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Kinetis KE15:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;A href="http://www.utasker.com/kinetis/FRDM-KE15Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE15Z.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 20:55:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-Channel-4-Interrupt-Problem/m-p/852483#M51234</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-01-22T20:55:47Z</dc:date>
    </item>
  </channel>
</rss>

