<?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>MPC5xxx中的主题 Re: ADC DMA</title>
    <link>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1623943#M23286</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think best option is to enable DMA request for the last converted channel using ADC_DMAE, ADC_DMAR0. Within DMA you will use channel linking feature. So have 2 channels initialized, first channel, triggered by ADC DMA request, starts the second channel after finishing its major loop.&lt;BR /&gt;First channel will simply read&amp;nbsp;&lt;SPAN&gt;ADC0 Channel 0-7 and second channels&amp;nbsp;ADC0 Channel 20-25 using single major loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 07:35:20 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2023-03-29T07:35:20Z</dc:date>
    <item>
      <title>ADC DMA</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1621365#M23249</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I-Enviroment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MPC5746R development with S32DS and S32SDK.&amp;nbsp;I want to use ADC with DMA. ADC0 Channel 0-7 and 20-25,totally 14 channels works in normal chain, software start,&amp;nbsp;scan conversion mode. DMA major loop is 8, totally 14*8=112 results.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;II-Problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Channel results are not physical address consecutive,I don't know how to set DMA source address. I come up with 3 solutions:&lt;/P&gt;&lt;P&gt;1.SARADC0 Trigger 2 DMA channels, one transfer ADC Ch0-7 results, the other transfer Ch20-25 results. Is this method possible? But if the ADC ch is 1\2,4\5,7\8....., I need to used mutiple DMA Chs.Maybe this mehod is not good enough.&lt;/P&gt;&lt;P&gt;2.SARADC0 convert channle 0-25, and DMA starts after ADC normal chain. This method extends the time required for ADC and uses more ram for results buffer.&lt;/P&gt;&lt;P&gt;3.Enable ADC End of Chain ISR. In the ISR call back, i call SDK function for example&amp;nbsp;ADC_DRV_GetConvResultsToArray, save adc results from ADC Reg to system RAM. and start DMA by&amp;nbsp;software, transfer data from System RAM to finally Buffer. But this method requires CPU intervention.Is this method possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;III-Questions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1.Is there any other good method or anyone of the 3 above is ok?&lt;/P&gt;&lt;P&gt;2.What's the meaning of ADC Register: ADC_DMAE and ADC_DMAR0-2. Whether the conversion results that need to be accessed by DMA need to be set in the DMARx register. And DMA Triggerd ty ADC end of normal chain?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 04:13:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1621365#M23249</guid>
      <dc:creator>boxu</dc:creator>
      <dc:date>2023-03-24T04:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: ADC DMA</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1621368#M23250</link>
      <description>&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx/Having-trouble-reading-multi-channel-ADC-data-with-DMA/m-p/1381322" target="_blank"&gt;Having trouble reading multi-channel ADC data with... - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;According to this, maybe solution1 is not working.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 04:27:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1621368#M23250</guid>
      <dc:creator>boxu</dc:creator>
      <dc:date>2023-03-24T04:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: ADC DMA</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1623943#M23286</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think best option is to enable DMA request for the last converted channel using ADC_DMAE, ADC_DMAR0. Within DMA you will use channel linking feature. So have 2 channels initialized, first channel, triggered by ADC DMA request, starts the second channel after finishing its major loop.&lt;BR /&gt;First channel will simply read&amp;nbsp;&lt;SPAN&gt;ADC0 Channel 0-7 and second channels&amp;nbsp;ADC0 Channel 20-25 using single major loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 07:35:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1623943#M23286</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-03-29T07:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: ADC DMA</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1626768#M23302</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have tried to use BCTU, ADC0-ADC3 triggerd by software in loop, and I can get data from BCTU ISR now. I will try to use DMA instead of BCTU ISR afterwards.&lt;/P&gt;&lt;P&gt;I came up with some problems about ADC3 decode channels:&lt;/P&gt;&lt;P&gt;1) In adc_pal of SDK, it doesn't support ADC decode channels, so I turn to use adc_sar according with bctu module;&lt;/P&gt;&lt;P&gt;2) In the code generated by adc_sar,&amp;nbsp;exactly&amp;nbsp;struct of&amp;nbsp;adc_conv_config_t&amp;nbsp; in ‘ADC_SAR_DRIVER_H’, the element decodeDelay should may be 16 bits?&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; In&amp;nbsp; the RM of Rev. 6.2 06/2017, Page 1050, ADC_DSDR Register, the DSD Tick may should be&amp;nbsp;ADC_clock_frequency, not&amp;nbsp;System Clock, according to my test results;&lt;/P&gt;&lt;P&gt;4)&amp;nbsp; I have got data from ADC0-ADC2 correcly, but the decode delay doesn't seem to work with BCTU software trigger, how should I do?(Note: Decode delay works when I test ADC modules individually.)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 09:40:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1626768#M23302</guid>
      <dc:creator>boxu</dc:creator>
      <dc:date>2023-04-03T09:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: ADC DMA</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1626801#M23303</link>
      <description>&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MPC5xxx/MPC5746C-ADC-CTU-trigger-external-decode-signal-multiplexing/m-p/1451488" target="_blank"&gt;MPC5746C ADC CTU trigger external decode signal mu... - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;According to the page above, I tried to change the mode from CTU Trigger to CTU Control, and the decode delay of ADC3 works right.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 10:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ADC-DMA/m-p/1626801#M23303</guid>
      <dc:creator>boxu</dc:creator>
      <dc:date>2023-04-03T10:32:53Z</dc:date>
    </item>
  </channel>
</rss>

