<?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: How to use DMA for HSADC</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-for-HSADC/m-p/560794#M16159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by iCiepie on Sun Sep 07 06:13:05 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still trying to implement DMA for to HSADC of the LPC4370. Interrupt mode is already running, but i only get 25MSample. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone could help me please? At the moment I've got this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;void DMA_Init()

{

NVIC_DisableIRQ(ADCHS_IRQn);

/* Initialize GPDMA controller */
Chip_GPDMA_Init(LPC_GPDMA);
/* Setting GPDMA interrupt */
NVIC_DisableIRQ(DMA_IRQn);
NVIC_SetPriority(DMA_IRQn, ((0x01 &amp;lt;&amp;lt; 3) | 0x01));
NVIC_EnableIRQ(DMA_IRQn);

/* Get the free channel for DMA transfer */

dmaChannelNum = 7;

Chip_GPDMA_Transfer(LPC_GPDMA, dmaChannelNum,

&amp;amp;(LPC_ADCHS-&amp;gt;FIFO_OUTPUT[0]),

&amp;nbsp; (uint32_t) &amp;amp;dataValue+4*DMACOUNT,

&amp;nbsp; GPDMA_TRANSFERTYPE_M2M_CONTROLLER_DMA,

&amp;nbsp; ((2UL)));
DMACOUNT++;

/* Waiting for reading ADC value completed */

//while (channelTC == 0) {}







/* Disable interrupts, release DMA channel */

Chip_GPDMA_Stop(LPC_GPDMA, dmaChannelNum);
NVIC_DisableIRQ(DMA_IRQn);


}


void DMA_IRQHandler(void)

{

if (Chip_GPDMA_Interrupt(LPC_GPDMA, dmaChannelNum) == SUCCESS) {
uint8_t TDivider2[30] = "Success DMA \r\n";///
Chip_UART_SendBlocking(LPC_USART2, TDivider2, sizeof(TDivider2));
}

else {
uint8_t TDivider[30] = "Error DMA \r\n";///
Chip_UART_SendBlocking(LPC_USART2, TDivider, sizeof(TDivider));

/* Process error here */

}

}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:44:58 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:44:58Z</dc:date>
    <item>
      <title>How to use DMA for HSADC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-for-HSADC/m-p/560793#M16158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by iCiepie on Wed Sep 03 14:08:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i wonder how to use DMA for the HSADC. Is there any example code? The one from LPCOpen uses interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there nobody who already programmed it? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:44:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-for-HSADC/m-p/560793#M16158</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DMA for HSADC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-for-HSADC/m-p/560794#M16159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by iCiepie on Sun Sep 07 06:13:05 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still trying to implement DMA for to HSADC of the LPC4370. Interrupt mode is already running, but i only get 25MSample. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone could help me please? At the moment I've got this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;void DMA_Init()

{

NVIC_DisableIRQ(ADCHS_IRQn);

/* Initialize GPDMA controller */
Chip_GPDMA_Init(LPC_GPDMA);
/* Setting GPDMA interrupt */
NVIC_DisableIRQ(DMA_IRQn);
NVIC_SetPriority(DMA_IRQn, ((0x01 &amp;lt;&amp;lt; 3) | 0x01));
NVIC_EnableIRQ(DMA_IRQn);

/* Get the free channel for DMA transfer */

dmaChannelNum = 7;

Chip_GPDMA_Transfer(LPC_GPDMA, dmaChannelNum,

&amp;amp;(LPC_ADCHS-&amp;gt;FIFO_OUTPUT[0]),

&amp;nbsp; (uint32_t) &amp;amp;dataValue+4*DMACOUNT,

&amp;nbsp; GPDMA_TRANSFERTYPE_M2M_CONTROLLER_DMA,

&amp;nbsp; ((2UL)));
DMACOUNT++;

/* Waiting for reading ADC value completed */

//while (channelTC == 0) {}







/* Disable interrupts, release DMA channel */

Chip_GPDMA_Stop(LPC_GPDMA, dmaChannelNum);
NVIC_DisableIRQ(DMA_IRQn);


}


void DMA_IRQHandler(void)

{

if (Chip_GPDMA_Interrupt(LPC_GPDMA, dmaChannelNum) == SUCCESS) {
uint8_t TDivider2[30] = "Success DMA \r\n";///
Chip_UART_SendBlocking(LPC_USART2, TDivider2, sizeof(TDivider2));
}

else {
uint8_t TDivider[30] = "Error DMA \r\n";///
Chip_UART_SendBlocking(LPC_USART2, TDivider, sizeof(TDivider));

/* Process error here */

}

}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:44:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-for-HSADC/m-p/560794#M16159</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DMA for HSADC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-for-HSADC/m-p/560795#M16160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xianghuiwang on Sun Sep 07 23:07:36 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check through this forum. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Flpc4370-acdhs-speed" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc4370-acdhs-speed&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Links for DMA usage:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fembeddedartists%2Flabtool%2Fblob%2Fmaster%2Ffw%2Fprogram%2Fsource%2Fcapture_vadc.c%23L198" rel="nofollow" target="_blank"&gt;https://github.com/embeddedartists/labtool/blob/master/fw/program/source/capture_vadc.c#L198&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fembeddedartists%2Flabtool%2Fblob%2Fmaster%2Ffw%2Fprogram%2Fsource%2Fcapture_vadc.c%23L468" rel="nofollow" target="_blank"&gt;https://github.com/embeddedartists/labtool/blob/master/fw/program/source/capture_vadc.c#L468&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:44:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-DMA-for-HSADC/m-p/560795#M16160</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:44:59Z</dc:date>
    </item>
  </channel>
</rss>

