Part Number: TMS320F280049
If 2 SOCs are used in ADC A module, SOC1 is triggered by pwm, and EOC1 triggers ADC_INT_NUMBER1, and PIE INT_ADCA1 is enabled; SOC2 triggered by software only, and EOC2 triggers ACD_INT_NUMBER2, no PIE interrupt is configured for this SOC.
In the program, before the PWM for SOC1 has been started. SOC2 is started by ADC_forceSOC(); and then wait using this until conversion finished to read results: while(ADC_getInterruptStatus(BUCK_VIN_ADC_MODULE, ADC_INT_NUMBER2) == 0U);
I found that program stuck at waiting.
if PIE for SOC1 is not set to INT_ADCA1, it works correctly.
I don't understand why SOC1 PIE vector setting would affect SOC2 ADC_INT_NUMBER2 flag?