<?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>LPC Microcontrollers中的主题 Re: LPC54102 ADC/DMA interrupt configuration</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688481#M27785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The BURST bit is used as the ADC trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the previously attached source file:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_ADC_StartBurstSequencer(LPC_ADC, ADC_SEQB_IDX);&lt;/P&gt;&lt;P&gt;where the channel converted is:&lt;/P&gt;&lt;P&gt;Chip_ADC_SetupSequencer(LPC_ADC, ADC_SEQB_IDX, (ADC_SEQ_CTRL_CHANSEL(AC_OUT_CHAN) | ADC_SEQ_CTRL_MODE_EOS));&lt;/P&gt;&lt;P&gt;where AC_OUT_CHAN = 4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2017 17:01:45 GMT</pubDate>
    <dc:creator>chrisoneill</dc:creator>
    <dc:date>2017-08-07T17:01:45Z</dc:date>
    <item>
      <title>LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688469#M27773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to determine the correct configuration for using ADC-triggered DMA. &amp;nbsp;I have it working, but there is some unexpected behavior I would like to understand.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My usage case if fairly simple:&lt;/P&gt;&lt;P&gt;- using Sequence B&lt;/P&gt;&lt;P&gt;- single ADC channel 4&lt;/P&gt;&lt;P&gt;- single DMA channel 0&lt;/P&gt;&lt;P&gt;- a list of 10 Transfer_Descriptors of 16-bit x 1024 samples&lt;/P&gt;&lt;P&gt;- set ADC BURST bit to start, clear BURST bit on the 10th DMA IRQ.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For it to work, interrupt-related config:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Sequencer config:&lt;/P&gt;&lt;P&gt;Chip_ADC_SetupSequencer(LPC_ADC, ADC_SEQB_IDX, (ADC_SEQ_CTRL_CHANSEL(4) | ADC_SEQ_CTRL_MODE_EOS));&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- ADC interrupt config:&lt;/P&gt;&lt;P&gt;Chip_ADC_EnableInt(LPC_ADC, ( ADC_INTEN_SEQB_ENABLE | ADC_INTEN_OVRRUN_ENABLE));&lt;/P&gt;&lt;P&gt;NVIC_EnableIRQ(ADC_SEQB_IRQn);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Transfer_Descriptor 'xfercfg':&lt;/P&gt;&lt;P&gt;DMA_XFERCFG_SETINTB&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- DMA interrupt config:&lt;/P&gt;&lt;P&gt;Chip_DMA_EnableIntChannel(LPC_DMA, DMA_CH0);&lt;/P&gt;&lt;P&gt;LPC_INMUX-&amp;gt;DMA_ITRIG_INMUX[0] = DMATRIG_ADC0_SEQB_IRQ;&lt;/P&gt;&lt;P&gt;NVIC_EnableIRQ(DMA_IRQn);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the questions are:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1) The User Guide (sec. 25.7.8) says: "If DMA is used for a sequence, the corresponding sequence interrupt must be disabled in the INTEN register". &amp;nbsp;If I don't enable the sequence interrupt, the DMA interrupt never happens. &amp;nbsp;Why?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(2) Is the Sequence B interrupt handler (ADC_SEQB_IRQHandler()) not supposed to be called? &amp;nbsp;For the 10k sample that's collected, the Sequence B handler is called a few thousand times. &amp;nbsp;Not once for every sample, but a lot. &amp;nbsp;I'm only getting about half the sample rate expected, approx. 2.5 MSPS, is this slowing down the sampling?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(3) If I use the conversion interrupt instead of the end-of-sequence interrupt (MODE=1=ADC_SEQ_CTRL_MODE_EOS), the DMA interrupt never happens. &amp;nbsp;Why? &amp;nbsp;Not supported with DMA?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337908"&gt;adc_dma.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 04:19:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688469#M27773</guid>
      <dc:creator>chrisoneill</dc:creator>
      <dc:date>2017-07-31T04:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688470#M27774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="295097" data-username="chrisoneill" href="https://community.nxp.com/people/chrisoneill"&gt;Chris ONeill&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;for the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;(1) The User Guide (sec. 25.7.8) says: "If DMA is used for a sequence, the corresponding sequence interrupt must be disabled in the INTEN register". &amp;nbsp;If I don't enable the sequence interrupt, the DMA interrupt never happens. &amp;nbsp;Why?&lt;/P&gt;&lt;P&gt;--- I'm also a confused with the statement and I'll contact with the AE team for checking.&lt;/P&gt;&lt;P&gt;(2) Is the Sequence B interrupt handler (ADC_SEQB_IRQHandler()) not supposed to be called? &amp;nbsp;For the 10k sample that's collected, the Sequence B handler is called a few thousand times. &amp;nbsp;Not once for every sample, but a lot. &amp;nbsp;I'm only getting about half the sample rate expected, approx. 2.5 MSPS, is this slowing down the sampling?&lt;/P&gt;&lt;P&gt;-- I was wondering if you can share the more information as I'm not clear with this issue.&lt;/P&gt;&lt;P&gt;(3) If I use the conversion interrupt instead of the end-of-sequence interrupt (MODE=1=ADC_SEQ_CTRL_MODE_EOS), the DMA interrupt never happens. &amp;nbsp;Why? &amp;nbsp;Not supported with DMA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;-- Whether you upload the sample code, I'd like to replicate the issue on my site.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 01 Aug 2017 09:29:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688470#M27774</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-01T09:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688471#M27775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attached the file that configures and executes the ADC/DMA conversion.&lt;/P&gt;&lt;P&gt;-&amp;nbsp; sequence A is used for a 2-channel one-shop conversion, no issues there&lt;/P&gt;&lt;P&gt;- sequence B is used for a 1-channel burst mode conversion, total 10k samples, 1k x 10 Transfer_Descriptor buffers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know what is the correct use of the ADC interrupt to drive this.&amp;nbsp; It's my impression that the sequence B interrupt handler shouldn't be getting called, since it slows things down (does it?), and gets called something like 4k times for a 10k sample, so it seems like it's not really doing anything useful, and I'm not using it to do any kind of processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actual 10k sample looks fine, except it's sampling at about a 2.5 MSPS rate, not 5 MSPS, so I'm assuming something in my setup is incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:06:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688471#M27775</guid>
      <dc:creator>chrisoneill</dc:creator>
      <dc:date>2017-08-01T17:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688472#M27776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that I can stop the sequence B interrupt handler from being called by removing the call:&lt;/P&gt;&lt;P&gt;NVIC_EnableIRQ(ADC_SEQB_IRQn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing that it might be useful for single conversions, but not in burst mode where the IRQ can't keep up with the converter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it hasn't increased the conversion speed. &amp;nbsp;I'm still getting about 2.5 MSPS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 20:14:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688472#M27776</guid>
      <dc:creator>chrisoneill</dc:creator>
      <dc:date>2017-08-01T20:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688473#M27777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris ONeill,&lt;/P&gt;&lt;P&gt;After going over the codes, I find that the ADC sample clock is 48 MHz, the resolution bit is 12 bit and the sample time needs 20 ADC clocks for the 12-bit resolution, so it's easily to get the sampling frequency: 48 MHz/20=2.4 Msps.&lt;/P&gt;&lt;P&gt;To get the maximum of the sampling frequency, you need to reconfigure these above parameters.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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, 02 Aug 2017 04:40:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688473#M27777</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-02T04:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688474#M27778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changing the sample rate in&amp;nbsp;Chip_ADC_SetClockRate(LPC_ADC, ADC_MAX_SAMPLE_RATE) did change what I'm seeing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have to enable the Sequence B interrupt for the DMA to trigger, but if I don't call NVIC_EnableIRQ(ADC_SEQB_IRQn) then I don't get the Sequence B interrupt handler called, which is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using system clock = 100MHz. &amp;nbsp;I don't see the SetClockRate() call above setting the sample rate directly, but sets the divisor. &amp;nbsp;100Mhz / 48Mhz = divisor = 2. &amp;nbsp;Wouldn't that really be an ADC clock rate of 50Mhz?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The User Guide says the max ADC clock rate is 80Mhz. &amp;nbsp;Can I use the 100Mhz system clock, at 20 clocks per sample to give me the 5Mhz sample rate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 17:55:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688474#M27778</guid>
      <dc:creator>chrisoneill</dc:creator>
      <dc:date>2017-08-02T17:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688475#M27779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="295097" data-username="chrisoneill" href="https://community.nxp.com/people/chrisoneill"&gt;Chris ONeill&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for you reply.&lt;/P&gt;&lt;P&gt;Can I use the 100Mhz system clock, at 20 clocks per sample to give me the 5Mhz sample rate?&lt;/P&gt;&lt;P&gt;1) I'd highly recommend you to think another approach instead of this question, for instance getting 80MHz system clock for the ADC module.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 03 Aug 2017 06:28:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688475#M27779</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-03T06:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688476#M27780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-objectid="295097" data-objecttype="3" href="https://community.nxp.com/people/chrisoneill"&gt;Chris ONeill&lt;/A&gt;&lt;/SPAN&gt;,,&lt;/P&gt;&lt;P&gt;I've escalated the question, so could you provide the build-able project that AE team can reproduce this case?&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 03 Aug 2017 07:50:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688476#M27780</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-03T07:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688477#M27781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jeremy. &amp;nbsp;At this point I've worked past the operational issues. &amp;nbsp;The remaining questions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;(1) The User Guide (sec. 25.7.8) says: "If DMA is used for a sequence, the corresponding sequence interrupt must be disabled in the INTEN register". &amp;nbsp;If I don't enable the sequence interrupt, the DMA interrupt never happens. &amp;nbsp;Is this just a User Guide errata?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;(2) If I use the conversion interrupt instead of the end-of-sequence interrupt the DMA interrupt never happens. &amp;nbsp;Should it, or is it not supported with DMA? &amp;nbsp;For a single channel burst conversion of 10k samples is the end-of-sequence interrupt exactly the same as the conversion interrupt in terms of performance, accuracy, etc ?&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;(3) I'm collecting 10k samples using DMA, so it seems synchronous clocking is the best to use. &amp;nbsp;I don't want to give up 20% of performance by slowing the system clock to get the max 80 MHz ADC clock. &amp;nbsp;So I should settle for a 50 MHz ADC clock = 2.5 MHz sample rate as a compromise. &amp;nbsp;The ADC clock is an integer divide of the system clock, yes? &amp;nbsp;So there's no way to derive a 80 MHz ADC clock from a 100 MHz system clock?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 18:05:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688477#M27781</guid>
      <dc:creator>chrisoneill</dc:creator>
      <dc:date>2017-08-03T18:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688478#M27782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="295097" data-username="chrisoneill" href="https://community.nxp.com/people/chrisoneill"&gt;Chris ONeill&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;(1) The User Guide (sec. 25.7.8) says: "If DMA is used for a sequence, the corresponding sequence interrupt must be disabled in the INTEN register". &amp;nbsp;If I don't enable the sequence interrupt, the DMA interrupt never happens. &amp;nbsp;Is this just a User Guide errata?&lt;/P&gt;&lt;P&gt;-- After confirming,&lt;SPAN style="color: #ff0000;"&gt; the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt; color: red;"&gt;&lt;SPAN style="color: #ff0000;"&gt; “disabled” word in the Remark should be a typo, should be changed to “enabled”.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 11pt;"&gt;(2)&lt;SPAN style="color: #000000;"&gt; If I use the conversion interrupt instead of the end-of-sequence interrupt the DMA interrupt never happens. &amp;nbsp;Should it, or is it not supported with DMA? &amp;nbsp;For a single channel burst conversion of 10k samples is the end-of-sequence interrupt exactly the same as the conversion interrupt in terms of performance, accuracy, etc ?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #000000;"&gt;-- I'd like to confirm the the trigger source of ADC you choose in your testing, would you mind describe the testing in more detailed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #000000;"&gt;(3) I'm collecting 10k samples using DMA, so it seems synchronous clocking is the best to use. &amp;nbsp;I don't want to give up 20% of performance by slowing the system clock to get the max 80 MHz ADC clock. &amp;nbsp;So I should settle for a 50 MHz ADC clock = 2.5 MHz sample rate as a compromise. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #000000;"&gt;The ADC clock is an integer divide of the system clock, yes? &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #000000;"&gt;&amp;nbsp;-- Yes, it's.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #000000;"&gt;So there's no way to derive a 80 MHz ADC clock from a 100 MHz system clock?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #000000;"&gt;-- No, you can't the 0 MHz ADC clock from a 100 MHz system clock.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 04 Aug 2017 06:11:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688478#M27782</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-04T06:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688479#M27783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trigger source, as in the attached file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// ADC Sequence B interrupt is selected for a DMA trigger&lt;BR /&gt; LPC_INMUX-&amp;gt;DMA_ITRIG_INMUX[0] = DMATRIG_ADC0_SEQB_IRQ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 17:36:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688479#M27783</guid>
      <dc:creator>chrisoneill</dc:creator>
      <dc:date>2017-08-04T17:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688480#M27784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="295097" data-username="chrisoneill" href="https://community.nxp.com/people/chrisoneill"&gt;Chris ONeill,&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;You might miss my reply, I'd like to know the trigger of the ADC, not the DMA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 07 Aug 2017 05:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688480#M27784</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-07T05:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688481#M27785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The BURST bit is used as the ADC trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the previously attached source file:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_ADC_StartBurstSequencer(LPC_ADC, ADC_SEQB_IDX);&lt;/P&gt;&lt;P&gt;where the channel converted is:&lt;/P&gt;&lt;P&gt;Chip_ADC_SetupSequencer(LPC_ADC, ADC_SEQB_IDX, (ADC_SEQ_CTRL_CHANSEL(AC_OUT_CHAN) | ADC_SEQ_CTRL_MODE_EOS));&lt;/P&gt;&lt;P&gt;where AC_OUT_CHAN = 4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 17:01:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688481#M27785</guid>
      <dc:creator>chrisoneill</dc:creator>
      <dc:date>2017-08-07T17:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54102 ADC/DMA interrupt configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688482#M27786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="295097" data-username="chrisoneill" href="https://community.nxp.com/people/chrisoneill"&gt;Chris ONeill&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I've replicated the issue, and I'll contact with AE team about this issue later.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 08 Aug 2017 05:59:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54102-ADC-DMA-interrupt-configuration/m-p/688482#M27786</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-08-08T05:59:06Z</dc:date>
    </item>
  </channel>
</rss>

