<?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>i.MX Processors中的主题 ADC2 with two triggers</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ADC2-with-two-triggers/m-p/1494084#M192874</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i'm struggeling with the adc_etc.&amp;nbsp; and have 2 questions:&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;I want to use two different external triggers for two different Lpadc2 channels on the rt1176.&lt;/P&gt;&lt;P&gt;Therefor i want to use the following config:&lt;/P&gt;&lt;P&gt;PIT1_Channel 0 -&amp;gt; XBAR1_OutputAdc1coco0 -&amp;gt; adc trigger4 (working with IRQ0, Triggermask4)&lt;/P&gt;&lt;P&gt;PIT1_Channel2 -&amp;gt; XBAR_OutputAdc1coco1 -&amp;gt; adc trigger5 (working with IRQ,Triggermask5)&lt;/P&gt;&lt;P&gt;the adc trigger4 path works when use stand alone, but when i add the function:&lt;/P&gt;&lt;P&gt;PIT_StartTimer(DEMO_PIT_BASE, kPIT_Chnl_2) after the&amp;nbsp;PIT_StartTimer(TEST_PIT_BASE, kPIT_Chnl_0) function, the adc doesn't work anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do the PIT Outputs blocking each other?&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;When i just want 2 seperate channels working independently, do i even need a trigger chain? The Problem is that the trigger chain doesnt work with ADC2, i just get the correct result for the first one but the second is always 0. When i switch the DEMO_USER_CHANNEL to the second line, it is the direct opposite. Very confusing because it works with ADC1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share a working demo code with lpadc2 and adc_etc? it is very confusing that it works on one channel seperatly but not on two. I used the demo example. I get even Conversion 1 correct and conversion2 zero or vice versa...&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 13:43:59 GMT</pubDate>
    <dc:creator>Andy_h</dc:creator>
    <dc:date>2022-07-22T13:43:59Z</dc:date>
    <item>
      <title>ADC2 with two triggers</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC2-with-two-triggers/m-p/1494084#M192874</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i'm struggeling with the adc_etc.&amp;nbsp; and have 2 questions:&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;I want to use two different external triggers for two different Lpadc2 channels on the rt1176.&lt;/P&gt;&lt;P&gt;Therefor i want to use the following config:&lt;/P&gt;&lt;P&gt;PIT1_Channel 0 -&amp;gt; XBAR1_OutputAdc1coco0 -&amp;gt; adc trigger4 (working with IRQ0, Triggermask4)&lt;/P&gt;&lt;P&gt;PIT1_Channel2 -&amp;gt; XBAR_OutputAdc1coco1 -&amp;gt; adc trigger5 (working with IRQ,Triggermask5)&lt;/P&gt;&lt;P&gt;the adc trigger4 path works when use stand alone, but when i add the function:&lt;/P&gt;&lt;P&gt;PIT_StartTimer(DEMO_PIT_BASE, kPIT_Chnl_2) after the&amp;nbsp;PIT_StartTimer(TEST_PIT_BASE, kPIT_Chnl_0) function, the adc doesn't work anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do the PIT Outputs blocking each other?&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;When i just want 2 seperate channels working independently, do i even need a trigger chain? The Problem is that the trigger chain doesnt work with ADC2, i just get the correct result for the first one but the second is always 0. When i switch the DEMO_USER_CHANNEL to the second line, it is the direct opposite. Very confusing because it works with ADC1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share a working demo code with lpadc2 and adc_etc? it is very confusing that it works on one channel seperatly but not on two. I used the demo example. I get even Conversion 1 correct and conversion2 zero or vice versa...&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 13:43:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC2-with-two-triggers/m-p/1494084#M192874</guid>
      <dc:creator>Andy_h</dc:creator>
      <dc:date>2022-07-22T13:43:59Z</dc:date>
    </item>
  </channel>
</rss>

