ADC2 with two triggers

Showing results for 
Search instead for 
Did you mean: 

ADC2 with two triggers

Contributor II


i'm struggeling with the adc_etc.  and have 2 questions:


I want to use two different external triggers for two different Lpadc2 channels on the rt1176.

Therefor i want to use the following config:

PIT1_Channel 0 -> XBAR1_OutputAdc1coco0 -> adc trigger4 (working with IRQ0, Triggermask4)

PIT1_Channel2 -> XBAR_OutputAdc1coco1 -> adc trigger5 (working with IRQ,Triggermask5)

the adc trigger4 path works when use stand alone, but when i add the function:

PIT_StartTimer(DEMO_PIT_BASE, kPIT_Chnl_2) after the PIT_StartTimer(TEST_PIT_BASE, kPIT_Chnl_0) function, the adc doesn't work anymore.


Do the PIT Outputs blocking each other?


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.


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...

thanks in advance,




0 Kudos
0 Replies