<?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: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427074#M24656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it. Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 06:07:45 GMT</pubDate>
    <dc:creator>yanlicheng</dc:creator>
    <dc:date>2015-07-29T06:07:45Z</dc:date>
    <item>
      <title>Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427063#M24645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the following ADC0 channel:&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE13&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE12&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE8&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE9&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE7a&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE5a&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE4a&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE5b&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE4b&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE14&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE7b&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;ADC0_SE6b&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;ADCx_SEn channels a and b have different ADCx_CFG2[MUXSEL] bit, how can I still Use DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series?&lt;/P&gt;&lt;P&gt;Do I need to set 3 DMA channel?&lt;/P&gt;&lt;P&gt;If&amp;nbsp; DMA mode still works well, can you show me detail process flow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 05:44:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427063#M24645</guid>
      <dc:creator>linjiepan</dc:creator>
      <dc:date>2015-07-21T05:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427064#M24646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linjie Pan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The eDMA in Kinetis K family supports minor loop and major loop, so after you start an ADC conversion, COCO bit will fire an ADC0 interrupt, which issues an eDMA minor loop if you enable ADC DMA function, then you may configure ADCx_SC1n and ADCx_CFG2 in each minor loop, and may repeat the ADC sample sequence when eDMA interrupt happens after major loop done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this process, just one DMA channel is needed, but if you use a linked channel to configure ADCx_CFG2 on minor-loop complete , then you have to use 2 channels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, for ADC_SE12 and something like that, ADCx_CFG2[MUXSEL] bit has no meaning, so you may set it as default value of zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly let me know if you have any issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 07:08:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427064#M24646</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-07-21T07:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427065#M24647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kan:&lt;/P&gt;&lt;P&gt;When I read the code about 'DMA channel initlization'.&amp;nbsp; I met with an issue :&lt;/P&gt;&lt;P&gt;One configuration is " DMAMUX_CHCFG1 = DMAMUX _CHCFG_ENBL|DMAMUX_CHCFG_SOURCE(&lt;STRONG&gt;40&lt;/STRONG&gt;) ". Could you tell me what does this "40" mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked&amp;nbsp; the detailed information about&amp;nbsp; 'Channel Configuration Register (DMAMUX_CHCFGn)'&amp;nbsp; in the K10 Chip manual.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The DMAMUX_CHCFG[SOURCE] represents " DMA Channel Source (slot) ". It's described as " Specifies which DMA source, if any, is routed to a particular DMA channel. Please check your device's Chip Configuration details for further details about the peripherals and their slot numbers."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The " slot numbers" (such as &lt;STRONG&gt;40&lt;/STRONG&gt;) correspond to what DMA source, could you tell me? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: the chip I used is K10 series.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 09:34:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427065#M24647</guid>
      <dc:creator>yanlicheng</dc:creator>
      <dc:date>2015-07-22T09:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427066#M24648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yanli Cheng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you refer to Chapter 3 Chip Configuration in K10P100M100SF2V2RM.pdf, you may find&amp;nbsp; details regarding DMA source on page 85, and 40 here represents ADC0, please refer to the following for more details.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="44.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53141i198B25125CAC614E/image-size/large?v=v2&amp;amp;px=999" role="button" title="44.png" alt="44.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 05:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427066#M24648</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-07-23T05:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427067#M24649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your answer, Kan_Li. I've found this table in the chip manual under your help.&lt;/P&gt;&lt;P&gt;But I'm still confused about the concept of&amp;nbsp; 'DMA request source'.&amp;nbsp; I've tried to search some useful explanations on the web, but still not found anything clear.&lt;/P&gt;&lt;P&gt;Could you help to explain or give some useful reference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My confustion can be illustrated by the following 2 examples:&lt;/P&gt;&lt;P&gt;(1) I want to use DMA to transfer ADC data and I refer to the document "Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series", which is downloaded&amp;nbsp; from&amp;nbsp; FreeScale official website. In the 'DMA channel Initialization' part, the DMA channel 1 request source was configured as "DMAMUX_CHCFG1 = DMAMUX _CHCFG_ENBL|DMAMUX_CHCFG_SOURCE(&lt;STRONG&gt;28&lt;/STRONG&gt;);&amp;nbsp; " , and DMA channel 0 request source was configured as "DMAMUX_CHCFG0 = DMAMUX _CHCFG_ENBL|DMAMUX_CHCFG_SOURCE(&lt;STRONG&gt;36&lt;/STRONG&gt;) ; " .&amp;nbsp; This example&amp;nbsp; uses the Freescale TRW-K60N512 development board. I checked the K60 chip reference manual and knowed that '&lt;STRONG&gt;28&lt;/STRONG&gt;' represents FTM0 and '&lt;STRONG&gt;40&lt;/STRONG&gt;' represents FTM3.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="K60.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53315i444A603B695BA9C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="K60.png" alt="K60.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) When I do research about another project example, which use K10 series chip and also use DMA to transfer ADC data. The DMA channel 1 and channel 0 request source are all configured as '&lt;STRONG&gt;40&lt;/STRONG&gt;'. According to the K10 reference manual , this means DMA channel1 and channel 0&amp;nbsp; request source are all 'ADC0 '.&amp;nbsp; Other configurations are similar to example one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a word, how to configured the DMA request source? Based on what principle?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 06:56:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427067#M24649</guid>
      <dc:creator>yanlicheng</dc:creator>
      <dc:date>2015-07-23T06:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427068#M24650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yanli Cheng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually you may understand eDMA module as a co-processor for MCU, the DMA channles are interrupts of this co-processor, and DMA sources are just like interrupt sources, but more flexible , for example, the same DMA sources can be assigned to different DMA channels, but it is not recommended sharing one source for different channels , because RM says "Setting multiple CHCFG registers with the same Source value will result in unpredictable behavior."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when you assign some source to a DMA channel, this module will have the trigger signal from that source under some condition , for example, if the DMA source is ADC0, the trigger signal comes when ADC0 COCO bit is set, and then DMA module does the&amp;nbsp; presetting transfer just like a co-process handles the ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you may assign to any DMA channel with any DMA source, depending on your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details on DMA source, you may refer to the chapters in RM, each&amp;nbsp; module which has DMA support usually has a register regarding DMA operation, which can be found under the section of "Register definition". and some module chapter contains a section for DMA operation as well, such as FTM module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 03:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427068#M24650</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-07-24T03:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427069#M24651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your professional reply. I have a better understanding of this concept after reading your answer, I'll refer to the RM further for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 05:54:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427069#M24651</guid>
      <dc:creator>yanlicheng</dc:creator>
      <dc:date>2015-07-24T05:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427070#M24652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kan_Li:&lt;/P&gt;&lt;P&gt;I want to ask you a question. As to freescale K10 chip, is there a &lt;STRONG&gt;default priority&lt;/STRONG&gt; setting among the 16 &lt;STRONG&gt;DMA&lt;/STRONG&gt; &lt;STRONG&gt;channels&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;That means ,does channel (n+x) has a higher priority than channel n ?&lt;/P&gt;&lt;P&gt;Because in the pdf document " Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series", it says :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56012iD66A7D2D6E0247E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I didn't find corresponding information about default priority in the RM(only finds the register 'DMA_DCHPRIn' can set priority for DMA channel n).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 06:47:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427070#M24652</guid>
      <dc:creator>yanlicheng</dc:creator>
      <dc:date>2015-07-27T06:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427071#M24653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yanli Cheng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually eDMA supports fixed-priority and round-robin channel arbitration, which is controlled by DMA_CR[ERCA], and module uses fixed-priority arbitration out of reset, in which the channel service request from the highest priority channel is selected to execute, and the contents of DMA_DCHPRIn defines the unique priorities associated with each channel . The channel priorities are evaluated by numeric value; for example, 0 is the lowest priority, 1 is the next priority, then 2, 3, etc. Software must program the channel priorities with unique values;otherwise, a configuration error is reported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for round-robin arbitration, channels are serviced starting with the highest channel number and rotating through to the lowest channel number without regard to the channel priority levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 02:59:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427071#M24653</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-07-28T02:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427072#M24654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Kan_Li.&lt;/P&gt;&lt;P&gt;According to your explanation above and the information in RM, can I understand it in the following way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; There are several DMA channels and each channel has its own service request. If I don't configure DMA_CR,&amp;nbsp; the module uses fixed-priority arbitration (in a default way because of reset). I must program the channel priorities by&amp;nbsp; the register ' DMA_DCHPRIn' ; otherwise, a configuration error is reported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In another situation, if I arrange 3 DMA channels:&amp;nbsp; channel 1 links to channel 0, and channel 0 links to&amp;nbsp; channel 3 (All done by configuring the 'DMA_CSR_MAJORLINKCH' ).&lt;/P&gt;&lt;P&gt;Then even I don't set 'DMA_CR' and 'DMA_DCHPRIn' , will the&amp;nbsp; service request of channel 1 be done first , then channel 0 ,and last channel 3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 06:44:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427072#M24654</guid>
      <dc:creator>yanlicheng</dc:creator>
      <dc:date>2015-07-28T06:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427073#M24655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yanli Cheng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to program ' DMA_DCHPRIn' out&amp;nbsp; of reset, because Reset value for the channel priority fields, CHPRI, is equal to the corresponding channel number&lt;/P&gt;&lt;P&gt;for each priority register, i.e., DCHPRI15[CHPRI] equals 0b1111.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your second question, my answer is yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly let me know if you have any further question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 02:27:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427073#M24655</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-07-29T02:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427074#M24656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it. Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 06:07:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427074#M24656</guid>
      <dc:creator>yanlicheng</dc:creator>
      <dc:date>2015-07-29T06:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427075#M24657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kan_Li:&lt;/P&gt;&lt;P&gt;We discussed about the issue stated at the top of this page: using an extra&lt;STRONG&gt; DMA channel 3&lt;/STRONG&gt; so as to choose between 'a' channel and 'b' channel (such as '&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; text-align: center;"&gt;ADC0_SE5a' and '&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; text-align: center;"&gt;ADC0_SE5b')&lt;/SPAN&gt;&lt;/SPAN&gt; . When I tried to apply it, I met with a problem and were confused. Hope you can give me some clue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="tmp2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/55383i34BA383C847B99EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="tmp2.png" alt="tmp2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;【Problem Description】&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I initiate DMA channel 0,1 and 3, referring to the freescale official&amp;nbsp; document "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Use DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;（1）DMA channel 1 was used to&amp;nbsp; transfer ADC result from 'ADC0_RA' to buffer 'dma_adc_buff'. Major loop transfers number 16*12.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;（2）DMA channel 0 was used to choose the next ADC channel number. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Major loop transfers number 12.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;（3）DMA channel 3 was used to choose 'MUXSEL_ADCA' or 'MUXSEL_ADCB' for the next channel. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Major loop transfers number&amp;nbsp; 12.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Source address and &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;destination address are separately set as follows:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="line-height: 1.5;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;DMA_TCD3_SADDR = (uint32)&amp;amp;channel_muxsel_map[0];&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;DMA_TCD3_DADDR = (uint32)&amp;amp;ADC0_CFG2;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The channel_muxsel_map[12] is an array, storing the 'MUXSEL_ADCA' or 'MUXSEL_ADCB' message for each ADC channel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the test, the ADC channel number&amp;nbsp; is selected in a right order. However, the 'a' or 'b' selection work in disorder. &lt;/P&gt;&lt;P&gt;Would you know what may cause this to happen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 15:36:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427075#M24657</guid>
      <dc:creator>yanlicheng</dc:creator>
      <dc:date>2015-08-07T15:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427076#M24658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yanli Cheng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per your application, I would recommend you using one channel for two DMA transfer you mentioned above:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;（2）DMA channel 0 was used to choose the next ADC channel number. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Major loop transfers number 12.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;（3）DMA channel 3 was used to choose 'MUXSEL_ADCA' or 'MUXSEL_ADCB' for the next channel. &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Major loop transfers number&amp;nbsp; 12.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;you may find the above two have the same &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Major loop transfers. so you may do them both in a single channel. for example, channel 0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;so channel 1 used to move the ADC results, channel 0 used to configure the registers of ADCx_SC1A and ADCx_CFG2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Please enable Minor Loop Channel Linking mode for that case. ADC0 COCO triggers Channel 1 transfer, and each minor loop completion event trigger channel 0 transfer. Please refer to the following for more details. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52472i354D179AE389FE32/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 06:33:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427076#M24658</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-08-10T06:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427077#M24659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much, Kan_Li. Your answer helps me a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) I rechecked my code according to your answer, and found one mistake: although I enable '&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG&gt;Minor Loop Channel Linking&lt;/STRONG&gt;', I didn't set the linking channel number ( I only set it in 'Major Loop Channel Linking').&amp;nbsp; In old project, because DMA channel 1 links to channel &lt;STRONG&gt;0&lt;/STRONG&gt;, it doesn't matter whether &lt;STRONG&gt;DMA_BITER_ELINKYES_LINKCH(x)&lt;/STRONG&gt;&amp;nbsp; is set. But in my new project when DMA channel 0 links to channel &lt;STRONG&gt;3, &lt;/STRONG&gt;I must set this value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(2) I still use 3 DMA channels, and it can work. Now the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;'MUXSEL_ADCA' or 'MUXSEL_ADCB' selection works right. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;In your answer, you recommend that I use DMA 0 to &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;to configure the registers of ADCx_SC1A and ADCx_CFG2. I don't understand how to realize it. The destination address can only be set to the address of one register, right?&amp;nbsp; How to simultaneously use both &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ADCx_SC1A and ADCx_CFG2&lt;/SPAN&gt; as the destination address?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;When I initiate DMA channel 0, I set :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;DMA_TCD0_SADDR = (uint32)&amp;amp;channel_map[0];&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;DMA_TCD0_DADDR = (uint32)&amp;amp;ADC0_SC1A;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 08:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427077#M24659</guid>
      <dc:creator>yanlicheng</dc:creator>
      <dc:date>2015-08-10T08:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427078#M24660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yanli Cheng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may use DMA_TCDn_ATTR[DMOD] to set a circular buffer for &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ADCx_SC1A and ADCx_CFG2. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52239i81673096F3B262E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Per above, ADC0_SC1A is at 0x4003b000, and ADC0_CFG2 is at 0x4003b00c, so you may set a 16 bytes circular buffer for them. please note if you do in that way, ADC0_SC1B and ADC0_CFG1 are also included in this buffer, you have to prepare data for them as well. for more details regarding modulo, please refer to 22.5.4.3 Using the modulo feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 08:57:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427078#M24660</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-08-10T08:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427079#M24661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 09:23:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427079#M24661</guid>
      <dc:creator>yanlicheng</dc:creator>
      <dc:date>2015-08-12T09:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using DMA to Emulate ADC Flexible Scan Mode on Kinetis K Series</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427080#M24662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kan_Li:&lt;/P&gt;&lt;P&gt;In the RM for K10 series chip, the 'PDBx_MOD' register was described as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PDB0_MOD.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52494iA0835B0666A6C2FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="PDB0_MOD.png" alt="PDB0_MOD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I study one project, the setting for PDB is: &lt;STRONG&gt;PDB0_MOD = 50000000/(samplerate*4);&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here, samplerate=2000, and thus PDB0_MOD =6250.&lt;/P&gt;&lt;P&gt;I've two questions.&lt;/P&gt;&lt;P&gt;(1) In my view, &lt;STRONG&gt;50000000 &lt;/STRONG&gt;is the frequency of bus clock. and also the counter frequency of PDB. Is that right?&lt;/P&gt;&lt;P&gt;(2) When I changed 'PDB0_MOD'&amp;nbsp; to a smaller value, such as 5000. &lt;STRONG&gt;The program will reset.&lt;/STRONG&gt; What causes this to happen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 07:08:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-on-Kinetis-K-Series/m-p/427080#M24662</guid>
      <dc:creator>yanlicheng</dc:creator>
      <dc:date>2015-08-17T07:08:22Z</dc:date>
    </item>
  </channel>
</rss>

