<?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 回复： LPADC DMA Configuration in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/LPADC-DMA-Configuration/m-p/1823972#M29228</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230463"&gt;@akhil__&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Hope you are doing well!&lt;/P&gt;
&lt;P&gt;As you can see, there is no example project for dma+adc in the SDK. H&lt;SPAN&gt;owever, these threads still can inspire you, as RT MCU and Kinetis share the ADC and DMA IPs.&lt;BR /&gt;1.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT/ADC-DMA/m-p/918230" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/ADC-DMA/m-p/918230&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;2.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-with-SDK-2-x/ta-p/1120077" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-with-SDK-2-x/ta-p/1120077&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;They differ only in the ADC control registers. On the Kinetis, eDMA triggers the ADC to sample a different channel by continuously writing new trig values to the ADC_SC1n register. On the RT1170, eDMA can write the trig value to the SWTRIG register to achieve the same effect.&lt;BR /&gt;This method uses two DMA channels, one channel (channel 1) to write the data from the AD sample to RAM, and the other channel (channel 0) to write the next trig value to the SWTRIG register. the first ADC sample can be triggered by the hardware of ADC_ETC, or by the software by writing the SWTRIG directly. the ADC sampling is completed, the RESFIFO value will be written to SWTRIG. After the ADC sampling is completed, the RESFIFO value is 1, as long as the&lt;BR /&gt;After the ADC sampling is completed, the RESFIFO value is 1, and as long as ADC_FCTRL[FWMARK] is set to 0, the DMA request can be triggered to be sent to channel1, and after channel1 completes the data transfer, channel1 will link to channel0, which will then write the new trigger value into the SWTRIG to start the next AD sampling.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Gavin&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2024 08:43:41 GMT</pubDate>
    <dc:creator>Gavin_Jia</dc:creator>
    <dc:date>2024-03-08T08:43:41Z</dc:date>
    <item>
      <title>LPADC DMA Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/LPADC-DMA-Configuration/m-p/1821861#M29165</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to configure the LPADC (Low Power Analog-to-Digital Converter) using DMA (Direct Memory Access). However, I've been unable to find any example programs for LPADC DMA configuration, making the process challenging. Could anyone provide assistance by sharing some demo programs or code snippets for configuring LPADC with DMA?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 20:12:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/LPADC-DMA-Configuration/m-p/1821861#M29165</guid>
      <dc:creator>akhil__</dc:creator>
      <dc:date>2024-03-05T20:12:31Z</dc:date>
    </item>
    <item>
      <title>回复： LPADC DMA Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/LPADC-DMA-Configuration/m-p/1823972#M29228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230463"&gt;@akhil__&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Hope you are doing well!&lt;/P&gt;
&lt;P&gt;As you can see, there is no example project for dma+adc in the SDK. H&lt;SPAN&gt;owever, these threads still can inspire you, as RT MCU and Kinetis share the ADC and DMA IPs.&lt;BR /&gt;1.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT/ADC-DMA/m-p/918230" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/ADC-DMA/m-p/918230&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;2.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-with-SDK-2-x/ta-p/1120077" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-DMA-to-Emulate-ADC-Flexible-Scan-Mode-with-SDK-2-x/ta-p/1120077&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;They differ only in the ADC control registers. On the Kinetis, eDMA triggers the ADC to sample a different channel by continuously writing new trig values to the ADC_SC1n register. On the RT1170, eDMA can write the trig value to the SWTRIG register to achieve the same effect.&lt;BR /&gt;This method uses two DMA channels, one channel (channel 1) to write the data from the AD sample to RAM, and the other channel (channel 0) to write the next trig value to the SWTRIG register. the first ADC sample can be triggered by the hardware of ADC_ETC, or by the software by writing the SWTRIG directly. the ADC sampling is completed, the RESFIFO value will be written to SWTRIG. After the ADC sampling is completed, the RESFIFO value is 1, as long as the&lt;BR /&gt;After the ADC sampling is completed, the RESFIFO value is 1, and as long as ADC_FCTRL[FWMARK] is set to 0, the DMA request can be triggered to be sent to channel1, and after channel1 completes the data transfer, channel1 will link to channel0, which will then write the new trigger value into the SWTRIG to start the next AD sampling.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Gavin&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 08:43:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/LPADC-DMA-Configuration/m-p/1823972#M29228</guid>
      <dc:creator>Gavin_Jia</dc:creator>
      <dc:date>2024-03-08T08:43:41Z</dc:date>
    </item>
  </channel>
</rss>

