Hi,
I suppose that you can refer to the ADC example adc_etc_hardware_trigger_conv:

Pls just change the void XBARA_Configuration(void) so that the PWM triggering can trigger ADC
void XBARA_Configuration(void)
{
/* Init xbara module. */
XBARA_Init(DEMO_XBARA_BASE);
/* Configure the XBARA signal connections. */
//XBARA_SetSignalsConnection(DEMO_XBARA_BASE, DEMO_XBARA_INPUT_PITCH0, //DEMO_XBARA_OUTPUT_ADC_ETC);
XBARA_SetSignalsConnection(DEMO_XBARA_BASE, kXBARA1_InputFlexpwm1Pwm1OutTrig01, DEMO_XBARA_OUTPUT_ADC_ETC);
}
while you have to set the PWM trigger register so that the VALUE4 register of PWM can trigger ADC.

Hope it can help you
BR
XiangJun Rong