<?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: Triggering SAR ADC conversion with BCTU, followed by a DMA transfer on the MPC5746R in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Triggering-SAR-ADC-conversion-with-BCTU-followed-by-a-DMA/m-p/694854#M8652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After leaving this, and coming back to it a month later and working on it for 5 minutes, it turns out I was configuring the DMAMUX incorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For anyones future reference, the DMAMUX CHCFG register to be written to, must be the DMA channel modulus 16. So if you are trying to configure DMAMUX 1 for DMA channel 7, then configure DMAMUX.CHCFG[7].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2017 20:14:06 GMT</pubDate>
    <dc:creator>erickarr</dc:creator>
    <dc:date>2017-09-20T20:14:06Z</dc:date>
    <item>
      <title>Triggering SAR ADC conversion with BCTU, followed by a DMA transfer on the MPC5746R</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Triggering-SAR-ADC-conversion-with-BCTU-followed-by-a-DMA/m-p/694853#M8651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the PIT, to trigger the BCTU, to collect SAR ADC readings. I then want to use the BCTU to trigger a DMA transfer that will push that data into a location in RAM. So far, I successfully have the PIT, triggering the BCTU, which is gathering results from SAR2 ADC, and I can read them back in the BCTU ADC2DR register. I also have, a successful memory to memory DMA transfer setup, that I can trigger manually&amp;nbsp;from software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My belief, is that I should use the DMAMUX to configure the source of the DMA transfer, if so, then I am unsure if the source should be the BCTU, or the SAR of which the conversion is being triggered on. I have attached a screenshot of an excerpt from the reference manual with highlights to my references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of my confusions, is the reference to 'BCTU_n' in said table. I say that, because there is only a singular BCTU module in the MPC5746R. But, I am making the assumption, that 'BCTU_2' would align with a trigger from a completed conversion on SAR channel 2 through the BCTU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using 'BCTU_2' as a source for my DMA transfer, on DMA channel 0, through DMAMUX 0. For DMA, I am using round robin groups and fixed priority channels within those groups. Then, I have also tried using 'SAR_ADC_2' as a trigger on DMAMUX 1, with a DMA channel of 16. I always configure my DMA channels before the MUX channels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can provide additional information, and code, if required. Just curious what I could be missing. Like I said, the PIT, BCTU, and SAR, have all been tested together successfully. As well as a DMA transfer from memory-to-memory, on various other channels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 20:55:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Triggering-SAR-ADC-conversion-with-BCTU-followed-by-a-DMA/m-p/694853#M8651</guid>
      <dc:creator>erickarr</dc:creator>
      <dc:date>2017-08-09T20:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering SAR ADC conversion with BCTU, followed by a DMA transfer on the MPC5746R</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Triggering-SAR-ADC-conversion-with-BCTU-followed-by-a-DMA/m-p/694854#M8652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After leaving this, and coming back to it a month later and working on it for 5 minutes, it turns out I was configuring the DMAMUX incorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For anyones future reference, the DMAMUX CHCFG register to be written to, must be the DMA channel modulus 16. So if you are trying to configure DMAMUX 1 for DMA channel 7, then configure DMAMUX.CHCFG[7].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 20:14:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Triggering-SAR-ADC-conversion-with-BCTU-followed-by-a-DMA/m-p/694854#M8652</guid>
      <dc:creator>erickarr</dc:creator>
      <dc:date>2017-09-20T20:14:06Z</dc:date>
    </item>
    <item>
      <title>回复： Triggering SAR ADC conversion with BCTU, followed by a DMA transfer on the MPC5746R</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Triggering-SAR-ADC-conversion-with-BCTU-followed-by-a-DMA/m-p/1516558#M21916</link>
      <description>&lt;P&gt;Hi Eric:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Nice to see your issue. so far, I have similar problems to your issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Processor-Expert-Software/MPC5746C-PIT-BCTU-ADC-DMA/td-p/1516556" target="_blank"&gt;https://community.nxp.com/t5/Processor-Expert-Software/MPC5746C-PIT-BCTU-ADC-DMA/td-p/1516556&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Could you help me? Thank you very much.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 15:17:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Triggering-SAR-ADC-conversion-with-BCTU-followed-by-a-DMA/m-p/1516558#M21916</guid>
      <dc:creator>chenls</dc:creator>
      <dc:date>2022-09-03T15:17:11Z</dc:date>
    </item>
  </channel>
</rss>

