Hi there,
I'm trying to figure out how the ISRs are being called when I use trigger two ADCs from the same SOC event. According to my understanding of how this works I setup ADC A and B to the same SOCA event from the ePWM module:
AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 5; // Trigger on ePWM1 SOCA
AdcbRegs.ADCSOC0CTL.bit.TRIGSEL = 5; // Trigger on ePWM1 SOCA
From the ADC example I assume that these two lines
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 0; // End of SOC0 will set INT1 flag
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1; // Enable INT1 flag
cause the jump to the <p>adcA1ISR</p> interrupt service routing. My problem now is that I would like to make sure that the EOC happened for ADC B as well and that if I read the result register in the ISR for ADC A and B they are both updated. Is there any possibility to logic AND connect the EOC0 events for ADC A and B and have the interrupt triggered accordingly?
Thanksin advance for your help,
Lennart