Hello Raul,
Thank you for your response. I have successfully resolved the problem by following the provided example.
The resulting code is as follows:
/* Init xbara module. */
XBARA_Init(XBARA1);
/* Link the ADC_ETC trigger signals from PWM*/
XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputFlexpwm1Pwm0OutTrig0, kXBARA1_OutputAdcEtc0Coco0);
XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputFlexpwm1Pwm0OutTrig1, kXBARA1_OutputAdcEtc0Coco1);
/* Link the ADC_COCO signal to DMA */
XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputAdcEtc0Coco0, kXBARA1_OutputDmaChMuxReq81);
XBARA_SetSignalsConnection(XBARA1, kXBARA1_InputAdcEtc1Coco0, kXBARA1_OutputDmaChMuxReq82);
/* Configure the XBARA DMA. */
xbaraConfig1.activeEdge = kXBARA_EdgeRising;
xbaraConfig1.requestType = kXBARA_RequestDMAEnable;
XBARA_SetOutputSignalConfig(XBARA1, kXBARA1_OutputDmaChMuxReq81, &xbaraConfig1);
xbaraConfig2.activeEdge = kXBARA_EdgeRising;
xbaraConfig2.requestType = kXBARA_RequestDMAEnable;
XBARA_SetOutputSignalConfig(XBARA1, kXBARA1_OutputDmaChMuxReq82, &xbaraConfig2);
Best regards,
Odei